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; + } + /// + /// Update tenant-level settings for Microsoft 365 reports. + /// Find more info here + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update tenant-level settings for Microsoft 365 reports.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/adminreportsettings-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.AdminReportSettings.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 ReportSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/reportSettings{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ReportSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/reportSettings{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property reportSettings 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 tenant-level settings for Microsoft 365 reports. + /// + /// 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 tenant-level settings for Microsoft 365 reports. + /// + /// 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.AdminReportSettings body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AdminReportSettings 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 tenant-level settings for Microsoft 365 reports. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReportSettingsRequestBuilderGetQueryParameters + { + /// 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/ServiceAnnouncement/HealthOverviews/Count/CountRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Count/CountRequestBuilder.cs index d68d264d24..28a93bc9cf 100644 --- a/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Count/CountRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/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.ServiceAnnouncement.HealthOverviews.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/serviceAnnouncement/healthOverviews/$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/serviceAnnouncement/healthOverviews/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnoun /// 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/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs index 4a0dab6440..ae60ead7e9 100644 --- a/src/generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/HealthOverviewsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Count; using ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.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.ServiceAnnouncement.HealthOverviews /// /// Provides operations to manage the healthOverviews property of the microsoft.graph.serviceAnnouncement entity. /// - public class HealthOverviewsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HealthOverviewsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the healthOverviews property of the microsoft.graph.serviceAnnouncement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ServiceHealthItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Item.ServiceHealthItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildIssuesNavCommand()); @@ -46,7 +49,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.ServiceAnnouncement.HealthOverviews.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -80,8 +83,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(ServiceHealth.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ServiceHealth.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -198,14 +201,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 HealthOverviewsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%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 HealthOverviewsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -218,11 +221,11 @@ public HealthOverviewsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/ser /// 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); @@ -238,11 +241,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ServiceHealth body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ServiceHealth body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ServiceHealth body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ServiceHealth body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -254,7 +257,8 @@ public RequestInformation ToPostRequestInformation(ServiceHealth body, Action /// Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant. /// - public class HealthOverviewsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HealthOverviewsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -318,3 +322,4 @@ public class HealthOverviewsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Count/CountRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Count/CountRequestBuilder.cs index 62af6f124f..485bfd9b29 100644 --- a/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Count/CountRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/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.ServiceAnnouncement.HealthOverviews.Item.Issues.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/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/$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/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnoun /// 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/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.cs index 8503324cf1..3d26b6fe33 100644 --- a/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/IssuesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Item.Issues.Count; using ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Item.Issues.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.ServiceAnnouncement.HealthOverviews.Item.Issues /// /// Provides operations to manage the issues property of the microsoft.graph.serviceHealth entity. /// - public class IssuesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IssuesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the issues property of the microsoft.graph.serviceHealth entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ServiceHealthIssueItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Item.Issues.Item.ServiceHealthIssueItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildIncidentReportNavCommand()); @@ -46,7 +49,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.ServiceAnnouncement.HealthOverviews.Item.Issues.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(ServiceHealthIssue.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ServiceHealthIssue.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 IssuesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues{?%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 IssuesRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public IssuesRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnou /// 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(ServiceHealthIssue body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ServiceHealthIssue body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ServiceHealthIssue body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ServiceHealthIssue body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ServiceHealthIssue body, Acti /// /// A collection of issues that happened on the service, with detailed information for each issue. /// - public class IssuesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IssuesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class IssuesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs index 096cbd0cb3..8e34a7b9ec 100644 --- a/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/Issues/Item/IncidentReport/IncidentReportRequestBuilder.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.ServiceAnnouncement.HealthOverviews.Item.Issues.Item.Inci /// /// Provides operations to call the incidentReport method. /// - public class IncidentReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IncidentReportRequestBuilder : BaseCliRequestBuilder { /// /// Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. @@ -67,14 +70,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 IncidentReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/{serviceHealthIssue%2Did}/incidentReport()", 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 IncidentReportRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/{serviceHealthIssue%2Did}/incidentReport()", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Item.Issues.Item.IncidentReport; 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.ServiceAnnouncement.HealthOverviews.Item.Issues.Item /// /// Provides operations to manage the issues property of the microsoft.graph.serviceHealth entity. /// - public class ServiceHealthIssueItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceHealthIssueItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property issues for admin @@ -129,7 +132,7 @@ public Command BuildIncidentReportNavCommand() { var command = new Command("incident-report"); command.Description = "Provides operations to call the incidentReport method."; - var builder = new IncidentReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Item.Issues.Item.IncidentReport.IncidentReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -173,8 +176,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(ServiceHealthIssue.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ServiceHealthIssue.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ServiceHealthIssueItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/{serviceHealthIssue%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 ServiceHealthIssueItemRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/{serviceHealthIssue%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ServiceHealthIssue body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceHealthIssue body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ServiceHealthIssue body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceHealthIssue body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(ServiceHealthIssue body, Act /// /// A collection of issues that happened on the service, with detailed information for each issue. /// - public class ServiceHealthIssueItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceHealthIssueItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ServiceHealthIssueItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs index b1a9dbb44d..42aa41b607 100644 --- a/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/HealthOverviews/Item/ServiceHealthItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Item.Issues; 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.ServiceAnnouncement.HealthOverviews.Item /// /// Provides operations to manage the healthOverviews property of the microsoft.graph.serviceAnnouncement entity. /// - public class ServiceHealthItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceHealthItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property healthOverviews for admin @@ -118,7 +121,7 @@ public Command BuildIssuesNavCommand() { var command = new Command("issues"); command.Description = "Provides operations to manage the issues property of the microsoft.graph.serviceHealth entity."; - var builder = new IssuesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Item.Issues.IssuesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -167,8 +170,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(ServiceHealth.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ServiceHealth.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,14 +192,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 ServiceHealthItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%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 ServiceHealthItemRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}{?%24expand,%24select}", rawUrl) @@ -228,11 +231,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); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ServiceHealth body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceHealth body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ServiceHealth body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceHealth body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPatchRequestInformation(ServiceHealth body, Action /// Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. /// - public class ServiceHealthItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceHealthItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -289,3 +293,4 @@ public class ServiceHealthItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Issues/Count/CountRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Issues/Count/CountRequestBuilder.cs index 6e2119b8f6..c42084eaf4 100644 --- a/src/generated/Admin/ServiceAnnouncement/Issues/Count/CountRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Issues/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.ServiceAnnouncement.Issues.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/serviceAnnouncement/issues/$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/serviceAnnouncement/issues/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnoun /// 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/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs index d056596e39..f5ec4d5c84 100644 --- a/src/generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Issues/IssuesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Admin.ServiceAnnouncement.Issues.Count; using ApiSdk.Admin.ServiceAnnouncement.Issues.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.ServiceAnnouncement.Issues /// /// Provides operations to manage the issues property of the microsoft.graph.serviceAnnouncement entity. /// - public class IssuesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IssuesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the issues property of the microsoft.graph.serviceAnnouncement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ServiceHealthIssueItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Issues.Item.ServiceHealthIssueItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildIncidentReportNavCommand()); @@ -46,7 +49,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.ServiceAnnouncement.Issues.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -80,8 +83,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(ServiceHealthIssue.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ServiceHealthIssue.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -198,14 +201,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 IssuesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/issues{?%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 IssuesRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/issues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -218,11 +221,11 @@ public IssuesRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnou /// 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); @@ -238,11 +241,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ServiceHealthIssue body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ServiceHealthIssue body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ServiceHealthIssue body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ServiceHealthIssue body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -254,7 +257,8 @@ public RequestInformation ToPostRequestInformation(ServiceHealthIssue body, Acti /// /// Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant. /// - public class IssuesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IssuesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -318,3 +322,4 @@ public class IssuesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs index 5415791110..41d413d025 100644 --- a/src/generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Issues/Item/IncidentReport/IncidentReportRequestBuilder.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.ServiceAnnouncement.Issues.Item.IncidentReport /// /// Provides operations to call the incidentReport method. /// - public class IncidentReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IncidentReportRequestBuilder : BaseCliRequestBuilder { /// /// Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. @@ -62,14 +65,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 IncidentReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/issues/{serviceHealthIssue%2Did}/incidentReport()", 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 IncidentReportRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/issues/{serviceHealthIssue%2Did}/incidentReport()", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Admin.ServiceAnnouncement.Issues.Item.IncidentReport; 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.ServiceAnnouncement.Issues.Item /// /// Provides operations to manage the issues property of the microsoft.graph.serviceAnnouncement entity. /// - public class ServiceHealthIssueItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceHealthIssueItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property issues for admin @@ -118,7 +121,7 @@ public Command BuildIncidentReportNavCommand() { var command = new Command("incident-report"); command.Description = "Provides operations to call the incidentReport method."; - var builder = new IncidentReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Issues.Item.IncidentReport.IncidentReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -157,8 +160,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(ServiceHealthIssue.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ServiceHealthIssue.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -179,14 +182,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ServiceHealthIssueItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/issues/{serviceHealthIssue%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 ServiceHealthIssueItemRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/issues/{serviceHealthIssue%2Did}{?%24expand,%24select}", rawUrl) @@ -218,11 +221,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -238,11 +241,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ServiceHealthIssue body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceHealthIssue body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ServiceHealthIssue body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceHealthIssue body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -254,7 +257,8 @@ public RequestInformation ToPatchRequestInformation(ServiceHealthIssue body, Act /// /// Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. /// - public class ServiceHealthIssueItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceHealthIssueItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -279,3 +283,4 @@ public class ServiceHealthIssueItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostRequestBody.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostRequestBody.cs index 5ab8fee03d..4251a3d8cd 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostRequestBody.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.Archive { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ArchivePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ArchivePostRequestBody : 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. @@ -21,7 +23,7 @@ public class ArchivePostRequestBody : IAdditionalDataHolder, IParsable public List MessageIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ArchivePostRequestBody() { @@ -30,12 +32,12 @@ public ArchivePostRequestBody() /// /// 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 ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ArchivePostRequestBody(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs index 8d62d8a6a8..263b4d71f3 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchivePostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.Archive { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ArchivePostResponse : IAdditionalDataHolder, IParsable + public partial class ArchivePostResponse : 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. @@ -15,7 +17,7 @@ public class ArchivePostResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ArchivePostResponse() { @@ -24,12 +26,12 @@ public ArchivePostResponse() /// /// 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 ArchivePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ArchivePostResponse(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs index 2d5d02c815..74ee01a04d 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Archive/ArchiveRequestBuilder.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.ServiceAnnouncement.Messages.Archive /// /// Provides operations to call the archive method. /// - public class ArchiveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ArchiveRequestBuilder : BaseCliRequestBuilder { /// /// Archive a list of serviceUpdateMessages for the signed in user. @@ -46,8 +49,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(ArchivePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -67,14 +70,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 ArchiveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages/archive", 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 ArchiveRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages/archive", rawUrl) @@ -88,11 +91,11 @@ public ArchiveRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnno /// 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(ArchivePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ArchivePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Archive.ArchivePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -103,3 +106,4 @@ public RequestInformation ToPostRequestInformation(ArchivePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Count/CountRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Count/CountRequestBuilder.cs index a28162233d..5850e88300 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Count/CountRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/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.ServiceAnnouncement.Messages.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/serviceAnnouncement/messages/$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/serviceAnnouncement/messages/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnoun /// 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/ServiceAnnouncement/Messages/Favorite/FavoritePostRequestBody.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostRequestBody.cs index 312d836193..5c0eba0e2a 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostRequestBody.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.Favorite { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FavoritePostRequestBody : IAdditionalDataHolder, IParsable + public partial class FavoritePostRequestBody : 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. @@ -21,7 +23,7 @@ public class FavoritePostRequestBody : IAdditionalDataHolder, IParsable public List MessageIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FavoritePostRequestBody() { @@ -30,12 +32,12 @@ public FavoritePostRequestBody() /// /// 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 FavoritePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.Favorite.FavoritePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FavoritePostRequestBody(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Favorite.FavoritePostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs index b85cac8c6d..ab585e8d70 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoritePostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.Favorite { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FavoritePostResponse : IAdditionalDataHolder, IParsable + public partial class FavoritePostResponse : 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. @@ -15,7 +17,7 @@ public class FavoritePostResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FavoritePostResponse() { @@ -24,12 +26,12 @@ public FavoritePostResponse() /// /// 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 FavoritePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.Favorite.FavoritePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FavoritePostResponse(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Favorite.FavoritePostResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.cs index f2dce6133c..b4d9c50fa2 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Favorite/FavoriteRequestBuilder.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.ServiceAnnouncement.Messages.Favorite /// /// Provides operations to call the favorite method. /// - public class FavoriteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FavoriteRequestBuilder : BaseCliRequestBuilder { /// /// Change the status of a list of serviceUpdateMessages to favorite for the signed in user. @@ -46,8 +49,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(FavoritePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Favorite.FavoritePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -67,14 +70,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 FavoriteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages/favorite", 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 FavoriteRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages/favorite", rawUrl) @@ -88,11 +91,11 @@ public FavoriteRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnn /// 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(FavoritePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Favorite.FavoritePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FavoritePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Favorite.FavoritePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -103,3 +106,4 @@ public RequestInformation ToPostRequestInformation(FavoritePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index d9e943ec02..b298aec692 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Admin.ServiceAnnouncement.Messages.Item.Attachments.Count; using ApiSdk.Admin.ServiceAnnouncement.Messages.Item.Attachments.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.ServiceAnnouncement.Messages.Item.Attachments /// /// Provides operations to manage the attachments property of the microsoft.graph.serviceUpdateMessage entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.serviceUpdateMessage entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ServiceAnnouncementAttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Item.Attachments.Item.ServiceAnnouncementAttachmentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.ServiceAnnouncement.Messages.Item.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(ServiceAnnouncementAttachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ServiceAnnouncementAttachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/service /// 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); @@ -250,11 +253,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(ServiceAnnouncementAttachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ServiceAnnouncementAttachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ServiceAnnouncementAttachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ServiceAnnouncementAttachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(ServiceAnnouncementAttachment /// /// Get the list of attachments associated with a service message. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Count/CountRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Count/CountRequestBuilder.cs index 967a47d7c3..5389f53b67 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/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.ServiceAnnouncement.Messages.Item.Attachments.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/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments/$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/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnoun /// 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/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.cs index 0488ff1c28..ed3050348c 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Item/Attachments/Item/Content/ContentRequestBuilder.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.ServiceAnnouncement.Messages.Item.Attachments.Item.Conten /// /// Provides operations to manage the media for the admin entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The attachment content. @@ -63,13 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// The attachment content. + /// Read the properties and relationships of a serviceAnnouncementAttachment object. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The attachment content."; + command.Description = "Read the properties and relationships of a serviceAnnouncementAttachment object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0"; var serviceUpdateMessageIdOption = new Option("--service-update-message-id", description: "The unique identifier of serviceUpdateMessage") { }; serviceUpdateMessageIdOption.IsRequired = true; @@ -163,14 +167,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments/{serviceAnnouncementAttachment%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments/{serviceAnnouncementAttachment%2Did}/content", rawUrl) @@ -196,7 +200,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The attachment content. + /// Read the properties and relationships of a serviceAnnouncementAttachment object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -238,3 +242,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Admin.ServiceAnnouncement.Messages.Item.Attachments.Item.Content; 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.ServiceAnnouncement.Messages.Item.Attachments.Item /// /// Provides operations to manage the attachments property of the microsoft.graph.serviceUpdateMessage entity. /// - public class ServiceAnnouncementAttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceAnnouncementAttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the admin entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the admin entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Item.Attachments.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -176,8 +179,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(ServiceAnnouncementAttachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ServiceAnnouncementAttachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 ServiceAnnouncementAttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments/{serviceAnnouncementAttachment%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 ServiceAnnouncementAttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachments/{serviceAnnouncementAttachment%2Did}{?%24expand,%24select}", rawUrl) @@ -238,11 +241,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); @@ -258,11 +261,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(ServiceAnnouncementAttachment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceAnnouncementAttachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ServiceAnnouncementAttachment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceAnnouncementAttachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -274,7 +277,8 @@ public RequestInformation ToPatchRequestInformation(ServiceAnnouncementAttachmen /// /// Read the properties and relationships of a serviceAnnouncementAttachment object. /// - public class ServiceAnnouncementAttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceAnnouncementAttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -299,3 +303,4 @@ public class ServiceAnnouncementAttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.cs index 95ee5da5d2..be57d21894 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Item/AttachmentsArchive/AttachmentsArchiveRequestBuilder.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.ServiceAnnouncement.Messages.Item.AttachmentsArchive /// /// Provides operations to manage the media for the admin entity. /// - public class AttachmentsArchiveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsArchiveRequestBuilder : BaseCliRequestBuilder { /// /// The zip file that contains all attachments for a message. @@ -147,14 +150,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AttachmentsArchiveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachmentsArchive", 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 AttachmentsArchiveRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}/attachmentsArchive", rawUrl) @@ -222,3 +225,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Admin.ServiceAnnouncement.Messages.Item.Attachments; using ApiSdk.Admin.ServiceAnnouncement.Messages.Item.AttachmentsArchive; 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.ServiceAnnouncement.Messages.Item /// /// Provides operations to manage the messages property of the microsoft.graph.serviceAnnouncement entity. /// - public class ServiceUpdateMessageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceUpdateMessageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the admin entity. @@ -31,7 +34,7 @@ public Command BuildAttachmentsArchiveNavCommand() { var command = new Command("attachments-archive"); command.Description = "Provides operations to manage the media for the admin entity."; - var builder = new AttachmentsArchiveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Item.AttachmentsArchive.AttachmentsArchiveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -50,7 +53,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.serviceUpdateMessage entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Item.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -187,8 +190,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(ServiceUpdateMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ServiceUpdateMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -209,14 +212,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 ServiceUpdateMessageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%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 ServiceUpdateMessageItemRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}{?%24expand,%24select}", rawUrl) @@ -248,11 +251,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); @@ -268,11 +271,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(ServiceUpdateMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceUpdateMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ServiceUpdateMessage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceUpdateMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -284,7 +287,8 @@ public RequestInformation ToPatchRequestInformation(ServiceUpdateMessage body, A /// /// Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. /// - public class ServiceUpdateMessageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceUpdateMessageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -309,3 +313,4 @@ public class ServiceUpdateMessageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostRequestBody.cs b/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostRequestBody.cs index fbdbe81144..ef988477d8 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostRequestBody.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.MarkRead { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MarkReadPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MarkReadPostRequestBody : 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. @@ -21,7 +23,7 @@ public class MarkReadPostRequestBody : IAdditionalDataHolder, IParsable public List MessageIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarkReadPostRequestBody() { @@ -30,12 +32,12 @@ public MarkReadPostRequestBody() /// /// 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 MarkReadPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkRead.MarkReadPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarkReadPostRequestBody(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkRead.MarkReadPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.cs b/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.cs index 4ebd7f383a..f703e2a8b7 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadPostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.MarkRead { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MarkReadPostResponse : IAdditionalDataHolder, IParsable + public partial class MarkReadPostResponse : 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. @@ -15,7 +17,7 @@ public class MarkReadPostResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarkReadPostResponse() { @@ -24,12 +26,12 @@ public MarkReadPostResponse() /// /// 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 MarkReadPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkRead.MarkReadPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarkReadPostResponse(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkRead.MarkReadPostResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.cs index 0b7b2b672b..84cf61c87c 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/MarkRead/MarkReadRequestBuilder.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.ServiceAnnouncement.Messages.MarkRead /// /// Provides operations to call the markRead method. /// - public class MarkReadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MarkReadRequestBuilder : BaseCliRequestBuilder { /// /// Mark a list of serviceUpdateMessages as read for the signed in user. @@ -46,8 +49,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(MarkReadPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkRead.MarkReadPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -67,14 +70,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 MarkReadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages/markRead", 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 MarkReadRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages/markRead", rawUrl) @@ -88,11 +91,11 @@ public MarkReadRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnn /// 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(MarkReadPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkRead.MarkReadPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MarkReadPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkRead.MarkReadPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -103,3 +106,4 @@ public RequestInformation ToPostRequestInformation(MarkReadPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostRequestBody.cs b/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostRequestBody.cs index ef239fd158..5ff1e5a815 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostRequestBody.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.MarkUnread { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MarkUnreadPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MarkUnreadPostRequestBody : 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. @@ -21,7 +23,7 @@ public class MarkUnreadPostRequestBody : IAdditionalDataHolder, IParsable public List MessageIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarkUnreadPostRequestBody() { @@ -30,12 +32,12 @@ public MarkUnreadPostRequestBody() /// /// 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 MarkUnreadPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkUnread.MarkUnreadPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarkUnreadPostRequestBody(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkUnread.MarkUnreadPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.cs b/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.cs index 81d517836f..dd2574839c 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadPostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.MarkUnread { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MarkUnreadPostResponse : IAdditionalDataHolder, IParsable + public partial class MarkUnreadPostResponse : 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. @@ -15,7 +17,7 @@ public class MarkUnreadPostResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarkUnreadPostResponse() { @@ -24,12 +26,12 @@ public MarkUnreadPostResponse() /// /// 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 MarkUnreadPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkUnread.MarkUnreadPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarkUnreadPostResponse(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkUnread.MarkUnreadPostResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.cs index 9dab72d548..9ed1f411dd 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/MarkUnread/MarkUnreadRequestBuilder.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.ServiceAnnouncement.Messages.MarkUnread /// /// Provides operations to call the markUnread method. /// - public class MarkUnreadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MarkUnreadRequestBuilder : BaseCliRequestBuilder { /// /// Mark a list of serviceUpdateMessages as unread for the signed in user. @@ -46,8 +49,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(MarkUnreadPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkUnread.MarkUnreadPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -67,14 +70,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 MarkUnreadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages/markUnread", 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 MarkUnreadRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages/markUnread", rawUrl) @@ -88,11 +91,11 @@ public MarkUnreadRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceA /// 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(MarkUnreadPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkUnread.MarkUnreadPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MarkUnreadPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkUnread.MarkUnreadPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -103,3 +106,4 @@ public RequestInformation ToPostRequestInformation(MarkUnreadPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs index 8332984fe9..80817e3c1b 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/MessagesRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Admin.ServiceAnnouncement.Messages.Archive; using ApiSdk.Admin.ServiceAnnouncement.Messages.Count; using ApiSdk.Admin.ServiceAnnouncement.Messages.Favorite; @@ -9,6 +10,7 @@ using ApiSdk.Admin.ServiceAnnouncement.Messages.Unfavorite; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -27,7 +29,8 @@ namespace ApiSdk.Admin.ServiceAnnouncement.Messages /// /// Provides operations to manage the messages property of the microsoft.graph.serviceAnnouncement entity. /// - public class MessagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MessagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the archive method. @@ -37,7 +40,7 @@ public Command BuildArchiveNavCommand() { var command = new Command("archive"); command.Description = "Provides operations to call the archive method."; - var builder = new ArchiveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Archive.ArchiveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -54,7 +57,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ServiceUpdateMessageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Item.ServiceUpdateMessageItemRequestBuilder(PathParameters); commands.Add(builder.BuildAttachmentsArchiveNavCommand()); commands.Add(builder.BuildAttachmentsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -70,7 +73,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.ServiceAnnouncement.Messages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -104,8 +107,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(ServiceUpdateMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ServiceUpdateMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -132,7 +135,7 @@ public Command BuildFavoriteNavCommand() { var command = new Command("favorite"); command.Description = "Provides operations to call the favorite method."; - var builder = new FavoriteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Favorite.FavoriteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -246,7 +249,7 @@ public Command BuildMarkReadNavCommand() { var command = new Command("mark-read"); command.Description = "Provides operations to call the markRead method."; - var builder = new MarkReadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkRead.MarkReadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -263,7 +266,7 @@ public Command BuildMarkUnreadNavCommand() { var command = new Command("mark-unread"); command.Description = "Provides operations to call the markUnread method."; - var builder = new MarkUnreadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.MarkUnread.MarkUnreadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -280,7 +283,7 @@ public Command BuildUnarchiveNavCommand() { var command = new Command("unarchive"); command.Description = "Provides operations to call the unarchive method."; - var builder = new UnarchiveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unarchive.UnarchiveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -297,7 +300,7 @@ public Command BuildUnfavoriteNavCommand() { var command = new Command("unfavorite"); command.Description = "Provides operations to call the unfavorite method."; - var builder = new UnfavoriteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unfavorite.UnfavoriteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -307,14 +310,14 @@ public Command BuildUnfavoriteNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MessagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages{?%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 MessagesRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -327,11 +330,11 @@ public MessagesRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnn /// 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); @@ -347,11 +350,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(ServiceUpdateMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ServiceUpdateMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ServiceUpdateMessage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ServiceUpdateMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -363,7 +366,8 @@ public RequestInformation ToPostRequestInformation(ServiceUpdateMessage body, Ac /// /// Retrieve the serviceUpdateMessage resources from the messages navigation property. This operation retrieves all service update messages that exist for the tenant. /// - public class MessagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MessagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -427,3 +431,4 @@ public class MessagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostRequestBody.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostRequestBody.cs index b807c7525e..a6ffed110d 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostRequestBody.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.Unarchive { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnarchivePostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnarchivePostRequestBody : 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. @@ -21,7 +23,7 @@ public class UnarchivePostRequestBody : IAdditionalDataHolder, IParsable public List MessageIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnarchivePostRequestBody() { @@ -30,12 +32,12 @@ public UnarchivePostRequestBody() /// /// 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 UnarchivePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unarchive.UnarchivePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnarchivePostRequestBody(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unarchive.UnarchivePostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.cs index 27c164801d..3e1aa14b95 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchivePostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.Unarchive { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnarchivePostResponse : IAdditionalDataHolder, IParsable + public partial class UnarchivePostResponse : 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. @@ -15,7 +17,7 @@ public class UnarchivePostResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnarchivePostResponse() { @@ -24,12 +26,12 @@ public UnarchivePostResponse() /// /// 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 UnarchivePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unarchive.UnarchivePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnarchivePostResponse(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unarchive.UnarchivePostResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.cs index 5c27b9d3ac..700a307632 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Unarchive/UnarchiveRequestBuilder.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.ServiceAnnouncement.Messages.Unarchive /// /// Provides operations to call the unarchive method. /// - public class UnarchiveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnarchiveRequestBuilder : BaseCliRequestBuilder { /// /// Unarchive a list of serviceUpdateMessages for the signed in user. @@ -46,8 +49,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(UnarchivePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unarchive.UnarchivePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -67,14 +70,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 UnarchiveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages/unarchive", 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 UnarchiveRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages/unarchive", rawUrl) @@ -88,11 +91,11 @@ public UnarchiveRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAn /// 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(UnarchivePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unarchive.UnarchivePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnarchivePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unarchive.UnarchivePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -103,3 +106,4 @@ public RequestInformation ToPostRequestInformation(UnarchivePostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostRequestBody.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostRequestBody.cs index 582107cfff..3c944af882 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostRequestBody.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.Unfavorite { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnfavoritePostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnfavoritePostRequestBody : 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. @@ -21,7 +23,7 @@ public class UnfavoritePostRequestBody : IAdditionalDataHolder, IParsable public List MessageIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnfavoritePostRequestBody() { @@ -30,12 +32,12 @@ public UnfavoritePostRequestBody() /// /// 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 UnfavoritePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unfavorite.UnfavoritePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnfavoritePostRequestBody(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unfavorite.UnfavoritePostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "messageIds", n => { MessageIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.cs index b54092c3f1..6cda914264 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoritePostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.ServiceAnnouncement.Messages.Unfavorite { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnfavoritePostResponse : IAdditionalDataHolder, IParsable + public partial class UnfavoritePostResponse : 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. @@ -15,7 +17,7 @@ public class UnfavoritePostResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnfavoritePostResponse() { @@ -24,12 +26,12 @@ public UnfavoritePostResponse() /// /// 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 UnfavoritePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unfavorite.UnfavoritePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnfavoritePostResponse(); + return new global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unfavorite.UnfavoritePostResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.cs index 9dd20d53f8..55317f27fb 100644 --- a/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/Messages/Unfavorite/UnfavoriteRequestBuilder.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.ServiceAnnouncement.Messages.Unfavorite /// /// Provides operations to call the unfavorite method. /// - public class UnfavoriteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnfavoriteRequestBuilder : BaseCliRequestBuilder { /// /// Remove the favorite status of serviceUpdateMessages for the signed in user. @@ -46,8 +49,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(UnfavoritePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unfavorite.UnfavoritePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -67,14 +70,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 UnfavoriteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement/messages/unfavorite", 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 UnfavoriteRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement/messages/unfavorite", rawUrl) @@ -88,11 +91,11 @@ public UnfavoriteRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceA /// 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(UnfavoritePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unfavorite.UnfavoritePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnfavoritePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.ServiceAnnouncement.Messages.Unfavorite.UnfavoritePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -103,3 +106,4 @@ public RequestInformation ToPostRequestInformation(UnfavoritePostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.cs b/src/generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.cs index 49335cbd7b..fdbe47fdab 100644 --- a/src/generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.cs +++ b/src/generated/Admin/ServiceAnnouncement/ServiceAnnouncementRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Admin.ServiceAnnouncement.HealthOverviews; using ApiSdk.Admin.ServiceAnnouncement.Issues; using ApiSdk.Admin.ServiceAnnouncement.Messages; 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.ServiceAnnouncement /// /// Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity. /// - public class ServiceAnnouncementRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceAnnouncementRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property serviceAnnouncement for admin @@ -107,7 +110,7 @@ public Command BuildHealthOverviewsNavCommand() { var command = new Command("health-overviews"); command.Description = "Provides operations to manage the healthOverviews property of the microsoft.graph.serviceAnnouncement entity."; - var builder = new HealthOverviewsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.HealthOverviewsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -134,7 +137,7 @@ public Command BuildIssuesNavCommand() { var command = new Command("issues"); command.Description = "Provides operations to manage the issues property of the microsoft.graph.serviceAnnouncement entity."; - var builder = new IssuesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Issues.IssuesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -161,7 +164,7 @@ public Command BuildMessagesNavCommand() { var command = new Command("messages"); command.Description = "Provides operations to manage the messages property of the microsoft.graph.serviceAnnouncement entity."; - var builder = new MessagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.ServiceAnnouncement.Messages.MessagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildArchiveNavCommand()); @@ -211,8 +214,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.ServiceAnnouncement.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ServiceAnnouncement.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 ServiceAnnouncementRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/serviceAnnouncement{?%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 ServiceAnnouncementRequestBuilder(string rawUrl) : base("{+baseurl}/admin/serviceAnnouncement{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ServiceAnnouncement body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceAnnouncement body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ServiceAnnouncement body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ServiceAnnouncement body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ServiceAnnounc /// /// A container for service communications resources. Read-only. /// - public class ServiceAnnouncementRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceAnnouncementRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class ServiceAnnouncementRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.cs b/src/generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.cs index 688b9323ac..fa187b04f4 100644 --- a/src/generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.cs +++ b/src/generated/Admin/Sharepoint/Settings/SettingsRequestBuilder.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.Sharepoint.Settings /// /// Provides operations to manage the settings property of the microsoft.graph.sharepoint entity. /// - public class SettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SettingsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property settings 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(SharepointSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SharepointSettings.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 SettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/sharepoint/settings{?%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 SettingsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/sharepoint/settings{?%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(SharepointSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SharepointSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SharepointSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SharepointSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -219,7 +222,8 @@ public RequestInformation ToPatchRequestInformation(SharepointSettings body, Act /// /// Get the tenant-level settings for SharePoint and OneDrive. /// - public class SettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -244,3 +248,4 @@ public class SettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Admin/Sharepoint/SharepointRequestBuilder.cs b/src/generated/Admin/Sharepoint/SharepointRequestBuilder.cs index 95fe6b37ed..3328862fee 100644 --- a/src/generated/Admin/Sharepoint/SharepointRequestBuilder.cs +++ b/src/generated/Admin/Sharepoint/SharepointRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Admin.Sharepoint.Settings; 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.Sharepoint /// /// Provides operations to manage the sharepoint property of the microsoft.graph.admin entity. /// - public class SharepointRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharepointRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property sharepoint 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.Sharepoint.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Sharepoint.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -150,7 +153,7 @@ public Command BuildSettingsNavCommand() { var command = new Command("settings"); command.Description = "Provides operations to manage the settings property of the microsoft.graph.sharepoint entity."; - var builder = new SettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.Sharepoint.Settings.SettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -162,14 +165,14 @@ public Command BuildSettingsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SharepointRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/sharepoint{?%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 SharepointRequestBuilder(string rawUrl) : base("{+baseurl}/admin/sharepoint{?%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(ApiSdk.Models.Sharepoint body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Sharepoint body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Sharepoint body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Sharepoint body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Sharepoint bod /// /// Get sharepoint from admin /// - public class SharepointRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharepointRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class SharepointRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs b/src/generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs index c14b7b3d6f..2d626dff19 100644 --- a/src/generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs +++ b/src/generated/AgreementAcceptances/AgreementAcceptancesRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.AgreementAcceptances.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; @@ -20,7 +22,8 @@ namespace ApiSdk.AgreementAcceptances /// /// Provides operations to manage the collection of agreementAcceptance entities. /// - public class AgreementAcceptancesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementAcceptancesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of agreementAcceptance entities. @@ -29,7 +32,7 @@ public class AgreementAcceptancesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AgreementAcceptanceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AgreementAcceptances.Item.AgreementAcceptanceItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -60,8 +63,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(AgreementAcceptance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementAcceptance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -108,11 +111,21 @@ public Command BuildListCommand() }; countOption.IsRequired = false; command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); var selectOption = new Option("--select", description: "Select properties to be returned") { Arity = ArgumentArity.ZeroOrMore }; selectOption.IsRequired = false; command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); var outputOption = new Option("--output", () => FormatterType.JSON); command.AddOption(outputOption); var queryOption = new Option("--query"); @@ -125,7 +138,9 @@ public Command BuildListCommand() var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -140,7 +155,9 @@ public Command BuildListCommand() if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, @@ -163,17 +180,17 @@ 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 AgreementAcceptancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreementAcceptances{?%24count,%24filter,%24search,%24select,%24skip,%24top}", pathParameters) + public AgreementAcceptancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreementAcceptances{?%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 AgreementAcceptancesRequestBuilder(string rawUrl) : base("{+baseurl}/agreementAcceptances{?%24count,%24filter,%24search,%24select,%24skip,%24top}", rawUrl) + public AgreementAcceptancesRequestBuilder(string rawUrl) : base("{+baseurl}/agreementAcceptances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -183,11 +200,11 @@ public AgreementAcceptancesRequestBuilder(string rawUrl) : base("{+baseurl}/agre /// 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); @@ -203,11 +220,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(AgreementAcceptance body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementAcceptance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AgreementAcceptance body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementAcceptance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -219,11 +236,22 @@ public RequestInformation ToPostRequestInformation(AgreementAcceptance body, Act /// /// Get entities from agreementAcceptances /// - public class AgreementAcceptancesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementAcceptancesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -233,6 +261,16 @@ public class AgreementAcceptancesRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } #endif /// Search items by search phrases #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +301,4 @@ public class AgreementAcceptancesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs b/src/generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs index 8f8b44c7f3..99083bd0bf 100644 --- a/src/generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.cs +++ b/src/generated/AgreementAcceptances/Item/AgreementAcceptanceItemRequestBuilder.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.AgreementAcceptances.Item /// /// Provides operations to manage the collection of agreementAcceptance entities. /// - public class AgreementAcceptanceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementAcceptanceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete entity from agreementAcceptances @@ -131,8 +134,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(AgreementAcceptance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementAcceptance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -153,14 +156,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 AgreementAcceptanceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreementAcceptances/{agreementAcceptance%2Did}{?%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 AgreementAcceptanceItemRequestBuilder(string rawUrl) : base("{+baseurl}/agreementAcceptances/{agreementAcceptance%2Did}{?%24select}", rawUrl) @@ -192,11 +195,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); @@ -212,11 +215,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(AgreementAcceptance body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementAcceptance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AgreementAcceptance body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementAcceptance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -228,7 +231,8 @@ public RequestInformation ToPatchRequestInformation(AgreementAcceptance body, Ac /// /// Get entity from agreementAcceptances by key /// - public class AgreementAcceptanceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementAcceptanceItemRequestBuilderGetQueryParameters { /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -243,3 +247,4 @@ public class AgreementAcceptanceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/AgreementsRequestBuilder.cs b/src/generated/Agreements/AgreementsRequestBuilder.cs index 51250f3982..817de1bcf7 100644 --- a/src/generated/Agreements/AgreementsRequestBuilder.cs +++ b/src/generated/Agreements/AgreementsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Agreements.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; @@ -20,7 +22,8 @@ namespace ApiSdk.Agreements /// /// Provides operations to manage the collection of agreement entities. /// - public class AgreementsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of agreement entities. @@ -30,7 +33,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new AgreementItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.AgreementItemRequestBuilder(PathParameters); commands.Add(builder.BuildAcceptancesNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFileNavCommand()); @@ -64,8 +67,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(Agreement.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Agreement.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -112,11 +115,21 @@ public Command BuildListCommand() }; countOption.IsRequired = false; command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); var selectOption = new Option("--select", description: "Select properties to be returned") { Arity = ArgumentArity.ZeroOrMore }; selectOption.IsRequired = false; command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); var outputOption = new Option("--output", () => FormatterType.JSON); command.AddOption(outputOption); var queryOption = new Option("--query"); @@ -129,7 +142,9 @@ public Command BuildListCommand() var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -144,7 +159,9 @@ public Command BuildListCommand() if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, @@ -167,17 +184,17 @@ 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 AgreementsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements{?%24count,%24filter,%24search,%24select,%24skip,%24top}", pathParameters) + public AgreementsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements{?%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 AgreementsRequestBuilder(string rawUrl) : base("{+baseurl}/agreements{?%24count,%24filter,%24search,%24select,%24skip,%24top}", rawUrl) + public AgreementsRequestBuilder(string rawUrl) : base("{+baseurl}/agreements{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -187,11 +204,11 @@ public AgreementsRequestBuilder(string rawUrl) : base("{+baseurl}/agreements{?%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); @@ -207,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 ToPostRequestInformation(Agreement body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Agreement body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Agreement body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Agreement body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -223,11 +240,22 @@ public RequestInformation ToPostRequestInformation(Agreement body, Action /// Get entities from agreements /// - public class AgreementsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -237,6 +265,16 @@ public class AgreementsRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } #endif /// Search items by search phrases #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -267,3 +305,4 @@ public class AgreementsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs b/src/generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs index 488fe7dc2c..95ada44f24 100644 --- a/src/generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs +++ b/src/generated/Agreements/Item/Acceptances/AcceptancesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Agreements.Item.Acceptances.Count; using ApiSdk.Agreements.Item.Acceptances.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.Agreements.Item.Acceptances /// /// Provides operations to manage the acceptances property of the microsoft.graph.agreement entity. /// - public class AcceptancesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptancesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the acceptances property of the microsoft.graph.agreement entity. @@ -30,7 +33,7 @@ public class AcceptancesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AgreementAcceptanceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.Acceptances.Item.AgreementAcceptanceItemRequestBuilder(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.Agreements.Item.Acceptances.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(AgreementAcceptance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementAcceptance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AcceptancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/acceptances{?%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 AcceptancesRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}/acceptances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AcceptancesRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{a /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -247,11 +250,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(AgreementAcceptance body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementAcceptance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AgreementAcceptance body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementAcceptance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(AgreementAcceptance body, Act /// /// Read-only. Information about acceptances of this agreement. /// - public class AcceptancesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptancesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AcceptancesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/Acceptances/Count/CountRequestBuilder.cs b/src/generated/Agreements/Item/Acceptances/Count/CountRequestBuilder.cs index e4ddf7bd88..c5624f344d 100644 --- a/src/generated/Agreements/Item/Acceptances/Count/CountRequestBuilder.cs +++ b/src/generated/Agreements/Item/Acceptances/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.Agreements.Item.Acceptances.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}/agreements/{agreement%2Did}/acceptances/$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}/agreements/{agreement%2Did}/acceptances/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreeme /// 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/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.cs b/src/generated/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.cs index 83572d9201..853569227a 100644 --- a/src/generated/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.cs +++ b/src/generated/Agreements/Item/Acceptances/Item/AgreementAcceptanceItemRequestBuilder.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.Agreements.Item.Acceptances.Item /// /// Provides operations to manage the acceptances property of the microsoft.graph.agreement entity. /// - public class AgreementAcceptanceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementAcceptanceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property acceptances for agreements @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AgreementAcceptance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementAcceptance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AgreementAcceptanceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/acceptances/{agreementAcceptance%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 AgreementAcceptanceItemRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}/acceptances/{agreementAcceptance%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(AgreementAcceptance body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementAcceptance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AgreementAcceptance body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementAcceptance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(AgreementAcceptance body, Ac /// /// Read-only. Information about acceptances of this agreement. /// - public class AgreementAcceptanceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementAcceptanceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class AgreementAcceptanceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/AgreementItemRequestBuilder.cs b/src/generated/Agreements/Item/AgreementItemRequestBuilder.cs index 2affab025a..046a2af1cc 100644 --- a/src/generated/Agreements/Item/AgreementItemRequestBuilder.cs +++ b/src/generated/Agreements/Item/AgreementItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Agreements.Item.Acceptances; using ApiSdk.Agreements.Item.FileNamespace; using ApiSdk.Agreements.Item.Files; 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.Agreements.Item /// /// Provides operations to manage the collection of agreement entities. /// - public class AgreementItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the acceptances property of the microsoft.graph.agreement entity. @@ -32,7 +35,7 @@ public Command BuildAcceptancesNavCommand() { var command = new Command("acceptances"); command.Description = "Provides operations to manage the acceptances property of the microsoft.graph.agreement entity."; - var builder = new AcceptancesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.Acceptances.AcceptancesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -94,7 +97,7 @@ public Command BuildFileNavCommand() { var command = new Command("file"); command.Description = "Provides operations to manage the file property of the microsoft.graph.agreement entity."; - var builder = new FileRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.FileNamespace.FileRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -119,7 +122,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.agreement entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -213,8 +216,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(Agreement.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Agreement.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -235,14 +238,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 AgreementItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}{?%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 AgreementItemRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}{?%24select}", rawUrl) @@ -274,11 +277,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); @@ -294,11 +297,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(Agreement body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Agreement body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Agreement body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Agreement body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -310,7 +313,8 @@ public RequestInformation ToPatchRequestInformation(Agreement body, Action /// Get entity from agreements by key /// - public class AgreementItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementItemRequestBuilderGetQueryParameters { /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -325,3 +329,4 @@ public class AgreementItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs b/src/generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs index d232103bd2..c5b7226866 100644 --- a/src/generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs +++ b/src/generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Agreements.Item.FileNamespace.Localizations; 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.Agreements.Item.FileNamespace /// /// Provides operations to manage the file property of the microsoft.graph.agreement entity. /// - public class FileRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FileRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property file for agreements @@ -118,7 +121,7 @@ public Command BuildLocalizationsNavCommand() { var command = new Command("localizations"); command.Description = "Provides operations to manage the localizations property of the microsoft.graph.agreementFile entity."; - var builder = new LocalizationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.FileNamespace.Localizations.LocalizationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -167,8 +170,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(AgreementFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,14 +192,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 FileRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/file{?%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 FileRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}/file{?%24expand,%24select}", rawUrl) @@ -228,11 +231,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); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(AgreementFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AgreementFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPatchRequestInformation(AgreementFile body, Action /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the Accept-Language header. /// - public class FileRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FileRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -289,3 +293,4 @@ public class FileRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/FileNamespace/Localizations/Count/CountRequestBuilder.cs b/src/generated/Agreements/Item/FileNamespace/Localizations/Count/CountRequestBuilder.cs index f973dc7f76..fa249edc60 100644 --- a/src/generated/Agreements/Item/FileNamespace/Localizations/Count/CountRequestBuilder.cs +++ b/src/generated/Agreements/Item/FileNamespace/Localizations/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.Agreements.Item.FileNamespace.Localizations.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}/agreements/{agreement%2Did}/file/localizations/$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}/agreements/{agreement%2Did}/file/localizations/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreeme /// 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/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs b/src/generated/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs index d9c0440fd7..16b63a6c3f 100644 --- a/src/generated/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs +++ b/src/generated/Agreements/Item/FileNamespace/Localizations/Item/AgreementFileLocalizationItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Agreements.Item.FileNamespace.Localizations.Item.Versions; 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.Agreements.Item.FileNamespace.Localizations.Item /// /// Provides operations to manage the localizations property of the microsoft.graph.agreementFile entity. /// - public class AgreementFileLocalizationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementFileLocalizationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property localizations for agreements @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AgreementFileLocalization.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementFileLocalization.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -186,7 +189,7 @@ public Command BuildVersionsNavCommand() { var command = new Command("versions"); command.Description = "Provides operations to manage the versions property of the microsoft.graph.agreementFileLocalization entity."; - var builder = new VersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.FileNamespace.Localizations.Item.Versions.VersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -206,14 +209,14 @@ public Command BuildVersionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AgreementFileLocalizationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%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 AgreementFileLocalizationItemRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}{?%24expand,%24select}", rawUrl) @@ -245,11 +248,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); @@ -265,11 +268,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(AgreementFileLocalization body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementFileLocalization body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AgreementFileLocalization body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementFileLocalization body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +284,8 @@ public RequestInformation ToPatchRequestInformation(AgreementFileLocalization bo /// /// The localized version of the terms of use agreement files attached to the agreement. /// - public class AgreementFileLocalizationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementFileLocalizationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -306,3 +310,4 @@ public class AgreementFileLocalizationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Count/CountRequestBuilder.cs b/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Count/CountRequestBuilder.cs index c829d5c87e..aec62cf2d0 100644 --- a/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/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.Agreements.Item.FileNamespace.Localizations.Item.Versions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions/$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}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreeme /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs b/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs index 65b3f00b13..3caecece33 100644 --- a/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs +++ b/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.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.Agreements.Item.FileNamespace.Localizations.Item.Versions.Item /// /// Provides operations to manage the versions property of the microsoft.graph.agreementFileLocalization entity. /// - public class AgreementFileVersionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementFileVersionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property versions for agreements @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AgreementFileVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementFileVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AgreementFileVersionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions/{agreementFileVersion%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 AgreementFileVersionItemRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions/{agreementFileVersion%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(AgreementFileVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementFileVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AgreementFileVersion body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementFileVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(AgreementFileVersion body, A /// /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// - public class AgreementFileVersionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementFileVersionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class AgreementFileVersionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs b/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs index 81732c5147..7ee019562a 100644 --- a/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs +++ b/src/generated/Agreements/Item/FileNamespace/Localizations/Item/Versions/VersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Agreements.Item.FileNamespace.Localizations.Item.Versions.Count; using ApiSdk.Agreements.Item.FileNamespace.Localizations.Item.Versions.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.Agreements.Item.FileNamespace.Localizations.Item.Versions /// /// Provides operations to manage the versions property of the microsoft.graph.agreementFileLocalization entity. /// - public class VersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the versions property of the microsoft.graph.agreementFileLocalization entity. @@ -30,7 +33,7 @@ public class VersionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AgreementFileVersionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.FileNamespace.Localizations.Item.Versions.Item.AgreementFileVersionItemRequestBuilder(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.Agreements.Item.FileNamespace.Localizations.Item.Versions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AgreementFileVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementFileVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public VersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions{?%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 VersionsRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}/file/localizations/{agreementFileLocalization%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public VersionsRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agre /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AgreementFileVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementFileVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AgreementFileVersion body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementFileVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(AgreementFileVersion body, Ac /// /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// - public class VersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class VersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs b/src/generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs index 5405131f50..0fb16038c8 100644 --- a/src/generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs +++ b/src/generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Agreements.Item.FileNamespace.Localizations.Count; using ApiSdk.Agreements.Item.FileNamespace.Localizations.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.Agreements.Item.FileNamespace.Localizations /// /// Provides operations to manage the localizations property of the microsoft.graph.agreementFile entity. /// - public class LocalizationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LocalizationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the localizations property of the microsoft.graph.agreementFile entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new AgreementFileLocalizationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.FileNamespace.Localizations.Item.AgreementFileLocalizationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Agreements.Item.FileNamespace.Localizations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(AgreementFileLocalization.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementFileLocalization.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 LocalizationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/file/localizations{?%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 LocalizationsRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}/file/localizations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public LocalizationsRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/ /// 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); @@ -250,11 +253,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(AgreementFileLocalization body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementFileLocalization body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AgreementFileLocalization body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementFileLocalization body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(AgreementFileLocalization bod /// /// Get a list of the default and localized agreement files. /// - public class LocalizationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LocalizationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class LocalizationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/Files/Count/CountRequestBuilder.cs b/src/generated/Agreements/Item/Files/Count/CountRequestBuilder.cs index b1fcd748db..10559eb380 100644 --- a/src/generated/Agreements/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/Agreements/Item/Files/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.Agreements.Item.Files.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}/agreements/{agreement%2Did}/files/$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}/agreements/{agreement%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreeme /// 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/Agreements/Item/Files/FilesRequestBuilder.cs b/src/generated/Agreements/Item/Files/FilesRequestBuilder.cs index 0fd13d8e1d..811c097d05 100644 --- a/src/generated/Agreements/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/Agreements/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Agreements.Item.Files.Count; using ApiSdk.Agreements.Item.Files.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.Agreements.Item.Files /// /// Provides operations to manage the files property of the microsoft.graph.agreement entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.agreement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new AgreementFileLocalizationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.Files.Item.AgreementFileLocalizationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Agreements.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(AgreementFileLocalization.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementFileLocalization.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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreeme /// 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(AgreementFileLocalization body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementFileLocalization body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AgreementFileLocalization body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementFileLocalization body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(AgreementFileLocalization bod /// /// PDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs b/src/generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs index a01b3a3cdc..bb04c44257 100644 --- a/src/generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs +++ b/src/generated/Agreements/Item/Files/Item/AgreementFileLocalizationItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Agreements.Item.Files.Item.Versions; 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.Agreements.Item.Files.Item /// /// Provides operations to manage the files property of the microsoft.graph.agreement entity. /// - public class AgreementFileLocalizationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementFileLocalizationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property files for agreements @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AgreementFileLocalization.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementFileLocalization.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -186,7 +189,7 @@ public Command BuildVersionsNavCommand() { var command = new Command("versions"); command.Description = "Provides operations to manage the versions property of the microsoft.graph.agreementFileLocalization entity."; - var builder = new VersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.Files.Item.Versions.VersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -206,14 +209,14 @@ public Command BuildVersionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AgreementFileLocalizationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%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 AgreementFileLocalizationItemRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}{?%24expand,%24select}", rawUrl) @@ -245,11 +248,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); @@ -265,11 +268,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(AgreementFileLocalization body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementFileLocalization body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AgreementFileLocalization body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementFileLocalization body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +284,8 @@ public RequestInformation ToPatchRequestInformation(AgreementFileLocalization bo /// /// PDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand. /// - public class AgreementFileLocalizationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementFileLocalizationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -306,3 +310,4 @@ public class AgreementFileLocalizationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.cs b/src/generated/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.cs index 11e3b44330..50b2f35dbb 100644 --- a/src/generated/Agreements/Item/Files/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/generated/Agreements/Item/Files/Item/Versions/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.Agreements.Item.Files.Item.Versions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions/$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}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreeme /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs b/src/generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs index 71232ee13f..3f846a078e 100644 --- a/src/generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.cs +++ b/src/generated/Agreements/Item/Files/Item/Versions/Item/AgreementFileVersionItemRequestBuilder.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.Agreements.Item.Files.Item.Versions.Item /// /// Provides operations to manage the versions property of the microsoft.graph.agreementFileLocalization entity. /// - public class AgreementFileVersionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementFileVersionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property versions for agreements @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AgreementFileVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementFileVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AgreementFileVersionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions/{agreementFileVersion%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 AgreementFileVersionItemRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions/{agreementFileVersion%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(AgreementFileVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementFileVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AgreementFileVersion body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AgreementFileVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(AgreementFileVersion body, A /// /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// - public class AgreementFileVersionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AgreementFileVersionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class AgreementFileVersionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs b/src/generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs index 2d6ec83d55..e746469085 100644 --- a/src/generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs +++ b/src/generated/Agreements/Item/Files/Item/Versions/VersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Agreements.Item.Files.Item.Versions.Count; using ApiSdk.Agreements.Item.Files.Item.Versions.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.Agreements.Item.Files.Item.Versions /// /// Provides operations to manage the versions property of the microsoft.graph.agreementFileLocalization entity. /// - public class VersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the versions property of the microsoft.graph.agreementFileLocalization entity. @@ -30,7 +33,7 @@ public class VersionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AgreementFileVersionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.Item.Files.Item.Versions.Item.AgreementFileVersionItemRequestBuilder(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.Agreements.Item.Files.Item.Versions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AgreementFileVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AgreementFileVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public VersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions{?%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 VersionsRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agreement%2Did}/files/{agreementFileLocalization%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public VersionsRequestBuilder(string rawUrl) : base("{+baseurl}/agreements/{agre /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AgreementFileVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementFileVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AgreementFileVersion body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AgreementFileVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(AgreementFileVersion body, Ac /// /// Read-only. Customized versions of the terms of use agreement in the Microsoft Entra tenant. /// - public class VersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class VersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AppCatalogs/AppCatalogsRequestBuilder.cs b/src/generated/AppCatalogs/AppCatalogsRequestBuilder.cs index 916d3d03c8..a07bbb9c0d 100644 --- a/src/generated/AppCatalogs/AppCatalogsRequestBuilder.cs +++ b/src/generated/AppCatalogs/AppCatalogsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.AppCatalogs.TeamsApps; 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.AppCatalogs /// /// Provides operations to manage the appCatalogs singleton. /// - public class AppCatalogsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppCatalogsRequestBuilder : BaseCliRequestBuilder { /// /// Get appCatalogs @@ -93,8 +96,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.AppCatalogs.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AppCatalogs.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -121,7 +124,7 @@ public Command BuildTeamsAppsNavCommand() { var command = new Command("teams-apps"); command.Description = "Provides operations to manage the teamsApps property of the microsoft.graph.appCatalogs entity."; - var builder = new TeamsAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AppCatalogs.TeamsApps.TeamsAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -141,14 +144,14 @@ public Command BuildTeamsAppsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AppCatalogsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/appCatalogs{?%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 AppCatalogsRequestBuilder(string rawUrl) : base("{+baseurl}/appCatalogs{?%24expand,%24select}", rawUrl) @@ -161,11 +164,11 @@ public AppCatalogsRequestBuilder(string rawUrl) : base("{+baseurl}/appCatalogs{? /// 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); @@ -181,11 +184,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.AppCatalogs body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AppCatalogs body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.AppCatalogs body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AppCatalogs body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -197,7 +200,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.AppCatalogs bo /// /// Get appCatalogs /// - public class AppCatalogsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppCatalogsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -222,3 +226,4 @@ public class AppCatalogsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AppCatalogs/TeamsApps/Count/CountRequestBuilder.cs b/src/generated/AppCatalogs/TeamsApps/Count/CountRequestBuilder.cs index 79b5eee681..296cf538dc 100644 --- a/src/generated/AppCatalogs/TeamsApps/Count/CountRequestBuilder.cs +++ b/src/generated/AppCatalogs/TeamsApps/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.AppCatalogs.TeamsApps.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}/appCatalogs/teamsApps/$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}/appCatalogs/teamsApps/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/appCatalogs/teamsAp /// 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/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs b/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs index be20b53e21..a9eee6a8a9 100644 --- a/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs +++ b/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/AppDefinitionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.AppCatalogs.TeamsApps.Item.AppDefinitions.Count; using ApiSdk.AppCatalogs.TeamsApps.Item.AppDefinitions.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.AppCatalogs.TeamsApps.Item.AppDefinitions /// /// Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity. /// - public class AppDefinitionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppDefinitionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TeamsAppDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.TeamsAppDefinitionItemRequestBuilder(PathParameters); commands.Add(builder.BuildBotNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.AppCatalogs.TeamsApps.Item.AppDefinitions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.TeamsAppDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsAppDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 AppDefinitionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions{?%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 AppDefinitionsRequestBuilder(string rawUrl) : base("{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public AppDefinitionsRequestBuilder(string rawUrl) : base("{+baseurl}/appCatalog /// 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); @@ -250,11 +253,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(ApiSdk.Models.TeamsAppDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsAppDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.TeamsAppDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsAppDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.TeamsAppDefinit /// /// The details for each version of the app. /// - public class AppDefinitionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppDefinitionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class AppDefinitionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Count/CountRequestBuilder.cs b/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Count/CountRequestBuilder.cs index 2b89d711ec..6e13bf3f39 100644 --- a/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Count/CountRequestBuilder.cs +++ b/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/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.AppCatalogs.TeamsApps.Item.AppDefinitions.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}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/$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}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/appCatalogs/teamsAp /// 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/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.cs b/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.cs index c28d16848b..66c04c887e 100644 --- a/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.cs +++ b/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/Bot/BotRequestBuilder.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.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.Bot /// /// Provides operations to manage the bot property of the microsoft.graph.teamsAppDefinition entity. /// - public class BotRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BotRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property bot for appCatalogs @@ -63,13 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// The details of the bot specified in the Teams app manifest. + /// Get the bot associated with a specific definition of the TeamsApp. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The details of the bot specified in the Teams app manifest."; + command.Description = "Get the bot associated with a specific definition of the TeamsApp.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/teamworkbot-get?view=graph-rest-1.0"; var teamsAppIdOption = new Option("--teams-app-id", description: "The unique identifier of teamsApp") { }; teamsAppIdOption.IsRequired = true; @@ -155,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TeamworkBot.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamworkBot.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +182,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public BotRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/bot{?%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 BotRequestBuilder(string rawUrl) : base("{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/bot{?%24expand,%24select}", rawUrl) @@ -211,17 +215,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The details of the bot specified in the Teams app manifest. + /// Get the bot associated with a specific definition of the TeamsApp. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +241,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TeamworkBot body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamworkBot body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TeamworkBot body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamworkBot body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,9 +255,10 @@ public RequestInformation ToPatchRequestInformation(TeamworkBot body, Action - /// The details of the bot specified in the Teams app manifest. + /// Get the bot associated with a specific definition of the TeamsApp. /// - public class BotRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BotRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +283,4 @@ public class BotRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs b/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs index b079b6a254..2d7d49d1f3 100644 --- a/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs +++ b/src/generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.Bot; 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.AppCatalogs.TeamsApps.Item.AppDefinitions.Item /// /// Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity. /// - public class TeamsAppDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the bot property of the microsoft.graph.teamsAppDefinition entity. @@ -30,7 +33,7 @@ public Command BuildBotNavCommand() { var command = new Command("bot"); command.Description = "Provides operations to manage the bot property of the microsoft.graph.teamsAppDefinition entity."; - var builder = new BotRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.Bot.BotRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -176,8 +179,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.TeamsAppDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsAppDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 TeamsAppDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%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 TeamsAppDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -238,11 +241,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); @@ -258,11 +261,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.TeamsAppDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsAppDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TeamsAppDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsAppDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -274,7 +277,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TeamsAppDefini /// /// The details for each version of the app. /// - public class TeamsAppDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -299,3 +303,4 @@ public class TeamsAppDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs b/src/generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs index ad5413c4f5..ae086fe1ba 100644 --- a/src/generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs +++ b/src/generated/AppCatalogs/TeamsApps/Item/TeamsAppItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.AppCatalogs.TeamsApps.Item.AppDefinitions; 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.AppCatalogs.TeamsApps.Item /// /// Provides operations to manage the teamsApps property of the microsoft.graph.appCatalogs entity. /// - public class TeamsAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity. @@ -30,7 +33,7 @@ public Command BuildAppDefinitionsNavCommand() { var command = new Command("app-definitions"); command.Description = "Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity."; - var builder = new AppDefinitionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AppCatalogs.TeamsApps.Item.AppDefinitions.AppDefinitionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -167,8 +170,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.TeamsApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,14 +192,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 TeamsAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/appCatalogs/teamsApps/{teamsApp%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 TeamsAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}{?%24expand,%24select}", rawUrl) @@ -228,11 +231,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); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TeamsApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TeamsApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TeamsApp body, /// /// Get teamsApps from appCatalogs /// - public class TeamsAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -289,3 +293,4 @@ public class TeamsAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs b/src/generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs index a55396dcac..122c0fece0 100644 --- a/src/generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs +++ b/src/generated/AppCatalogs/TeamsApps/TeamsAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.AppCatalogs.TeamsApps.Count; using ApiSdk.AppCatalogs.TeamsApps.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.AppCatalogs.TeamsApps /// /// Provides operations to manage the teamsApps property of the microsoft.graph.appCatalogs entity. /// - public class TeamsAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the teamsApps property of the microsoft.graph.appCatalogs entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TeamsAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AppCatalogs.TeamsApps.Item.TeamsAppItemRequestBuilder(PathParameters); commands.Add(builder.BuildAppDefinitionsNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.AppCatalogs.TeamsApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.TeamsApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -102,14 +105,14 @@ public Command BuildCreateCommand() return command; } /// - /// List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + /// List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/appcatalogs-list-teamsapps?view=graph-rest-1.0"; + command.Description = "List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/appcatalogs-list-teamsapps?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -199,31 +202,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TeamsAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/appCatalogs/teamsApps{?%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 TeamsAppsRequestBuilder(string rawUrl) : base("{+baseurl}/appCatalogs/teamsApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + /// List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -239,11 +242,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(ApiSdk.Models.TeamsApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.TeamsApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,9 +256,10 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.TeamsApp body, return requestInfo; } /// - /// List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. + /// List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request. /// - public class TeamsAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class TeamsAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs b/src/generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs index 3a63826436..ffeb3fd4b6 100644 --- a/src/generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs +++ b/src/generated/ApplicationTemplates/ApplicationTemplatesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.ApplicationTemplates.Count; using ApiSdk.ApplicationTemplates.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.ApplicationTemplates /// /// Provides operations to manage the collection of applicationTemplate entities. /// - public class ApplicationTemplatesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationTemplatesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of applicationTemplate entities. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApplicationTemplateItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.ApplicationTemplates.Item.ApplicationTemplateItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildInstantiateNavCommand()); return new(executables, commands); @@ -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.ApplicationTemplates.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -151,14 +154,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 ApplicationTemplatesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applicationTemplates{?%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 ApplicationTemplatesRequestBuilder(string rawUrl) : base("{+baseurl}/applicationTemplates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -171,11 +174,11 @@ public ApplicationTemplatesRequestBuilder(string rawUrl) : base("{+baseurl}/appl /// 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); @@ -186,7 +189,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve a list of applicationTemplate objects from the Microsoft Entra application gallery. /// - public class ApplicationTemplatesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationTemplatesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -250,3 +254,4 @@ public class ApplicationTemplatesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/ApplicationTemplates/Count/CountRequestBuilder.cs b/src/generated/ApplicationTemplates/Count/CountRequestBuilder.cs index 880afbdb23..9ac67ae1f2 100644 --- a/src/generated/ApplicationTemplates/Count/CountRequestBuilder.cs +++ b/src/generated/ApplicationTemplates/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.ApplicationTemplates.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}/applicationTemplates/$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}/applicationTemplates/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applicationTemplate /// 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/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs b/src/generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs index 342a26f245..6f2e6aef48 100644 --- a/src/generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs +++ b/src/generated/ApplicationTemplates/Item/ApplicationTemplateItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.ApplicationTemplates.Item.Instantiate; 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.ApplicationTemplates.Item /// /// Provides operations to manage the collection of applicationTemplate entities. /// - public class ApplicationTemplateItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationTemplateItemRequestBuilder : BaseCliRequestBuilder { /// /// Retrieve the properties of an applicationTemplate object. @@ -83,7 +86,7 @@ public Command BuildInstantiateNavCommand() { var command = new Command("instantiate"); command.Description = "Provides operations to call the instantiate method."; - var builder = new InstantiateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.ApplicationTemplates.Item.Instantiate.InstantiateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -93,14 +96,14 @@ public Command BuildInstantiateNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ApplicationTemplateItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applicationTemplates/{applicationTemplate%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 ApplicationTemplateItemRequestBuilder(string rawUrl) : base("{+baseurl}/applicationTemplates/{applicationTemplate%2Did}{?%24expand,%24select}", rawUrl) @@ -113,11 +116,11 @@ public ApplicationTemplateItemRequestBuilder(string rawUrl) : base("{+baseurl}/a /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -128,7 +131,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve the properties of an applicationTemplate object. /// - public class ApplicationTemplateItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,3 +157,4 @@ public class ApplicationTemplateItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/ApplicationTemplates/Item/Instantiate/InstantiatePostRequestBody.cs b/src/generated/ApplicationTemplates/Item/Instantiate/InstantiatePostRequestBody.cs index 848596b680..effc99c3e7 100644 --- a/src/generated/ApplicationTemplates/Item/Instantiate/InstantiatePostRequestBody.cs +++ b/src/generated/ApplicationTemplates/Item/Instantiate/InstantiatePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.ApplicationTemplates.Item.Instantiate { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class InstantiatePostRequestBody : IAdditionalDataHolder, IParsable + public partial class InstantiatePostRequestBody : 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. @@ -19,9 +21,17 @@ public class InstantiatePostRequestBody : IAdditionalDataHolder, IParsable #nullable restore #else public string DisplayName { get; set; } +#endif + /// The serviceManagementReference property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ServiceManagementReference { get; set; } +#nullable restore +#else + public string ServiceManagementReference { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InstantiatePostRequestBody() { @@ -30,12 +40,12 @@ public InstantiatePostRequestBody() /// /// 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 InstantiatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.ApplicationTemplates.Item.Instantiate.InstantiatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InstantiatePostRequestBody(); + return new global::ApiSdk.ApplicationTemplates.Item.Instantiate.InstantiatePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,6 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "serviceManagementReference", n => { ServiceManagementReference = n.GetStringValue(); } }, }; } /// @@ -56,7 +67,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); + writer.WriteStringValue("serviceManagementReference", ServiceManagementReference); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.cs b/src/generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.cs index 7d9b421398..c55695809e 100644 --- a/src/generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.cs +++ b/src/generated/ApplicationTemplates/Item/Instantiate/InstantiateRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.ApplicationTemplates.Item.Instantiate /// /// Provides operations to call the instantiate method. /// - public class InstantiateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstantiateRequestBuilder : BaseCliRequestBuilder { /// - /// Add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO. + /// Add an instance of an application from the Microsoft Entra application gallery into your directory. For non-gallery apps, use an application template with one of the following IDs to configure different single sign-on (SSO) modes like SAML SSO and password-based SSO. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/applicationtemplate-instantiate?view=graph-rest-1.0"; + command.Description = "Add an instance of an application from the Microsoft Entra application gallery into your directory. For non-gallery apps, use an application template with one of the following IDs to configure different single sign-on (SSO) modes like SAML SSO and password-based SSO.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/applicationtemplate-instantiate?view=graph-rest-1.0"; var applicationTemplateIdOption = new Option("--application-template-id", description: "The unique identifier of applicationTemplate") { }; applicationTemplateIdOption.IsRequired = true; @@ -52,8 +55,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(InstantiatePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.ApplicationTemplates.Item.Instantiate.InstantiatePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,32 +77,32 @@ 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 InstantiateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applicationTemplates/{applicationTemplate%2Did}/instantiate", 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 InstantiateRequestBuilder(string rawUrl) : base("{+baseurl}/applicationTemplates/{applicationTemplate%2Did}/instantiate", rawUrl) { } /// - /// Add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO. + /// Add an instance of an application from the Microsoft Entra application gallery into your directory. For non-gallery apps, use an application template with one of the following IDs to configure different single sign-on (SSO) modes like SAML SSO and password-based SSO. /// /// 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 ToPostRequestInformation(InstantiatePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.ApplicationTemplates.Item.Instantiate.InstantiatePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(InstantiatePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.ApplicationTemplates.Item.Instantiate.InstantiatePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(InstantiatePostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/ApplicationsRequestBuilder.cs b/src/generated/Applications/ApplicationsRequestBuilder.cs index aa9282d7bd..a40323d7f3 100644 --- a/src/generated/Applications/ApplicationsRequestBuilder.cs +++ b/src/generated/Applications/ApplicationsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Count; using ApiSdk.Applications.Delta; using ApiSdk.Applications.GetAvailableExtensionProperties; @@ -7,6 +8,7 @@ using ApiSdk.Applications.ValidateProperties; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Applications /// /// Provides operations to manage the collection of application entities. /// - public class ApplicationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of application entities. @@ -35,7 +38,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApplicationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.ApplicationItemRequestBuilder(PathParameters); commands.Add(builder.BuildAddKeyNavCommand()); commands.Add(builder.BuildAddPasswordNavCommand()); commands.Add(builder.BuildAppManagementPoliciesNavCommand()); @@ -71,7 +74,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.Applications.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -106,8 +109,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.Application.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Application.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -134,7 +137,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -151,7 +154,7 @@ public Command BuildGetAvailableExtensionPropertiesNavCommand() { var command = new Command("get-available-extension-properties"); command.Description = "Provides operations to call the getAvailableExtensionProperties method."; - var builder = new GetAvailableExtensionPropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -168,7 +171,7 @@ public Command BuildGetByIdsNavCommand() { var command = new Command("get-by-ids"); command.Description = "Provides operations to call the getByIds method."; - var builder = new GetByIdsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.GetByIds.GetByIdsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -289,7 +292,7 @@ public Command BuildValidatePropertiesNavCommand() { var command = new Command("validate-properties"); command.Description = "Provides operations to call the validateProperties method."; - var builder = new ValidatePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.ValidateProperties.ValidatePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -299,14 +302,14 @@ public Command BuildValidatePropertiesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ApplicationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications{?%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 ApplicationsRequestBuilder(string rawUrl) : base("{+baseurl}/applications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -319,11 +322,11 @@ public ApplicationsRequestBuilder(string rawUrl) : base("{+baseurl}/applications /// 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); @@ -339,11 +342,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(ApiSdk.Models.Application body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Application body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.Application body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Application body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -355,7 +358,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.Application bod /// /// Get the list of applications in this organization. /// - public class ApplicationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -419,3 +423,4 @@ public class ApplicationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Count/CountRequestBuilder.cs b/src/generated/Applications/Count/CountRequestBuilder.cs index 1c5502bf9c..9ffff3c00a 100644 --- a/src/generated/Applications/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/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.Applications.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 @@ -64,14 +67,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}/applications/$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}/applications/$count{?%24filter,%24search}", rawUrl) @@ -84,11 +87,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/$count /// 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); @@ -99,7 +102,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 @@ -124,3 +128,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Delta/DeltaGetResponse.cs b/src/generated/Applications/Delta/DeltaGetResponse.cs index aa2b261738..441e01132d 100644 --- a/src/generated/Applications/Delta/DeltaGetResponse.cs +++ b/src/generated/Applications/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Applications.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Applications.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Applications.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Application.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Application.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Delta/DeltaRequestBuilder.cs b/src/generated/Applications/Delta/DeltaRequestBuilder.cs index f9a28a2bf0..c97b386e01 100644 --- a/src/generated/Applications/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Applications/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Applications.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query. + /// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/application-delta?view=graph-rest-1.0"; + command.Description = "Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/application-delta?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -118,31 +121,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/applications/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query. + /// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -151,9 +154,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query. + /// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 3cb74aef83..10eb5d3357 100644 --- a/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Applications.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetAvailableExtensionPropertiesPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHol /// The isSyncedFromOnPremises property public bool? IsSyncedFromOnPremises { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAvailableExtensionPropertiesPostRequestBody() { @@ -24,12 +26,12 @@ public GetAvailableExtensionPropertiesPostRequestBody() /// /// 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 GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostRequestBody(); + return new global::ApiSdk.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 6bb8b0a6e1..a88b14b101 100644 --- a/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Applications.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAvailableExtensionPropertiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostResponse(); + return new global::ApiSdk.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExtensionProperty.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 04ea1461ab..16b86371fd 100644 --- a/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.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.Applications.GetAvailableExtensionProperties /// /// Provides operations to call the getAvailableExtensionProperties method. /// - public class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: @@ -50,8 +53,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(GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetAvailableExtensionPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/getAvailableExtensionProperties", 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 GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/getAvailableExtensionProperties", rawUrl) @@ -101,11 +104,11 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+ba /// 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(GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/GetByIds/GetByIdsPostRequestBody.cs b/src/generated/Applications/GetByIds/GetByIdsPostRequestBody.cs index 1d379d7ce3..a069b5f013 100644 --- a/src/generated/Applications/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/generated/Applications/GetByIds/GetByIdsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Applications.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetByIdsPostRequestBody : 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. @@ -29,7 +31,7 @@ public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable public List Types { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetByIdsPostRequestBody() { @@ -38,12 +40,12 @@ public GetByIdsPostRequestBody() /// /// 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 GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.GetByIds.GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostRequestBody(); + return new global::ApiSdk.Applications.GetByIds.GetByIdsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/GetByIds/GetByIdsPostResponse.cs b/src/generated/Applications/GetByIds/GetByIdsPostResponse.cs index f51ebda324..37ad53440c 100644 --- a/src/generated/Applications/GetByIds/GetByIdsPostResponse.cs +++ b/src/generated/Applications/GetByIds/GetByIdsPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Applications.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetByIdsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Applications.GetByIds.GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostResponse(); + return new global::ApiSdk.Applications.GetByIds.GetByIdsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/GetByIds/GetByIdsRequestBuilder.cs b/src/generated/Applications/GetByIds/GetByIdsRequestBuilder.cs index 2d4ec93895..5d7ed7dc06 100644 --- a/src/generated/Applications/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/generated/Applications/GetByIds/GetByIdsRequestBuilder.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.Applications.GetByIds /// /// Provides operations to call the getByIds method. /// - public class GetByIdsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetByIdsRequestBuilder : BaseCliRequestBuilder { /// /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -50,8 +53,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(GetByIdsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.GetByIds.GetByIdsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetByIdsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/getByIds", 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 GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/getByIds", rawUrl) @@ -101,11 +104,11 @@ public GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/get /// 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(GetByIdsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/AddKey/AddKeyPostRequestBody.cs b/src/generated/Applications/Item/AddKey/AddKeyPostRequestBody.cs index 2b206425eb..57376ecc8f 100644 --- a/src/generated/Applications/Item/AddKey/AddKeyPostRequestBody.cs +++ b/src/generated/Applications/Item/AddKey/AddKeyPostRequestBody.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.Applications.Item.AddKey { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddKeyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddKeyPostRequestBody : 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. @@ -16,18 +18,18 @@ public class AddKeyPostRequestBody : IAdditionalDataHolder, IParsable /// The keyCredential property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.KeyCredential? KeyCredential { get; set; } + public global::ApiSdk.Models.KeyCredential? KeyCredential { get; set; } #nullable restore #else - public ApiSdk.Models.KeyCredential KeyCredential { get; set; } + public global::ApiSdk.Models.KeyCredential KeyCredential { get; set; } #endif /// The passwordCredential property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.PasswordCredential? PasswordCredential { get; set; } + public global::ApiSdk.Models.PasswordCredential? PasswordCredential { get; set; } #nullable restore #else - public ApiSdk.Models.PasswordCredential PasswordCredential { get; set; } + public global::ApiSdk.Models.PasswordCredential PasswordCredential { get; set; } #endif /// The proof property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -38,7 +40,7 @@ public class AddKeyPostRequestBody : IAdditionalDataHolder, IParsable public string Proof { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddKeyPostRequestBody() { @@ -47,12 +49,12 @@ public AddKeyPostRequestBody() /// /// 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 AddKeyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.AddKey.AddKeyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddKeyPostRequestBody(); + return new global::ApiSdk.Applications.Item.AddKey.AddKeyPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,8 +64,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "keyCredential", n => { KeyCredential = n.GetObjectValue(ApiSdk.Models.KeyCredential.CreateFromDiscriminatorValue); } }, - { "passwordCredential", n => { PasswordCredential = n.GetObjectValue(ApiSdk.Models.PasswordCredential.CreateFromDiscriminatorValue); } }, + { "keyCredential", n => { KeyCredential = n.GetObjectValue(global::ApiSdk.Models.KeyCredential.CreateFromDiscriminatorValue); } }, + { "passwordCredential", n => { PasswordCredential = n.GetObjectValue(global::ApiSdk.Models.PasswordCredential.CreateFromDiscriminatorValue); } }, { "proof", n => { Proof = n.GetStringValue(); } }, }; } @@ -74,10 +76,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("keyCredential", KeyCredential); - writer.WriteObjectValue("passwordCredential", PasswordCredential); + writer.WriteObjectValue("keyCredential", KeyCredential); + writer.WriteObjectValue("passwordCredential", PasswordCredential); writer.WriteStringValue("proof", Proof); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs b/src/generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs index 42309a0da9..5df1f25980 100644 --- a/src/generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs +++ b/src/generated/Applications/Item/AddKey/AddKeyRequestBuilder.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.Applications.Item.AddKey /// /// Provides operations to call the addKey method. /// - public class AddKeyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddKeyRequestBuilder : BaseCliRequestBuilder { /// /// Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don’t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won’t be able to use this service action. You can use the Update application operation to perform an update instead. @@ -52,8 +55,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(AddKeyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.AddKey.AddKeyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 AddKeyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/addKey", 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 AddKeyRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/addKey", rawUrl) @@ -95,11 +98,11 @@ public AddKeyRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appl /// 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(AddKeyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.AddKey.AddKeyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddKeyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.AddKey.AddKeyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(AddKeyPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/AddPassword/AddPasswordPostRequestBody.cs b/src/generated/Applications/Item/AddPassword/AddPasswordPostRequestBody.cs index 878898c596..76ac906f88 100644 --- a/src/generated/Applications/Item/AddPassword/AddPasswordPostRequestBody.cs +++ b/src/generated/Applications/Item/AddPassword/AddPasswordPostRequestBody.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.Applications.Item.AddPassword { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPasswordPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPasswordPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AddPasswordPostRequestBody : IAdditionalDataHolder, IParsable /// The passwordCredential property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.PasswordCredential? PasswordCredential { get; set; } + public global::ApiSdk.Models.PasswordCredential? PasswordCredential { get; set; } #nullable restore #else - public ApiSdk.Models.PasswordCredential PasswordCredential { get; set; } + public global::ApiSdk.Models.PasswordCredential PasswordCredential { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPasswordPostRequestBody() { @@ -31,12 +33,12 @@ public AddPasswordPostRequestBody() /// /// 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 AddPasswordPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.AddPassword.AddPasswordPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPasswordPostRequestBody(); + return new global::ApiSdk.Applications.Item.AddPassword.AddPasswordPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "passwordCredential", n => { PasswordCredential = n.GetObjectValue(ApiSdk.Models.PasswordCredential.CreateFromDiscriminatorValue); } }, + { "passwordCredential", n => { PasswordCredential = n.GetObjectValue(global::ApiSdk.Models.PasswordCredential.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("passwordCredential", PasswordCredential); + writer.WriteObjectValue("passwordCredential", PasswordCredential); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.cs b/src/generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.cs index 5eae319e7d..84b2f8dc79 100644 --- a/src/generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.cs +++ b/src/generated/Applications/Item/AddPassword/AddPasswordRequestBuilder.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.Applications.Item.AddPassword /// /// Provides operations to call the addPassword method. /// - public class AddPasswordRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddPasswordRequestBuilder : BaseCliRequestBuilder { /// /// Adds a strong password or secret to an application. You can also add passwords while creating the application. @@ -52,8 +55,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(AddPasswordPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.AddPassword.AddPasswordPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 AddPasswordRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/addPassword", 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 AddPasswordRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/addPassword", rawUrl) @@ -95,11 +98,11 @@ public AddPasswordRequestBuilder(string rawUrl) : base("{+baseurl}/applications/ /// 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(AddPasswordPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.AddPassword.AddPasswordPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPasswordPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.AddPassword.AddPasswordPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(AddPasswordPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs b/src/generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs index edc56a5555..3584b7be7e 100644 --- a/src/generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs +++ b/src/generated/Applications/Item/AppManagementPolicies/AppManagementPoliciesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.AppManagementPolicies.Count; using ApiSdk.Applications.Item.AppManagementPolicies.Item; using ApiSdk.Applications.Item.AppManagementPolicies.Ref; 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.Applications.Item.AppManagementPolicies /// /// Provides operations to manage the appManagementPolicies property of the microsoft.graph.application entity. /// - public class AppManagementPoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppManagementPoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.applications.item.appManagementPolicies.item collection @@ -31,7 +34,7 @@ public class AppManagementPoliciesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new AppManagementPolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.AppManagementPolicies.Item.AppManagementPolicyItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -43,7 +46,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.Applications.Item.AppManagementPolicies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -162,7 +165,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of application entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.AppManagementPolicies.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -174,14 +177,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AppManagementPoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/appManagementPolicies{?%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 AppManagementPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/appManagementPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -194,11 +197,11 @@ public AppManagementPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/app /// 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); @@ -209,7 +212,8 @@ public RequestInformation ToGetRequestInformation(Action /// The appManagementPolicy applied to this application. /// - public class AppManagementPoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppManagementPoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -273,3 +277,4 @@ public class AppManagementPoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/AppManagementPolicies/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/AppManagementPolicies/Count/CountRequestBuilder.cs index d00984ed02..663e5b6fc6 100644 --- a/src/generated/Applications/Item/AppManagementPolicies/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/AppManagementPolicies/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.Applications.Item.AppManagementPolicies.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}/applications/{application%2Did}/appManagementPolicies/$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}/applications/{application%2Did}/appManagementPolicies/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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/Applications/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs b/src/generated/Applications/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs index ed77add74f..61799a5840 100644 --- a/src/generated/Applications/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs +++ b/src/generated/Applications/Item/AppManagementPolicies/Item/AppManagementPolicyItemRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.AppManagementPolicies.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Applications.Item.AppManagementPolicies.Item /// /// Builds and executes requests for operations under \applications\{application-id}\appManagementPolicies\{appManagementPolicy-id} /// - public class AppManagementPolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppManagementPolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of application entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of application entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.AppManagementPolicies.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AppManagementPolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}", 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 AppManagementPolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}", rawUrl) @@ -50,3 +53,4 @@ public AppManagementPolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/a } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs b/src/generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs index 8a8a3a7cc7..b3e657d69e 100644 --- a/src/generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.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.Applications.Item.AppManagementPolicies.Item.Ref /// /// Provides operations to manage the collection of application entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#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.Applications.Item.AppManagementPolicies.Ref /// /// Provides operations to manage the collection of application entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. @@ -174,8 +177,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -194,14 +197,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -214,11 +217,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{applica /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref?@id={%40id}", PathParameters); @@ -233,11 +236,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, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -253,11 +256,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -269,7 +272,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -285,7 +289,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// The appManagementPolicy applied to this application. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +334,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/ApplicationItemRequestBuilder.cs b/src/generated/Applications/Item/ApplicationItemRequestBuilder.cs index a7e08bc932..b19fb20f82 100644 --- a/src/generated/Applications/Item/ApplicationItemRequestBuilder.cs +++ b/src/generated/Applications/Item/ApplicationItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.AddKey; using ApiSdk.Applications.Item.AddPassword; using ApiSdk.Applications.Item.AppManagementPolicies; @@ -23,6 +24,7 @@ using ApiSdk.Applications.Item.UnsetVerifiedPublisher; 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; @@ -41,7 +43,8 @@ namespace ApiSdk.Applications.Item /// /// Provides operations to manage the collection of application entities. /// - public class ApplicationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the addKey method. @@ -51,7 +54,7 @@ public Command BuildAddKeyNavCommand() { var command = new Command("add-key"); command.Description = "Provides operations to call the addKey method."; - var builder = new AddKeyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.AddKey.AddKeyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -68,7 +71,7 @@ public Command BuildAddPasswordNavCommand() { var command = new Command("add-password"); command.Description = "Provides operations to call the addPassword method."; - var builder = new AddPasswordRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.AddPassword.AddPasswordRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -85,7 +88,7 @@ public Command BuildAppManagementPoliciesNavCommand() { var command = new Command("app-management-policies"); command.Description = "Provides operations to manage the appManagementPolicies property of the microsoft.graph.application entity."; - var builder = new AppManagementPoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.AppManagementPolicies.AppManagementPoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -112,7 +115,7 @@ public Command BuildCheckMemberGroupsNavCommand() { var command = new Command("check-member-groups"); command.Description = "Provides operations to call the checkMemberGroups method."; - var builder = new CheckMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.CheckMemberGroups.CheckMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -129,7 +132,7 @@ public Command BuildCheckMemberObjectsNavCommand() { var command = new Command("check-member-objects"); command.Description = "Provides operations to call the checkMemberObjects method."; - var builder = new CheckMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.CheckMemberObjects.CheckMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -146,7 +149,7 @@ public Command BuildCreatedOnBehalfOfNavCommand() { var command = new Command("created-on-behalf-of"); command.Description = "Provides operations to manage the createdOnBehalfOf property of the microsoft.graph.application entity."; - var builder = new CreatedOnBehalfOfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.CreatedOnBehalfOf.CreatedOnBehalfOfRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -199,7 +202,7 @@ public Command BuildExtensionPropertiesNavCommand() { var command = new Command("extension-properties"); command.Description = "Provides operations to manage the extensionProperties property of the microsoft.graph.application entity."; - var builder = new ExtensionPropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.ExtensionProperties.ExtensionPropertiesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -226,7 +229,7 @@ public Command BuildFederatedIdentityCredentialsNavCommand() { var command = new Command("federated-identity-credentials"); command.Description = "Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity."; - var builder = new FederatedIdentityCredentialsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.FederatedIdentityCredentials.FederatedIdentityCredentialsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -253,7 +256,7 @@ public Command BuildFederatedIdentityCredentialsWithNameRbCommand() { var command = new Command("federated-identity-credentials-with-name"); command.Description = "Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity."; - var builder = new FederatedIdentityCredentialsWithNameRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.FederatedIdentityCredentialsWithName.FederatedIdentityCredentialsWithNameRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -325,7 +328,7 @@ public Command BuildGetMemberGroupsNavCommand() { var command = new Command("get-member-groups"); command.Description = "Provides operations to call the getMemberGroups method."; - var builder = new GetMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.GetMemberGroups.GetMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -342,7 +345,7 @@ public Command BuildGetMemberObjectsNavCommand() { var command = new Command("get-member-objects"); command.Description = "Provides operations to call the getMemberObjects method."; - var builder = new GetMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.GetMemberObjects.GetMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -359,7 +362,7 @@ public Command BuildHomeRealmDiscoveryPoliciesNavCommand() { var command = new Command("home-realm-discovery-policies"); command.Description = "Provides operations to manage the homeRealmDiscoveryPolicies property of the microsoft.graph.application entity."; - var builder = new HomeRealmDiscoveryPoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.HomeRealmDiscoveryPolicies.HomeRealmDiscoveryPoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -385,7 +388,7 @@ public Command BuildLogoNavCommand() { var command = new Command("logo"); command.Description = "Provides operations to manage the media for the application entity."; - var builder = new LogoRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Logo.LogoRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -404,7 +407,7 @@ public Command BuildOwnersNavCommand() { var command = new Command("owners"); command.Description = "Provides operations to manage the owners property of the microsoft.graph.application entity."; - var builder = new OwnersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.OwnersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -458,8 +461,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.Application.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Application.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -487,7 +490,7 @@ public Command BuildRemoveKeyNavCommand() { var command = new Command("remove-key"); command.Description = "Provides operations to call the removeKey method."; - var builder = new RemoveKeyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.RemoveKey.RemoveKeyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -504,7 +507,7 @@ public Command BuildRemovePasswordNavCommand() { var command = new Command("remove-password"); command.Description = "Provides operations to call the removePassword method."; - var builder = new RemovePasswordRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.RemovePassword.RemovePasswordRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -521,7 +524,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -538,7 +541,7 @@ public Command BuildSetVerifiedPublisherNavCommand() { var command = new Command("set-verified-publisher"); command.Description = "Provides operations to call the setVerifiedPublisher method."; - var builder = new SetVerifiedPublisherRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.SetVerifiedPublisher.SetVerifiedPublisherRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -555,7 +558,7 @@ public Command BuildSynchronizationNavCommand() { var command = new Command("synchronization"); command.Description = "Provides operations to manage the synchronization property of the microsoft.graph.application entity."; - var builder = new SynchronizationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.SynchronizationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAcquireAccessTokenNavCommand()); @@ -583,7 +586,7 @@ public Command BuildTokenIssuancePoliciesNavCommand() { var command = new Command("token-issuance-policies"); command.Description = "Provides operations to manage the tokenIssuancePolicies property of the microsoft.graph.application entity."; - var builder = new TokenIssuancePoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.TokenIssuancePolicies.TokenIssuancePoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -610,7 +613,7 @@ public Command BuildTokenLifetimePoliciesNavCommand() { var command = new Command("token-lifetime-policies"); command.Description = "Provides operations to manage the tokenLifetimePolicies property of the microsoft.graph.application entity."; - var builder = new TokenLifetimePoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.TokenLifetimePolicies.TokenLifetimePoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -637,7 +640,7 @@ public Command BuildUnsetVerifiedPublisherNavCommand() { var command = new Command("unset-verified-publisher"); command.Description = "Provides operations to call the unsetVerifiedPublisher method."; - var builder = new UnsetVerifiedPublisherRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.UnsetVerifiedPublisher.UnsetVerifiedPublisherRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -647,14 +650,14 @@ public Command BuildUnsetVerifiedPublisherNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ApplicationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%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 ApplicationItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}{?%24expand,%24select}", rawUrl) @@ -686,11 +689,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); @@ -706,11 +709,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.Application body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Application body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Application body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Application body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -722,7 +725,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Application bo /// /// Get the properties and relationships of an application object. /// - public class ApplicationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -747,3 +751,4 @@ public class ApplicationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 26f654df9b..fe74590db5 100644 --- a/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Applications.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberGroupsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List GroupIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberGroupsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberGroupsPostRequestBody() /// /// 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 CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostRequestBody(); + return new global::ApiSdk.Applications.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index bcfc0f7353..3caac3186b 100644 --- a/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.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.Applications.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountRespon /// /// 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 new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Applications.Item.CheckMemberGroups.CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostResponse(); + return new global::ApiSdk.Applications.Item.CheckMemberGroups.CheckMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 0f04bb0afb..06e168921e 100644 --- a/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/generated/Applications/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Applications.Item.CheckMemberGroups /// /// Provides operations to call the checkMemberGroups method. /// - public class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; + command.Description = "Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; var applicationIdOption = new Option("--application-id", description: "The unique identifier of application") { }; applicationIdOption.IsRequired = true; @@ -55,8 +58,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(CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 CheckMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/checkMemberGroups", 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 CheckMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// /// 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 ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 173638ee1a..eb6ed93266 100644 --- a/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Applications.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberObjectsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsabl public List Ids { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberObjectsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberObjectsPostRequestBody() /// /// 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 CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostRequestBody(); + return new global::ApiSdk.Applications.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 8f4c114cfd..619643253d 100644 --- a/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.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.Applications.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountRespo /// /// 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 new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Applications.Item.CheckMemberObjects.CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostResponse(); + return new global::ApiSdk.Applications.Item.CheckMemberObjects.CheckMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 314f9e9bda..73cf014827 100644 --- a/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/generated/Applications/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.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.Applications.Item.CheckMemberObjects /// /// Provides operations to call the checkMemberObjects method. /// - public class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action checkMemberObjects @@ -54,8 +57,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(CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -85,14 +88,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 CheckMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/checkMemberObjects", 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 CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/checkMemberObjects", rawUrl) @@ -106,11 +109,11 @@ public CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/applic /// 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(CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -121,3 +124,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs b/src/generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs index 444fa8a5f5..06bf83940b 100644 --- a/src/generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs +++ b/src/generated/Applications/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.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.Applications.Item.CreatedOnBehalfOf /// /// Provides operations to manage the createdOnBehalfOf property of the microsoft.graph.application entity. /// - public class CreatedOnBehalfOfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedOnBehalfOfRequestBuilder : BaseCliRequestBuilder { /// /// Supports $filter (/$count eq 0, /$count ne 0). Read-only. @@ -74,14 +77,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 CreatedOnBehalfOfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/createdOnBehalfOf{?%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 CreatedOnBehalfOfRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/createdOnBehalfOf{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public CreatedOnBehalfOfRequestBuilder(string rawUrl) : base("{+baseurl}/applica /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// Supports $filter (/$count eq 0, /$count ne 0). Read-only. /// - public class CreatedOnBehalfOfRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedOnBehalfOfRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class CreatedOnBehalfOfRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/ExtensionProperties/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/ExtensionProperties/Count/CountRequestBuilder.cs index ef464705a1..8c9d1b77eb 100644 --- a/src/generated/Applications/Item/ExtensionProperties/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/ExtensionProperties/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.Applications.Item.ExtensionProperties.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}/applications/{application%2Did}/extensionProperties/$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}/applications/{application%2Did}/extensionProperties/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs b/src/generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs index 197003db96..7df0dcd8a6 100644 --- a/src/generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs +++ b/src/generated/Applications/Item/ExtensionProperties/ExtensionPropertiesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.ExtensionProperties.Count; using ApiSdk.Applications.Item.ExtensionProperties.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.Applications.Item.ExtensionProperties /// /// Provides operations to manage the extensionProperties property of the microsoft.graph.application entity. /// - public class ExtensionPropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionPropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensionProperties property of the microsoft.graph.application entity. @@ -30,7 +33,7 @@ public class ExtensionPropertiesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionPropertyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.ExtensionProperties.Item.ExtensionPropertyItemRequestBuilder(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.Applications.Item.ExtensionProperties.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(ExtensionProperty.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExtensionProperty.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 ExtensionPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/extensionProperties{?%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 ExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/extensionProperties{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public ExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/appli /// 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(ExtensionProperty body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExtensionProperty body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExtensionProperty body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExtensionProperty body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ExtensionProperty body, Actio /// /// Retrieve the list of directory extension definitions, represented by extensionProperty objects on an application. /// - public class ExtensionPropertiesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionPropertiesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class ExtensionPropertiesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.cs b/src/generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.cs index 32f8cf2e79..abbb926ba5 100644 --- a/src/generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.cs +++ b/src/generated/Applications/Item/ExtensionProperties/Item/ExtensionPropertyItemRequestBuilder.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.Applications.Item.ExtensionProperties.Item /// /// Provides operations to manage the extensionProperties property of the microsoft.graph.application entity. /// - public class ExtensionPropertyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionPropertyItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete a directory extension definition represented by an extensionProperty object. You can delete only directory extensions that aren't synced from on-premises active directory (AD). @@ -157,8 +160,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(ExtensionProperty.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExtensionProperty.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -180,14 +183,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 ExtensionPropertyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/extensionProperties/{extensionProperty%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 ExtensionPropertyItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/extensionProperties/{extensionProperty%2Did}{?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(ExtensionProperty body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExtensionProperty body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ExtensionProperty body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExtensionProperty body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(ExtensionProperty body, Acti /// /// Read a directory extension definition represented by an extensionProperty object. /// - public class ExtensionPropertyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionPropertyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class ExtensionPropertyItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.cs index 4ffb876405..e366732ba5 100644 --- a/src/generated/Applications/Item/FederatedIdentityCredentials/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/FederatedIdentityCredentials/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.Applications.Item.FederatedIdentityCredentials.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}/applications/{application%2Did}/federatedIdentityCredentials/$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}/applications/{application%2Did}/federatedIdentityCredentials/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs b/src/generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs index ada8c096ee..fbda75ae4b 100644 --- a/src/generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs +++ b/src/generated/Applications/Item/FederatedIdentityCredentials/FederatedIdentityCredentialsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.FederatedIdentityCredentials.Count; using ApiSdk.Applications.Item.FederatedIdentityCredentials.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.Applications.Item.FederatedIdentityCredentials /// /// Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. /// - public class FederatedIdentityCredentialsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FederatedIdentityCredentialsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. @@ -30,7 +33,7 @@ public class FederatedIdentityCredentialsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new FederatedIdentityCredentialItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.FederatedIdentityCredentials.Item.FederatedIdentityCredentialItemRequestBuilder(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.Applications.Item.FederatedIdentityCredentials.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(FederatedIdentityCredential.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.FederatedIdentityCredential.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 FederatedIdentityCredentialsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials{?%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 FederatedIdentityCredentialsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public FederatedIdentityCredentialsRequestBuilder(string rawUrl) : base("{+baseu /// 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(FederatedIdentityCredential body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.FederatedIdentityCredential body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FederatedIdentityCredential body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.FederatedIdentityCredential body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(FederatedIdentityCredential b /// /// Get a list of the federatedIdentityCredential objects and their properties. /// - public class FederatedIdentityCredentialsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FederatedIdentityCredentialsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class FederatedIdentityCredentialsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs b/src/generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs index acb091e7b6..7c48a84b36 100644 --- a/src/generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.cs +++ b/src/generated/Applications/Item/FederatedIdentityCredentials/Item/FederatedIdentityCredentialItemRequestBuilder.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.Applications.Item.FederatedIdentityCredentials.Item /// /// Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. /// - public class FederatedIdentityCredentialItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FederatedIdentityCredentialItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete a federatedIdentityCredential object from an application. @@ -123,14 +126,14 @@ public Command BuildGetCommand() return command; } /// - /// Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + /// Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/federatedidentitycredential-upsert?view=graph-rest-1.0"; + command.Description = "Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/federatedidentitycredential-upsert?view=graph-rest-1.0"; var applicationIdOption = new Option("--application-id", description: "The unique identifier of application") { }; applicationIdOption.IsRequired = true; @@ -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(FederatedIdentityCredential.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.FederatedIdentityCredential.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 FederatedIdentityCredentialItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials/{federatedIdentityCredential%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 FederatedIdentityCredentialItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials/{federatedIdentityCredential%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); @@ -233,18 +236,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + /// Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. /// /// 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(FederatedIdentityCredential body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FederatedIdentityCredential body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(FederatedIdentityCredential body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FederatedIdentityCredential body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(FederatedIdentityCredential /// /// Read the properties and relationships of a federatedIdentityCredential object. /// - public class FederatedIdentityCredentialItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FederatedIdentityCredentialItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class FederatedIdentityCredentialItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.cs b/src/generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.cs index 6089fd6270..c3a49728ef 100644 --- a/src/generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.cs +++ b/src/generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.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.Applications.Item.FederatedIdentityCredentialsWithName /// /// Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. /// - public class FederatedIdentityCredentialsWithNameRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FederatedIdentityCredentialsWithNameRequestBuilder : BaseCliRequestBuilder { /// /// Delete a federatedIdentityCredential object from an application. @@ -123,14 +126,14 @@ public Command BuildGetCommand() return command; } /// - /// Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + /// Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/federatedidentitycredential-upsert?view=graph-rest-1.0"; + command.Description = "Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/federatedidentitycredential-upsert?view=graph-rest-1.0"; var applicationIdOption = new Option("--application-id", description: "The unique identifier of application") { }; applicationIdOption.IsRequired = true; @@ -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(FederatedIdentityCredential.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.FederatedIdentityCredential.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 FederatedIdentityCredentialsWithNameRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}'){?%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 FederatedIdentityCredentialsWithNameRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}'){?%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); @@ -233,18 +236,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + /// Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. /// /// 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(FederatedIdentityCredential body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FederatedIdentityCredential body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(FederatedIdentityCredential body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FederatedIdentityCredential body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(FederatedIdentityCredential /// /// Read the properties and relationships of a federatedIdentityCredential object. /// - public class FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameter } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 85b0a976ea..a7db47446c 100644 --- a/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Applications.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberGroupsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberGroupsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberGroupsPostRequestBody() /// /// 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 GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.GetMemberGroups.GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostRequestBody(); + return new global::ApiSdk.Applications.Item.GetMemberGroups.GetMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 5002564aca..14f5991da8 100644 --- a/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsPostResponse.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.Applications.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse /// /// 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 new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Applications.Item.GetMemberGroups.GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostResponse(); + return new global::ApiSdk.Applications.Item.GetMemberGroups.GetMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 68d5b6fd0c..e112ba0947 100644 --- a/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/generated/Applications/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Applications.Item.GetMemberGroups /// /// Provides operations to call the getMemberGroups method. /// - public class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; + command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; var applicationIdOption = new Option("--application-id", description: "The unique identifier of application") { }; applicationIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.GetMemberGroups.GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/getMemberGroups", 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 GetMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// /// 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 ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index f3e7636edb..1f3e401b49 100644 --- a/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Applications.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberObjectsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberObjectsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberObjectsPostRequestBody() /// /// 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 GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.GetMemberObjects.GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostRequestBody(); + return new global::ApiSdk.Applications.Item.GetMemberObjects.GetMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 0310555054..bd2d5099a9 100644 --- a/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsPostResponse.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.Applications.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountRespons /// /// 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 new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Applications.Item.GetMemberObjects.GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostResponse(); + return new global::ApiSdk.Applications.Item.GetMemberObjects.GetMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index ae18771f70..79b5a032e1 100644 --- a/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/generated/Applications/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Applications.Item.GetMemberObjects /// /// Provides operations to call the getMemberObjects method. /// - public class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; + command.Description = "Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; var applicationIdOption = new Option("--application-id", description: "The unique identifier of application") { }; applicationIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.GetMemberObjects.GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/getMemberObjects", 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 GetMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// /// 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 ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs index 567d69619f..26970dd41a 100644 --- a/src/generated/Applications/Item/HomeRealmDiscoveryPolicies/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/HomeRealmDiscoveryPolicies/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.Applications.Item.HomeRealmDiscoveryPolicies.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}/applications/{application%2Did}/homeRealmDiscoveryPolicies/$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}/applications/{application%2Did}/homeRealmDiscoveryPolicies/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs b/src/generated/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs index 76d90e30ea..822cda18bb 100644 --- a/src/generated/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs +++ b/src/generated/Applications/Item/HomeRealmDiscoveryPolicies/HomeRealmDiscoveryPoliciesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.HomeRealmDiscoveryPolicies.Count; using ApiSdk.Applications.Item.HomeRealmDiscoveryPolicies.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.Applications.Item.HomeRealmDiscoveryPolicies /// /// Provides operations to manage the homeRealmDiscoveryPolicies property of the microsoft.graph.application entity. /// - public class HomeRealmDiscoveryPoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HomeRealmDiscoveryPoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the homeRealmDiscoveryPolicies property of the microsoft.graph.application entity. @@ -30,7 +33,7 @@ public class HomeRealmDiscoveryPoliciesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new HomeRealmDiscoveryPolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.HomeRealmDiscoveryPolicies.Item.HomeRealmDiscoveryPolicyItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Applications.Item.HomeRealmDiscoveryPolicies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 HomeRealmDiscoveryPoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/homeRealmDiscoveryPolicies{?%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 HomeRealmDiscoveryPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/homeRealmDiscoveryPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public HomeRealmDiscoveryPoliciesRequestBuilder(string rawUrl) : base("{+baseurl /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get homeRealmDiscoveryPolicies from applications /// - public class HomeRealmDiscoveryPoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HomeRealmDiscoveryPoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class HomeRealmDiscoveryPoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs b/src/generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs index f4cdafcac1..211b412cae 100644 --- a/src/generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.cs +++ b/src/generated/Applications/Item/HomeRealmDiscoveryPolicies/Item/HomeRealmDiscoveryPolicyItemRequestBuilder.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.Applications.Item.HomeRealmDiscoveryPolicies.Item /// /// Provides operations to manage the homeRealmDiscoveryPolicies property of the microsoft.graph.application entity. /// - public class HomeRealmDiscoveryPolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HomeRealmDiscoveryPolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Get homeRealmDiscoveryPolicies from applications @@ -80,14 +83,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 HomeRealmDiscoveryPolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%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 HomeRealmDiscoveryPolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public HomeRealmDiscoveryPolicyItemRequestBuilder(string rawUrl) : base("{+baseu /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get homeRealmDiscoveryPolicies from applications /// - public class HomeRealmDiscoveryPolicyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HomeRealmDiscoveryPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class HomeRealmDiscoveryPolicyItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Logo/LogoRequestBuilder.cs b/src/generated/Applications/Item/Logo/LogoRequestBuilder.cs index 94ab0eee06..dfca0a8600 100644 --- a/src/generated/Applications/Item/Logo/LogoRequestBuilder.cs +++ b/src/generated/Applications/Item/Logo/LogoRequestBuilder.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.Applications.Item.Logo /// /// Provides operations to manage the media for the application entity. /// - public class LogoRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LogoRequestBuilder : BaseCliRequestBuilder { /// /// The main logo for the application. Not nullable. @@ -146,14 +149,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LogoRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/logo", 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 LogoRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/logo", rawUrl) @@ -221,3 +224,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Applications.Item.Owners.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 @@ -70,14 +73,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}/applications/{application%2Did}/owners/$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}/applications/{application%2Did}/owners/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index 22bdd04fcb..f56b5806a9 100644 --- a/src/generated/Applications/Item/Owners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/GraphAppRoleAssignment/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.Applications.Item.Owners.GraphAppRoleAssignment.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 @@ -70,14 +73,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}/applications/{application%2Did}/owners/graph.appRoleAssignment/$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}/applications/{application%2Did}/owners/graph.appRoleAssignment/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 1a85a67337..d3a530ece9 100644 --- a/src/generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Owners.GraphAppRoleAssignment.Count; 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.Applications.Item.Owners.GraphAppRoleAssignment /// /// Casts the previous resource to appRoleAssignment. /// - public class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Applications.Item.Owners.GraphAppRoleAssignment.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphAppRoleAssignmentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners/graph.appRoleAssignment{?%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 GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners/graph.appRoleAssignment{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/ap /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.appRoleAssignment in the microsoft.graph.directoryObject collection /// - public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.cs index bd837ba07d..64ad12e969 100644 --- a/src/generated/Applications/Item/Owners/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/GraphEndpoint/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.Applications.Item.Owners.GraphEndpoint.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 @@ -70,14 +73,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}/applications/{application%2Did}/owners/graph.endpoint/$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}/applications/{application%2Did}/owners/graph.endpoint/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs index f4542f7d79..d30f0b0460 100644 --- a/src/generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Owners.GraphEndpoint.Count; 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.Applications.Item.Owners.GraphEndpoint /// /// Casts the previous resource to endpoint. /// - public class GraphEndpointRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Applications.Item.Owners.GraphEndpoint.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphEndpointRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners/graph.endpoint{?%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 GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners/graph.endpoint{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/application /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection /// - public class GraphEndpointRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphEndpointRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs index 2633552aa9..37087b5cc5 100644 --- a/src/generated/Applications/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/GraphServicePrincipal/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.Applications.Item.Owners.GraphServicePrincipal.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 @@ -70,14 +73,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}/applications/{application%2Did}/owners/graph.servicePrincipal/$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}/applications/{application%2Did}/owners/graph.servicePrincipal/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index c5b87b4f40..f39c2c256d 100644 --- a/src/generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Owners.GraphServicePrincipal.Count; 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.Applications.Item.Owners.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Applications.Item.Owners.GraphServicePrincipal.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/app /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/GraphUser/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/Owners/GraphUser/Count/CountRequestBuilder.cs index b680e9d07e..dc2095fcf7 100644 --- a/src/generated/Applications/Item/Owners/GraphUser/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/GraphUser/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.Applications.Item.Owners.GraphUser.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 @@ -70,14 +73,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}/applications/{application%2Did}/owners/graph.user/$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}/applications/{application%2Did}/owners/graph.user/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.cs index e471cf76cc..3c04e64988 100644 --- a/src/generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/GraphUser/GraphUserRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Owners.GraphUser.Count; 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.Applications.Item.Owners.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Applications.Item.Owners.GraphUser.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{a /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Applications/Item/Owners/Item/DirectoryObjectItemRequestBuilder.cs index e46b59a08a..97723db5aa 100644 --- a/src/generated/Applications/Item/Owners/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Owners.Item.GraphAppRoleAssignment; using ApiSdk.Applications.Item.Owners.Item.GraphEndpoint; using ApiSdk.Applications.Item.Owners.Item.GraphServicePrincipal; using ApiSdk.Applications.Item.Owners.Item.GraphUser; using ApiSdk.Applications.Item.Owners.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -19,7 +21,8 @@ namespace ApiSdk.Applications.Item.Owners.Item /// /// Builds and executes requests for operations under \applications\{application-id}\owners\{directoryObject-id} /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Casts the previous resource to appRoleAssignment. @@ -29,7 +32,7 @@ public Command BuildGraphAppRoleAssignmentByIdNavCommand() { var command = new Command("graph-app-role-assignment-by-id"); command.Description = "Casts the previous resource to appRoleAssignment."; - var builder = new GraphAppRoleAssignmentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.Item.GraphAppRoleAssignment.GraphAppRoleAssignmentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -46,7 +49,7 @@ public Command BuildGraphEndpointByIdNavCommand() { var command = new Command("graph-endpoint-by-id"); command.Description = "Casts the previous resource to endpoint."; - var builder = new GraphEndpointRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.Item.GraphEndpoint.GraphEndpointRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -63,7 +66,7 @@ public Command BuildGraphServicePrincipalByIdNavCommand() { var command = new Command("graph-service-principal-by-id"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.Item.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -80,7 +83,7 @@ public Command BuildGraphUserByIdNavCommand() { var command = new Command("graph-user-by-id"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.Item.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -97,7 +100,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of application entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -107,14 +110,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}", 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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}", rawUrl) @@ -122,3 +125,4 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/appli } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index bb9a5ed7b6..a4e1801032 100644 --- a/src/generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.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.Applications.Item.Owners.Item.GraphAppRoleAssignment /// /// Casts the previous resource to appRoleAssignment. /// - public class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment @@ -87,14 +90,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 GraphAppRoleAssignmentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.appRoleAssignment{?%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 GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.appRoleAssignment{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/ap /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment /// - public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index dc39889df7..1566af3bd9 100644 --- a/src/generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/Item/GraphEndpoint/GraphEndpointRequestBuilder.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.Applications.Item.Owners.Item.GraphEndpoint /// /// Casts the previous resource to endpoint. /// - public class GraphEndpointRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint @@ -87,14 +90,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 GraphEndpointRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.endpoint{?%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 GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.endpoint{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/application /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint /// - public class GraphEndpointRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphEndpointRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 7d89c731da..521e278754 100644 --- a/src/generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.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.Applications.Item.Owners.Item.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -87,14 +90,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/app /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs index 2a51485ca1..d4837da726 100644 --- a/src/generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.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.Applications.Item.Owners.Item.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -87,14 +90,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/graph.user{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{a /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs index 8ed0d1e3e6..e993ade1ee 100644 --- a/src/generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.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.Applications.Item.Owners.Item.Ref /// /// Provides operations to manage the collection of application entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Owners.Count; using ApiSdk.Applications.Item.Owners.GraphAppRoleAssignment; using ApiSdk.Applications.Item.Owners.GraphEndpoint; @@ -8,6 +9,7 @@ using ApiSdk.Applications.Item.Owners.Ref; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -26,7 +28,8 @@ namespace ApiSdk.Applications.Item.Owners /// /// Provides operations to manage the owners property of the microsoft.graph.application entity. /// - public class OwnersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OwnersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.applications.item.owners.item collection @@ -35,7 +38,7 @@ public class OwnersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.Item.DirectoryObjectItemRequestBuilder(PathParameters); commands.Add(builder.BuildGraphAppRoleAssignmentByIdNavCommand()); commands.Add(builder.BuildGraphEndpointByIdNavCommand()); commands.Add(builder.BuildGraphServicePrincipalByIdNavCommand()); @@ -51,7 +54,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.Applications.Item.Owners.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -68,7 +71,7 @@ public Command BuildGraphAppRoleAssignmentNavCommand() { var command = new Command("graph-app-role-assignment"); command.Description = "Casts the previous resource to appRoleAssignment."; - var builder = new GraphAppRoleAssignmentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.GraphAppRoleAssignment.GraphAppRoleAssignmentRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -91,7 +94,7 @@ public Command BuildGraphEndpointNavCommand() { var command = new Command("graph-endpoint"); command.Description = "Casts the previous resource to endpoint."; - var builder = new GraphEndpointRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.GraphEndpoint.GraphEndpointRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -114,7 +117,7 @@ public Command BuildGraphServicePrincipalNavCommand() { var command = new Command("graph-service-principal"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -137,7 +140,7 @@ public Command BuildGraphUserNavCommand() { var command = new Command("graph-user"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -153,14 +156,14 @@ public Command BuildGraphUserNavCommand() return command; } /// - /// Retrieve a list of owners for an application that are directoryObject objects. + /// Retrieve a list of owners for an application that are directoryObject types. /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of owners for an application that are directoryObject objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/application-list-owners?view=graph-rest-1.0"; + command.Description = "Retrieve a list of owners for an application that are directoryObject types.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/application-list-owners?view=graph-rest-1.0"; var applicationIdOption = new Option("--application-id", description: "The unique identifier of application") { }; applicationIdOption.IsRequired = true; @@ -270,7 +273,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of application entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Owners.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -282,31 +285,31 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OwnersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners{?%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 OwnersRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Retrieve a list of owners for an application that are directoryObject objects. + /// Retrieve a list of owners for an application that are directoryObject types. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -315,9 +318,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve a list of owners for an application that are directoryObject objects. + /// Retrieve a list of owners for an application that are directoryObject types. /// - public class OwnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OwnersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -381,3 +385,4 @@ public class OwnersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs b/src/generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs index 33911aa4f0..44fd05ab24 100644 --- a/src/generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/generated/Applications/Item/Owners/Ref/RefRequestBuilder.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.Applications.Item.Owners.Ref /// /// Provides operations to manage the collection of application entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. @@ -64,14 +67,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Retrieve a list of owners for an application that are directoryObject objects. + /// Retrieve a list of owners for an application that are directoryObject types. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve a list of owners for an application that are directoryObject objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/application-list-owners?view=graph-rest-1.0"; + command.Description = "Retrieve a list of owners for an application that are directoryObject types.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/application-list-owners?view=graph-rest-1.0"; var applicationIdOption = new Option("--application-id", description: "The unique identifier of application") { }; applicationIdOption.IsRequired = true; @@ -160,14 +163,14 @@ public Command BuildGetCommand() return command; } /// - /// Add an owner to an application by posting to the owners collection. + /// Add an owner to an application. Application owners can be individual users, the associated service principal, or another service principal. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Add an owner to an application by posting to the owners collection.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/application-post-owners?view=graph-rest-1.0"; + command.Description = "Add an owner to an application. Application owners can be individual users, the associated service principal, or another service principal.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/application-post-owners?view=graph-rest-1.0"; var applicationIdOption = new Option("--application-id", description: "The unique identifier of application") { }; applicationIdOption.IsRequired = true; @@ -182,8 +185,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -202,14 +205,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/owners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/owners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -222,11 +225,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{applica /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/applications/{application%2Did}/owners/$ref?@id={%40id}", PathParameters); @@ -235,17 +238,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a list of owners for an application that are directoryObject objects. + /// Retrieve a list of owners for an application that are directoryObject types. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -254,18 +257,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Add an owner to an application by posting to the owners collection. + /// Add an owner to an application. Application owners can be individual users, the associated service principal, or another service principal. /// /// 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 ToPostRequestInformation(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -291,9 +295,10 @@ public class RefRequestBuilderDeleteQueryParameters #endif } /// - /// Retrieve a list of owners for an application that are directoryObject objects. + /// Retrieve a list of owners for an application that are directoryObject types. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -337,3 +342,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/RemoveKey/RemoveKeyPostRequestBody.cs b/src/generated/Applications/Item/RemoveKey/RemoveKeyPostRequestBody.cs index 365de60efc..41852e419f 100644 --- a/src/generated/Applications/Item/RemoveKey/RemoveKeyPostRequestBody.cs +++ b/src/generated/Applications/Item/RemoveKey/RemoveKeyPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Applications.Item.RemoveKey { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RemoveKeyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RemoveKeyPostRequestBody : 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. @@ -23,7 +25,7 @@ public class RemoveKeyPostRequestBody : IAdditionalDataHolder, IParsable public string Proof { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RemoveKeyPostRequestBody() { @@ -32,12 +34,12 @@ public RemoveKeyPostRequestBody() /// /// 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 RemoveKeyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.RemoveKey.RemoveKeyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RemoveKeyPostRequestBody(); + return new global::ApiSdk.Applications.Item.RemoveKey.RemoveKeyPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.cs b/src/generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.cs index cb9db690d0..7ad8ceccb3 100644 --- a/src/generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.cs +++ b/src/generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.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.Applications.Item.RemoveKey /// /// Provides operations to call the removeKey method. /// - public class RemoveKeyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveKeyRequestBuilder : BaseCliRequestBuilder { /// /// Remove a key credential from an application. This method along with addKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. @@ -43,8 +46,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(RemoveKeyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.RemoveKey.RemoveKeyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 RemoveKeyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/removeKey", 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 RemoveKeyRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/removeKey", rawUrl) @@ -84,11 +87,11 @@ public RemoveKeyRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{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 ToPostRequestInformation(RemoveKeyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.RemoveKey.RemoveKeyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RemoveKeyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.RemoveKey.RemoveKeyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(RemoveKeyPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/RemovePassword/RemovePasswordPostRequestBody.cs b/src/generated/Applications/Item/RemovePassword/RemovePasswordPostRequestBody.cs index a976ef99b3..26c12b01ed 100644 --- a/src/generated/Applications/Item/RemovePassword/RemovePasswordPostRequestBody.cs +++ b/src/generated/Applications/Item/RemovePassword/RemovePasswordPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Applications.Item.RemovePassword { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RemovePasswordPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RemovePasswordPostRequestBody : 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. @@ -15,7 +17,7 @@ public class RemovePasswordPostRequestBody : IAdditionalDataHolder, IParsable /// The keyId property public Guid? KeyId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RemovePasswordPostRequestBody() { @@ -24,12 +26,12 @@ public RemovePasswordPostRequestBody() /// /// 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 RemovePasswordPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.RemovePassword.RemovePasswordPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RemovePasswordPostRequestBody(); + return new global::ApiSdk.Applications.Item.RemovePassword.RemovePasswordPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.cs b/src/generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.cs index 1ebae75376..96643bb732 100644 --- a/src/generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.cs +++ b/src/generated/Applications/Item/RemovePassword/RemovePasswordRequestBuilder.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.Applications.Item.RemovePassword /// /// Provides operations to call the removePassword method. /// - public class RemovePasswordRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemovePasswordRequestBuilder : BaseCliRequestBuilder { /// /// Remove a password from an application. @@ -43,8 +46,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(RemovePasswordPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.RemovePassword.RemovePasswordPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 RemovePasswordRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/removePassword", 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 RemovePasswordRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/removePassword", rawUrl) @@ -84,11 +87,11 @@ public RemovePasswordRequestBuilder(string rawUrl) : base("{+baseurl}/applicatio /// 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(RemovePasswordPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.RemovePassword.RemovePasswordPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RemovePasswordPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.RemovePassword.RemovePasswordPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(RemovePasswordPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Applications/Item/Restore/RestoreRequestBuilder.cs index 7034b23afb..33c3d41a7b 100644 --- a/src/generated/Applications/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Applications/Item/Restore/RestoreRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.Applications.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var applicationIdOption = new Option("--application-id", description: "The unique identifier of application") { }; applicationIdOption.IsRequired = true; @@ -61,21 +64,21 @@ 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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Applications.Item.SetVerifiedPublisher { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetVerifiedPublisherPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetVerifiedPublisherPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetVerifiedPublisherPostRequestBody : IAdditionalDataHolder, IParsa public string VerifiedPublisherId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetVerifiedPublisherPostRequestBody() { @@ -30,12 +32,12 @@ public SetVerifiedPublisherPostRequestBody() /// /// 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 SetVerifiedPublisherPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.SetVerifiedPublisher.SetVerifiedPublisherPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetVerifiedPublisherPostRequestBody(); + return new global::ApiSdk.Applications.Item.SetVerifiedPublisher.SetVerifiedPublisherPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.cs b/src/generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.cs index 42aca08b2a..34ff7bccd0 100644 --- a/src/generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.cs +++ b/src/generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.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.Applications.Item.SetVerifiedPublisher /// /// Provides operations to call the setVerifiedPublisher method. /// - public class SetVerifiedPublisherRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetVerifiedPublisherRequestBuilder : BaseCliRequestBuilder { /// /// Set the verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. @@ -43,8 +46,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(SetVerifiedPublisherPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.SetVerifiedPublisher.SetVerifiedPublisherPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 SetVerifiedPublisherRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/setVerifiedPublisher", 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 SetVerifiedPublisherRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/setVerifiedPublisher", rawUrl) @@ -84,11 +87,11 @@ public SetVerifiedPublisherRequestBuilder(string rawUrl) : base("{+baseurl}/appl /// 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(SetVerifiedPublisherPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.SetVerifiedPublisher.SetVerifiedPublisherPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetVerifiedPublisherPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.SetVerifiedPublisher.SetVerifiedPublisherPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(SetVerifiedPublisherPostReque } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.cs b/src/generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.cs index 534f5fe8e5..a4ab17308c 100644 --- a/src/generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.cs +++ b/src/generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenPostRequestBody.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.Applications.Item.Synchronization.AcquireAccessToken { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcquireAccessTokenPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcquireAccessTokenPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AcquireAccessTokenPostRequestBody : IAdditionalDataHolder, IParsabl /// The credentials property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Credentials { get; set; } + public List? Credentials { get; set; } #nullable restore #else - public List Credentials { get; set; } + public List Credentials { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcquireAccessTokenPostRequestBody() { @@ -31,12 +33,12 @@ public AcquireAccessTokenPostRequestBody() /// /// 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 AcquireAccessTokenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.Synchronization.AcquireAccessToken.AcquireAccessTokenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcquireAccessTokenPostRequestBody(); + return new global::ApiSdk.Applications.Item.Synchronization.AcquireAccessToken.AcquireAccessTokenPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "credentials", n => { Credentials = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, + { "credentials", n => { Credentials = n.GetCollectionOfObjectValues(global::ApiSdk.Models.SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("credentials", Credentials); + writer.WriteCollectionOfObjectValues("credentials", Credentials); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs index fd62fa47b6..20884300da 100644 --- a/src/generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/AcquireAccessToken/AcquireAccessTokenRequestBuilder.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.Applications.Item.Synchronization.AcquireAccessToken /// /// Provides operations to call the acquireAccessToken method. /// - public class AcquireAccessTokenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcquireAccessTokenRequestBuilder : BaseCliRequestBuilder { /// /// Acquire an OAuth access token to authorize the Microsoft Entra provisioning service to provision users into an application. @@ -43,8 +46,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(AcquireAccessTokenPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.Synchronization.AcquireAccessToken.AcquireAccessTokenPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 AcquireAccessTokenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/acquireAccessToken", 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 AcquireAccessTokenRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/acquireAccessToken", rawUrl) @@ -84,11 +87,11 @@ public AcquireAccessTokenRequestBuilder(string rawUrl) : base("{+baseurl}/applic /// 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(AcquireAccessTokenPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.AcquireAccessToken.AcquireAccessTokenPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcquireAccessTokenPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.AcquireAccessToken.AcquireAccessTokenPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(AcquireAccessTokenPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Count/CountRequestBuilder.cs index 00f4cfca5b..0d249b19d8 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/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.Applications.Item.Synchronization.Jobs.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}/applications/{application%2Did}/synchronization/jobs/$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}/applications/{application%2Did}/synchronization/jobs/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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/Applications/Item/Synchronization/Jobs/Item/BulkUpload/BulkUploadRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/BulkUpload/BulkUploadRequestBuilder.cs index f71ab52c9c..cbb7a703a8 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/BulkUpload/BulkUploadRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/BulkUpload/BulkUploadRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Jobs.Item.BulkUpload.Value; 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.Applications.Item.Synchronization.Jobs.Item.BulkUpload /// /// Provides operations to manage the bulkUpload property of the microsoft.graph.synchronizationJob entity. /// - public class BulkUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BulkUploadRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the application entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the application entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.BulkUpload.Value.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -175,8 +178,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.BulkUpload.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.BulkUpload.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -198,14 +201,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 BulkUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/bulkUpload{?%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 BulkUploadRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/bulkUpload{?%24expand,%24select}", rawUrl) @@ -237,11 +240,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); @@ -257,11 +260,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.BulkUpload body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.BulkUpload body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.BulkUpload body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.BulkUpload body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -273,7 +276,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.BulkUpload bod /// /// The bulk upload operation for the job. /// - public class BulkUploadRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BulkUploadRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -298,3 +302,4 @@ public class BulkUploadRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/BulkUpload/Value/ContentRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/BulkUpload/Value/ContentRequestBuilder.cs index edbf0183bd..5ff3c408ab 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/BulkUpload/Value/ContentRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/BulkUpload/Value/ContentRequestBuilder.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.Applications.Item.Synchronization.Jobs.Item.BulkUpload.Value /// /// Provides operations to manage the media for the application entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The bulk upload operation for the job. @@ -164,14 +167,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/bulkUpload/$value", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/bulkUpload/$value", rawUrl) @@ -239,3 +242,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Applications.Item.Synchronization.Jobs.Item.Pause /// /// Provides operations to call the pause method. /// - public class PauseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PauseRequestBuilder : BaseCliRequestBuilder { /// /// Temporarily stop a running synchronization job. All the progress, including job state, is persisted, and the job will continue from where it left off when a start call is made. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PauseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/pause", 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 PauseRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/pause", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Applications.Item.Synchronization.Jobs.Item.ProvisionOnDemand { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ProvisionOnDemandPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ProvisionOnDemandPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ProvisionOnDemandPostRequestBody : IAdditionalDataHolder, IParsable /// The parameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Parameters { get; set; } + public List? Parameters { get; set; } #nullable restore #else - public List Parameters { get; set; } + public List Parameters { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProvisionOnDemandPostRequestBody() { @@ -31,12 +33,12 @@ public ProvisionOnDemandPostRequestBody() /// /// 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 ProvisionOnDemandPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ProvisionOnDemand.ProvisionOnDemandPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProvisionOnDemandPostRequestBody(); + return new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ProvisionOnDemand.ProvisionOnDemandPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "parameters", n => { Parameters = n.GetCollectionOfObjectValues(SynchronizationJobApplicationParameters.CreateFromDiscriminatorValue)?.ToList(); } }, + { "parameters", n => { Parameters = n.GetCollectionOfObjectValues(global::ApiSdk.Models.SynchronizationJobApplicationParameters.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("parameters", Parameters); + writer.WriteCollectionOfObjectValues("parameters", Parameters); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs index d93864647d..cf61bbc585 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.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.Applications.Item.Synchronization.Jobs.Item.ProvisionOnDemand /// /// Provides operations to call the provisionOnDemand method. /// - public class ProvisionOnDemandRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProvisionOnDemandRequestBuilder : BaseCliRequestBuilder { /// /// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. @@ -57,8 +60,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(ProvisionOnDemandPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ProvisionOnDemand.ProvisionOnDemandPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ProvisionOnDemandRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/provisionOnDemand", 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 ProvisionOnDemandRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/provisionOnDemand", rawUrl) @@ -101,11 +104,11 @@ public ProvisionOnDemandRequestBuilder(string rawUrl) : base("{+baseurl}/applica /// 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(ProvisionOnDemandPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ProvisionOnDemand.ProvisionOnDemandPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProvisionOnDemandPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ProvisionOnDemand.ProvisionOnDemandPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ProvisionOnDemandPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.cs index af2b2b256e..46172a3a90 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartPostRequestBody.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.Applications.Item.Synchronization.Jobs.Item.Restart { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RestartPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RestartPostRequestBody : 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. @@ -16,13 +18,13 @@ public class RestartPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SynchronizationJobRestartCriteria? Criteria { get; set; } + public global::ApiSdk.Models.SynchronizationJobRestartCriteria? Criteria { get; set; } #nullable restore #else - public SynchronizationJobRestartCriteria Criteria { get; set; } + public global::ApiSdk.Models.SynchronizationJobRestartCriteria Criteria { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RestartPostRequestBody() { @@ -31,12 +33,12 @@ public RestartPostRequestBody() /// /// 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 RestartPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Restart.RestartPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RestartPostRequestBody(); + return new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Restart.RestartPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(SynchronizationJobRestartCriteria.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(global::ApiSdk.Models.SynchronizationJobRestartCriteria.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("criteria", Criteria); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs index 1f1fb26e4c..dd9b814ce8 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Restart/RestartRequestBuilder.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.Applications.Item.Synchronization.Jobs.Item.Restart /// /// Provides operations to call the restart method. /// - public class RestartRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestartRequestBuilder : BaseCliRequestBuilder { /// /// Restart a stopped synchronization job, forcing it to reprocess all the objects in the directory. Optionally clears existing the synchronization state and previous errors. @@ -48,8 +51,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(RestartPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Restart.RestartPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 RestartRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/restart", 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 RestartRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/restart", rawUrl) @@ -90,11 +93,11 @@ public RestartRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{app /// 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(RestartPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Restart.RestartPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RestartPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Restart.RestartPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(RestartPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.cs index 225c6198fd..208222d9f8 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/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.Applications.Item.Synchronization.Jobs.Item.Schema.Directories. /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/$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}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs index 090baa60fe..f58a427753 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/DirectoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.Directories.Count; using ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.Directories.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.Applications.Item.Synchronization.Jobs.Item.Schema.Directories /// /// Provides operations to manage the directories property of the microsoft.graph.synchronizationSchema entity. /// - public class DirectoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the directories property of the microsoft.graph.synchronizationSchema entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.Directories.Item.DirectoryDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDiscoverNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Applications.Item.Synchronization.Jobs.Item.Schema.Directories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(DirectoryDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 DirectoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories{?%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 DirectoriesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public DirectoriesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/ /// 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); @@ -261,11 +264,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(DirectoryDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DirectoryDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(DirectoryDefinition body, Act /// /// Contains the collection of directories and all of their objects. /// - public class DirectoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class DirectoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs index bd32b04996..3c5484e39c 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.Directories.Item.Discover; 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.Applications.Item.Synchronization.Jobs.Item.Schema.Directories. /// /// Provides operations to manage the directories property of the microsoft.graph.synchronizationSchema entity. /// - public class DirectoryDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property directories for applications @@ -77,7 +80,7 @@ public Command BuildDiscoverNavCommand() { var command = new Command("discover"); command.Description = "Provides operations to call the discover method."; - var builder = new DiscoverRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.Directories.Item.Discover.DiscoverRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -190,8 +193,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(DirectoryDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 DirectoryDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/{directoryDefinition%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 DirectoryDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/{directoryDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(DirectoryDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DirectoryDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(DirectoryDefinition body, Ac /// /// Contains the collection of directories and all of their objects. /// - public class DirectoryDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class DirectoryDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs index b8d8394fcc..a5d8085740 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.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.Applications.Item.Synchronization.Jobs.Item.Schema.Directories. /// /// Provides operations to call the discover method. /// - public class DiscoverRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DiscoverRequestBuilder : BaseCliRequestBuilder { /// /// Discover the latest schema definition for provisioning to an application. @@ -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 DiscoverRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/{directoryDefinition%2Did}/discover", 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 DiscoverRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/directories/{directoryDefinition%2Did}/discover", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Applications.Item.Synchronization.Jobs.Item.Schema.FilterOperators { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FilterOperatorsGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class FilterOperatorsGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new FilterOperatorsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.FilterOperators.FilterOperatorsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FilterOperatorsGetResponse(); + return new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.FilterOperators.FilterOperatorsGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.FilterOperatorSchema.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs index df99d5dd57..225f5dd736 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.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.Applications.Item.Synchronization.Jobs.Item.Schema.FilterOperat /// /// Provides operations to call the filterOperators method. /// - public class FilterOperatorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterOperatorsRequestBuilder : BaseCliRequestBuilder { /// /// List all operators supported in the scoping filters. @@ -130,14 +133,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 FilterOperatorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/filterOperators(){?%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 FilterOperatorsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/filterOperators(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -150,11 +153,11 @@ public FilterOperatorsRequestBuilder(string rawUrl) : base("{+baseurl}/applicati /// 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); @@ -165,7 +168,8 @@ public RequestInformation ToGetRequestInformation(Action /// List all operators supported in the scoping filters. /// - public class FilterOperatorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterOperatorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class FilterOperatorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs index c0c1fefc19..fd9fa91a1b 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Applications.Item.Synchronization.Jobs.Item.Schema.Functions { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FunctionsGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class FunctionsGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new FunctionsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.Functions.FunctionsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FunctionsGetResponse(); + return new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.Functions.FunctionsGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs index 90e3dc0f3c..9a14ce4309 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/Functions/FunctionsRequestBuilder.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.Applications.Item.Synchronization.Jobs.Item.Schema.Functions /// /// Provides operations to call the functions method. /// - public class FunctionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FunctionsRequestBuilder : BaseCliRequestBuilder { /// /// List all the functions currently supported in the attributeMappingSource. @@ -130,14 +133,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 FunctionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/functions(){?%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 FunctionsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/functions(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -150,11 +153,11 @@ public FunctionsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{a /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -165,7 +168,8 @@ public RequestInformation ToGetRequestInformation(Action /// List all the functions currently supported in the attributeMappingSource. /// - public class FunctionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FunctionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class FunctionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs index 48fe7e03a6..f4a2748794 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.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.Applications.Item.Synchronization.Jobs.Item.Schema.ParseExpression { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ParseExpressionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ParseExpressionPostRequestBody : 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 ParseExpressionPostRequestBody : IAdditionalDataHolder, IParsable /// The targetAttributeDefinition property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AttributeDefinition? TargetAttributeDefinition { get; set; } + public global::ApiSdk.Models.AttributeDefinition? TargetAttributeDefinition { get; set; } #nullable restore #else - public AttributeDefinition TargetAttributeDefinition { get; set; } + public global::ApiSdk.Models.AttributeDefinition TargetAttributeDefinition { get; set; } #endif /// The testInputObject property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ExpressionInputObject? TestInputObject { get; set; } + public global::ApiSdk.Models.ExpressionInputObject? TestInputObject { get; set; } #nullable restore #else - public ExpressionInputObject TestInputObject { get; set; } + public global::ApiSdk.Models.ExpressionInputObject TestInputObject { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ParseExpressionPostRequestBody() { @@ -47,12 +49,12 @@ public ParseExpressionPostRequestBody() /// /// 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 ParseExpressionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.ParseExpression.ParseExpressionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ParseExpressionPostRequestBody(); + return new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.ParseExpression.ParseExpressionPostRequestBody(); } /// /// The deserialization information for the current model @@ -63,8 +65,8 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "expression", n => { Expression = n.GetStringValue(); } }, - { "targetAttributeDefinition", n => { TargetAttributeDefinition = n.GetObjectValue(AttributeDefinition.CreateFromDiscriminatorValue); } }, - { "testInputObject", n => { TestInputObject = n.GetObjectValue(ExpressionInputObject.CreateFromDiscriminatorValue); } }, + { "targetAttributeDefinition", n => { TargetAttributeDefinition = n.GetObjectValue(global::ApiSdk.Models.AttributeDefinition.CreateFromDiscriminatorValue); } }, + { "testInputObject", n => { TestInputObject = n.GetObjectValue(global::ApiSdk.Models.ExpressionInputObject.CreateFromDiscriminatorValue); } }, }; } /// @@ -75,9 +77,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("expression", Expression); - writer.WriteObjectValue("targetAttributeDefinition", TargetAttributeDefinition); - writer.WriteObjectValue("testInputObject", TestInputObject); + writer.WriteObjectValue("targetAttributeDefinition", TargetAttributeDefinition); + writer.WriteObjectValue("testInputObject", TestInputObject); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs index 28ac651668..34b6ec7867 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.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.Applications.Item.Synchronization.Jobs.Item.Schema.ParseExpress /// /// Provides operations to call the parseExpression method. /// - public class ParseExpressionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParseExpressionRequestBuilder : BaseCliRequestBuilder { /// /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. @@ -57,8 +60,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(ParseExpressionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.ParseExpression.ParseExpressionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ParseExpressionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/parseExpression", 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 ParseExpressionRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema/parseExpression", rawUrl) @@ -101,11 +104,11 @@ public ParseExpressionRequestBuilder(string rawUrl) : base("{+baseurl}/applicati /// 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(ParseExpressionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.ParseExpression.ParseExpressionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ParseExpressionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.ParseExpression.ParseExpressionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ParseExpressionPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs index 44b8d2e573..e1bccef7de 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Schema/SchemaRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.Directories; using ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.FilterOperators; using ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.Functions; using ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.ParseExpression; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema /// /// Provides operations to manage the schema property of the microsoft.graph.synchronizationJob entity. /// - public class SchemaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchemaRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property schema for applications @@ -74,7 +77,7 @@ public Command BuildDirectoriesNavCommand() { var command = new Command("directories"); command.Description = "Provides operations to manage the directories property of the microsoft.graph.synchronizationSchema entity."; - var builder = new DirectoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.Directories.DirectoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -101,7 +104,7 @@ public Command BuildFilterOperatorsNavCommand() { var command = new Command("filter-operators"); command.Description = "Provides operations to call the filterOperators method."; - var builder = new FilterOperatorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.FilterOperators.FilterOperatorsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -118,7 +121,7 @@ public Command BuildFunctionsNavCommand() { var command = new Command("functions"); command.Description = "Provides operations to call the functions method."; - var builder = new FunctionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.Functions.FunctionsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -193,7 +196,7 @@ public Command BuildParseExpressionNavCommand() { var command = new Command("parse-expression"); command.Description = "Provides operations to call the parseExpression method."; - var builder = new ParseExpressionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.ParseExpression.ParseExpressionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -237,8 +240,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(SynchronizationSchema.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SynchronizationSchema.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -260,14 +263,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 SchemaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema{?%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 SchemaRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/schema{?%24expand,%24select}", rawUrl) @@ -299,11 +302,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); @@ -319,11 +322,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(SynchronizationSchema body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SynchronizationSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SynchronizationSchema body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SynchronizationSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -335,7 +338,8 @@ public RequestInformation ToPatchRequestInformation(SynchronizationSchema body, /// /// The synchronization schema configured for the job. /// - public class SchemaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchemaRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -360,3 +364,4 @@ public class SchemaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs index 2880f8fb0c..a528611ea9 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/Start/StartRequestBuilder.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.Applications.Item.Synchronization.Jobs.Item.Start /// /// Provides operations to call the start method. /// - public class StartRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StartRequestBuilder : BaseCliRequestBuilder { /// /// Start an existing synchronization job. If the job is in a paused state, it continues processing changes from the point where it was paused. If the job is in quarantine, the quarantine status is cleared. Don't create scripts to call the start job continuously while it's running because that can cause the service to stop running. Use the start job only when the job is currently paused or in quarantine. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public StartRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/start", 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 StartRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/start", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Jobs.Item.BulkUpload; using ApiSdk.Applications.Item.Synchronization.Jobs.Item.Pause; using ApiSdk.Applications.Item.Synchronization.Jobs.Item.ProvisionOnDemand; @@ -8,6 +9,7 @@ using ApiSdk.Applications.Item.Synchronization.Jobs.Item.ValidateCredentials; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -26,7 +28,8 @@ namespace ApiSdk.Applications.Item.Synchronization.Jobs.Item /// /// Provides operations to manage the jobs property of the microsoft.graph.synchronization entity. /// - public class SynchronizationJobItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SynchronizationJobItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the bulkUpload property of the microsoft.graph.synchronizationJob entity. @@ -36,7 +39,7 @@ public Command BuildBulkUploadNavCommand() { var command = new Command("bulk-upload"); command.Description = "Provides operations to manage the bulkUpload property of the microsoft.graph.synchronizationJob entity."; - var builder = new BulkUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.BulkUpload.BulkUploadRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildContentNavCommand()); @@ -187,8 +190,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(SynchronizationJob.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SynchronizationJob.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -217,7 +220,7 @@ public Command BuildPauseNavCommand() { var command = new Command("pause"); command.Description = "Provides operations to call the pause method."; - var builder = new PauseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Pause.PauseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -234,7 +237,7 @@ public Command BuildProvisionOnDemandNavCommand() { var command = new Command("provision-on-demand"); command.Description = "Provides operations to call the provisionOnDemand method."; - var builder = new ProvisionOnDemandRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ProvisionOnDemand.ProvisionOnDemandRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -251,7 +254,7 @@ public Command BuildRestartNavCommand() { var command = new Command("restart"); command.Description = "Provides operations to call the restart method."; - var builder = new RestartRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Restart.RestartRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -268,7 +271,7 @@ public Command BuildSchemaNavCommand() { var command = new Command("schema"); command.Description = "Provides operations to manage the schema property of the microsoft.graph.synchronizationJob entity."; - var builder = new SchemaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Schema.SchemaRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -296,7 +299,7 @@ public Command BuildStartNavCommand() { var command = new Command("start"); command.Description = "Provides operations to call the start method."; - var builder = new StartRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.Start.StartRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -313,7 +316,7 @@ public Command BuildValidateCredentialsByIdNavCommand() { var command = new Command("validate-credentials-by-id"); command.Description = "Provides operations to call the validateCredentials method."; - var builder = new ValidateCredentialsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ValidateCredentials.ValidateCredentialsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -323,14 +326,14 @@ public Command BuildValidateCredentialsByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SynchronizationJobItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%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 SynchronizationJobItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}{?%24expand,%24select}", rawUrl) @@ -362,11 +365,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); @@ -382,11 +385,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(SynchronizationJob body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SynchronizationJob body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SynchronizationJob body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SynchronizationJob body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -398,7 +401,8 @@ public RequestInformation ToPatchRequestInformation(SynchronizationJob body, Act /// /// Performs synchronization by periodically running in the background, polling for changes in one directory, and pushing them to another directory. /// - public class SynchronizationJobItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SynchronizationJobItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -423,3 +427,4 @@ public class SynchronizationJobItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.cs index be7589840b..dcdaf96eac 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsPostRequestBody.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.Applications.Item.Synchronization.Jobs.Item.ValidateCredentials { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidateCredentialsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidateCredentialsPostRequestBody : 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,10 +26,10 @@ public class ValidateCredentialsPostRequestBody : IAdditionalDataHolder, IParsab /// The credentials property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Credentials { get; set; } + public List? Credentials { get; set; } #nullable restore #else - public List Credentials { get; set; } + public List Credentials { get; set; } #endif /// The templateId property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -40,7 +42,7 @@ public class ValidateCredentialsPostRequestBody : IAdditionalDataHolder, IParsab /// The useSavedCredentials property public bool? UseSavedCredentials { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidateCredentialsPostRequestBody() { @@ -49,12 +51,12 @@ public ValidateCredentialsPostRequestBody() /// /// 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 ValidateCredentialsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ValidateCredentials.ValidateCredentialsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidateCredentialsPostRequestBody(); + return new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ValidateCredentials.ValidateCredentialsPostRequestBody(); } /// /// The deserialization information for the current model @@ -65,7 +67,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "applicationIdentifier", n => { ApplicationIdentifier = n.GetStringValue(); } }, - { "credentials", n => { Credentials = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, + { "credentials", n => { Credentials = n.GetCollectionOfObjectValues(global::ApiSdk.Models.SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.AsList(); } }, { "templateId", n => { TemplateId = n.GetStringValue(); } }, { "useSavedCredentials", n => { UseSavedCredentials = n.GetBoolValue(); } }, }; @@ -78,10 +80,11 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("applicationIdentifier", ApplicationIdentifier); - writer.WriteCollectionOfObjectValues("credentials", Credentials); + writer.WriteCollectionOfObjectValues("credentials", Credentials); writer.WriteStringValue("templateId", TemplateId); writer.WriteBoolValue("useSavedCredentials", UseSavedCredentials); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs index abd93996b2..fab61837d1 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/Item/ValidateCredentials/ValidateCredentialsRequestBuilder.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.Applications.Item.Synchronization.Jobs.Item.ValidateCredentials /// /// Provides operations to call the validateCredentials method. /// - public class ValidateCredentialsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidateCredentialsRequestBuilder : BaseCliRequestBuilder { /// /// Validate that the credentials are valid in the tenant. @@ -48,8 +51,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(ValidateCredentialsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ValidateCredentials.ValidateCredentialsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 ValidateCredentialsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/validateCredentials", 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 ValidateCredentialsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/validateCredentials", rawUrl) @@ -90,11 +93,11 @@ public ValidateCredentialsRequestBuilder(string rawUrl) : base("{+baseurl}/appli /// 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(ValidateCredentialsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ValidateCredentials.ValidateCredentialsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidateCredentialsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.ValidateCredentials.ValidateCredentialsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(ValidateCredentialsPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs index d7d4056bfe..041be04103 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/JobsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Jobs.Count; using ApiSdk.Applications.Item.Synchronization.Jobs.Item; using ApiSdk.Applications.Item.Synchronization.Jobs.ValidateCredentials; 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.Applications.Item.Synchronization.Jobs /// /// Provides operations to manage the jobs property of the microsoft.graph.synchronization entity. /// - public class JobsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class JobsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the jobs property of the microsoft.graph.synchronization entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SynchronizationJobItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Item.SynchronizationJobItemRequestBuilder(PathParameters); commands.Add(builder.BuildBulkUploadNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -53,7 +56,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to count the resources in the collection."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -92,8 +95,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(SynchronizationJob.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SynchronizationJob.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -223,7 +226,7 @@ public Command BuildValidateCredentialsNavCommand() { var command = new Command("validate-credentials"); command.Description = "Provides operations to call the validateCredentials method."; - var builder = new ValidateCredentialsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.ValidateCredentials.ValidateCredentialsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -233,14 +236,14 @@ public Command BuildValidateCredentialsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public JobsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs{?%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 JobsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public JobsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{applic /// 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); @@ -273,11 +276,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(SynchronizationJob body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SynchronizationJob body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SynchronizationJob body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SynchronizationJob body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(SynchronizationJob body, Acti /// /// Performs synchronization by periodically running in the background, polling for changes in one directory, and pushing them to another directory. /// - public class JobsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class JobsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class JobsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.cs b/src/generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.cs index b060e55c1e..8a1b518e4e 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsPostRequestBody.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.Applications.Item.Synchronization.Jobs.ValidateCredentials { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidateCredentialsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidateCredentialsPostRequestBody : 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,10 +26,10 @@ public class ValidateCredentialsPostRequestBody : IAdditionalDataHolder, IParsab /// The credentials property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Credentials { get; set; } + public List? Credentials { get; set; } #nullable restore #else - public List Credentials { get; set; } + public List Credentials { get; set; } #endif /// The templateId property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -40,7 +42,7 @@ public class ValidateCredentialsPostRequestBody : IAdditionalDataHolder, IParsab /// The useSavedCredentials property public bool? UseSavedCredentials { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidateCredentialsPostRequestBody() { @@ -49,12 +51,12 @@ public ValidateCredentialsPostRequestBody() /// /// 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 ValidateCredentialsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.Synchronization.Jobs.ValidateCredentials.ValidateCredentialsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidateCredentialsPostRequestBody(); + return new global::ApiSdk.Applications.Item.Synchronization.Jobs.ValidateCredentials.ValidateCredentialsPostRequestBody(); } /// /// The deserialization information for the current model @@ -65,7 +67,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "applicationIdentifier", n => { ApplicationIdentifier = n.GetStringValue(); } }, - { "credentials", n => { Credentials = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, + { "credentials", n => { Credentials = n.GetCollectionOfObjectValues(global::ApiSdk.Models.SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.AsList(); } }, { "templateId", n => { TemplateId = n.GetStringValue(); } }, { "useSavedCredentials", n => { UseSavedCredentials = n.GetBoolValue(); } }, }; @@ -78,10 +80,11 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("applicationIdentifier", ApplicationIdentifier); - writer.WriteCollectionOfObjectValues("credentials", Credentials); + writer.WriteCollectionOfObjectValues("credentials", Credentials); writer.WriteStringValue("templateId", TemplateId); writer.WriteBoolValue("useSavedCredentials", UseSavedCredentials); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.cs index e93828ae33..d825c184b3 100644 --- a/src/generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Jobs/ValidateCredentials/ValidateCredentialsRequestBuilder.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.Applications.Item.Synchronization.Jobs.ValidateCredentials /// /// Provides operations to call the validateCredentials method. /// - public class ValidateCredentialsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidateCredentialsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action validateCredentials @@ -42,8 +45,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(ValidateCredentialsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.Synchronization.Jobs.ValidateCredentials.ValidateCredentialsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -62,14 +65,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 ValidateCredentialsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/validateCredentials", 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 ValidateCredentialsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/jobs/validateCredentials", rawUrl) @@ -83,11 +86,11 @@ public ValidateCredentialsRequestBuilder(string rawUrl) : base("{+baseurl}/appli /// 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(ValidateCredentialsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Jobs.ValidateCredentials.ValidateCredentialsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidateCredentialsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Jobs.ValidateCredentials.ValidateCredentialsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -98,3 +101,4 @@ public RequestInformation ToPostRequestInformation(ValidateCredentialsPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Secrets/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Secrets/Count/CountRequestBuilder.cs index 5be9eded90..66b8b5db5d 100644 --- a/src/generated/Applications/Item/Synchronization/Secrets/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Secrets/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.Applications.Item.Synchronization.Secrets.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}/applications/{application%2Did}/synchronization/secrets/$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}/applications/{application%2Did}/synchronization/secrets/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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/Applications/Item/Synchronization/Secrets/SecretsPutRequestBody.cs b/src/generated/Applications/Item/Synchronization/Secrets/SecretsPutRequestBody.cs index e72e3b7cd9..0308b623a8 100644 --- a/src/generated/Applications/Item/Synchronization/Secrets/SecretsPutRequestBody.cs +++ b/src/generated/Applications/Item/Synchronization/Secrets/SecretsPutRequestBody.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.Applications.Item.Synchronization.Secrets { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SecretsPutRequestBody : IAdditionalDataHolder, IParsable + public partial class SecretsPutRequestBody : 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. @@ -16,13 +18,13 @@ public class SecretsPutRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretsPutRequestBody() { @@ -31,12 +33,12 @@ public SecretsPutRequestBody() /// /// 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 SecretsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.Synchronization.Secrets.SecretsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretsPutRequestBody(); + return new global::ApiSdk.Applications.Item.Synchronization.Secrets.SecretsPutRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Secrets/SecretsPutResponse.cs b/src/generated/Applications/Item/Synchronization/Secrets/SecretsPutResponse.cs index 61f0a16bdb..358b2a3c0e 100644 --- a/src/generated/Applications/Item/Synchronization/Secrets/SecretsPutResponse.cs +++ b/src/generated/Applications/Item/Synchronization/Secrets/SecretsPutResponse.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.Applications.Item.Synchronization.Secrets { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SecretsPutResponse : IAdditionalDataHolder, IParsable + public partial class SecretsPutResponse : 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. @@ -16,13 +18,13 @@ public class SecretsPutResponse : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecretsPutResponse() { @@ -31,12 +33,12 @@ public SecretsPutResponse() /// /// 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 SecretsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.Synchronization.Secrets.SecretsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecretsPutResponse(); + return new global::ApiSdk.Applications.Item.Synchronization.Secrets.SecretsPutResponse(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetCollectionOfObjectValues(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.cs index 02984f6c2b..b6b3d07a50 100644 --- a/src/generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Secrets.Count; using ApiSdk.Models.ODataErrors; +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.Applications.Item.Synchronization.Secrets /// /// Builds and executes requests for operations under \applications\{application-id}\synchronization\secrets /// - public class SecretsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SecretsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -29,7 +32,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.Applications.Item.Synchronization.Secrets.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -68,8 +71,8 @@ public Command BuildPutCommand() 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(SecretsPutRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.Synchronization.Secrets.SecretsPutRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -90,14 +93,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SecretsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/secrets", 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 SecretsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/secrets", rawUrl) @@ -111,11 +114,11 @@ public SecretsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{app /// 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 ToPutRequestInformation(SecretsPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Secrets.SecretsPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(SecretsPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Secrets.SecretsPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -126,3 +129,4 @@ public RequestInformation ToPutRequestInformation(SecretsPutRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs index 26fefe0895..e38abe482b 100644 --- a/src/generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.AcquireAccessToken; using ApiSdk.Applications.Item.Synchronization.Jobs; using ApiSdk.Applications.Item.Synchronization.Secrets; using ApiSdk.Applications.Item.Synchronization.Templates; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Applications.Item.Synchronization /// /// Provides operations to manage the synchronization property of the microsoft.graph.application entity. /// - public class SynchronizationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SynchronizationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the acquireAccessToken method. @@ -33,7 +36,7 @@ public Command BuildAcquireAccessTokenNavCommand() { var command = new Command("acquire-access-token"); command.Description = "Provides operations to call the acquireAccessToken method."; - var builder = new AcquireAccessTokenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.AcquireAccessToken.AcquireAccessTokenRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -137,7 +140,7 @@ public Command BuildJobsNavCommand() { var command = new Command("jobs"); command.Description = "Provides operations to manage the jobs property of the microsoft.graph.synchronization entity."; - var builder = new JobsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Jobs.JobsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -187,8 +190,8 @@ public Command BuildPutCommand() 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.Synchronization.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Synchronization.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -216,7 +219,7 @@ public Command BuildSecretsNavCommand() { var command = new Command("secrets"); command.Description = "The secrets property"; - var builder = new SecretsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Secrets.SecretsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -239,7 +242,7 @@ public Command BuildTemplatesNavCommand() { var command = new Command("templates"); command.Description = "Provides operations to manage the templates property of the microsoft.graph.synchronization entity."; - var builder = new TemplatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Templates.TemplatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -259,14 +262,14 @@ public Command BuildTemplatesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SynchronizationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization{?%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 SynchronizationRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization{?%24expand,%24select}", rawUrl) @@ -298,11 +301,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); @@ -318,11 +321,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 ToPutRequestInformation(ApiSdk.Models.Synchronization body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.Synchronization body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ApiSdk.Models.Synchronization body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.Synchronization body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -334,7 +337,8 @@ public RequestInformation ToPutRequestInformation(ApiSdk.Models.Synchronization /// /// Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API. /// - public class SynchronizationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SynchronizationRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -359,3 +363,4 @@ public class SynchronizationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Templates/Count/CountRequestBuilder.cs index b53d4506c6..59ee421021 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/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.Applications.Item.Synchronization.Templates.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}/applications/{application%2Did}/synchronization/templates/$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}/applications/{application%2Did}/synchronization/templates/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.cs index 17572f2c21..14c2329ea3 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/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.Applications.Item.Synchronization.Templates.Item.Schema.Directo /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/$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}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs index a8b8f8acfc..7a41864bce 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/DirectoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.Directories.Count; using ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.Directories.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.Applications.Item.Synchronization.Templates.Item.Schema.Directo /// /// Provides operations to manage the directories property of the microsoft.graph.synchronizationSchema entity. /// - public class DirectoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the directories property of the microsoft.graph.synchronizationSchema entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.Directories.Item.DirectoryDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDiscoverNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Applications.Item.Synchronization.Templates.Item.Schema.Directories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(DirectoryDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 DirectoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories{?%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 DirectoriesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public DirectoriesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/ /// 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); @@ -261,11 +264,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(DirectoryDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DirectoryDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(DirectoryDefinition body, Act /// /// Contains the collection of directories and all of their objects. /// - public class DirectoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class DirectoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs index 0b18abe285..17cf287be2 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/DirectoryDefinitionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.Directories.Item.Discover; 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.Applications.Item.Synchronization.Templates.Item.Schema.Directo /// /// Provides operations to manage the directories property of the microsoft.graph.synchronizationSchema entity. /// - public class DirectoryDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property directories for applications @@ -77,7 +80,7 @@ public Command BuildDiscoverNavCommand() { var command = new Command("discover"); command.Description = "Provides operations to call the discover method."; - var builder = new DiscoverRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.Directories.Item.Discover.DiscoverRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -190,8 +193,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(DirectoryDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 DirectoryDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/{directoryDefinition%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 DirectoryDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/{directoryDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(DirectoryDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DirectoryDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(DirectoryDefinition body, Ac /// /// Contains the collection of directories and all of their objects. /// - public class DirectoryDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class DirectoryDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs index 33c7e7f4d6..530e34f455 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Directories/Item/Discover/DiscoverRequestBuilder.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.Applications.Item.Synchronization.Templates.Item.Schema.Directo /// /// Provides operations to call the discover method. /// - public class DiscoverRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DiscoverRequestBuilder : BaseCliRequestBuilder { /// /// Discover the latest schema definition for provisioning to an application. @@ -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 DiscoverRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/{directoryDefinition%2Did}/discover", 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 DiscoverRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/directories/{directoryDefinition%2Did}/discover", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Applications.Item.Synchronization.Templates.Item.Schema.FilterOperators { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FilterOperatorsGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class FilterOperatorsGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new FilterOperatorsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.FilterOperators.FilterOperatorsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FilterOperatorsGetResponse(); + return new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.FilterOperators.FilterOperatorsGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(FilterOperatorSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.FilterOperatorSchema.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs index 891165f7c1..91ae5b85b1 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/FilterOperators/FilterOperatorsRequestBuilder.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.Applications.Item.Synchronization.Templates.Item.Schema.FilterO /// /// Provides operations to call the filterOperators method. /// - public class FilterOperatorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterOperatorsRequestBuilder : BaseCliRequestBuilder { /// /// List all operators supported in the scoping filters. @@ -130,14 +133,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 FilterOperatorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/filterOperators(){?%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 FilterOperatorsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/filterOperators(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -150,11 +153,11 @@ public FilterOperatorsRequestBuilder(string rawUrl) : base("{+baseurl}/applicati /// 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); @@ -165,7 +168,8 @@ public RequestInformation ToGetRequestInformation(Action /// List all operators supported in the scoping filters. /// - public class FilterOperatorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterOperatorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class FilterOperatorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs index 1b0b11e3f3..0cd78ea2db 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Applications.Item.Synchronization.Templates.Item.Schema.Functions { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FunctionsGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class FunctionsGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new FunctionsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.Functions.FunctionsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FunctionsGetResponse(); + return new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.Functions.FunctionsGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.AttributeMappingFunctionSchema.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs index 503687a257..4090e44ae4 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/Functions/FunctionsRequestBuilder.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.Applications.Item.Synchronization.Templates.Item.Schema.Functio /// /// Provides operations to call the functions method. /// - public class FunctionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FunctionsRequestBuilder : BaseCliRequestBuilder { /// /// List all the functions currently supported in the attributeMappingSource. @@ -130,14 +133,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 FunctionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/functions(){?%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 FunctionsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/functions(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -150,11 +153,11 @@ public FunctionsRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{a /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -165,7 +168,8 @@ public RequestInformation ToGetRequestInformation(Action /// List all the functions currently supported in the attributeMappingSource. /// - public class FunctionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FunctionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class FunctionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs index acc43ef59b..3070f8b301 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionPostRequestBody.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.Applications.Item.Synchronization.Templates.Item.Schema.ParseExpression { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ParseExpressionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ParseExpressionPostRequestBody : 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 ParseExpressionPostRequestBody : IAdditionalDataHolder, IParsable /// The targetAttributeDefinition property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AttributeDefinition? TargetAttributeDefinition { get; set; } + public global::ApiSdk.Models.AttributeDefinition? TargetAttributeDefinition { get; set; } #nullable restore #else - public AttributeDefinition TargetAttributeDefinition { get; set; } + public global::ApiSdk.Models.AttributeDefinition TargetAttributeDefinition { get; set; } #endif /// The testInputObject property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ExpressionInputObject? TestInputObject { get; set; } + public global::ApiSdk.Models.ExpressionInputObject? TestInputObject { get; set; } #nullable restore #else - public ExpressionInputObject TestInputObject { get; set; } + public global::ApiSdk.Models.ExpressionInputObject TestInputObject { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ParseExpressionPostRequestBody() { @@ -47,12 +49,12 @@ public ParseExpressionPostRequestBody() /// /// 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 ParseExpressionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.ParseExpression.ParseExpressionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ParseExpressionPostRequestBody(); + return new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.ParseExpression.ParseExpressionPostRequestBody(); } /// /// The deserialization information for the current model @@ -63,8 +65,8 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "expression", n => { Expression = n.GetStringValue(); } }, - { "targetAttributeDefinition", n => { TargetAttributeDefinition = n.GetObjectValue(AttributeDefinition.CreateFromDiscriminatorValue); } }, - { "testInputObject", n => { TestInputObject = n.GetObjectValue(ExpressionInputObject.CreateFromDiscriminatorValue); } }, + { "targetAttributeDefinition", n => { TargetAttributeDefinition = n.GetObjectValue(global::ApiSdk.Models.AttributeDefinition.CreateFromDiscriminatorValue); } }, + { "testInputObject", n => { TestInputObject = n.GetObjectValue(global::ApiSdk.Models.ExpressionInputObject.CreateFromDiscriminatorValue); } }, }; } /// @@ -75,9 +77,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("expression", Expression); - writer.WriteObjectValue("targetAttributeDefinition", TargetAttributeDefinition); - writer.WriteObjectValue("testInputObject", TestInputObject); + writer.WriteObjectValue("targetAttributeDefinition", TargetAttributeDefinition); + writer.WriteObjectValue("testInputObject", TestInputObject); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs index cf31ba54c5..65faecc5fd 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/ParseExpression/ParseExpressionRequestBuilder.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.Applications.Item.Synchronization.Templates.Item.Schema.ParseEx /// /// Provides operations to call the parseExpression method. /// - public class ParseExpressionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParseExpressionRequestBuilder : BaseCliRequestBuilder { /// /// Parse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID. @@ -57,8 +60,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(ParseExpressionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.ParseExpression.ParseExpressionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ParseExpressionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/parseExpression", 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 ParseExpressionRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema/parseExpression", rawUrl) @@ -101,11 +104,11 @@ public ParseExpressionRequestBuilder(string rawUrl) : base("{+baseurl}/applicati /// 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(ParseExpressionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.ParseExpression.ParseExpressionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ParseExpressionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.ParseExpression.ParseExpressionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ParseExpressionPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs index d46e5ce4d5..f994d46a68 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/Item/Schema/SchemaRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.Directories; using ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.FilterOperators; using ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.Functions; using ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.ParseExpression; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema /// /// Provides operations to manage the schema property of the microsoft.graph.synchronizationTemplate entity. /// - public class SchemaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchemaRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property schema for applications @@ -74,7 +77,7 @@ public Command BuildDirectoriesNavCommand() { var command = new Command("directories"); command.Description = "Provides operations to manage the directories property of the microsoft.graph.synchronizationSchema entity."; - var builder = new DirectoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.Directories.DirectoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -101,7 +104,7 @@ public Command BuildFilterOperatorsNavCommand() { var command = new Command("filter-operators"); command.Description = "Provides operations to call the filterOperators method."; - var builder = new FilterOperatorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.FilterOperators.FilterOperatorsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -118,7 +121,7 @@ public Command BuildFunctionsNavCommand() { var command = new Command("functions"); command.Description = "Provides operations to call the functions method."; - var builder = new FunctionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.Functions.FunctionsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -193,7 +196,7 @@ public Command BuildParseExpressionNavCommand() { var command = new Command("parse-expression"); command.Description = "Provides operations to call the parseExpression method."; - var builder = new ParseExpressionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.ParseExpression.ParseExpressionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -237,8 +240,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(SynchronizationSchema.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SynchronizationSchema.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -260,14 +263,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 SchemaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema{?%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 SchemaRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}/schema{?%24expand,%24select}", rawUrl) @@ -299,11 +302,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); @@ -319,11 +322,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(SynchronizationSchema body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SynchronizationSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SynchronizationSchema body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SynchronizationSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -335,7 +338,8 @@ public RequestInformation ToPatchRequestInformation(SynchronizationSchema body, /// /// Default synchronization schema for the jobs based on this template. /// - public class SchemaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchemaRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -360,3 +364,4 @@ public class SchemaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs index 5c69d852d7..88b81aa142 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/Item/SynchronizationTemplateItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema; 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.Applications.Item.Synchronization.Templates.Item /// /// Provides operations to manage the templates property of the microsoft.graph.synchronization entity. /// - public class SynchronizationTemplateItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SynchronizationTemplateItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property templates for applications @@ -157,8 +160,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(SynchronizationTemplate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SynchronizationTemplate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -187,7 +190,7 @@ public Command BuildSchemaNavCommand() { var command = new Command("schema"); command.Description = "Provides operations to manage the schema property of the microsoft.graph.synchronizationTemplate entity."; - var builder = new SchemaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.Schema.SchemaRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -208,14 +211,14 @@ public Command BuildSchemaNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SynchronizationTemplateItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%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 SynchronizationTemplateItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates/{synchronizationTemplate%2Did}{?%24expand,%24select}", rawUrl) @@ -247,11 +250,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); @@ -267,11 +270,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(SynchronizationTemplate body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SynchronizationTemplate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SynchronizationTemplate body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SynchronizationTemplate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -283,7 +286,8 @@ public RequestInformation ToPatchRequestInformation(SynchronizationTemplate body /// /// Preconfigured synchronization settings for a particular application. /// - public class SynchronizationTemplateItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SynchronizationTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -308,3 +312,4 @@ public class SynchronizationTemplateItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs b/src/generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs index b54d4614a7..4c78ce657c 100644 --- a/src/generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs +++ b/src/generated/Applications/Item/Synchronization/Templates/TemplatesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.Synchronization.Templates.Count; using ApiSdk.Applications.Item.Synchronization.Templates.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.Applications.Item.Synchronization.Templates /// /// Provides operations to manage the templates property of the microsoft.graph.synchronization entity. /// - public class TemplatesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TemplatesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the templates property of the microsoft.graph.synchronization entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SynchronizationTemplateItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.Synchronization.Templates.Item.SynchronizationTemplateItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Applications.Item.Synchronization.Templates.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(SynchronizationTemplate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SynchronizationTemplate.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 TemplatesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates{?%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 TemplatesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/synchronization/templates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public TemplatesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{a /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -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(SynchronizationTemplate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SynchronizationTemplate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SynchronizationTemplate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SynchronizationTemplate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(SynchronizationTemplate body, /// /// Preconfigured synchronization settings for a particular application. /// - public class TemplatesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TemplatesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class TemplatesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/TokenIssuancePolicies/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/TokenIssuancePolicies/Count/CountRequestBuilder.cs index d38ac5f02e..2097fef55f 100644 --- a/src/generated/Applications/Item/TokenIssuancePolicies/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/TokenIssuancePolicies/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.Applications.Item.TokenIssuancePolicies.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}/applications/{application%2Did}/tokenIssuancePolicies/$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}/applications/{application%2Did}/tokenIssuancePolicies/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs b/src/generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs index 0e7b700d30..6ce004e277 100644 --- a/src/generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.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.Applications.Item.TokenIssuancePolicies.Item.Ref /// /// Provides operations to manage the collection of application entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a tokenIssuancePolicy from an application. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Applications.Item.TokenIssuancePolicies.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Applications.Item.TokenIssuancePolicies.Item /// /// Builds and executes requests for operations under \applications\{application-id}\tokenIssuancePolicies\{tokenIssuancePolicy-id} /// - public class TokenIssuancePolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TokenIssuancePolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of application entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of application entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.TokenIssuancePolicies.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TokenIssuancePolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}", 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 TokenIssuancePolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}", rawUrl) @@ -50,3 +53,4 @@ public TokenIssuancePolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/a } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs b/src/generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs index fc4c7a316d..f325ebec48 100644 --- a/src/generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs +++ b/src/generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.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.Applications.Item.TokenIssuancePolicies.Ref /// /// Provides operations to manage the collection of application entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a tokenIssuancePolicy from an application. @@ -175,8 +178,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{applica /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref?@id={%40id}", PathParameters); @@ -234,11 +237,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, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -254,11 +257,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -270,7 +273,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove a tokenIssuancePolicy from an application. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -286,7 +290,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// List the tokenIssuancePolicy objects that are assigned to an application. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +335,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs b/src/generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs index 130fcf741b..6bd8d1ffe7 100644 --- a/src/generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs +++ b/src/generated/Applications/Item/TokenIssuancePolicies/TokenIssuancePoliciesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.TokenIssuancePolicies.Count; using ApiSdk.Applications.Item.TokenIssuancePolicies.Item; using ApiSdk.Applications.Item.TokenIssuancePolicies.Ref; 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.Applications.Item.TokenIssuancePolicies /// /// Provides operations to manage the tokenIssuancePolicies property of the microsoft.graph.application entity. /// - public class TokenIssuancePoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TokenIssuancePoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.applications.item.tokenIssuancePolicies.item collection @@ -31,7 +34,7 @@ public class TokenIssuancePoliciesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new TokenIssuancePolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.TokenIssuancePolicies.Item.TokenIssuancePolicyItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -43,7 +46,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.Applications.Item.TokenIssuancePolicies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -163,7 +166,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of application entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.TokenIssuancePolicies.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -175,14 +178,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TokenIssuancePoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies{?%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 TokenIssuancePoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -195,11 +198,11 @@ public TokenIssuancePoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/app /// 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); @@ -210,7 +213,8 @@ public RequestInformation ToGetRequestInformation(Action /// List the tokenIssuancePolicy objects that are assigned to an application. /// - public class TokenIssuancePoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TokenIssuancePoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -274,3 +278,4 @@ public class TokenIssuancePoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/TokenLifetimePolicies/Count/CountRequestBuilder.cs b/src/generated/Applications/Item/TokenLifetimePolicies/Count/CountRequestBuilder.cs index 5248a273f7..9d3f63b7b9 100644 --- a/src/generated/Applications/Item/TokenLifetimePolicies/Count/CountRequestBuilder.cs +++ b/src/generated/Applications/Item/TokenLifetimePolicies/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.Applications.Item.TokenLifetimePolicies.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}/applications/{application%2Did}/tokenLifetimePolicies/$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}/applications/{application%2Did}/tokenLifetimePolicies/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{appli /// 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/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs b/src/generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs index b75633d872..9beba1b73e 100644 --- a/src/generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.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.Applications.Item.TokenLifetimePolicies.Item.Ref /// /// Provides operations to manage the collection of application entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a tokenLifetimePolicy from an application. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Applications.Item.TokenLifetimePolicies.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Applications.Item.TokenLifetimePolicies.Item /// /// Builds and executes requests for operations under \applications\{application-id}\tokenLifetimePolicies\{tokenLifetimePolicy-id} /// - public class TokenLifetimePolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TokenLifetimePolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of application entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of application entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.TokenLifetimePolicies.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TokenLifetimePolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}", 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 TokenLifetimePolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}", rawUrl) @@ -50,3 +53,4 @@ public TokenLifetimePolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/a } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs b/src/generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs index fbfd0a9427..66bf2c8452 100644 --- a/src/generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs +++ b/src/generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.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.Applications.Item.TokenLifetimePolicies.Ref /// /// Provides operations to manage the collection of application entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a tokenLifetimePolicy from an application. @@ -175,8 +178,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{applica /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref?@id={%40id}", PathParameters); @@ -234,11 +237,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, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -254,11 +257,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -270,7 +273,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove a tokenLifetimePolicy from an application. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -286,7 +290,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +335,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs b/src/generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs index caf4fd7dc0..3ed9370c7f 100644 --- a/src/generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs +++ b/src/generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Applications.Item.TokenLifetimePolicies.Count; using ApiSdk.Applications.Item.TokenLifetimePolicies.Item; using ApiSdk.Applications.Item.TokenLifetimePolicies.Ref; 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.Applications.Item.TokenLifetimePolicies /// /// Provides operations to manage the tokenLifetimePolicies property of the microsoft.graph.application entity. /// - public class TokenLifetimePoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TokenLifetimePoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.applications.item.tokenLifetimePolicies.item collection @@ -31,7 +34,7 @@ public class TokenLifetimePoliciesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new TokenLifetimePolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.TokenLifetimePolicies.Item.TokenLifetimePolicyItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -43,7 +46,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.Applications.Item.TokenLifetimePolicies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -163,7 +166,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of application entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.Item.TokenLifetimePolicies.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -175,14 +178,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TokenLifetimePoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies{?%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 TokenLifetimePoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -195,11 +198,11 @@ public TokenLifetimePoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/app /// 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); @@ -210,7 +213,8 @@ public RequestInformation ToGetRequestInformation(Action /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. /// - public class TokenLifetimePoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TokenLifetimePoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -274,3 +278,4 @@ public class TokenLifetimePoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.cs b/src/generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.cs index 61e115643b..bdd39fa451 100644 --- a/src/generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.cs +++ b/src/generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.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.Applications.Item.UnsetVerifiedPublisher /// /// Provides operations to call the unsetVerifiedPublisher method. /// - public class UnsetVerifiedPublisherRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnsetVerifiedPublisherRequestBuilder : BaseCliRequestBuilder { /// /// Unset the verifiedPublisher previously set on an application, removing all verified publisher properties. For more information, see Publisher verification. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UnsetVerifiedPublisherRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/{application%2Did}/unsetVerifiedPublisher", 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 UnsetVerifiedPublisherRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/unsetVerifiedPublisher", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Applications.ValidateProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidatePropertiesPostRequestBody : 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. @@ -39,7 +41,7 @@ public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsabl /// The onBehalfOfUserId property public Guid? OnBehalfOfUserId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidatePropertiesPostRequestBody() { @@ -48,12 +50,12 @@ public ValidatePropertiesPostRequestBody() /// /// 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 ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Applications.ValidateProperties.ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidatePropertiesPostRequestBody(); + return new global::ApiSdk.Applications.ValidateProperties.ValidatePropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -84,3 +86,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 3f27eeb9bd..78b53b7bb8 100644 --- a/src/generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/generated/Applications/ValidateProperties/ValidatePropertiesRequestBuilder.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.Applications.ValidateProperties /// /// Provides operations to call the validateProperties method. /// - public class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. @@ -38,8 +41,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(ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Applications.ValidateProperties.ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -57,14 +60,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 ValidatePropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications/validateProperties", 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 ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/applications/validateProperties", rawUrl) @@ -78,11 +81,11 @@ public ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/applic /// 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(ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.ValidateProperties.ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Applications.ValidateProperties.ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -93,3 +96,4 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs b/src/generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs index 434324d8f0..5971e6af46 100644 --- a/src/generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs +++ b/src/generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.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.ApplicationsWithAppId /// /// Provides operations to manage the collection of application entities. /// - public class ApplicationsWithAppIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationsWithAppIdRequestBuilder : BaseCliRequestBuilder { /// /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. @@ -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(ApiSdk.Models.Application.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Application.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 ApplicationsWithAppIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications(appId='{appId}'){?%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 ApplicationsWithAppIdRequestBuilder(string rawUrl) : base("{+baseurl}/applications(appId='{appId}'){?%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(ApiSdk.Models.Application body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Application body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Application body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Application body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Application bo /// /// Get the properties and relationships of an application object. /// - public class ApplicationsWithAppIdRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationsWithAppIdRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class ApplicationsWithAppIdRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.cs b/src/generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.cs index 90db179eb9..5ff396b806 100644 --- a/src/generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.cs +++ b/src/generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.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.ApplicationsWithUniqueName /// /// Provides operations to manage the collection of application entities. /// - public class ApplicationsWithUniqueNameRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationsWithUniqueNameRequestBuilder : BaseCliRequestBuilder { /// /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. @@ -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(ApiSdk.Models.Application.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Application.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 ApplicationsWithUniqueNameRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/applications(uniqueName='{uniqueName}'){?%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 ApplicationsWithUniqueNameRequestBuilder(string rawUrl) : base("{+baseurl}/applications(uniqueName='{uniqueName}'){?%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(ApiSdk.Models.Application body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Application body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Application body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Application body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Application bo /// /// Get the properties and relationships of an application object. /// - public class ApplicationsWithUniqueNameRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationsWithUniqueNameRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class ApplicationsWithUniqueNameRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuditLogs/AuditLogsRequestBuilder.cs b/src/generated/AuditLogs/AuditLogsRequestBuilder.cs index 3298d258d4..8bc65cc278 100644 --- a/src/generated/AuditLogs/AuditLogsRequestBuilder.cs +++ b/src/generated/AuditLogs/AuditLogsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.AuditLogs.DirectoryAudits; using ApiSdk.AuditLogs.Provisioning; using ApiSdk.AuditLogs.SignIns; 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.AuditLogs /// /// Provides operations to manage the auditLogRoot singleton. /// - public class AuditLogsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuditLogsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the directoryAudits property of the microsoft.graph.auditLogRoot entity. @@ -32,7 +35,7 @@ public Command BuildDirectoryAuditsNavCommand() { var command = new Command("directory-audits"); command.Description = "Provides operations to manage the directoryAudits property of the microsoft.graph.auditLogRoot entity."; - var builder = new DirectoryAuditsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuditLogs.DirectoryAudits.DirectoryAuditsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -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(AuditLogRoot.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AuditLogRoot.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -150,7 +153,7 @@ public Command BuildProvisioningNavCommand() { var command = new Command("provisioning"); command.Description = "Provides operations to manage the provisioning property of the microsoft.graph.auditLogRoot entity."; - var builder = new ProvisioningRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuditLogs.Provisioning.ProvisioningRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -177,7 +180,7 @@ public Command BuildSignInsNavCommand() { var command = new Command("sign-ins"); command.Description = "Provides operations to manage the signIns property of the microsoft.graph.auditLogRoot entity."; - var builder = new SignInsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuditLogs.SignIns.SignInsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -197,14 +200,14 @@ public Command BuildSignInsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AuditLogsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/auditLogs{?%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 AuditLogsRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public AuditLogsRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs{?%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); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(AuditLogRoot body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AuditLogRoot body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AuditLogRoot body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AuditLogRoot body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(AuditLogRoot body, Action /// Get auditLogs /// - public class AuditLogsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuditLogsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class AuditLogsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuditLogs/DirectoryAudits/Count/CountRequestBuilder.cs b/src/generated/AuditLogs/DirectoryAudits/Count/CountRequestBuilder.cs index e49e202e78..d2322e6307 100644 --- a/src/generated/AuditLogs/DirectoryAudits/Count/CountRequestBuilder.cs +++ b/src/generated/AuditLogs/DirectoryAudits/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.AuditLogs.DirectoryAudits.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}/auditLogs/directoryAudits/$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}/auditLogs/directoryAudits/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs/directory /// 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/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs b/src/generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs index e11526bfca..8676cbf943 100644 --- a/src/generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs +++ b/src/generated/AuditLogs/DirectoryAudits/DirectoryAuditsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.AuditLogs.DirectoryAudits.Count; using ApiSdk.AuditLogs.DirectoryAudits.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.AuditLogs.DirectoryAudits /// /// Provides operations to manage the directoryAudits property of the microsoft.graph.auditLogRoot entity. /// - public class DirectoryAuditsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryAuditsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the directoryAudits property of the microsoft.graph.auditLogRoot entity. @@ -30,7 +33,7 @@ public class DirectoryAuditsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DirectoryAuditItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuditLogs.DirectoryAudits.Item.DirectoryAuditItemRequestBuilder(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.AuditLogs.DirectoryAudits.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DirectoryAudit.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryAudit.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,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 DirectoryAuditsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/auditLogs/directoryAudits{?%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 DirectoryAuditsRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs/directoryAudits{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -216,11 +219,11 @@ public DirectoryAuditsRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs /// 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); @@ -236,11 +239,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(DirectoryAudit body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryAudit body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DirectoryAudit body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryAudit body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -252,7 +255,8 @@ public RequestInformation ToPostRequestInformation(DirectoryAudit body, Action /// Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on. /// - public class DirectoryAuditsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryAuditsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -316,3 +320,4 @@ public class DirectoryAuditsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs b/src/generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs index dde29e6f61..9e9a31fcc2 100644 --- a/src/generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.cs +++ b/src/generated/AuditLogs/DirectoryAudits/Item/DirectoryAuditItemRequestBuilder.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.AuditLogs.DirectoryAudits.Item /// /// Provides operations to manage the directoryAudits property of the microsoft.graph.auditLogRoot entity. /// - public class DirectoryAuditItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryAuditItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property directoryAudits for auditLogs @@ -139,8 +142,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(DirectoryAudit.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryAudit.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 DirectoryAuditItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/auditLogs/directoryAudits/{directoryAudit%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 DirectoryAuditItemRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs/directoryAudits/{directoryAudit%2Did}{?%24expand,%24select}", rawUrl) @@ -200,11 +203,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); @@ -220,11 +223,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(DirectoryAudit body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryAudit body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DirectoryAudit body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryAudit body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -236,7 +239,8 @@ public RequestInformation ToPatchRequestInformation(DirectoryAudit body, Action< /// /// Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on. /// - public class DirectoryAuditItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryAuditItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -261,3 +265,4 @@ public class DirectoryAuditItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuditLogs/Provisioning/Count/CountRequestBuilder.cs b/src/generated/AuditLogs/Provisioning/Count/CountRequestBuilder.cs index bd6c07b6b1..9b68e0622b 100644 --- a/src/generated/AuditLogs/Provisioning/Count/CountRequestBuilder.cs +++ b/src/generated/AuditLogs/Provisioning/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.AuditLogs.Provisioning.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}/auditLogs/provisioning/$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}/auditLogs/provisioning/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs/provision /// 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/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.cs b/src/generated/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.cs index f3f128e75c..33a3ac37a6 100644 --- a/src/generated/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.cs +++ b/src/generated/AuditLogs/Provisioning/Item/ProvisioningObjectSummaryItemRequestBuilder.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.AuditLogs.Provisioning.Item /// /// Provides operations to manage the provisioning property of the microsoft.graph.auditLogRoot entity. /// - public class ProvisioningObjectSummaryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProvisioningObjectSummaryItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property provisioning for auditLogs @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ProvisioningObjectSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ProvisioningObjectSummary.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ProvisioningObjectSummaryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/auditLogs/provisioning/{provisioningObjectSummary%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 ProvisioningObjectSummaryItemRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs/provisioning/{provisioningObjectSummary%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ProvisioningObjectSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ProvisioningObjectSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ProvisioningObjectSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ProvisioningObjectSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ProvisioningObjectSummary bo /// /// Get provisioning from auditLogs /// - public class ProvisioningObjectSummaryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProvisioningObjectSummaryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class ProvisioningObjectSummaryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs b/src/generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs index 9c051c706a..ff1812184a 100644 --- a/src/generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs +++ b/src/generated/AuditLogs/Provisioning/ProvisioningRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.AuditLogs.Provisioning.Count; using ApiSdk.AuditLogs.Provisioning.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.AuditLogs.Provisioning /// /// Provides operations to manage the provisioning property of the microsoft.graph.auditLogRoot entity. /// - public class ProvisioningRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProvisioningRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the provisioning property of the microsoft.graph.auditLogRoot entity. @@ -30,7 +33,7 @@ public class ProvisioningRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ProvisioningObjectSummaryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuditLogs.Provisioning.Item.ProvisioningObjectSummaryItemRequestBuilder(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.AuditLogs.Provisioning.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ProvisioningObjectSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ProvisioningObjectSummary.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,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 ProvisioningRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/auditLogs/provisioning{?%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 ProvisioningRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs/provisioning{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -216,11 +219,11 @@ public ProvisioningRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs/pr /// 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); @@ -236,11 +239,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(ProvisioningObjectSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ProvisioningObjectSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProvisioningObjectSummary body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ProvisioningObjectSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -252,7 +255,8 @@ public RequestInformation ToPostRequestInformation(ProvisioningObjectSummary bod /// /// Get all provisioning events that occurred in your tenant, such as the deletion of a group in a target application or the creation of a user when provisioning user accounts from your HR system. /// - public class ProvisioningRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProvisioningRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -316,3 +320,4 @@ public class ProvisioningRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuditLogs/SignIns/Count/CountRequestBuilder.cs b/src/generated/AuditLogs/SignIns/Count/CountRequestBuilder.cs index b7c0a81c0c..d9c6b85938 100644 --- a/src/generated/AuditLogs/SignIns/Count/CountRequestBuilder.cs +++ b/src/generated/AuditLogs/SignIns/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.AuditLogs.SignIns.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}/auditLogs/signIns/$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}/auditLogs/signIns/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs/signIns/$ /// 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/AuditLogs/SignIns/Item/SignInItemRequestBuilder.cs b/src/generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.cs index e51439ca3c..1706b5e50b 100644 --- a/src/generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.cs +++ b/src/generated/AuditLogs/SignIns/Item/SignInItemRequestBuilder.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.AuditLogs.SignIns.Item /// /// Provides operations to manage the signIns property of the microsoft.graph.auditLogRoot entity. /// - public class SignInItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SignInItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property signIns for auditLogs @@ -139,8 +142,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(SignIn.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SignIn.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 SignInItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/auditLogs/signIns/{signIn%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 SignInItemRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs/signIns/{signIn%2Did}{?%24expand,%24select}", rawUrl) @@ -200,11 +203,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); @@ -220,11 +223,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(SignIn body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SignIn body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SignIn body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SignIn body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -236,7 +239,8 @@ public RequestInformation ToPatchRequestInformation(SignIn body, Action /// Retrieve a specific Microsoft Entra user sign-in event for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. /// - public class SignInItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SignInItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -261,3 +265,4 @@ public class SignInItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuditLogs/SignIns/SignInsRequestBuilder.cs b/src/generated/AuditLogs/SignIns/SignInsRequestBuilder.cs index 5273d48f3f..4b07fb2204 100644 --- a/src/generated/AuditLogs/SignIns/SignInsRequestBuilder.cs +++ b/src/generated/AuditLogs/SignIns/SignInsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.AuditLogs.SignIns.Count; using ApiSdk.AuditLogs.SignIns.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.AuditLogs.SignIns /// /// Provides operations to manage the signIns property of the microsoft.graph.auditLogRoot entity. /// - public class SignInsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SignInsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the signIns property of the microsoft.graph.auditLogRoot entity. @@ -30,7 +33,7 @@ public class SignInsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new SignInItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuditLogs.SignIns.Item.SignInItemRequestBuilder(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.AuditLogs.SignIns.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(SignIn.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SignIn.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,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 SignInsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/auditLogs/signIns{?%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 SignInsRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs/signIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -216,11 +219,11 @@ public SignInsRequestBuilder(string rawUrl) : base("{+baseurl}/auditLogs/signIns /// 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); @@ -236,11 +239,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(SignIn body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SignIn body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SignIn body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SignIn body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -252,7 +255,8 @@ public RequestInformation ToPostRequestInformation(SignIn body, Action /// Retrieve the Microsoft Entra user sign-ins for your tenant. Sign-ins that are interactive in nature (where a username/password is passed as part of auth token) and successful federated sign-ins are currently included in the sign-in logs. The maximum and default page size is 1,000 objects and by default, the most recent sign-ins are returned first. Only sign-in events that occurred within the Microsoft Entra ID default retention period are available. /// - public class SignInsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SignInsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -316,3 +320,4 @@ public class SignInsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs b/src/generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs index 7c69cf0657..f583cb5c9d 100644 --- a/src/generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs +++ b/src/generated/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.AuthenticationMethodConfigurations.Count; using ApiSdk.AuthenticationMethodConfigurations.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.AuthenticationMethodConfigurations /// /// Provides operations to manage the collection of authenticationMethodConfiguration entities. /// - public class AuthenticationMethodConfigurationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuthenticationMethodConfigurationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of authenticationMethodConfiguration entities. @@ -30,7 +33,7 @@ public class AuthenticationMethodConfigurationsRequestBuilder : BaseCliRequestBu public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AuthenticationMethodConfigurationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuthenticationMethodConfigurations.Item.AuthenticationMethodConfigurationItemRequestBuilder(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.AuthenticationMethodConfigurations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AuthenticationMethodConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AuthenticationMethodConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 AuthenticationMethodConfigurationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/authenticationMethodConfigurations{?%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 AuthenticationMethodConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/authenticationMethodConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public AuthenticationMethodConfigurationsRequestBuilder(string rawUrl) : base("{ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(AuthenticationMethodConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AuthenticationMethodConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AuthenticationMethodConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AuthenticationMethodConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(AuthenticationMethodConfigura /// /// Get entities from authenticationMethodConfigurations /// - public class AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs b/src/generated/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs index b52f769606..fe74c67b61 100644 --- a/src/generated/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs +++ b/src/generated/AuthenticationMethodConfigurations/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.AuthenticationMethodConfigurations.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}/authenticationMethodConfigurations/$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}/authenticationMethodConfigurations/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/authenticationMetho /// 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/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs b/src/generated/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs index 96490cecc0..e23002a65c 100644 --- a/src/generated/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs +++ b/src/generated/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.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.AuthenticationMethodConfigurations.Item /// /// Provides operations to manage the collection of authenticationMethodConfiguration entities. /// - public class AuthenticationMethodConfigurationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuthenticationMethodConfigurationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete entity from authenticationMethodConfigurations @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AuthenticationMethodConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AuthenticationMethodConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AuthenticationMethodConfigurationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/authenticationMethodConfigurations/{authenticationMethodConfiguration%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 AuthenticationMethodConfigurationItemRequestBuilder(string rawUrl) : base("{+baseurl}/authenticationMethodConfigurations/{authenticationMethodConfiguration%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(AuthenticationMethodConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AuthenticationMethodConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AuthenticationMethodConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AuthenticationMethodConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(AuthenticationMethodConfigur /// /// Get entity from authenticationMethodConfigurations by key /// - public class AuthenticationMethodConfigurationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuthenticationMethodConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class AuthenticationMethodConfigurationItemRequestBuilderGetQueryParamete } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs b/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs index f834a3a6f6..25509040a1 100644 --- a/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs +++ b/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.AuthenticationMethodsPolicy.AuthenticationMethodConfigurations.Count; using ApiSdk.AuthenticationMethodsPolicy.AuthenticationMethodConfigurations.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.AuthenticationMethodsPolicy.AuthenticationMethodConfigurations /// /// Provides operations to manage the authenticationMethodConfigurations property of the microsoft.graph.authenticationMethodsPolicy entity. /// - public class AuthenticationMethodConfigurationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuthenticationMethodConfigurationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the authenticationMethodConfigurations property of the microsoft.graph.authenticationMethodsPolicy entity. @@ -30,7 +33,7 @@ public class AuthenticationMethodConfigurationsRequestBuilder : BaseCliRequestBu public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AuthenticationMethodConfigurationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuthenticationMethodsPolicy.AuthenticationMethodConfigurations.Item.AuthenticationMethodConfigurationItemRequestBuilder(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.AuthenticationMethodsPolicy.AuthenticationMethodConfigurations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AuthenticationMethodConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AuthenticationMethodConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 AuthenticationMethodConfigurationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/authenticationMethodsPolicy/authenticationMethodConfigurations{?%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 AuthenticationMethodConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/authenticationMethodsPolicy/authenticationMethodConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public AuthenticationMethodConfigurationsRequestBuilder(string rawUrl) : base("{ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(AuthenticationMethodConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AuthenticationMethodConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AuthenticationMethodConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AuthenticationMethodConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(AuthenticationMethodConfigura /// /// Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. /// - public class AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs b/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs index 7a30663c89..e782cd54bd 100644 --- a/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Count/CountRequestBuilder.cs +++ b/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/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.AuthenticationMethodsPolicy.AuthenticationMethodConfigurations. /// /// 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}/authenticationMethodsPolicy/authenticationMethodConfigurations/$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}/authenticationMethodsPolicy/authenticationMethodConfigurations/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/authenticationMetho /// 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/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs b/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs index 8b4c2407bf..e01e3b8066 100644 --- a/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs +++ b/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.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.AuthenticationMethodsPolicy.AuthenticationMethodConfigurations. /// /// Provides operations to manage the authenticationMethodConfigurations property of the microsoft.graph.authenticationMethodsPolicy entity. /// - public class AuthenticationMethodConfigurationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuthenticationMethodConfigurationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property authenticationMethodConfigurations for authenticationMethodsPolicy @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AuthenticationMethodConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AuthenticationMethodConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AuthenticationMethodConfigurationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/authenticationMethodsPolicy/authenticationMethodConfigurations/{authenticationMethodConfiguration%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 AuthenticationMethodConfigurationItemRequestBuilder(string rawUrl) : base("{+baseurl}/authenticationMethodsPolicy/authenticationMethodConfigurations/{authenticationMethodConfiguration%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(AuthenticationMethodConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AuthenticationMethodConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AuthenticationMethodConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AuthenticationMethodConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(AuthenticationMethodConfigur /// /// Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. /// - public class AuthenticationMethodConfigurationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuthenticationMethodConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class AuthenticationMethodConfigurationItemRequestBuilderGetQueryParamete } } } +#pragma warning restore CS0618 diff --git a/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs b/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs index e8193dc357..321f0cae72 100644 --- a/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs +++ b/src/generated/AuthenticationMethodsPolicy/AuthenticationMethodsPolicyRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.AuthenticationMethodsPolicy.AuthenticationMethodConfigurations; 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.AuthenticationMethodsPolicy /// /// Provides operations to manage the authenticationMethodsPolicy singleton. /// - public class AuthenticationMethodsPolicyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuthenticationMethodsPolicyRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the authenticationMethodConfigurations property of the microsoft.graph.authenticationMethodsPolicy entity. @@ -30,7 +33,7 @@ public Command BuildAuthenticationMethodConfigurationsNavCommand() { var command = new Command("authentication-method-configurations"); command.Description = "Provides operations to manage the authenticationMethodConfigurations property of the microsoft.graph.authenticationMethodsPolicy entity."; - var builder = new AuthenticationMethodConfigurationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuthenticationMethodsPolicy.AuthenticationMethodConfigurations.AuthenticationMethodConfigurationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -120,8 +123,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.AuthenticationMethodsPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AuthenticationMethodsPolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -141,14 +144,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AuthenticationMethodsPolicyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/authenticationMethodsPolicy{?%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 AuthenticationMethodsPolicyRequestBuilder(string rawUrl) : base("{+baseurl}/authenticationMethodsPolicy{?%24expand,%24select}", rawUrl) @@ -161,11 +164,11 @@ public AuthenticationMethodsPolicyRequestBuilder(string rawUrl) : base("{+baseur /// 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); @@ -181,11 +184,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.AuthenticationMethodsPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AuthenticationMethodsPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.AuthenticationMethodsPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AuthenticationMethodsPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -197,7 +200,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Authentication /// /// Get authenticationMethodsPolicy /// - public class AuthenticationMethodsPolicyRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuthenticationMethodsPolicyRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -222,3 +226,4 @@ public class AuthenticationMethodsPolicyRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs b/src/generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs index 9faf736ad7..c75c23922b 100644 --- a/src/generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs +++ b/src/generated/CertificateBasedAuthConfiguration/CertificateBasedAuthConfigurationRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.CertificateBasedAuthConfiguration.Count; using ApiSdk.CertificateBasedAuthConfiguration.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.CertificateBasedAuthConfiguration /// /// Provides operations to manage the collection of certificateBasedAuthConfiguration entities. /// - public class CertificateBasedAuthConfigurationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CertificateBasedAuthConfigurationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of certificateBasedAuthConfiguration entities. @@ -30,7 +33,7 @@ public class CertificateBasedAuthConfigurationRequestBuilder : BaseCliRequestBui public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new CertificateBasedAuthConfigurationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.CertificateBasedAuthConfiguration.Item.CertificateBasedAuthConfigurationItemRequestBuilder(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.CertificateBasedAuthConfiguration.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.CertificateBasedAuthConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CertificateBasedAuthConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 CertificateBasedAuthConfigurationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/certificateBasedAuthConfiguration{?%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 CertificateBasedAuthConfigurationRequestBuilder(string rawUrl) : base("{+baseurl}/certificateBasedAuthConfiguration{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public CertificateBasedAuthConfigurationRequestBuilder(string rawUrl) : base("{+ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.CertificateBasedAuthConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CertificateBasedAuthConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.CertificateBasedAuthConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CertificateBasedAuthConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.CertificateBase /// /// Get entities from certificateBasedAuthConfiguration /// - public class CertificateBasedAuthConfigurationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CertificateBasedAuthConfigurationRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class CertificateBasedAuthConfigurationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.cs b/src/generated/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.cs index 581a37567c..edfaf63281 100644 --- a/src/generated/CertificateBasedAuthConfiguration/Count/CountRequestBuilder.cs +++ b/src/generated/CertificateBasedAuthConfiguration/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.CertificateBasedAuthConfiguration.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}/certificateBasedAuthConfiguration/$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}/certificateBasedAuthConfiguration/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/certificateBasedAut /// 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/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs b/src/generated/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs index 78d4d0ea6a..8f40bc8f77 100644 --- a/src/generated/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.cs +++ b/src/generated/CertificateBasedAuthConfiguration/Item/CertificateBasedAuthConfigurationItemRequestBuilder.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.CertificateBasedAuthConfiguration.Item /// /// Provides operations to manage the collection of certificateBasedAuthConfiguration entities. /// - public class CertificateBasedAuthConfigurationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CertificateBasedAuthConfigurationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete entity from certificateBasedAuthConfiguration @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.CertificateBasedAuthConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CertificateBasedAuthConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CertificateBasedAuthConfigurationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/certificateBasedAuthConfiguration/{certificateBasedAuthConfiguration%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 CertificateBasedAuthConfigurationItemRequestBuilder(string rawUrl) : base("{+baseurl}/certificateBasedAuthConfiguration/{certificateBasedAuthConfiguration%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.CertificateBasedAuthConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CertificateBasedAuthConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.CertificateBasedAuthConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CertificateBasedAuthConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.CertificateBas /// /// Get entity from certificateBasedAuthConfiguration by key /// - public class CertificateBasedAuthConfigurationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CertificateBasedAuthConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class CertificateBasedAuthConfigurationItemRequestBuilderGetQueryParamete } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/ChatsRequestBuilder.cs b/src/generated/Chats/ChatsRequestBuilder.cs index e847d0ba25..031c272a64 100644 --- a/src/generated/Chats/ChatsRequestBuilder.cs +++ b/src/generated/Chats/ChatsRequestBuilder.cs @@ -1,9 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Count; using ApiSdk.Chats.GetAllMessages; +using ApiSdk.Chats.GetAllRetainedMessages; using ApiSdk.Chats.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; @@ -22,7 +25,8 @@ namespace ApiSdk.Chats /// /// Provides operations to manage the collection of chat entities. /// - public class ChatsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of chat entities. @@ -32,7 +36,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ChatItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.ChatItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildHideForUserNavCommand()); @@ -58,7 +62,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.Chats.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +97,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.Chat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Chat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -121,7 +125,24 @@ public Command BuildGetAllMessagesNavCommand() { var command = new Command("get-all-messages"); command.Description = "Provides operations to call the getAllMessages method."; - var builder = new GetAllMessagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.GetAllMessages.GetAllMessagesRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the getAllRetainedMessages method. + /// + /// A + public Command BuildGetAllRetainedMessagesNavCommand() + { + var command = new Command("get-all-retained-messages"); + command.Description = "Provides operations to call the getAllRetainedMessages method."; + var builder = new global::ApiSdk.Chats.GetAllRetainedMessages.GetAllRetainedMessagesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -228,14 +249,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 ChatsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats{?%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 ChatsRequestBuilder(string rawUrl) : base("{+baseurl}/chats{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -248,11 +269,11 @@ public ChatsRequestBuilder(string rawUrl) : base("{+baseurl}/chats{?%24count,%24 /// 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); @@ -268,11 +289,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(ApiSdk.Models.Chat body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Chat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.Chat body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Chat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -284,7 +305,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.Chat body, Acti /// /// Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. /// - public class ChatsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -348,3 +370,4 @@ public class ChatsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Count/CountRequestBuilder.cs b/src/generated/Chats/Count/CountRequestBuilder.cs index f57676a998..623b3b8289 100644 --- a/src/generated/Chats/Count/CountRequestBuilder.cs +++ b/src/generated/Chats/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.Chats.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}/chats/$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}/chats/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/chats/$count{?%24fi /// 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/Chats/GetAllMessages/GetAllMessagesGetResponse.cs b/src/generated/Chats/GetAllMessages/GetAllMessagesGetResponse.cs index 459d351c69..f2285b0b78 100644 --- a/src/generated/Chats/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/generated/Chats/GetAllMessages/GetAllMessagesGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Chats.GetAllMessages { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAllMessagesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Chats.GetAllMessages.GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAllMessagesGetResponse(); + return new global::ApiSdk.Chats.GetAllMessages.GetAllMessagesGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs index 2fbf5a00fd..3de90ec03e 100644 --- a/src/generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.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.Chats.GetAllMessages /// /// Provides operations to call the getAllMessages method. /// - public class GetAllMessagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllMessagesRequestBuilder : BaseCliRequestBuilder { /// /// Get all messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. @@ -124,14 +127,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 GetAllMessagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/getAllMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,model*}", 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 GetAllMessagesRequestBuilder(string rawUrl) : base("{+baseurl}/chats/getAllMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,model*}", rawUrl) @@ -144,11 +147,11 @@ public GetAllMessagesRequestBuilder(string rawUrl) : base("{+baseurl}/chats/getA /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get all messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. /// - public class GetAllMessagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllMessagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -233,3 +237,4 @@ public class GetAllMessagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.cs b/src/generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.cs new file mode 100644 index 0000000000..3bcc882b58 --- /dev/null +++ b/src/generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Chats.GetAllRetainedMessages +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetAllRetainedMessagesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Chats.GetAllRetainedMessages.GetAllRetainedMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Chats.GetAllRetainedMessages.GetAllRetainedMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.cs b/src/generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.cs new file mode 100644 index 0000000000..12d51b7a69 --- /dev/null +++ b/src/generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.cs @@ -0,0 +1,224 @@ +// +#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; +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.Chats.GetAllRetainedMessages +{ + /// + /// Provides operations to call the getAllRetainedMessages method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllRetainedMessagesRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// Find more info here + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chat-getallretainedmessages?view=graph-rest-1.0"; + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Select = select; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Expand = expand; + }); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public GetAllRetainedMessagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public GetAllRetainedMessagesRequestBuilder(string rawUrl) : base("{+baseurl}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// + /// 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; + } + /// + /// Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllRetainedMessagesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/ChatItemRequestBuilder.cs b/src/generated/Chats/Item/ChatItemRequestBuilder.cs index da87d8db2e..b38c7334c3 100644 --- a/src/generated/Chats/Item/ChatItemRequestBuilder.cs +++ b/src/generated/Chats/Item/ChatItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.HideForUser; using ApiSdk.Chats.Item.InstalledApps; using ApiSdk.Chats.Item.LastMessagePreview; @@ -13,6 +14,7 @@ using ApiSdk.Chats.Item.UnhideForUser; 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; @@ -31,7 +33,8 @@ namespace ApiSdk.Chats.Item /// /// Provides operations to manage the collection of chat entities. /// - public class ChatItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatItemRequestBuilder : BaseCliRequestBuilder { /// /// Soft-delete a chat. When invoked with delegated permissions, this operation only works for tenant admins and Teams service admins. @@ -130,7 +133,7 @@ public Command BuildHideForUserNavCommand() { var command = new Command("hide-for-user"); command.Description = "Provides operations to call the hideForUser method."; - var builder = new HideForUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.HideForUser.HideForUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -147,7 +150,7 @@ public Command BuildInstalledAppsNavCommand() { var command = new Command("installed-apps"); command.Description = "Provides operations to manage the installedApps property of the microsoft.graph.chat entity."; - var builder = new InstalledAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.InstalledApps.InstalledAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -174,7 +177,7 @@ public Command BuildLastMessagePreviewNavCommand() { var command = new Command("last-message-preview"); command.Description = "Provides operations to manage the lastMessagePreview property of the microsoft.graph.chat entity."; - var builder = new LastMessagePreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.LastMessagePreview.LastMessagePreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -193,7 +196,7 @@ public Command BuildMarkChatReadForUserNavCommand() { var command = new Command("mark-chat-read-for-user"); command.Description = "Provides operations to call the markChatReadForUser method."; - var builder = new MarkChatReadForUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.MarkChatReadForUser.MarkChatReadForUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -210,7 +213,7 @@ public Command BuildMarkChatUnreadForUserNavCommand() { var command = new Command("mark-chat-unread-for-user"); command.Description = "Provides operations to call the markChatUnreadForUser method."; - var builder = new MarkChatUnreadForUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.MarkChatUnreadForUser.MarkChatUnreadForUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -227,13 +230,14 @@ public Command BuildMembersNavCommand() { var command = new Command("members"); command.Description = "Provides operations to manage the members property of the microsoft.graph.chat entity."; - var builder = new MembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Members.MembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); nonExecCommands.Add(builder.BuildCountNavCommand()); execCommands.Add(builder.BuildCreateCommand()); execCommands.Add(builder.BuildListCommand()); + nonExecCommands.Add(builder.BuildRemoveNavCommand()); var cmds = builder.BuildCommand(); execCommands.AddRange(cmds.Item1); nonExecCommands.AddRange(cmds.Item2); @@ -255,7 +259,7 @@ public Command BuildMessagesNavCommand() { var command = new Command("messages"); command.Description = "Provides operations to manage the messages property of the microsoft.graph.chat entity."; - var builder = new MessagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.MessagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -306,8 +310,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.Chat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Chat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -335,7 +339,7 @@ public Command BuildPermissionGrantsNavCommand() { var command = new Command("permission-grants"); command.Description = "Provides operations to manage the permissionGrants property of the microsoft.graph.chat entity."; - var builder = new PermissionGrantsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.PermissionGrants.PermissionGrantsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -362,7 +366,7 @@ public Command BuildPinnedMessagesNavCommand() { var command = new Command("pinned-messages"); command.Description = "Provides operations to manage the pinnedMessages property of the microsoft.graph.chat entity."; - var builder = new PinnedMessagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.PinnedMessages.PinnedMessagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -389,7 +393,7 @@ public Command BuildSendActivityNotificationNavCommand() { var command = new Command("send-activity-notification"); command.Description = "Provides operations to call the sendActivityNotification method."; - var builder = new SendActivityNotificationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.SendActivityNotification.SendActivityNotificationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -406,7 +410,7 @@ public Command BuildTabsNavCommand() { var command = new Command("tabs"); command.Description = "Provides operations to manage the tabs property of the microsoft.graph.chat entity."; - var builder = new TabsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Tabs.TabsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -433,7 +437,7 @@ public Command BuildUnhideForUserNavCommand() { var command = new Command("unhide-for-user"); command.Description = "Provides operations to call the unhideForUser method."; - var builder = new UnhideForUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.UnhideForUser.UnhideForUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -443,14 +447,14 @@ public Command BuildUnhideForUserNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ChatItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%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 ChatItemRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}{?%24expand,%24select}", rawUrl) @@ -482,11 +486,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); @@ -502,11 +506,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.Chat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Chat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Chat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Chat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -518,7 +522,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Chat body, Act /// /// Retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. /// - public class ChatItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -543,3 +548,4 @@ public class ChatItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/HideForUser/HideForUserPostRequestBody.cs b/src/generated/Chats/Item/HideForUser/HideForUserPostRequestBody.cs index ca3a961a04..10b0c5693c 100644 --- a/src/generated/Chats/Item/HideForUser/HideForUserPostRequestBody.cs +++ b/src/generated/Chats/Item/HideForUser/HideForUserPostRequestBody.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.Chats.Item.HideForUser { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class HideForUserPostRequestBody : IAdditionalDataHolder, IParsable + public partial class HideForUserPostRequestBody : 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. @@ -16,13 +18,13 @@ public class HideForUserPostRequestBody : IAdditionalDataHolder, IParsable /// The user property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamworkUserIdentity? User { get; set; } + public global::ApiSdk.Models.TeamworkUserIdentity? User { get; set; } #nullable restore #else - public TeamworkUserIdentity User { get; set; } + public global::ApiSdk.Models.TeamworkUserIdentity User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HideForUserPostRequestBody() { @@ -31,12 +33,12 @@ public HideForUserPostRequestBody() /// /// 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 HideForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Chats.Item.HideForUser.HideForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HideForUserPostRequestBody(); + return new global::ApiSdk.Chats.Item.HideForUser.HideForUserPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, + { "user", n => { User = n.GetObjectValue(global::ApiSdk.Models.TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/HideForUser/HideForUserRequestBuilder.cs b/src/generated/Chats/Item/HideForUser/HideForUserRequestBuilder.cs index 04b1a191b3..3027fde07e 100644 --- a/src/generated/Chats/Item/HideForUser/HideForUserRequestBuilder.cs +++ b/src/generated/Chats/Item/HideForUser/HideForUserRequestBuilder.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.Chats.Item.HideForUser /// /// Provides operations to call the hideForUser method. /// - public class HideForUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HideForUserRequestBuilder : BaseCliRequestBuilder { /// /// Hide a chat for a user. @@ -43,8 +46,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(HideForUserPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Chats.Item.HideForUser.HideForUserPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 HideForUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/hideForUser", 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 HideForUserRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/hideForUser", rawUrl) @@ -84,11 +87,11 @@ public HideForUserRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%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 ToPostRequestInformation(HideForUserPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.HideForUser.HideForUserPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(HideForUserPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.HideForUser.HideForUserPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(HideForUserPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs b/src/generated/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs index 89cb47da5e..16c34424e1 100644 --- a/src/generated/Chats/Item/InstalledApps/Count/CountRequestBuilder.cs +++ b/src/generated/Chats/Item/InstalledApps/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.Chats.Item.InstalledApps.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}/chats/{chat%2Did}/installedApps/$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}/chats/{chat%2Did}/installedApps/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/i /// 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/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs b/src/generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs index e9bafa891a..29024b0d2c 100644 --- a/src/generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/generated/Chats/Item/InstalledApps/InstalledAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.InstalledApps.Count; using ApiSdk.Chats.Item.InstalledApps.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.Chats.Item.InstalledApps /// /// Provides operations to manage the installedApps property of the microsoft.graph.chat entity. /// - public class InstalledAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstalledAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the installedApps property of the microsoft.graph.chat entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TeamsAppInstallationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.InstalledApps.Item.TeamsAppInstallationItemRequestBuilder(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.Chats.Item.InstalledApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TeamsAppInstallation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsAppInstallation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -213,14 +216,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 InstalledAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/installedApps{?%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 InstalledAppsRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/installedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -233,11 +236,11 @@ public InstalledAppsRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat /// 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); @@ -253,11 +256,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(TeamsAppInstallation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsAppInstallation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TeamsAppInstallation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsAppInstallation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -269,7 +272,8 @@ public RequestInformation ToPostRequestInformation(TeamsAppInstallation body, Ac /// /// List all app installations within a chat. /// - public class InstalledAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstalledAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -333,3 +337,4 @@ public class InstalledAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs index 767fb4e5e6..56c46732a4 100644 --- a/src/generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/generated/Chats/Item/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.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.Chats.Item.InstalledApps.Item.TeamsApp /// /// Provides operations to manage the teamsApp property of the microsoft.graph.teamsAppInstallation entity. /// - public class TeamsAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppRequestBuilder : BaseCliRequestBuilder { /// /// The app that is installed. @@ -80,14 +83,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 TeamsAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/teamsApp{?%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 TeamsAppRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/teamsApp{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public TeamsAppRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The app that is installed. /// - public class TeamsAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class TeamsAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs b/src/generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs index fe5abe8634..aead1b2734 100644 --- a/src/generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs +++ b/src/generated/Chats/Item/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.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.Chats.Item.InstalledApps.Item.TeamsAppDefinition /// /// Provides operations to manage the teamsAppDefinition property of the microsoft.graph.teamsAppInstallation entity. /// - public class TeamsAppDefinitionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppDefinitionRequestBuilder : BaseCliRequestBuilder { /// /// The details of this version of the app. @@ -80,14 +83,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 TeamsAppDefinitionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/teamsAppDefinition{?%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 TeamsAppDefinitionRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/teamsAppDefinition{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public TeamsAppDefinitionRequestBuilder(string rawUrl) : base("{+baseurl}/chats/ /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The details of this version of the app. /// - public class TeamsAppDefinitionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppDefinitionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class TeamsAppDefinitionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index 5249fd05c9..f2469ddaa8 100644 --- a/src/generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/generated/Chats/Item/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.InstalledApps.Item.TeamsApp; using ApiSdk.Chats.Item.InstalledApps.Item.TeamsAppDefinition; using ApiSdk.Chats.Item.InstalledApps.Item.Upgrade; 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.Chats.Item.InstalledApps.Item /// /// Provides operations to manage the installedApps property of the microsoft.graph.chat entity. /// - public class TeamsAppInstallationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppInstallationItemRequestBuilder : BaseCliRequestBuilder { /// /// Uninstall an app installed within a chat. @@ -160,8 +163,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(TeamsAppInstallation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsAppInstallation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -190,7 +193,7 @@ public Command BuildTeamsAppDefinitionNavCommand() { var command = new Command("teams-app-definition"); command.Description = "Provides operations to manage the teamsAppDefinition property of the microsoft.graph.teamsAppInstallation entity."; - var builder = new TeamsAppDefinitionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.InstalledApps.Item.TeamsAppDefinition.TeamsAppDefinitionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -207,7 +210,7 @@ public Command BuildTeamsAppNavCommand() { var command = new Command("teams-app"); command.Description = "Provides operations to manage the teamsApp property of the microsoft.graph.teamsAppInstallation entity."; - var builder = new TeamsAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.InstalledApps.Item.TeamsApp.TeamsAppRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -224,7 +227,7 @@ public Command BuildUpgradeNavCommand() { var command = new Command("upgrade"); command.Description = "Provides operations to call the upgrade method."; - var builder = new UpgradeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.InstalledApps.Item.Upgrade.UpgradeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -234,14 +237,14 @@ public Command BuildUpgradeNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TeamsAppInstallationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%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 TeamsAppInstallationItemRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(TeamsAppInstallation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsAppInstallation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsAppInstallation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, A /// /// Get an app installed in a chat. /// - public class TeamsAppInstallationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppInstallationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class TeamsAppInstallationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs b/src/generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs index 2c7d5674ba..d49be5c3cd 100644 --- a/src/generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs +++ b/src/generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradePostRequestBody.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.Chats.Item.InstalledApps.Item.Upgrade { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UpgradePostRequestBody : IAdditionalDataHolder, IParsable + public partial class UpgradePostRequestBody : 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. @@ -16,13 +18,13 @@ public class UpgradePostRequestBody : IAdditionalDataHolder, IParsable /// The consentedPermissionSet property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamsAppPermissionSet? ConsentedPermissionSet { get; set; } + public global::ApiSdk.Models.TeamsAppPermissionSet? ConsentedPermissionSet { get; set; } #nullable restore #else - public TeamsAppPermissionSet ConsentedPermissionSet { get; set; } + public global::ApiSdk.Models.TeamsAppPermissionSet ConsentedPermissionSet { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UpgradePostRequestBody() { @@ -31,12 +33,12 @@ public UpgradePostRequestBody() /// /// 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 UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Chats.Item.InstalledApps.Item.Upgrade.UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UpgradePostRequestBody(); + return new global::ApiSdk.Chats.Item.InstalledApps.Item.Upgrade.UpgradePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, + { "consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(global::ApiSdk.Models.TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); + writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index a6fc62f4b5..160412d2e3 100644 --- a/src/generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.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.Chats.Item.InstalledApps.Item.Upgrade /// /// Provides operations to call the upgrade method. /// - public class UpgradeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UpgradeRequestBuilder : BaseCliRequestBuilder { /// /// Upgrade an app installation within a chat. @@ -48,8 +51,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(UpgradePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Chats.Item.InstalledApps.Item.Upgrade.UpgradePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 UpgradeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/upgrade", 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 UpgradeRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}/upgrade", rawUrl) @@ -90,11 +93,11 @@ public UpgradeRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did} /// 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(UpgradePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.InstalledApps.Item.Upgrade.UpgradePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.InstalledApps.Item.Upgrade.UpgradePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs b/src/generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs index a5e58b9189..67e3d531cb 100644 --- a/src/generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.cs +++ b/src/generated/Chats/Item/LastMessagePreview/LastMessagePreviewRequestBuilder.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.Chats.Item.LastMessagePreview /// /// Provides operations to manage the lastMessagePreview property of the microsoft.graph.chat entity. /// - public class LastMessagePreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastMessagePreviewRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property lastMessagePreview for chats @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ChatMessageInfo.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageInfo.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LastMessagePreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/lastMessagePreview{?%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 LastMessagePreviewRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/lastMessagePreview{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ChatMessageInfo body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageInfo body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessageInfo body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageInfo body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessageInfo body, Action /// /// Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property. /// - public class LastMessagePreviewRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastMessagePreviewRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class LastMessagePreviewRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs b/src/generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs index a9567fa06f..c095899762 100644 --- a/src/generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.cs +++ b/src/generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserPostRequestBody.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.Chats.Item.MarkChatReadForUser { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MarkChatReadForUserPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MarkChatReadForUserPostRequestBody : 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. @@ -16,13 +18,13 @@ public class MarkChatReadForUserPostRequestBody : IAdditionalDataHolder, IParsab /// The user property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamworkUserIdentity? User { get; set; } + public global::ApiSdk.Models.TeamworkUserIdentity? User { get; set; } #nullable restore #else - public TeamworkUserIdentity User { get; set; } + public global::ApiSdk.Models.TeamworkUserIdentity User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarkChatReadForUserPostRequestBody() { @@ -31,12 +33,12 @@ public MarkChatReadForUserPostRequestBody() /// /// 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 MarkChatReadForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Chats.Item.MarkChatReadForUser.MarkChatReadForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarkChatReadForUserPostRequestBody(); + return new global::ApiSdk.Chats.Item.MarkChatReadForUser.MarkChatReadForUserPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, + { "user", n => { User = n.GetObjectValue(global::ApiSdk.Models.TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs b/src/generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs index aca71a9911..4c332a42e0 100644 --- a/src/generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.cs +++ b/src/generated/Chats/Item/MarkChatReadForUser/MarkChatReadForUserRequestBuilder.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.Chats.Item.MarkChatReadForUser /// /// Provides operations to call the markChatReadForUser method. /// - public class MarkChatReadForUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MarkChatReadForUserRequestBuilder : BaseCliRequestBuilder { /// /// Mark a chat as read for a user. @@ -43,8 +46,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(MarkChatReadForUserPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Chats.Item.MarkChatReadForUser.MarkChatReadForUserPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 MarkChatReadForUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/markChatReadForUser", 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 MarkChatReadForUserRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/markChatReadForUser", rawUrl) @@ -84,11 +87,11 @@ public MarkChatReadForUserRequestBuilder(string rawUrl) : base("{+baseurl}/chats /// 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(MarkChatReadForUserPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.MarkChatReadForUser.MarkChatReadForUserPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MarkChatReadForUserPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.MarkChatReadForUser.MarkChatReadForUserPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(MarkChatReadForUserPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs b/src/generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs index 1ab94046b0..d81e13d9ae 100644 --- a/src/generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.cs +++ b/src/generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserPostRequestBody.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.Chats.Item.MarkChatUnreadForUser { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MarkChatUnreadForUserPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MarkChatUnreadForUserPostRequestBody : 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. @@ -18,13 +20,13 @@ public class MarkChatUnreadForUserPostRequestBody : IAdditionalDataHolder, IPars /// The user property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamworkUserIdentity? User { get; set; } + public global::ApiSdk.Models.TeamworkUserIdentity? User { get; set; } #nullable restore #else - public TeamworkUserIdentity User { get; set; } + public global::ApiSdk.Models.TeamworkUserIdentity User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MarkChatUnreadForUserPostRequestBody() { @@ -33,12 +35,12 @@ public MarkChatUnreadForUserPostRequestBody() /// /// 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 MarkChatUnreadForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Chats.Item.MarkChatUnreadForUser.MarkChatUnreadForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MarkChatUnreadForUserPostRequestBody(); + return new global::ApiSdk.Chats.Item.MarkChatUnreadForUser.MarkChatUnreadForUserPostRequestBody(); } /// /// The deserialization information for the current model @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "lastMessageReadDateTime", n => { LastMessageReadDateTime = n.GetDateTimeOffsetValue(); } }, - { "user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, + { "user", n => { User = n.GetObjectValue(global::ApiSdk.Models.TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; } /// @@ -60,8 +62,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("lastMessageReadDateTime", LastMessageReadDateTime); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs b/src/generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs index 20ffe7b68a..2aa3634bcb 100644 --- a/src/generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.cs +++ b/src/generated/Chats/Item/MarkChatUnreadForUser/MarkChatUnreadForUserRequestBuilder.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.Chats.Item.MarkChatUnreadForUser /// /// Provides operations to call the markChatUnreadForUser method. /// - public class MarkChatUnreadForUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MarkChatUnreadForUserRequestBuilder : BaseCliRequestBuilder { /// /// Mark a chat as unread for a user. @@ -43,8 +46,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(MarkChatUnreadForUserPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Chats.Item.MarkChatUnreadForUser.MarkChatUnreadForUserPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 MarkChatUnreadForUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/markChatUnreadForUser", 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 MarkChatUnreadForUserRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/markChatUnreadForUser", rawUrl) @@ -84,11 +87,11 @@ public MarkChatUnreadForUserRequestBuilder(string rawUrl) : base("{+baseurl}/cha /// 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(MarkChatUnreadForUserPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.MarkChatUnreadForUser.MarkChatUnreadForUserPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MarkChatUnreadForUserPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.MarkChatUnreadForUser.MarkChatUnreadForUserPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(MarkChatUnreadForUserPostRequ } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Members/Add/AddPostRequestBody.cs b/src/generated/Chats/Item/Members/Add/AddPostRequestBody.cs index 0b10a3a8fc..5bcf395de4 100644 --- a/src/generated/Chats/Item/Members/Add/AddPostRequestBody.cs +++ b/src/generated/Chats/Item/Members/Add/AddPostRequestBody.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.Chats.Item.Members.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Values { get; set; } + public List? Values { get; set; } #nullable restore #else - public List Values { get; set; } + public List Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -31,12 +33,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Chats.Item.Members.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Chats.Item.Members.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Members/Add/AddPostResponse.cs b/src/generated/Chats/Item/Members/Add/AddPostResponse.cs index c28d8f7e08..c32ce99758 100644 --- a/src/generated/Chats/Item/Members/Add/AddPostResponse.cs +++ b/src/generated/Chats/Item/Members/Add/AddPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Chats.Item.Members.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class AddPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Chats.Item.Members.Add.AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostResponse(); + return new global::ApiSdk.Chats.Item.Members.Add.AddPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Members/Add/AddRequestBuilder.cs b/src/generated/Chats/Item/Members/Add/AddRequestBuilder.cs index 73d613b798..f2fbc187cb 100644 --- a/src/generated/Chats/Item/Members/Add/AddRequestBuilder.cs +++ b/src/generated/Chats/Item/Members/Add/AddRequestBuilder.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.Chats.Item.Members.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. @@ -55,8 +58,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Chats.Item.Members.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/members/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/members/add", rawUrl) @@ -107,11 +110,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/mem /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.Members.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.Members.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Members/Count/CountRequestBuilder.cs b/src/generated/Chats/Item/Members/Count/CountRequestBuilder.cs index a738ce3730..1343d7108a 100644 --- a/src/generated/Chats/Item/Members/Count/CountRequestBuilder.cs +++ b/src/generated/Chats/Item/Members/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.Chats.Item.Members.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}/chats/{chat%2Did}/members/$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}/chats/{chat%2Did}/members/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/m /// 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/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index ff5b4215c7..fc2af45000 100644 --- a/src/generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.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.Chats.Item.Members.Item /// /// Provides operations to manage the members property of the microsoft.graph.chat entity. /// - public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// /// Remove a conversationMember from a chat. @@ -157,8 +160,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(ConversationMember.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -180,14 +183,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 ConversationMemberItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/members/{conversationMember%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 ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/members/{conversationMember%2Did}{?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(ConversationMember body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationMember body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ConversationMember body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationMember body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act /// /// Retrieve a conversationMember from a chat or channel. /// - public class ConversationMemberItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class ConversationMemberItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Members/MembersRequestBuilder.cs b/src/generated/Chats/Item/Members/MembersRequestBuilder.cs index 60d0b4fbe9..93e7fc1260 100644 --- a/src/generated/Chats/Item/Members/MembersRequestBuilder.cs +++ b/src/generated/Chats/Item/Members/MembersRequestBuilder.cs @@ -1,9 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.Members.Add; using ApiSdk.Chats.Item.Members.Count; using ApiSdk.Chats.Item.Members.Item; +using ApiSdk.Chats.Item.Members.Remove; 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 +25,8 @@ namespace ApiSdk.Chats.Item.Members /// /// Provides operations to manage the members property of the microsoft.graph.chat entity. /// - public class MembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -32,7 +36,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Members.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -48,7 +52,7 @@ public Command BuildAddNavCommand() public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ConversationMemberItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Members.Item.ConversationMemberItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -62,7 +66,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.Chats.Item.Members.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +106,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(ConversationMember.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -227,14 +231,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the remove method. + /// + /// A + public Command BuildRemoveNavCommand() + { + var command = new Command("remove"); + command.Description = "Provides operations to call the remove method."; + var builder = new global::ApiSdk.Chats.Item.Members.Remove.RemoveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/members{?%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 MembersRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -247,11 +268,11 @@ public MembersRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did} /// 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); @@ -267,11 +288,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(ConversationMember body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ConversationMember body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -283,7 +304,8 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti /// /// List all conversation members in a chat or channel. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -347,3 +369,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Members/Remove/RemovePostRequestBody.cs b/src/generated/Chats/Item/Members/Remove/RemovePostRequestBody.cs new file mode 100644 index 0000000000..e2d5bd6455 --- /dev/null +++ b/src/generated/Chats/Item/Members/Remove/RemovePostRequestBody.cs @@ -0,0 +1,66 @@ +// +#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; +namespace ApiSdk.Chats.Item.Members.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The values property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Values { get; set; } +#nullable restore +#else + public List Values { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RemovePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Chats.Item.Members.Remove.RemovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Chats.Item.Members.Remove.RemovePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Members/Remove/RemovePostResponse.cs b/src/generated/Chats/Item/Members/Remove/RemovePostResponse.cs new file mode 100644 index 0000000000..a221dd8bdd --- /dev/null +++ b/src/generated/Chats/Item/Members/Remove/RemovePostResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Chats.Item.Members.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Chats.Item.Members.Remove.RemovePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Chats.Item.Members.Remove.RemovePostResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Members/Remove/RemoveRequestBuilder.cs b/src/generated/Chats/Item/Members/Remove/RemoveRequestBuilder.cs new file mode 100644 index 0000000000..7e4645d3b5 --- /dev/null +++ b/src/generated/Chats/Item/Members/Remove/RemoveRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Chats.Item.Members.Remove +{ + /// + /// Provides operations to call the remove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-1.0"; + var chatIdOption = new Option("--chat-id", description: "The unique identifier of chat") { + }; + chatIdOption.IsRequired = true; + command.AddOption(chatIdOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var chatId = invocationContext.ParseResult.GetValueForOption(chatIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + 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.Chats.Item.Members.Remove.RemovePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (chatId is not null) requestInfo.PathParameters.Add("chat%2Did", chatId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public RemoveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/members/remove", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RemoveRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/members/remove", rawUrl) + { + } + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Chats.Item.Members.Remove.RemovePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.Members.Remove.RemovePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Count/CountRequestBuilder.cs b/src/generated/Chats/Item/Messages/Count/CountRequestBuilder.cs index d7cd393eba..77c2890de2 100644 --- a/src/generated/Chats/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/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.Chats.Item.Messages.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}/chats/{chat%2Did}/messages/$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}/chats/{chat%2Did}/messages/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/m /// 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/Chats/Item/Messages/Delta/DeltaGetResponse.cs b/src/generated/Chats/Item/Messages/Delta/DeltaGetResponse.cs index a5657af0d4..3dc39514a8 100644 --- a/src/generated/Chats/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/generated/Chats/Item/Messages/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Chats.Item.Messages.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Chats.Item.Messages.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Chats.Item.Messages.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs index e9e87a8d44..b31a28a081 100644 --- a/src/generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Chats.Item.Messages.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; + command.Description = "Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; var chatIdOption = new Option("--chat-id", description: "The unique identifier of chat") { }; chatIdOption.IsRequired = true; @@ -124,31 +127,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -157,9 +160,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index 1914080cf1..d4e80a71df 100644 --- a/src/generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.Messages.Item.HostedContents; using ApiSdk.Chats.Item.Messages.Item.Replies; using ApiSdk.Chats.Item.Messages.Item.SetReaction; @@ -7,6 +8,7 @@ using ApiSdk.Chats.Item.Messages.Item.UnsetReaction; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Chats.Item.Messages.Item /// /// Provides operations to manage the messages property of the microsoft.graph.chat entity. /// - public class ChatMessageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property messages for chats @@ -135,7 +138,7 @@ public Command BuildHostedContentsNavCommand() { var command = new Command("hosted-contents"); command.Description = "Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity."; - var builder = new HostedContentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.HostedContents.HostedContentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -189,8 +192,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(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,7 +222,7 @@ public Command BuildRepliesNavCommand() { var command = new Command("replies"); command.Description = "Provides operations to manage the replies property of the microsoft.graph.chatMessage entity."; - var builder = new RepliesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.Replies.RepliesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -247,7 +250,7 @@ public Command BuildSetReactionNavCommand() { var command = new Command("set-reaction"); command.Description = "Provides operations to call the setReaction method."; - var builder = new SetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.SetReaction.SetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -264,7 +267,7 @@ public Command BuildSoftDeleteNavCommand() { var command = new Command("soft-delete"); command.Description = "Provides operations to call the softDelete method."; - var builder = new SoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.SoftDelete.SoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -281,7 +284,7 @@ public Command BuildUndoSoftDeleteNavCommand() { var command = new Command("undo-soft-delete"); command.Description = "Provides operations to call the undoSoftDelete method."; - var builder = new UndoSoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.UndoSoftDelete.UndoSoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -298,7 +301,7 @@ public Command BuildUnsetReactionNavCommand() { var command = new Command("unset-reaction"); command.Description = "Provides operations to call the unsetReaction method."; - var builder = new UnsetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.UnsetReaction.UnsetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -308,14 +311,14 @@ public Command BuildUnsetReactionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ChatMessageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%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 ChatMessageItemRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}{?%24expand,%24select}", rawUrl) @@ -347,11 +350,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); @@ -367,11 +370,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(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -383,7 +386,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action /// Retrieve a single message or a message reply in a channel or a chat. /// - public class ChatMessageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -408,3 +412,4 @@ public class ChatMessageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 3c4804e2d5..b739ce406d 100644 --- a/src/generated/Chats/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/HostedContents/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.Chats.Item.Messages.Item.HostedContents.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/$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}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/m /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 803a451a33..156113accc 100644 --- a/src/generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.Messages.Item.HostedContents.Count; using ApiSdk.Chats.Item.Messages.Item.HostedContents.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.Chats.Item.Messages.Item.HostedContents /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class HostedContentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ChatMessageHostedContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.HostedContents.Item.ChatMessageHostedContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Chats.Item.Messages.Item.HostedContents.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 HostedContentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents{?%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 HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{cha /// 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); @@ -262,11 +265,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body /// /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content. /// - public class HostedContentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class HostedContentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 42f9bcba3a..9329ab63dc 100644 --- a/src/generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.Messages.Item.HostedContents.Item.Value; 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.Chats.Item.Messages.Item.HostedContents.Item /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the chat entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the chat entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.HostedContents.Item.Value.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -193,8 +196,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -217,14 +220,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 ChatMessageHostedContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%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 ChatMessageHostedContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}", rawUrl) @@ -256,11 +259,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); @@ -276,11 +279,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -292,7 +295,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod /// /// Retrieve the properties and relationships of chatMessageHostedContent object. /// - public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -317,3 +321,4 @@ public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index e9712a1f5b..822fa601f9 100644 --- a/src/generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.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.Chats.Item.Messages.Item.HostedContents.Item.Value /// /// Provides operations to manage the media for the chat entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The unique identifier for an entity. Read-only. @@ -68,13 +71,14 @@ public Command BuildDeleteCommand() return command; } /// - /// The unique identifier for an entity. Read-only. + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The unique identifier for an entity. Read-only."; + command.Description = "Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0"; var chatIdOption = new Option("--chat-id", description: "The unique identifier of chat") { }; chatIdOption.IsRequired = true; @@ -182,14 +186,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", rawUrl) @@ -215,7 +219,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The unique identifier for an entity. Read-only. + /// Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -257,3 +261,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Chats.Item.Messages.Item.Replies.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/$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}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/m /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs index f9d0c1342b..705e78750d 100644 --- a/src/generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/generated/Chats/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Chats.Item.Messages.Item.Replies.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Chats.Item.Messages.Item.Replies.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Chats.Item.Messages.Item.Replies.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 10931b35e8..4913b8119c 100644 --- a/src/generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Chats.Item.Messages.Item.Replies.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; + command.Description = "Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; var chatIdOption = new Option("--chat-id", description: "The unique identifier of chat") { }; chatIdOption.IsRequired = true; @@ -130,31 +133,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -163,9 +166,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index b495d979ed..740f5c0523 100644 --- a/src/generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.Messages.Item.Replies.Item.HostedContents; using ApiSdk.Chats.Item.Messages.Item.Replies.Item.SetReaction; using ApiSdk.Chats.Item.Messages.Item.Replies.Item.SoftDelete; @@ -6,6 +7,7 @@ using ApiSdk.Chats.Item.Messages.Item.Replies.Item.UnsetReaction; 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 +26,8 @@ namespace ApiSdk.Chats.Item.Messages.Item.Replies.Item /// /// Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. /// - public class ChatMessageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property replies for chats @@ -145,7 +148,7 @@ public Command BuildHostedContentsNavCommand() { var command = new Command("hosted-contents"); command.Description = "Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity."; - var builder = new HostedContentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.HostedContents.HostedContentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -204,8 +207,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(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -235,7 +238,7 @@ public Command BuildSetReactionNavCommand() { var command = new Command("set-reaction"); command.Description = "Provides operations to call the setReaction method."; - var builder = new SetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.SetReaction.SetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -252,7 +255,7 @@ public Command BuildSoftDeleteNavCommand() { var command = new Command("soft-delete"); command.Description = "Provides operations to call the softDelete method."; - var builder = new SoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.SoftDelete.SoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -269,7 +272,7 @@ public Command BuildUndoSoftDeleteNavCommand() { var command = new Command("undo-soft-delete"); command.Description = "Provides operations to call the undoSoftDelete method."; - var builder = new UndoSoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.UndoSoftDelete.UndoSoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -286,7 +289,7 @@ public Command BuildUnsetReactionNavCommand() { var command = new Command("unset-reaction"); command.Description = "Provides operations to call the unsetReaction method."; - var builder = new UnsetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -296,14 +299,14 @@ public Command BuildUnsetReactionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ChatMessageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public ChatMessageItemRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24expand,%24select}", rawUrl) @@ -335,11 +338,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); @@ -355,11 +358,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(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -371,7 +374,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action /// Replies for a specified message. Supports $expand for channel messages. /// - public class ChatMessageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -396,3 +400,4 @@ public class ChatMessageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index 8768791632..b85be03467 100644 --- a/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/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.Chats.Item.Messages.Item.Replies.Item.HostedContents.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 @@ -75,14 +78,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}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$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}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/m /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 172da4fe39..1f36b63b60 100644 --- a/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.Messages.Item.Replies.Item.HostedContents.Count; using ApiSdk.Chats.Item.Messages.Item.Replies.Item.HostedContents.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.Chats.Item.Messages.Item.Replies.Item.HostedContents /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class HostedContentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ChatMessageHostedContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.HostedContents.Item.ChatMessageHostedContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Chats.Item.Messages.Item.Replies.Item.HostedContents.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 HostedContentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%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 HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{cha /// 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); @@ -273,11 +276,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body /// /// Content in a message hosted by Microsoft Teams - for example, images or code snippets. /// - public class HostedContentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class HostedContentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 1fe1c31a73..01d696b810 100644 --- a/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.Messages.Item.Replies.Item.HostedContents.Item.Value; 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.Chats.Item.Messages.Item.Replies.Item.HostedContents.Item /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the chat entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the chat entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.HostedContents.Item.Value.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -209,8 +212,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 ChatMessageHostedContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%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 ChatMessageHostedContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod /// /// Content in a message hosted by Microsoft Teams - for example, images or code snippets. /// - public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 9f5e8153d9..7e3d8927a0 100644 --- a/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.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.Chats.Item.Messages.Item.Replies.Item.HostedContents.Item.Value /// /// Provides operations to manage the media for the chat entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The unique identifier for an entity. Read-only. @@ -200,14 +203,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", rawUrl) @@ -275,3 +278,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Chats.Item.Messages.Item.Replies.Item.SetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public SetReactionPostRequestBody() /// /// 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 SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetReactionPostRequestBody(); + return new global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 8cef0be5bb..8fb2edf283 100644 --- a/src/generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.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.Chats.Item.Messages.Item.Replies.Item.SetReaction /// /// Provides operations to call the setReaction method. /// - public class SetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action setReaction @@ -52,8 +55,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(SetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 SetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/setReaction", 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 SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/setReaction", rawUrl) @@ -95,11 +98,11 @@ public SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%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 ToPostRequestInformation(SetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 68b7920675..492d59ce99 100644 --- a/src/generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.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.Chats.Item.Messages.Item.Replies.Item.SoftDelete /// /// Provides operations to call the softDelete method. /// - public class SoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Delete a single chatMessage or a chat message reply in a channel or a chat. @@ -62,14 +65,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 SoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", 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 SoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Chats.Item.Messages.Item.Replies.Item.UndoSoftDelete /// /// Provides operations to call the undoSoftDelete method. /// - public class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. @@ -62,14 +65,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 UndoSoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", 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 UndoSoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Chats.Item.Messages.Item.Replies.Item.UnsetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnsetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnsetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public UnsetReactionPostRequestBody() /// /// 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 UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnsetReactionPostRequestBody(); + return new global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 1a1c37fbef..d1d744877b 100644 --- a/src/generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.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.Chats.Item.Messages.Item.Replies.Item.UnsetReaction /// /// Provides operations to call the unsetReaction method. /// - public class UnsetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnsetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action unsetReaction @@ -52,8 +55,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(UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 UnsetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/unsetReaction", 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 UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/unsetReaction", rawUrl) @@ -95,11 +98,11 @@ public UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat /// 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(UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 83a2620227..070a12fb51 100644 --- a/src/generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.Messages.Item.Replies.Count; using ApiSdk.Chats.Item.Messages.Item.Replies.Delta; using ApiSdk.Chats.Item.Messages.Item.Replies.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Chats.Item.Messages.Item.Replies /// /// Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. /// - public class RepliesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RepliesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Chats.Item.Messages.Item.Replies.Item.ChatMessageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.Replies.Item.ChatMessageItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildHostedContentsNavCommand()); @@ -51,7 +54,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.Chats.Item.Messages.Item.Replies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,7 +128,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.Replies.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,14 +246,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 RepliesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies{?%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 RepliesRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -263,11 +266,11 @@ public RepliesRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did} /// 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); @@ -283,11 +286,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(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action /// Replies for a specified message. Supports $expand for channel messages. /// - public class RepliesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RepliesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -363,3 +367,4 @@ public class RepliesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/generated/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index 9031911139..4ab19068cb 100644 --- a/src/generated/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/generated/Chats/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Chats.Item.Messages.Item.SetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public SetReactionPostRequestBody() /// /// 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 SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Chats.Item.Messages.Item.SetReaction.SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetReactionPostRequestBody(); + return new global::ApiSdk.Chats.Item.Messages.Item.SetReaction.SetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 5fcbe7e0bd..84191dce8b 100644 --- a/src/generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.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.Chats.Item.Messages.Item.SetReaction /// /// Provides operations to call the setReaction method. /// - public class SetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action setReaction @@ -47,8 +50,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(SetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Chats.Item.Messages.Item.SetReaction.SetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -68,14 +71,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 SetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/setReaction", 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 SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/setReaction", rawUrl) @@ -89,11 +92,11 @@ public SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%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 ToPostRequestInformation(SetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.Messages.Item.SetReaction.SetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.Messages.Item.SetReaction.SetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -104,3 +107,4 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index aa2102f420..c76a477a78 100644 --- a/src/generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.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.Chats.Item.Messages.Item.SoftDelete /// /// Provides operations to call the softDelete method. /// - public class SoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Delete a single chatMessage or a chat message reply in a channel or a chat. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/softDelete", 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 SoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/softDelete", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Chats.Item.Messages.Item.UndoSoftDelete /// /// Provides operations to call the undoSoftDelete method. /// - public class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UndoSoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", 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 UndoSoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Chats.Item.Messages.Item.UnsetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnsetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnsetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public UnsetReactionPostRequestBody() /// /// 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 UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Chats.Item.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnsetReactionPostRequestBody(); + return new global::ApiSdk.Chats.Item.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 11d0ca03dc..86c3877e07 100644 --- a/src/generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.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.Chats.Item.Messages.Item.UnsetReaction /// /// Provides operations to call the unsetReaction method. /// - public class UnsetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnsetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action unsetReaction @@ -47,8 +50,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(UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Chats.Item.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -68,14 +71,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 UnsetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/unsetReaction", 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 UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/unsetReaction", rawUrl) @@ -89,11 +92,11 @@ public UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat /// 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(UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -104,3 +107,4 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/generated/Chats/Item/Messages/MessagesRequestBuilder.cs index 3fa2d62274..ed29a93749 100644 --- a/src/generated/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.Messages.Count; using ApiSdk.Chats.Item.Messages.Delta; using ApiSdk.Chats.Item.Messages.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Chats.Item.Messages /// /// Provides operations to manage the messages property of the microsoft.graph.chat entity. /// - public class MessagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MessagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the messages property of the microsoft.graph.chat entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ChatMessageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Item.ChatMessageItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildHostedContentsNavCommand()); @@ -52,7 +55,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to count the resources in the collection."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -62,14 +65,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0"; + command.Description = "Send a new chatMessage in the specified channel or a chat.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0"; var chatIdOption = new Option("--chat-id", description: "The unique identifier of chat") { }; chatIdOption.IsRequired = true; @@ -92,8 +95,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(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -121,7 +124,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Messages.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -234,14 +237,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 MessagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/messages{?%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 MessagesRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/messages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -254,11 +257,11 @@ public MessagesRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did /// 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); @@ -267,18 +270,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + /// Send a new chatMessage in the specified channel or a chat. /// /// 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 ToPostRequestInformation(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -290,7 +293,8 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action /// Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel). /// - public class MessagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MessagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -354,3 +358,4 @@ public class MessagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs b/src/generated/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs index 4c0586ff56..4574fb5db5 100644 --- a/src/generated/Chats/Item/PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/generated/Chats/Item/PermissionGrants/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.Chats.Item.PermissionGrants.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}/chats/{chat%2Did}/permissionGrants/$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}/chats/{chat%2Did}/permissionGrants/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/p /// 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/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/generated/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index 62d3d30abd..603ad3f270 100644 --- a/src/generated/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/generated/Chats/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.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.Chats.Item.PermissionGrants.Item /// /// Provides operations to manage the permissionGrants property of the microsoft.graph.chat entity. /// - public class ResourceSpecificPermissionGrantItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceSpecificPermissionGrantItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property permissionGrants for chats @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ResourceSpecificPermissionGrantItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%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 ResourceSpecificPermissionGrantItemRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr /// /// A collection of permissions granted to apps for the chat. /// - public class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index 8f6cb8d528..4390ae548e 100644 --- a/src/generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.PermissionGrants.Count; using ApiSdk.Chats.Item.PermissionGrants.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.Chats.Item.PermissionGrants /// /// Provides operations to manage the permissionGrants property of the microsoft.graph.chat entity. /// - public class PermissionGrantsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionGrantsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the permissionGrants property of the microsoft.graph.chat entity. @@ -30,7 +33,7 @@ public class PermissionGrantsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ResourceSpecificPermissionGrantItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.PermissionGrants.Item.ResourceSpecificPermissionGrantItemRequestBuilder(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.Chats.Item.PermissionGrants.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(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -208,14 +211,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PermissionGrantsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/permissionGrants{?%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 PermissionGrantsRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/permissionGrants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -228,11 +231,11 @@ public PermissionGrantsRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{c /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra /// /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. /// - public class PermissionGrantsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -328,3 +332,4 @@ public class PermissionGrantsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs b/src/generated/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs index 84a2db4793..4dd6bd3416 100644 --- a/src/generated/Chats/Item/PinnedMessages/Count/CountRequestBuilder.cs +++ b/src/generated/Chats/Item/PinnedMessages/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.Chats.Item.PinnedMessages.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}/chats/{chat%2Did}/pinnedMessages/$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}/chats/{chat%2Did}/pinnedMessages/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/p /// 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/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs b/src/generated/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs index ec00c740d6..2bd54ac42c 100644 --- a/src/generated/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.cs +++ b/src/generated/Chats/Item/PinnedMessages/Item/Message/MessageRequestBuilder.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.Chats.Item.PinnedMessages.Item.Message /// /// Provides operations to manage the message property of the microsoft.graph.pinnedChatMessageInfo entity. /// - public class MessageRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MessageRequestBuilder : BaseCliRequestBuilder { /// /// Represents details about the chat message that is pinned. @@ -80,14 +83,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 MessageRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/pinnedMessages/{pinnedChatMessageInfo%2Did}/message{?%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 MessageRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/pinnedMessages/{pinnedChatMessageInfo%2Did}/message{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MessageRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did} /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Represents details about the chat message that is pinned. /// - public class MessageRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MessageRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MessageRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs b/src/generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs index d6f40d2c69..c6b361542e 100644 --- a/src/generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs +++ b/src/generated/Chats/Item/PinnedMessages/Item/PinnedChatMessageInfoItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.PinnedMessages.Item.Message; 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.Chats.Item.PinnedMessages.Item /// /// Provides operations to manage the pinnedMessages property of the microsoft.graph.chat entity. /// - public class PinnedChatMessageInfoItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PinnedChatMessageInfoItemRequestBuilder : BaseCliRequestBuilder { /// /// Unpin a message from a chat. @@ -130,7 +133,7 @@ public Command BuildMessageNavCommand() { var command = new Command("message"); command.Description = "Provides operations to manage the message property of the microsoft.graph.pinnedChatMessageInfo entity."; - var builder = new MessageRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.PinnedMessages.Item.Message.MessageRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -174,8 +177,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(PinnedChatMessageInfo.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PinnedChatMessageInfo.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -197,14 +200,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 PinnedChatMessageInfoItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/pinnedMessages/{pinnedChatMessageInfo%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 PinnedChatMessageInfoItemRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/pinnedMessages/{pinnedChatMessageInfo%2Did}{?%24expand,%24select}", rawUrl) @@ -236,11 +239,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); @@ -256,11 +259,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(PinnedChatMessageInfo body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PinnedChatMessageInfo body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PinnedChatMessageInfo body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PinnedChatMessageInfo body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -272,7 +275,8 @@ public RequestInformation ToPatchRequestInformation(PinnedChatMessageInfo body, /// /// A collection of all the pinned messages in the chat. Nullable. /// - public class PinnedChatMessageInfoItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PinnedChatMessageInfoItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -297,3 +301,4 @@ public class PinnedChatMessageInfoItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs b/src/generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs index 47c078964f..7e2f13dbac 100644 --- a/src/generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs +++ b/src/generated/Chats/Item/PinnedMessages/PinnedMessagesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.PinnedMessages.Count; using ApiSdk.Chats.Item.PinnedMessages.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.Chats.Item.PinnedMessages /// /// Provides operations to manage the pinnedMessages property of the microsoft.graph.chat entity. /// - public class PinnedMessagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PinnedMessagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pinnedMessages property of the microsoft.graph.chat entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new PinnedChatMessageInfoItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.PinnedMessages.Item.PinnedChatMessageInfoItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildMessageNavCommand()); @@ -46,7 +49,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.Chats.Item.PinnedMessages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(PinnedChatMessageInfo.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PinnedChatMessageInfo.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 PinnedMessagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/pinnedMessages{?%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 PinnedMessagesRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/pinnedMessages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -231,11 +234,11 @@ public PinnedMessagesRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{cha /// 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); @@ -251,11 +254,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(PinnedChatMessageInfo body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.PinnedChatMessageInfo body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PinnedChatMessageInfo body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.PinnedChatMessageInfo body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(PinnedChatMessageInfo body, A /// /// Get a list of pinnedChatMessages in a chat. /// - public class PinnedMessagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PinnedMessagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class PinnedMessagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index b3981214cb..4923976566 100644 --- a/src/generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.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.Chats.Item.SendActivityNotification { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SendActivityNotificationPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SendActivityNotificationPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The activityType property @@ -26,18 +28,18 @@ public class SendActivityNotificationPostRequestBody : IAdditionalDataHolder, IP /// The previewText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ItemBody? PreviewText { get; set; } + public global::ApiSdk.Models.ItemBody? PreviewText { get; set; } #nullable restore #else - public ItemBody PreviewText { get; set; } + public global::ApiSdk.Models.ItemBody PreviewText { get; set; } #endif /// The recipient property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamworkNotificationRecipient? Recipient { get; set; } + public global::ApiSdk.Models.TeamworkNotificationRecipient? Recipient { get; set; } #nullable restore #else - public TeamworkNotificationRecipient Recipient { get; set; } + public global::ApiSdk.Models.TeamworkNotificationRecipient Recipient { get; set; } #endif /// The teamsAppId property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -50,21 +52,21 @@ public class SendActivityNotificationPostRequestBody : IAdditionalDataHolder, IP /// The templateParameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? TemplateParameters { get; set; } + public List? TemplateParameters { get; set; } #nullable restore #else - public List TemplateParameters { get; set; } + public List TemplateParameters { get; set; } #endif /// The topic property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamworkActivityTopic? Topic { get; set; } + public global::ApiSdk.Models.TeamworkActivityTopic? Topic { get; set; } #nullable restore #else - public TeamworkActivityTopic Topic { get; set; } + public global::ApiSdk.Models.TeamworkActivityTopic Topic { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SendActivityNotificationPostRequestBody() { @@ -73,12 +75,12 @@ public SendActivityNotificationPostRequestBody() /// /// 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 SendActivityNotificationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Chats.Item.SendActivityNotification.SendActivityNotificationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SendActivityNotificationPostRequestBody(); + return new global::ApiSdk.Chats.Item.SendActivityNotification.SendActivityNotificationPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,11 +92,11 @@ public virtual IDictionary> GetFieldDeserializers() { { "activityType", n => { ActivityType = n.GetStringValue(); } }, { "chainId", n => { ChainId = n.GetLongValue(); } }, - { "previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, - { "recipient", n => { Recipient = n.GetObjectValue(TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } }, + { "previewText", n => { PreviewText = n.GetObjectValue(global::ApiSdk.Models.ItemBody.CreateFromDiscriminatorValue); } }, + { "recipient", n => { Recipient = n.GetObjectValue(global::ApiSdk.Models.TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } }, { "teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, - { "templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(ApiSdk.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, - { "topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, + { "templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(global::ApiSdk.Models.KeyValuePair.CreateFromDiscriminatorValue)?.AsList(); } }, + { "topic", n => { Topic = n.GetObjectValue(global::ApiSdk.Models.TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, }; } /// @@ -106,12 +108,13 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); - writer.WriteObjectValue("previewText", PreviewText); - writer.WriteObjectValue("recipient", Recipient); + writer.WriteObjectValue("previewText", PreviewText); + writer.WriteObjectValue("recipient", Recipient); writer.WriteStringValue("teamsAppId", TeamsAppId); - writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); - writer.WriteObjectValue("topic", Topic); + writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); + writer.WriteObjectValue("topic", Topic); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 82a0c49c86..1d341e6bcb 100644 --- a/src/generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.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.Chats.Item.SendActivityNotification /// /// Provides operations to call the sendActivityNotification method. /// - public class SendActivityNotificationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SendActivityNotificationRequestBuilder : BaseCliRequestBuilder { /// /// Send an activity feed notification in scope of a chat. For more information about sending notifications and the requirements for doing so, see sending Teams activity notifications. @@ -43,8 +46,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(SendActivityNotificationPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Chats.Item.SendActivityNotification.SendActivityNotificationPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 SendActivityNotificationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/sendActivityNotification", 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 SendActivityNotificationRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/sendActivityNotification", rawUrl) @@ -84,11 +87,11 @@ public SendActivityNotificationRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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(SendActivityNotificationPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.SendActivityNotification.SendActivityNotificationPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SendActivityNotificationPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.SendActivityNotification.SendActivityNotificationPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationPostR } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Tabs/Count/CountRequestBuilder.cs b/src/generated/Chats/Item/Tabs/Count/CountRequestBuilder.cs index ed75492157..cb54d33144 100644 --- a/src/generated/Chats/Item/Tabs/Count/CountRequestBuilder.cs +++ b/src/generated/Chats/Item/Tabs/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.Chats.Item.Tabs.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}/chats/{chat%2Did}/tabs/$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}/chats/{chat%2Did}/tabs/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/t /// 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/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index 7d0969732e..7aa7f31d5c 100644 --- a/src/generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/generated/Chats/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.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.Chats.Item.Tabs.Item.TeamsApp /// /// Provides operations to manage the teamsApp property of the microsoft.graph.teamsTab entity. /// - public class TeamsAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppRequestBuilder : BaseCliRequestBuilder { /// /// The application that is linked to the tab. This can't be changed after tab creation. @@ -80,14 +83,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 TeamsAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%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 TeamsAppRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public TeamsAppRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The application that is linked to the tab. This can't be changed after tab creation. /// - public class TeamsAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class TeamsAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index ce9d6eebd5..edbc3fb772 100644 --- a/src/generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.Tabs.Item.TeamsApp; 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.Chats.Item.Tabs.Item /// /// Provides operations to manage the tabs property of the microsoft.graph.chat entity. /// - public class TeamsTabItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsTabItemRequestBuilder : BaseCliRequestBuilder { /// /// Remove (unpin) a tab from the specified chat. @@ -159,8 +162,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(TeamsTab.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsTab.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,7 +192,7 @@ public Command BuildTeamsAppNavCommand() { var command = new Command("teams-app"); command.Description = "Provides operations to manage the teamsApp property of the microsoft.graph.teamsTab entity."; - var builder = new TeamsAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Tabs.Item.TeamsApp.TeamsAppRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -199,14 +202,14 @@ public Command BuildTeamsAppNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TeamsTabItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/tabs/{teamsTab%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 TeamsTabItemRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/tabs/{teamsTab%2Did}{?%24expand,%24select}", rawUrl) @@ -238,11 +241,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); @@ -258,11 +261,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(TeamsTab body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsTab body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TeamsTab body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsTab body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -274,7 +277,8 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action /// Retrieve the properties and relationships of the specified tab in a chat. /// - public class TeamsTabItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -299,3 +303,4 @@ public class TeamsTabItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/Tabs/TabsRequestBuilder.cs b/src/generated/Chats/Item/Tabs/TabsRequestBuilder.cs index d4d2ba87a6..317988d4af 100644 --- a/src/generated/Chats/Item/Tabs/TabsRequestBuilder.cs +++ b/src/generated/Chats/Item/Tabs/TabsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Chats.Item.Tabs.Count; using ApiSdk.Chats.Item.Tabs.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.Chats.Item.Tabs /// /// Provides operations to manage the tabs property of the microsoft.graph.chat entity. /// - public class TabsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TabsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the tabs property of the microsoft.graph.chat entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TeamsTabItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.Item.Tabs.Item.TeamsTabItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Chats.Item.Tabs.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(TeamsTab.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsTab.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 TabsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/tabs{?%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 TabsRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/tabs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -231,11 +234,11 @@ public TabsRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/ta /// 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); @@ -251,11 +254,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(TeamsTab body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsTab body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TeamsTab body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsTab body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action /// Retrieve the list of tabs in the specified chat. /// - public class TabsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TabsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class TabsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs b/src/generated/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs index 7c1f47316e..4dec66ff1c 100644 --- a/src/generated/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.cs +++ b/src/generated/Chats/Item/UnhideForUser/UnhideForUserPostRequestBody.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.Chats.Item.UnhideForUser { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnhideForUserPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnhideForUserPostRequestBody : 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. @@ -16,13 +18,13 @@ public class UnhideForUserPostRequestBody : IAdditionalDataHolder, IParsable /// The user property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamworkUserIdentity? User { get; set; } + public global::ApiSdk.Models.TeamworkUserIdentity? User { get; set; } #nullable restore #else - public TeamworkUserIdentity User { get; set; } + public global::ApiSdk.Models.TeamworkUserIdentity User { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnhideForUserPostRequestBody() { @@ -31,12 +33,12 @@ public UnhideForUserPostRequestBody() /// /// 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 UnhideForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Chats.Item.UnhideForUser.UnhideForUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnhideForUserPostRequestBody(); + return new global::ApiSdk.Chats.Item.UnhideForUser.UnhideForUserPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "user", n => { User = n.GetObjectValue(TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, + { "user", n => { User = n.GetObjectValue(global::ApiSdk.Models.TeamworkUserIdentity.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("user", User); + writer.WriteObjectValue("user", User); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs b/src/generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs index 306df18451..965e596381 100644 --- a/src/generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.cs +++ b/src/generated/Chats/Item/UnhideForUser/UnhideForUserRequestBuilder.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.Chats.Item.UnhideForUser /// /// Provides operations to call the unhideForUser method. /// - public class UnhideForUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnhideForUserRequestBuilder : BaseCliRequestBuilder { /// /// Unhide a chat for a user. @@ -43,8 +46,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(UnhideForUserPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Chats.Item.UnhideForUser.UnhideForUserPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 UnhideForUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/chats/{chat%2Did}/unhideForUser", 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 UnhideForUserRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/unhideForUser", rawUrl) @@ -84,11 +87,11 @@ public UnhideForUserRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat /// 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(UnhideForUserPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.UnhideForUser.UnhideForUserPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnhideForUserPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Chats.Item.UnhideForUser.UnhideForUserPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(UnhideForUserPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/CallRecordsRequestBuilder.cs b/src/generated/Communications/CallRecords/CallRecordsRequestBuilder.cs index d8f2a90c46..e727a6e27a 100644 --- a/src/generated/Communications/CallRecords/CallRecordsRequestBuilder.cs +++ b/src/generated/Communications/CallRecords/CallRecordsRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.CallRecords.Count; using ApiSdk.Communications.CallRecords.Item; using ApiSdk.Communications.CallRecords.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime; using ApiSdk.Communications.CallRecords.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime; using ApiSdk.Models.CallRecords; using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -23,7 +25,8 @@ namespace ApiSdk.Communications.CallRecords /// /// Provides operations to manage the callRecords property of the microsoft.graph.cloudCommunications entity. /// - public class CallRecordsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallRecordsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the callRecords property of the microsoft.graph.cloudCommunications entity. @@ -33,9 +36,11 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new CallRecordItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.CallRecords.Item.CallRecordItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); + commands.Add(builder.BuildOrganizer_v2NavCommand()); + commands.Add(builder.BuildParticipants_v2NavCommand()); executables.Add(builder.BuildPatchCommand()); commands.Add(builder.BuildSessionsNavCommand()); return new(executables, commands); @@ -48,7 +53,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.Communications.CallRecords.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -82,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(CallRecord.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CallRecords.CallRecord.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -103,13 +108,14 @@ public Command BuildCreateCommand() return command; } /// - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions."; + command.Description = "Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/callrecords-cloudcommunications-list-callrecords?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -206,7 +212,7 @@ public Command BuildMicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTi { var command = new Command("microsoft-graph-call-records-get-direct-routing-calls-with-from-date-time-with-to-date-time"); command.Description = "Provides operations to call the getDirectRoutingCalls method."; - var builder = new MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.CallRecords.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -223,7 +229,7 @@ public Command BuildMicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToD { var command = new Command("microsoft-graph-call-records-get-pstn-calls-with-from-date-time-with-to-date-time"); command.Description = "Provides operations to call the getPstnCalls method."; - var builder = new MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.CallRecords.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -233,31 +239,31 @@ public Command BuildMicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToD return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CallRecordsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords{?%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 CallRecordsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -273,11 +279,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(CallRecord body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CallRecords.CallRecord body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CallRecord body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CallRecords.CallRecord body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,9 +293,10 @@ public RequestInformation ToPostRequestInformation(CallRecord body, Action - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record. /// - public class CallRecordsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallRecordsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +360,4 @@ public class CallRecordsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/Count/CountRequestBuilder.cs b/src/generated/Communications/CallRecords/Count/CountRequestBuilder.cs index 2eedbea269..87a89f1357 100644 --- a/src/generated/Communications/CallRecords/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/CallRecords/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.Communications.CallRecords.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}/communications/callRecords/$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}/communications/callRecords/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/call /// 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/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs b/src/generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs index 06a32b6160..42f6bac5a2 100644 --- a/src/generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs +++ b/src/generated/Communications/CallRecords/Item/CallRecordItemRequestBuilder.cs @@ -1,7 +1,11 @@ // +#pragma warning disable CS0618 +using ApiSdk.Communications.CallRecords.Item.Organizer_v2; +using ApiSdk.Communications.CallRecords.Item.Participants_v2; using ApiSdk.Communications.CallRecords.Item.Sessions; using ApiSdk.Models.CallRecords; using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -20,7 +24,8 @@ namespace ApiSdk.Communications.CallRecords.Item /// /// Provides operations to manage the callRecords property of the microsoft.graph.cloudCommunications entity. /// - public class CallRecordItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallRecordItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property callRecords for communications @@ -58,14 +63,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/callrecords-callrecord-get?view=graph-rest-1.0"; + command.Description = "Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/callrecords-callrecord-get?view=graph-rest-1.0"; var callRecordIdOption = new Option("--call-record-id", description: "The unique identifier of callRecord") { }; callRecordIdOption.IsRequired = true; @@ -111,6 +116,52 @@ public Command BuildGetCommand() return command; } /// + /// Provides operations to manage the organizer_v2 property of the microsoft.graph.callRecords.callRecord entity. + /// + /// A + public Command BuildOrganizer_v2NavCommand() + { + var command = new Command("organizer_v2"); + command.Description = "Provides operations to manage the organizer_v2 property of the microsoft.graph.callRecords.callRecord entity."; + var builder = new global::ApiSdk.Communications.CallRecords.Item.Organizer_v2.Organizer_v2RequestBuilder(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 participants_v2 property of the microsoft.graph.callRecords.callRecord entity. + /// + /// A + public Command BuildParticipants_v2NavCommand() + { + var command = new Command("participants_v2"); + command.Description = "Provides operations to manage the participants_v2 property of the microsoft.graph.callRecords.callRecord entity."; + var builder = new global::ApiSdk.Communications.CallRecords.Item.Participants_v2.Participants_v2RequestBuilder(PathParameters); + var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildCountNavCommand()); + execCommands.Add(builder.BuildCreateCommand()); + execCommands.Add(builder.BuildListCommand()); + var cmds = builder.BuildCommand(); + execCommands.AddRange(cmds.Item1); + nonExecCommands.AddRange(cmds.Item2); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal)) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Update the navigation property callRecords in communications /// /// A @@ -140,8 +191,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(CallRecord.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CallRecords.CallRecord.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -169,7 +220,7 @@ public Command BuildSessionsNavCommand() { var command = new Command("sessions"); command.Description = "Provides operations to manage the sessions property of the microsoft.graph.callRecords.callRecord entity."; - var builder = new SessionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.CallRecords.Item.Sessions.SessionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -189,14 +240,14 @@ public Command BuildSessionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CallRecordItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/{callRecord%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 CallRecordItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}{?%24expand,%24select}", rawUrl) @@ -222,17 +273,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,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(CallRecord body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallRecords.CallRecord body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CallRecord body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallRecords.CallRecord body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -262,9 +313,10 @@ public RequestInformation ToPatchRequestInformation(CallRecord body, Action - /// Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions. + /// Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed. /// - public class CallRecordItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallRecordItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -289,3 +341,4 @@ public class CallRecordItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/Item/Organizer_v2/Organizer_v2RequestBuilder.cs b/src/generated/Communications/CallRecords/Item/Organizer_v2/Organizer_v2RequestBuilder.cs new file mode 100644 index 0000000000..807568b08b --- /dev/null +++ b/src/generated/Communications/CallRecords/Item/Organizer_v2/Organizer_v2RequestBuilder.cs @@ -0,0 +1,267 @@ +// +#pragma warning disable CS0618 +using ApiSdk.Models.CallRecords; +using ApiSdk.Models.ODataErrors; +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.Communications.CallRecords.Item.Organizer_v2 +{ + /// + /// Provides operations to manage the organizer_v2 property of the microsoft.graph.callRecords.callRecord entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Organizer_v2RequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property organizer_v2 for communications + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property organizer_v2 for communications"; + var callRecordIdOption = new Option("--call-record-id", description: "The unique identifier of callRecord") { + }; + callRecordIdOption.IsRequired = true; + command.AddOption(callRecordIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var callRecordId = invocationContext.ParseResult.GetValueForOption(callRecordIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (callRecordId is not null) requestInfo.PathParameters.Add("callRecord%2Did", callRecordId); + 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; + } + /// + /// Identity of the organizer of the call. This relationship is expanded by default in callRecord methods. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Identity of the organizer of the call. This relationship is expanded by default in callRecord methods."; + var callRecordIdOption = new Option("--call-record-id", description: "The unique identifier of callRecord") { + }; + callRecordIdOption.IsRequired = true; + command.AddOption(callRecordIdOption); + 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 callRecordId = invocationContext.ParseResult.GetValueForOption(callRecordIdOption); + 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; + }); + if (callRecordId is not null) requestInfo.PathParameters.Add("callRecord%2Did", callRecordId); + 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 the navigation property organizer_v2 in communications + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property organizer_v2 in communications"; + var callRecordIdOption = new Option("--call-record-id", description: "The unique identifier of callRecord") { + }; + callRecordIdOption.IsRequired = true; + command.AddOption(callRecordIdOption); + 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 callRecordId = invocationContext.ParseResult.GetValueForOption(callRecordIdOption); + 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.CallRecords.Organizer.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (callRecordId is not null) requestInfo.PathParameters.Add("callRecord%2Did", callRecordId); + 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 Organizer_v2RequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/organizer_v2{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public Organizer_v2RequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/organizer_v2{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property organizer_v2 for communications + /// + /// 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; + } + /// + /// Identity of the organizer of the call. This relationship is expanded by default in callRecord methods. + /// + /// 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 the navigation property organizer_v2 in communications + /// + /// 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.CallRecords.Organizer body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallRecords.Organizer 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; + } + /// + /// Identity of the organizer of the call. This relationship is expanded by default in callRecord methods. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Organizer_v2RequestBuilderGetQueryParameters + { + /// 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/Communications/CallRecords/Item/Participants_v2/Count/CountRequestBuilder.cs b/src/generated/Communications/CallRecords/Item/Participants_v2/Count/CountRequestBuilder.cs new file mode 100644 index 0000000000..be2f9a83c7 --- /dev/null +++ b/src/generated/Communications/CallRecords/Item/Participants_v2/Count/CountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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; +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.Communications.CallRecords.Item.Participants_v2.Count +{ + /// + /// Provides operations to count the resources in the collection. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get the number of the resource + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get the number of the resource"; + var callRecordIdOption = new Option("--call-record-id", description: "The unique identifier of callRecord") { + }; + callRecordIdOption.IsRequired = true; + command.AddOption(callRecordIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + command.SetHandler(async (invocationContext) => { + var callRecordId = invocationContext.ParseResult.GetValueForOption(callRecordIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + }); + if (callRecordId is not null) requestInfo.PathParameters.Add("callRecord%2Did", callRecordId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + var formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/participants_v2/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/participants_v2/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// 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", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Get the number of the resource + /// + [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 +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/Item/Participants_v2/Item/ParticipantItemRequestBuilder.cs b/src/generated/Communications/CallRecords/Item/Participants_v2/Item/ParticipantItemRequestBuilder.cs new file mode 100644 index 0000000000..6c979a8d8e --- /dev/null +++ b/src/generated/Communications/CallRecords/Item/Participants_v2/Item/ParticipantItemRequestBuilder.cs @@ -0,0 +1,285 @@ +// +#pragma warning disable CS0618 +using ApiSdk.Models.CallRecords; +using ApiSdk.Models.ODataErrors; +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.Communications.CallRecords.Item.Participants_v2.Item +{ + /// + /// Provides operations to manage the participants_v2 property of the microsoft.graph.callRecords.callRecord entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParticipantItemRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property participants_v2 for communications + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property participants_v2 for communications"; + var callRecordIdOption = new Option("--call-record-id", description: "The unique identifier of callRecord") { + }; + callRecordIdOption.IsRequired = true; + command.AddOption(callRecordIdOption); + var participantIdOption = new Option("--participant-id", description: "The unique identifier of participant") { + }; + participantIdOption.IsRequired = true; + command.AddOption(participantIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var callRecordId = invocationContext.ParseResult.GetValueForOption(callRecordIdOption); + var participantId = invocationContext.ParseResult.GetValueForOption(participantIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (callRecordId is not null) requestInfo.PathParameters.Add("callRecord%2Did", callRecordId); + if (participantId is not null) requestInfo.PathParameters.Add("participant%2Did", participantId); + 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; + } + /// + /// List of distinct participants in the call. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "List of distinct participants in the call."; + var callRecordIdOption = new Option("--call-record-id", description: "The unique identifier of callRecord") { + }; + callRecordIdOption.IsRequired = true; + command.AddOption(callRecordIdOption); + var participantIdOption = new Option("--participant-id", description: "The unique identifier of participant") { + }; + participantIdOption.IsRequired = true; + command.AddOption(participantIdOption); + 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 callRecordId = invocationContext.ParseResult.GetValueForOption(callRecordIdOption); + var participantId = invocationContext.ParseResult.GetValueForOption(participantIdOption); + 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; + }); + if (callRecordId is not null) requestInfo.PathParameters.Add("callRecord%2Did", callRecordId); + if (participantId is not null) requestInfo.PathParameters.Add("participant%2Did", participantId); + 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 the navigation property participants_v2 in communications + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property participants_v2 in communications"; + var callRecordIdOption = new Option("--call-record-id", description: "The unique identifier of callRecord") { + }; + callRecordIdOption.IsRequired = true; + command.AddOption(callRecordIdOption); + var participantIdOption = new Option("--participant-id", description: "The unique identifier of participant") { + }; + participantIdOption.IsRequired = true; + command.AddOption(participantIdOption); + 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 callRecordId = invocationContext.ParseResult.GetValueForOption(callRecordIdOption); + var participantId = invocationContext.ParseResult.GetValueForOption(participantIdOption); + 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.CallRecords.Participant.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (callRecordId is not null) requestInfo.PathParameters.Add("callRecord%2Did", callRecordId); + if (participantId is not null) requestInfo.PathParameters.Add("participant%2Did", participantId); + 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 ParticipantItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/participants_v2/{participant%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ParticipantItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/participants_v2/{participant%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property participants_v2 for communications + /// + /// 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; + } + /// + /// List of distinct participants in the call. + /// + /// 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 the navigation property participants_v2 in communications + /// + /// 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.CallRecords.Participant body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallRecords.Participant 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; + } + /// + /// List of distinct participants in the call. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParticipantItemRequestBuilderGetQueryParameters + { + /// 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/Communications/CallRecords/Item/Participants_v2/Participants_v2RequestBuilder.cs b/src/generated/Communications/CallRecords/Item/Participants_v2/Participants_v2RequestBuilder.cs new file mode 100644 index 0000000000..404bbb5d9d --- /dev/null +++ b/src/generated/Communications/CallRecords/Item/Participants_v2/Participants_v2RequestBuilder.cs @@ -0,0 +1,335 @@ +// +#pragma warning disable CS0618 +using ApiSdk.Communications.CallRecords.Item.Participants_v2.Count; +using ApiSdk.Communications.CallRecords.Item.Participants_v2.Item; +using ApiSdk.Models.CallRecords; +using ApiSdk.Models.ODataErrors; +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.Communications.CallRecords.Item.Participants_v2 +{ + /// + /// Provides operations to manage the participants_v2 property of the microsoft.graph.callRecords.callRecord entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Participants_v2RequestBuilder : BaseCliRequestBuilder + { + /// + /// Provides operations to manage the participants_v2 property of the microsoft.graph.callRecords.callRecord entity. + /// + /// A Tuple<List<Command>, List<Command>> + public Tuple, List> BuildCommand() + { + var executables = new List(); + var builder = new global::ApiSdk.Communications.CallRecords.Item.Participants_v2.Item.ParticipantItemRequestBuilder(PathParameters); + executables.Add(builder.BuildDeleteCommand()); + executables.Add(builder.BuildGetCommand()); + executables.Add(builder.BuildPatchCommand()); + return new(executables, new(0)); + } + /// + /// Provides operations to count the resources in the collection. + /// + /// A + public Command BuildCountNavCommand() + { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new global::ApiSdk.Communications.CallRecords.Item.Participants_v2.Count.CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Create new navigation property to participants_v2 for communications + /// + /// A + public Command BuildCreateCommand() + { + var command = new Command("create"); + command.Description = "Create new navigation property to participants_v2 for communications"; + var callRecordIdOption = new Option("--call-record-id", description: "The unique identifier of callRecord") { + }; + callRecordIdOption.IsRequired = true; + command.AddOption(callRecordIdOption); + 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 callRecordId = invocationContext.ParseResult.GetValueForOption(callRecordIdOption); + 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.CallRecords.Participant.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (callRecordId is not null) requestInfo.PathParameters.Add("callRecord%2Did", callRecordId); + 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; + } + /// + /// Get the list of participant objects associated with a callRecord. + /// Find more info here + /// + /// A + public Command BuildListCommand() + { + var command = new Command("list"); + command.Description = "Get the list of participant objects associated with a callRecord.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/callrecords-callrecord-list-participants_v2?view=graph-rest-1.0"; + var callRecordIdOption = new Option("--call-record-id", description: "The unique identifier of callRecord") { + }; + callRecordIdOption.IsRequired = true; + command.AddOption(callRecordIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var callRecordId = invocationContext.ParseResult.GetValueForOption(callRecordIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + if (callRecordId is not null) requestInfo.PathParameters.Add("callRecord%2Did", callRecordId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public Participants_v2RequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/participants_v2{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public Participants_v2RequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/participants_v2{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get the list of participant objects associated with a callRecord. + /// + /// 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; + } + /// + /// Create new navigation property to participants_v2 for communications + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Models.CallRecords.Participant body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CallRecords.Participant body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get the list of participant objects associated with a callRecord. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Participants_v2RequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/Item/Sessions/Count/CountRequestBuilder.cs b/src/generated/Communications/CallRecords/Item/Sessions/Count/CountRequestBuilder.cs index 84b07fdf89..f398652355 100644 --- a/src/generated/Communications/CallRecords/Item/Sessions/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/CallRecords/Item/Sessions/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.Communications.CallRecords.Item.Sessions.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}/communications/callRecords/{callRecord%2Did}/sessions/$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}/communications/callRecords/{callRecord%2Did}/sessions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/call /// 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/Communications/CallRecords/Item/Sessions/Item/Segments/Count/CountRequestBuilder.cs b/src/generated/Communications/CallRecords/Item/Sessions/Item/Segments/Count/CountRequestBuilder.cs index 85bbae6b30..7c84fdffb1 100644 --- a/src/generated/Communications/CallRecords/Item/Sessions/Item/Segments/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/CallRecords/Item/Sessions/Item/Segments/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.Communications.CallRecords.Item.Sessions.Item.Segments.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments/$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}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/call /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.cs b/src/generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.cs index 8aa1cd4e3c..904eb5f4aa 100644 --- a/src/generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.cs +++ b/src/generated/Communications/CallRecords/Item/Sessions/Item/Segments/Item/SegmentItemRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.CallRecords; using ApiSdk.Models.ODataErrors; +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.Communications.CallRecords.Item.Sessions.Item.Segments.Item /// /// Provides operations to manage the segments property of the microsoft.graph.callRecords.session entity. /// - public class SegmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SegmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property segments for communications @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Segment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CallRecords.Segment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SegmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments/{segment%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 SegmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments/{segment%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Segment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallRecords.Segment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Segment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallRecords.Segment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(Segment body, Action /// The list of segments involved in the session. Read-only. Nullable. /// - public class SegmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SegmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class SegmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.cs b/src/generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.cs index 437a27f895..02290e63d2 100644 --- a/src/generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.cs +++ b/src/generated/Communications/CallRecords/Item/Sessions/Item/Segments/SegmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.CallRecords.Item.Sessions.Item.Segments.Count; using ApiSdk.Communications.CallRecords.Item.Sessions.Item.Segments.Item; using ApiSdk.Models.CallRecords; using ApiSdk.Models.ODataErrors; +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.Communications.CallRecords.Item.Sessions.Item.Segments /// /// Provides operations to manage the segments property of the microsoft.graph.callRecords.session entity. /// - public class SegmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SegmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the segments property of the microsoft.graph.callRecords.session entity. @@ -30,7 +33,7 @@ public class SegmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new SegmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.CallRecords.Item.Sessions.Item.Segments.Item.SegmentItemRequestBuilder(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.Communications.CallRecords.Item.Sessions.Item.Segments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Segment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CallRecords.Segment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SegmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments{?%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 SegmentsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}/segments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public SegmentsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/c /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Segment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CallRecords.Segment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Segment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CallRecords.Segment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(Segment body, Action /// The list of segments involved in the session. Read-only. Nullable. /// - public class SegmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SegmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class SegmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.cs b/src/generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.cs index 00b6b01d16..a27dd54506 100644 --- a/src/generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.cs +++ b/src/generated/Communications/CallRecords/Item/Sessions/Item/SessionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.CallRecords.Item.Sessions.Item.Segments; using ApiSdk.Models.CallRecords; using ApiSdk.Models.ODataErrors; +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.Communications.CallRecords.Item.Sessions.Item /// /// Provides operations to manage the sessions property of the microsoft.graph.callRecords.callRecord entity. /// - public class SessionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SessionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property sessions for communications @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Session.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CallRecords.Session.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -186,7 +189,7 @@ public Command BuildSegmentsNavCommand() { var command = new Command("segments"); command.Description = "Provides operations to manage the segments property of the microsoft.graph.callRecords.session entity."; - var builder = new SegmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.CallRecords.Item.Sessions.Item.Segments.SegmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -206,14 +209,14 @@ public Command BuildSegmentsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SessionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%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 SessionItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions/{session%2Did}{?%24expand,%24select}", rawUrl) @@ -245,11 +248,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); @@ -265,11 +268,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(Session body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallRecords.Session body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Session body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallRecords.Session body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +284,8 @@ public RequestInformation ToPatchRequestInformation(Session body, Action /// List of sessions involved in the call. Peer-to-peer calls typically only have one session, whereas group calls typically have at least one session per participant. Read-only. Nullable. /// - public class SessionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SessionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -306,3 +310,4 @@ public class SessionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs b/src/generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs index 1175b70283..9a6f86e152 100644 --- a/src/generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs +++ b/src/generated/Communications/CallRecords/Item/Sessions/SessionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.CallRecords.Item.Sessions.Count; using ApiSdk.Communications.CallRecords.Item.Sessions.Item; using ApiSdk.Models.CallRecords; using ApiSdk.Models.ODataErrors; +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.Communications.CallRecords.Item.Sessions /// /// Provides operations to manage the sessions property of the microsoft.graph.callRecords.callRecord entity. /// - public class SessionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SessionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sessions property of the microsoft.graph.callRecords.callRecord entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SessionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.CallRecords.Item.Sessions.Item.SessionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Communications.CallRecords.Item.Sessions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(Session.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CallRecords.Session.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 SessionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions{?%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 SessionsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords/{callRecord%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public SessionsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/c /// 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); @@ -250,11 +253,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(Session body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CallRecords.Session body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Session body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CallRecords.Session body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(Session body, Action /// Retrieve the list of sessions associated with a callRecord object. If the sessions list is truncated, a sessions@odata.nextLink value will be provided to retrieve the next page of sessions. The maximum page size for sessions is 60 entries. /// - public class SessionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SessionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class SessionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.cs b/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.cs index 2e09cafd7b..2069ec87d2 100644 --- a/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.cs +++ b/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse.cs @@ -1,34 +1,36 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.CallRecords; 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.Communications.CallRecords.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Communications.CallRecords.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime.GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse(); + return new global::ApiSdk.Communications.CallRecords.MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime.GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectRoutingLogRow.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.CallRecords.DirectRoutingLogRow.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -49,7 +51,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs b/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs index bb2e12d803..8dd5b8336f 100644 --- a/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs +++ b/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder.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.Communications.CallRecords.MicrosoftGraphCallRecordsGetDirectRo /// /// Provides operations to call the getDirectRoutingCalls method. /// - public class MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder : BaseCliRequestBuilder { /// /// Get a log of direct routing calls as a collection of directRoutingLogRow entries. @@ -108,14 +111,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 MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24count,%24filter,%24search,%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 MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) @@ -128,11 +131,11 @@ public MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateT /// 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); @@ -143,7 +146,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a log of direct routing calls as a collection of directRoutingLogRow entries. /// - public class MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -177,3 +181,4 @@ public class MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithT } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.cs b/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.cs index 31fed6db1d..9da4129aa6 100644 --- a/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.cs +++ b/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse.cs @@ -1,34 +1,36 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.CallRecords; 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.Communications.CallRecords.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Communications.CallRecords.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime.GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse(); + return new global::ApiSdk.Communications.CallRecords.MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime.GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(PstnCallLogRow.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.CallRecords.PstnCallLogRow.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -49,7 +51,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs b/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs index ad722dd213..cb2d8769dc 100644 --- a/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.cs +++ b/src/generated/Communications/CallRecords/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime/MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder.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,16 +20,17 @@ namespace ApiSdk.Communications.CallRecords.MicrosoftGraphCallRecordsGetPstnCall /// /// Provides operations to call the getPstnCalls method. /// - public class MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder : BaseCliRequestBuilder { /// - /// Get log of PSTN calls as a collection of pstnCallLogRow entries. + /// Get a log of PSTN calls as a collection of pstnCallLogRow entries. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get log of PSTN calls as a collection of pstnCallLogRow entries."; + command.Description = "Get a log of PSTN calls as a collection of pstnCallLogRow entries."; var fromDateTimeOption = new Option("--from-date-time", description: "Usage: fromDateTime={fromDateTime}") { }; fromDateTimeOption.IsRequired = true; @@ -108,31 +111,31 @@ 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 MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getPstnCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24count,%24filter,%24search,%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 MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilder(string rawUrl) : base("{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getPstnCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) { } /// - /// Get log of PSTN calls as a collection of pstnCallLogRow entries. + /// Get a log of PSTN calls as a collection of pstnCallLogRow entries. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -141,9 +144,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get log of PSTN calls as a collection of pstnCallLogRow entries. + /// Get a log of PSTN calls as a collection of pstnCallLogRow entries. /// - public class MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -177,3 +181,4 @@ public class MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTime } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/CallsRequestBuilder.cs b/src/generated/Communications/Calls/CallsRequestBuilder.cs index 01114a50bb..3778a26004 100644 --- a/src/generated/Communications/Calls/CallsRequestBuilder.cs +++ b/src/generated/Communications/Calls/CallsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.Calls.Count; using ApiSdk.Communications.Calls.Item; using ApiSdk.Communications.Calls.LogTeleconferenceDeviceQuality; 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.Communications.Calls /// /// Provides operations to manage the calls property of the microsoft.graph.cloudCommunications entity. /// - public class CallsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the calls property of the microsoft.graph.cloudCommunications entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new CallItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.CallItemRequestBuilder(PathParameters); commands.Add(builder.BuildAddLargeGalleryViewNavCommand()); commands.Add(builder.BuildAnswerNavCommand()); commands.Add(builder.BuildAudioRoutingGroupsNavCommand()); @@ -65,7 +68,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.Communications.Calls.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -75,14 +78,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. + /// Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. This API supports the following PSTN scenarios: /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/application-post-calls?view=graph-rest-1.0"; + command.Description = "Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. This API supports the following PSTN scenarios:\n\nFind more info here:\n https://learn.microsoft.com/graph/api/application-post-calls?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -100,8 +103,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(Call.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Call.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,7 +227,7 @@ public Command BuildLogTeleconferenceDeviceQualityNavCommand() { var command = new Command("log-teleconference-device-quality"); command.Description = "Provides operations to call the logTeleconferenceDeviceQuality method."; - var builder = new LogTeleconferenceDeviceQualityRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.LogTeleconferenceDeviceQuality.LogTeleconferenceDeviceQualityRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -234,14 +237,14 @@ public Command BuildLogTeleconferenceDeviceQualityNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CallsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls{?%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 CallsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -254,11 +257,11 @@ public CallsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/call /// 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); @@ -267,18 +270,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. + /// Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. This API supports the following PSTN scenarios: /// /// 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 ToPostRequestInformation(Call body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Call body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Call body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Call body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -290,7 +293,8 @@ public RequestInformation ToPostRequestInformation(Call body, Action /// Retrieve the properties and relationships of a call object. /// - public class CallsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -354,3 +358,4 @@ public class CallsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Count/CountRequestBuilder.cs b/src/generated/Communications/Calls/Count/CountRequestBuilder.cs index 4f75eadb76..7d3ab08def 100644 --- a/src/generated/Communications/Calls/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/Calls/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.Communications.Calls.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}/communications/calls/$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}/communications/calls/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/call /// 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/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewPostRequestBody.cs b/src/generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewPostRequestBody.cs index 111ea5e09f..b6484c3209 100644 --- a/src/generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.Calls.Item.AddLargeGalleryView { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddLargeGalleryViewPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddLargeGalleryViewPostRequestBody : 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. @@ -21,7 +23,7 @@ public class AddLargeGalleryViewPostRequestBody : IAdditionalDataHolder, IParsab public string ClientContext { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddLargeGalleryViewPostRequestBody() { @@ -30,12 +32,12 @@ public AddLargeGalleryViewPostRequestBody() /// /// 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 AddLargeGalleryViewPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.AddLargeGalleryView.AddLargeGalleryViewPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddLargeGalleryViewPostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.AddLargeGalleryView.AddLargeGalleryViewPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.cs b/src/generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.cs index f09174ab62..dc497e6034 100644 --- a/src/generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/AddLargeGalleryView/AddLargeGalleryViewRequestBuilder.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.Communications.Calls.Item.AddLargeGalleryView /// /// Provides operations to call the addLargeGalleryView method. /// - public class AddLargeGalleryViewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddLargeGalleryViewRequestBuilder : BaseCliRequestBuilder { /// /// Add the large gallery view to a call. For details about how to identify a large gallery view participant in a roster so that you can retrieve the relevant data to subscribe to the video feed, see Identify large gallery view participants in a roster. @@ -52,8 +55,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(AddLargeGalleryViewPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.AddLargeGalleryView.AddLargeGalleryViewPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 AddLargeGalleryViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/addLargeGalleryView", 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 AddLargeGalleryViewRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/addLargeGalleryView", rawUrl) @@ -95,11 +98,11 @@ public AddLargeGalleryViewRequestBuilder(string rawUrl) : base("{+baseurl}/commu /// 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(AddLargeGalleryViewPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.AddLargeGalleryView.AddLargeGalleryViewPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddLargeGalleryViewPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.AddLargeGalleryView.AddLargeGalleryViewPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(AddLargeGalleryViewPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs b/src/generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs index 21786c5841..17e1ce94f9 100644 --- a/src/generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs @@ -1,23 +1,25 @@ // +#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.Communications.Calls.Item.Answer { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AnswerPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AnswerPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The acceptedModalities property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? AcceptedModalities { get; set; } + public List? AcceptedModalities { get; set; } #nullable restore #else - public List AcceptedModalities { get; set; } + public List AcceptedModalities { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -32,23 +34,23 @@ public class AnswerPostRequestBody : IAdditionalDataHolder, IParsable /// The callOptions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IncomingCallOptions? CallOptions { get; set; } + public global::ApiSdk.Models.IncomingCallOptions? CallOptions { get; set; } #nullable restore #else - public IncomingCallOptions CallOptions { get; set; } + public global::ApiSdk.Models.IncomingCallOptions CallOptions { get; set; } #endif /// The mediaConfig property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.MediaConfig? MediaConfig { get; set; } + public global::ApiSdk.Models.MediaConfig? MediaConfig { get; set; } #nullable restore #else - public ApiSdk.Models.MediaConfig MediaConfig { get; set; } + public global::ApiSdk.Models.MediaConfig MediaConfig { get; set; } #endif /// The participantCapacity property public int? ParticipantCapacity { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AnswerPostRequestBody() { @@ -57,12 +59,12 @@ public AnswerPostRequestBody() /// /// 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 AnswerPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.Answer.AnswerPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AnswerPostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.Answer.AnswerPostRequestBody(); } /// /// The deserialization information for the current model @@ -72,10 +74,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "acceptedModalities", n => { AcceptedModalities = n.GetCollectionOfEnumValues()?.ToList(); } }, - { "callOptions", n => { CallOptions = n.GetObjectValue(IncomingCallOptions.CreateFromDiscriminatorValue); } }, + { "acceptedModalities", n => { AcceptedModalities = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "callOptions", n => { CallOptions = n.GetObjectValue(global::ApiSdk.Models.IncomingCallOptions.CreateFromDiscriminatorValue); } }, { "callbackUri", n => { CallbackUri = n.GetStringValue(); } }, - { "mediaConfig", n => { MediaConfig = n.GetObjectValue(ApiSdk.Models.MediaConfig.CreateFromDiscriminatorValue); } }, + { "mediaConfig", n => { MediaConfig = n.GetObjectValue(global::ApiSdk.Models.MediaConfig.CreateFromDiscriminatorValue); } }, { "participantCapacity", n => { ParticipantCapacity = n.GetIntValue(); } }, }; } @@ -86,12 +88,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfEnumValues("acceptedModalities", AcceptedModalities); + writer.WriteCollectionOfEnumValues("acceptedModalities", AcceptedModalities); writer.WriteStringValue("callbackUri", CallbackUri); - writer.WriteObjectValue("callOptions", CallOptions); - writer.WriteObjectValue("mediaConfig", MediaConfig); + writer.WriteObjectValue("callOptions", CallOptions); + writer.WriteObjectValue("mediaConfig", MediaConfig); writer.WriteIntValue("participantCapacity", ParticipantCapacity); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.cs b/src/generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.cs index 756e5f33f1..4caaf7bd47 100644 --- a/src/generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Answer/AnswerRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Communications.Calls.Item.Answer /// /// Provides operations to call the answer method. /// - public class AnswerRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AnswerRequestBuilder : BaseCliRequestBuilder { /// - /// Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. + /// Enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios: /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/call-answer?view=graph-rest-1.0"; + command.Description = "Enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios:\n\nFind more info here:\n https://learn.microsoft.com/graph/api/call-answer?view=graph-rest-1.0"; var callIdOption = new Option("--call-id", description: "The unique identifier of call") { }; callIdOption.IsRequired = true; @@ -43,8 +46,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(AnswerPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.Answer.AnswerPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,32 +66,32 @@ 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 AnswerRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/answer", 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 AnswerRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/answer", rawUrl) { } /// - /// Enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. + /// Enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios: /// /// 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 ToPostRequestInformation(AnswerPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Answer.AnswerPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AnswerPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Answer.AnswerPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(AnswerPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs b/src/generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs index e5dcacf7fa..c08b6596a4 100644 --- a/src/generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/AudioRoutingGroups/AudioRoutingGroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.Calls.Item.AudioRoutingGroups.Count; using ApiSdk.Communications.Calls.Item.AudioRoutingGroups.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.Communications.Calls.Item.AudioRoutingGroups /// /// Provides operations to manage the audioRoutingGroups property of the microsoft.graph.call entity. /// - public class AudioRoutingGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AudioRoutingGroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the audioRoutingGroups property of the microsoft.graph.call entity. @@ -30,7 +33,7 @@ public class AudioRoutingGroupsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AudioRoutingGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.AudioRoutingGroups.Item.AudioRoutingGroupItemRequestBuilder(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.Communications.Calls.Item.AudioRoutingGroups.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(AudioRoutingGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AudioRoutingGroup.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 AudioRoutingGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups{?%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 AudioRoutingGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AudioRoutingGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/commun /// 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(AudioRoutingGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AudioRoutingGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AudioRoutingGroup body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AudioRoutingGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(AudioRoutingGroup body, Actio /// /// Retrieve a list of audioRoutingGroup objects. /// - public class AudioRoutingGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AudioRoutingGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AudioRoutingGroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/AudioRoutingGroups/Count/CountRequestBuilder.cs b/src/generated/Communications/Calls/Item/AudioRoutingGroups/Count/CountRequestBuilder.cs index 5c735533ca..05995bdbe1 100644 --- a/src/generated/Communications/Calls/Item/AudioRoutingGroups/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/AudioRoutingGroups/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.Communications.Calls.Item.AudioRoutingGroups.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}/communications/calls/{call%2Did}/audioRoutingGroups/$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}/communications/calls/{call%2Did}/audioRoutingGroups/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/call /// 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/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.cs b/src/generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.cs index d268f36173..44db7699ae 100644 --- a/src/generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/AudioRoutingGroups/Item/AudioRoutingGroupItemRequestBuilder.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.Communications.Calls.Item.AudioRoutingGroups.Item /// /// Provides operations to manage the audioRoutingGroups property of the microsoft.graph.call entity. /// - public class AudioRoutingGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AudioRoutingGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete the specified audioRoutingGroup. @@ -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(AudioRoutingGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AudioRoutingGroup.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 AudioRoutingGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups/{audioRoutingGroup%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 AudioRoutingGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/audioRoutingGroups/{audioRoutingGroup%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(AudioRoutingGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AudioRoutingGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AudioRoutingGroup body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AudioRoutingGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(AudioRoutingGroup body, Acti /// /// Retrieve the properties and relationships of an audioRoutingGroup object. /// - public class AudioRoutingGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AudioRoutingGroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class AudioRoutingGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/CallItemRequestBuilder.cs b/src/generated/Communications/Calls/Item/CallItemRequestBuilder.cs index d248681598..e02f2e5002 100644 --- a/src/generated/Communications/Calls/Item/CallItemRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/CallItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.Calls.Item.AddLargeGalleryView; using ApiSdk.Communications.Calls.Item.Answer; using ApiSdk.Communications.Calls.Item.AudioRoutingGroups; @@ -20,6 +21,7 @@ using ApiSdk.Communications.Calls.Item.UpdateRecordingStatus; 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; @@ -38,7 +40,8 @@ namespace ApiSdk.Communications.Calls.Item /// /// Provides operations to manage the calls property of the microsoft.graph.cloudCommunications entity. /// - public class CallItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the addLargeGalleryView method. @@ -48,7 +51,7 @@ public Command BuildAddLargeGalleryViewNavCommand() { var command = new Command("add-large-gallery-view"); command.Description = "Provides operations to call the addLargeGalleryView method."; - var builder = new AddLargeGalleryViewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.AddLargeGalleryView.AddLargeGalleryViewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -65,7 +68,7 @@ public Command BuildAnswerNavCommand() { var command = new Command("answer"); command.Description = "Provides operations to call the answer method."; - var builder = new AnswerRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Answer.AnswerRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -82,7 +85,7 @@ public Command BuildAudioRoutingGroupsNavCommand() { var command = new Command("audio-routing-groups"); command.Description = "Provides operations to manage the audioRoutingGroups property of the microsoft.graph.call entity."; - var builder = new AudioRoutingGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.AudioRoutingGroups.AudioRoutingGroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -109,7 +112,7 @@ public Command BuildCancelMediaProcessingNavCommand() { var command = new Command("cancel-media-processing"); command.Description = "Provides operations to call the cancelMediaProcessing method."; - var builder = new CancelMediaProcessingRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.CancelMediaProcessing.CancelMediaProcessingRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -126,7 +129,7 @@ public Command BuildChangeScreenSharingRoleNavCommand() { var command = new Command("change-screen-sharing-role"); command.Description = "Provides operations to call the changeScreenSharingRole method."; - var builder = new ChangeScreenSharingRoleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.ChangeScreenSharingRole.ChangeScreenSharingRoleRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -143,7 +146,7 @@ public Command BuildContentSharingSessionsNavCommand() { var command = new Command("content-sharing-sessions"); command.Description = "Provides operations to manage the contentSharingSessions property of the microsoft.graph.call entity."; - var builder = new ContentSharingSessionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.ContentSharingSessions.ContentSharingSessionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -259,7 +262,7 @@ public Command BuildKeepAliveNavCommand() { var command = new Command("keep-alive"); command.Description = "Provides operations to call the keepAlive method."; - var builder = new KeepAliveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.KeepAlive.KeepAliveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -276,7 +279,7 @@ public Command BuildMuteNavCommand() { var command = new Command("mute"); command.Description = "Provides operations to call the mute method."; - var builder = new MuteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Mute.MuteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -293,7 +296,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.call entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -320,7 +323,7 @@ public Command BuildParticipantsNavCommand() { var command = new Command("participants"); command.Description = "Provides operations to manage the participants property of the microsoft.graph.call entity."; - var builder = new ParticipantsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Participants.ParticipantsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -370,8 +373,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(Call.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Call.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -399,7 +402,7 @@ public Command BuildPlayPromptNavCommand() { var command = new Command("play-prompt"); command.Description = "Provides operations to call the playPrompt method."; - var builder = new PlayPromptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.PlayPrompt.PlayPromptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -416,7 +419,7 @@ public Command BuildRecordResponseNavCommand() { var command = new Command("record-response"); command.Description = "Provides operations to call the recordResponse method."; - var builder = new RecordResponseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.RecordResponse.RecordResponseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -433,7 +436,7 @@ public Command BuildRedirectNavCommand() { var command = new Command("redirect"); command.Description = "Provides operations to call the redirect method."; - var builder = new RedirectRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Redirect.RedirectRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -450,7 +453,7 @@ public Command BuildRejectNavCommand() { var command = new Command("reject"); command.Description = "Provides operations to call the reject method."; - var builder = new RejectRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Reject.RejectRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -467,7 +470,7 @@ public Command BuildSendDtmfTonesNavCommand() { var command = new Command("send-dtmf-tones"); command.Description = "Provides operations to call the sendDtmfTones method."; - var builder = new SendDtmfTonesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.SendDtmfTones.SendDtmfTonesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -484,7 +487,7 @@ public Command BuildSubscribeToToneNavCommand() { var command = new Command("subscribe-to-tone"); command.Description = "Provides operations to call the subscribeToTone method."; - var builder = new SubscribeToToneRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.SubscribeToTone.SubscribeToToneRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -501,7 +504,7 @@ public Command BuildTransferNavCommand() { var command = new Command("transfer"); command.Description = "Provides operations to call the transfer method."; - var builder = new TransferRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Transfer.TransferRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -518,7 +521,7 @@ public Command BuildUnmuteNavCommand() { var command = new Command("unmute"); command.Description = "Provides operations to call the unmute method."; - var builder = new UnmuteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Unmute.UnmuteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -535,7 +538,7 @@ public Command BuildUpdateRecordingStatusNavCommand() { var command = new Command("update-recording-status"); command.Description = "Provides operations to call the updateRecordingStatus method."; - var builder = new UpdateRecordingStatusRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.UpdateRecordingStatus.UpdateRecordingStatusRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -545,14 +548,14 @@ public Command BuildUpdateRecordingStatusNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CallItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%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 CallItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}{?%24expand,%24select}", rawUrl) @@ -584,11 +587,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); @@ -604,11 +607,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(Call body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Call body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Call body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Call body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -620,7 +623,8 @@ public RequestInformation ToPatchRequestInformation(Call body, Action /// Retrieve the properties and relationships of a call object. /// - public class CallItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -645,3 +649,4 @@ public class CallItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingPostRequestBody.cs b/src/generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingPostRequestBody.cs index 63e67f7e56..eb4380b7d8 100644 --- a/src/generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.Calls.Item.CancelMediaProcessing { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CancelMediaProcessingPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CancelMediaProcessingPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CancelMediaProcessingPostRequestBody : IAdditionalDataHolder, IPars public string ClientContext { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CancelMediaProcessingPostRequestBody() { @@ -30,12 +32,12 @@ public CancelMediaProcessingPostRequestBody() /// /// 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 CancelMediaProcessingPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.CancelMediaProcessing.CancelMediaProcessingPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CancelMediaProcessingPostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.CancelMediaProcessing.CancelMediaProcessingPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.cs b/src/generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.cs index c633d222ee..077444aa64 100644 --- a/src/generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/CancelMediaProcessing/CancelMediaProcessingRequestBuilder.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.Communications.Calls.Item.CancelMediaProcessing /// /// Provides operations to call the cancelMediaProcessing method. /// - public class CancelMediaProcessingRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelMediaProcessingRequestBuilder : BaseCliRequestBuilder { /// /// Cancels processing for any in-progress media operations. Media operations refer to the IVR operations playPrompt and recordResponse, which are by default queued to process in order. The cancelMediaProcessing method cancels any operation that is in-process as well as operations that are queued. For example, this method can be used to clean up the IVR operation queue for a new media operation. However, it will not cancel a subscribeToTone operation because it operates independent of any operation queue. @@ -52,8 +55,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(CancelMediaProcessingPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.CancelMediaProcessing.CancelMediaProcessingPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CancelMediaProcessingRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/cancelMediaProcessing", 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 CancelMediaProcessingRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/cancelMediaProcessing", rawUrl) @@ -95,11 +98,11 @@ public CancelMediaProcessingRequestBuilder(string rawUrl) : base("{+baseurl}/com /// 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(CancelMediaProcessingPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.CancelMediaProcessing.CancelMediaProcessingPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CancelMediaProcessingPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.CancelMediaProcessing.CancelMediaProcessingPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CancelMediaProcessingPostRequ } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRolePostRequestBody.cs b/src/generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRolePostRequestBody.cs index 2075de3831..fec77f4665 100644 --- a/src/generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRolePostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRolePostRequestBody.cs @@ -1,22 +1,24 @@ // +#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.Communications.Calls.Item.ChangeScreenSharingRole { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ChangeScreenSharingRolePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ChangeScreenSharingRolePostRequestBody : 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. public IDictionary AdditionalData { get; set; } /// The role property - public ScreenSharingRole? Role { get; set; } + public global::ApiSdk.Models.ScreenSharingRole? Role { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ChangeScreenSharingRolePostRequestBody() { @@ -25,12 +27,12 @@ public ChangeScreenSharingRolePostRequestBody() /// /// 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 ChangeScreenSharingRolePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.ChangeScreenSharingRole.ChangeScreenSharingRolePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChangeScreenSharingRolePostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.ChangeScreenSharingRole.ChangeScreenSharingRolePostRequestBody(); } /// /// The deserialization information for the current model @@ -40,7 +42,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "role", n => { Role = n.GetEnumValue(); } }, + { "role", n => { Role = n.GetEnumValue(); } }, }; } /// @@ -50,8 +52,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("role", Role); + writer.WriteEnumValue("role", Role); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.cs b/src/generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.cs index 803087e0a5..98d4eb5c56 100644 --- a/src/generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/ChangeScreenSharingRole/ChangeScreenSharingRoleRequestBuilder.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.Communications.Calls.Item.ChangeScreenSharingRole /// /// Provides operations to call the changeScreenSharingRole method. /// - public class ChangeScreenSharingRoleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChangeScreenSharingRoleRequestBuilder : BaseCliRequestBuilder { /// /// Allow applications to share screen content with the participants of a group call. @@ -43,8 +46,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(ChangeScreenSharingRolePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.ChangeScreenSharingRole.ChangeScreenSharingRolePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 ChangeScreenSharingRoleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/changeScreenSharingRole", 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 ChangeScreenSharingRoleRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/changeScreenSharingRole", rawUrl) @@ -84,11 +87,11 @@ public ChangeScreenSharingRoleRequestBuilder(string rawUrl) : base("{+baseurl}/c /// 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(ChangeScreenSharingRolePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.ChangeScreenSharingRole.ChangeScreenSharingRolePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChangeScreenSharingRolePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.ChangeScreenSharingRole.ChangeScreenSharingRolePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(ChangeScreenSharingRolePostRe } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs b/src/generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs index e89c508ac5..7bc13f2dfb 100644 --- a/src/generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/ContentSharingSessions/ContentSharingSessionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.Calls.Item.ContentSharingSessions.Count; using ApiSdk.Communications.Calls.Item.ContentSharingSessions.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.Communications.Calls.Item.ContentSharingSessions /// /// Provides operations to manage the contentSharingSessions property of the microsoft.graph.call entity. /// - public class ContentSharingSessionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentSharingSessionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentSharingSessions property of the microsoft.graph.call entity. @@ -30,7 +33,7 @@ public class ContentSharingSessionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ContentSharingSessionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.ContentSharingSessions.Item.ContentSharingSessionItemRequestBuilder(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.Communications.Calls.Item.ContentSharingSessions.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(ContentSharingSession.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ContentSharingSession.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -208,14 +211,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentSharingSessionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/contentSharingSessions{?%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 ContentSharingSessionsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/contentSharingSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -228,11 +231,11 @@ public ContentSharingSessionsRequestBuilder(string rawUrl) : base("{+baseurl}/co /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ContentSharingSession body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ContentSharingSession body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ContentSharingSession body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ContentSharingSession body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPostRequestInformation(ContentSharingSession body, A /// /// Retrieve a list of contentSharingSession objects in a call. /// - public class ContentSharingSessionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentSharingSessionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -328,3 +332,4 @@ public class ContentSharingSessionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/ContentSharingSessions/Count/CountRequestBuilder.cs b/src/generated/Communications/Calls/Item/ContentSharingSessions/Count/CountRequestBuilder.cs index cf5a5d462d..513861e55e 100644 --- a/src/generated/Communications/Calls/Item/ContentSharingSessions/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/ContentSharingSessions/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.Communications.Calls.Item.ContentSharingSessions.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}/communications/calls/{call%2Did}/contentSharingSessions/$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}/communications/calls/{call%2Did}/contentSharingSessions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/call /// 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/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.cs b/src/generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.cs index 0d73dba07d..d6a46cf366 100644 --- a/src/generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/ContentSharingSessions/Item/ContentSharingSessionItemRequestBuilder.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.Communications.Calls.Item.ContentSharingSessions.Item /// /// Provides operations to manage the contentSharingSessions property of the microsoft.graph.call entity. /// - public class ContentSharingSessionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentSharingSessionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property contentSharingSessions for communications @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ContentSharingSession.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ContentSharingSession.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -179,14 +182,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentSharingSessionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/contentSharingSessions/{contentSharingSession%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 ContentSharingSessionItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/contentSharingSessions/{contentSharingSession%2Did}{?%24expand,%24select}", rawUrl) @@ -218,11 +221,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -238,11 +241,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ContentSharingSession body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ContentSharingSession body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ContentSharingSession body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ContentSharingSession body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -254,7 +257,8 @@ public RequestInformation ToPatchRequestInformation(ContentSharingSession body, /// /// Retrieve the properties of a contentSharingSession object in a call. /// - public class ContentSharingSessionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentSharingSessionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -279,3 +283,4 @@ public class ContentSharingSessionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.cs b/src/generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.cs index b36fa65ff5..5ece6f5a51 100644 --- a/src/generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/KeepAlive/KeepAliveRequestBuilder.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.Communications.Calls.Item.KeepAlive /// /// Provides operations to call the keepAlive method. /// - public class KeepAliveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class KeepAliveRequestBuilder : BaseCliRequestBuilder { /// /// Make a request to this API every 15 to 45 minutes to ensure that an ongoing call remains active. A call that does not receive this request within 45 minutes is considered inactive and will subsequently end. At least one successful request must be made within 45 minutes of the previous request, or the start of the call. We recommend that you send a request in shorter time intervals (every 15 minutes). Make sure that these requests are successful to prevent the call from timing out and ending. Attempting to send a request to a call that has already ended will result in a 404 Not-Found error. The resources related to the call should be cleaned up on the application side. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public KeepAliveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/keepAlive", 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 KeepAliveRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/keepAlive", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.Calls.Item.Mute { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MutePostRequestBody : IAdditionalDataHolder, IParsable + public partial class MutePostRequestBody : 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. @@ -21,7 +23,7 @@ public class MutePostRequestBody : IAdditionalDataHolder, IParsable public string ClientContext { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MutePostRequestBody() { @@ -30,12 +32,12 @@ public MutePostRequestBody() /// /// 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 MutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.Mute.MutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MutePostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.Mute.MutePostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Mute/MuteRequestBuilder.cs b/src/generated/Communications/Calls/Item/Mute/MuteRequestBuilder.cs index 04cf5eff93..71520c1174 100644 --- a/src/generated/Communications/Calls/Item/Mute/MuteRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Mute/MuteRequestBuilder.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.Communications.Calls.Item.Mute /// /// Provides operations to call the mute method. /// - public class MuteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MuteRequestBuilder : BaseCliRequestBuilder { /// /// Allows the application to mute itself. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more details about how to handle mute operations, see muteParticipantOperation @@ -52,8 +55,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(MutePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.Mute.MutePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 MuteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/mute", 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 MuteRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/mute", rawUrl) @@ -95,11 +98,11 @@ public MuteRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls /// 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(MutePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Mute.MutePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MutePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Mute.MutePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(MutePostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Operations/Count/CountRequestBuilder.cs b/src/generated/Communications/Calls/Item/Operations/Count/CountRequestBuilder.cs index 1f2b229b8d..237df1047d 100644 --- a/src/generated/Communications/Calls/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Operations/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.Communications.Calls.Item.Operations.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}/communications/calls/{call%2Did}/operations/$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}/communications/calls/{call%2Did}/operations/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/call /// 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/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.cs b/src/generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.cs index dade487137..efaf2afa0b 100644 --- a/src/generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Operations/Item/CommsOperationItemRequestBuilder.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.Communications.Calls.Item.Operations.Item /// /// Provides operations to manage the operations property of the microsoft.graph.call entity. /// - public class CommsOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommsOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property operations for communications @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(CommsOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CommsOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -179,14 +182,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CommsOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/operations/{commsOperation%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 CommsOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/operations/{commsOperation%2Did}{?%24expand,%24select}", rawUrl) @@ -218,11 +221,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -238,11 +241,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(CommsOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CommsOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CommsOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CommsOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -254,7 +257,8 @@ public RequestInformation ToPatchRequestInformation(CommsOperation body, Action< /// /// Get the status of an operation that adds the large gallery view to a call. /// - public class CommsOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommsOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -279,3 +283,4 @@ public class CommsOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs b/src/generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs index 94385e26d6..3d419a537d 100644 --- a/src/generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Operations/OperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.Calls.Item.Operations.Count; using ApiSdk.Communications.Calls.Item.Operations.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.Communications.Calls.Item.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.call entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the operations property of the microsoft.graph.call entity. @@ -30,7 +33,7 @@ public class OperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new CommsOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Operations.Item.CommsOperationItemRequestBuilder(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.Communications.Calls.Item.Operations.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(CommsOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CommsOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/communications /// 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); @@ -247,11 +250,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(CommsOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CommsOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommsOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CommsOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(CommsOperation body, Action /// Get the status of an operation that adds the large gallery view to a call. /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class OperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Participants/Count/CountRequestBuilder.cs b/src/generated/Communications/Calls/Item/Participants/Count/CountRequestBuilder.cs index 071fe0ceea..f4b1305358 100644 --- a/src/generated/Communications/Calls/Item/Participants/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Participants/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.Communications.Calls.Item.Participants.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}/communications/calls/{call%2Did}/participants/$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}/communications/calls/{call%2Did}/participants/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/call /// 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/Communications/Calls/Item/Participants/Invite/InvitePostRequestBody.cs b/src/generated/Communications/Calls/Item/Participants/Invite/InvitePostRequestBody.cs index a69c69f3e1..5d378ebb11 100644 --- a/src/generated/Communications/Calls/Item/Participants/Invite/InvitePostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/Participants/Invite/InvitePostRequestBody.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.Communications.Calls.Item.Participants.Invite { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class InvitePostRequestBody : IAdditionalDataHolder, IParsable + public partial class InvitePostRequestBody : 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,13 +26,13 @@ public class InvitePostRequestBody : IAdditionalDataHolder, IParsable /// The participants property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Participants { get; set; } + public List? Participants { get; set; } #nullable restore #else - public List Participants { get; set; } + public List Participants { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InvitePostRequestBody() { @@ -39,12 +41,12 @@ public InvitePostRequestBody() /// /// 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 InvitePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.Participants.Invite.InvitePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InvitePostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.Participants.Invite.InvitePostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "clientContext", n => { ClientContext = n.GetStringValue(); } }, - { "participants", n => { Participants = n.GetCollectionOfObjectValues(InvitationParticipantInfo.CreateFromDiscriminatorValue)?.ToList(); } }, + { "participants", n => { Participants = n.GetCollectionOfObjectValues(global::ApiSdk.Models.InvitationParticipantInfo.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); - writer.WriteCollectionOfObjectValues("participants", Participants); + writer.WriteCollectionOfObjectValues("participants", Participants); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs index 14772fa984..47b029e9ff 100644 --- a/src/generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.Communications.Calls.Item.Participants.Invite /// /// Provides operations to call the invite method. /// - public class InviteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InviteRequestBuilder : BaseCliRequestBuilder { /// - /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. - /// Find more info here + /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. + /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. \n\nFind more info here:\n https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0"; + command.Description = "Invite participants to the active call. For more information about how to handle operations, see commsOperation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0"; var callIdOption = new Option("--call-id", description: "The unique identifier of call") { }; callIdOption.IsRequired = true; @@ -52,8 +55,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(InvitePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.Participants.Invite.InvitePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,32 +77,32 @@ 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 InviteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/participants/invite", 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 InviteRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/participants/invite", rawUrl) { } /// - /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. + /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. /// /// 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 ToPostRequestInformation(InvitePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Participants.Invite.InvitePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(InvitePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Participants.Invite.InvitePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(InvitePostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Participants/Item/Mute/MutePostRequestBody.cs b/src/generated/Communications/Calls/Item/Participants/Item/Mute/MutePostRequestBody.cs index 579469be66..89ebfc558b 100644 --- a/src/generated/Communications/Calls/Item/Participants/Item/Mute/MutePostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/Participants/Item/Mute/MutePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.Calls.Item.Participants.Item.Mute { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MutePostRequestBody : IAdditionalDataHolder, IParsable + public partial class MutePostRequestBody : 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. @@ -21,7 +23,7 @@ public class MutePostRequestBody : IAdditionalDataHolder, IParsable public string ClientContext { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MutePostRequestBody() { @@ -30,12 +32,12 @@ public MutePostRequestBody() /// /// 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 MutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.Participants.Item.Mute.MutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MutePostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.Participants.Item.Mute.MutePostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.cs b/src/generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.cs index ea181f658e..734a41bde5 100644 --- a/src/generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Participants/Item/Mute/MuteRequestBuilder.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.Communications.Calls.Item.Participants.Item.Mute /// /// Provides operations to call the mute method. /// - public class MuteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MuteRequestBuilder : BaseCliRequestBuilder { /// /// Mute a specific participant in the call. This is a server mute, meaning that the server will drop all audio packets for this participant, even if the participant continues to stream audio. For more information about how to handle mute operations, see muteParticipantOperation. @@ -57,8 +60,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(MutePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.Participants.Item.Mute.MutePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 MuteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/mute", 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 MuteRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/mute", rawUrl) @@ -101,11 +104,11 @@ public MuteRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls /// 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(MutePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Participants.Item.Mute.MutePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MutePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Participants.Item.Mute.MutePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(MutePostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs b/src/generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs index 2c734e5f84..16cf6db1aa 100644 --- a/src/generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.Calls.Item.Participants.Item.Mute; using ApiSdk.Communications.Calls.Item.Participants.Item.StartHoldMusic; using ApiSdk.Communications.Calls.Item.Participants.Item.StopHoldMusic; 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.Communications.Calls.Item.Participants.Item /// /// Provides operations to manage the participants property of the microsoft.graph.call entity. /// - public class ParticipantItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParticipantItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. @@ -133,7 +136,7 @@ public Command BuildMuteNavCommand() { var command = new Command("mute"); command.Description = "Provides operations to call the mute method."; - var builder = new MuteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Participants.Item.Mute.MuteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -177,8 +180,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(Participant.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Participant.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,7 +210,7 @@ public Command BuildStartHoldMusicNavCommand() { var command = new Command("start-hold-music"); command.Description = "Provides operations to call the startHoldMusic method."; - var builder = new StartHoldMusicRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Participants.Item.StartHoldMusic.StartHoldMusicRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -224,7 +227,7 @@ public Command BuildStopHoldMusicNavCommand() { var command = new Command("stop-hold-music"); command.Description = "Provides operations to call the stopHoldMusic method."; - var builder = new StopHoldMusicRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Participants.Item.StopHoldMusic.StopHoldMusicRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -234,14 +237,14 @@ public Command BuildStopHoldMusicNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ParticipantItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/participants/{participant%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 ParticipantItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(Participant body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Participant body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Participant body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Participant body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(Participant body, Action /// Retrieve the properties and relationships of a participant object. /// - public class ParticipantItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParticipantItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class ParticipantItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicPostRequestBody.cs b/src/generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicPostRequestBody.cs index 5d61eeded7..57840569d6 100644 --- a/src/generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicPostRequestBody.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.Communications.Calls.Item.Participants.Item.StartHoldMusic { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class StartHoldMusicPostRequestBody : IAdditionalDataHolder, IParsable + public partial class StartHoldMusicPostRequestBody : 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,13 +26,13 @@ public class StartHoldMusicPostRequestBody : IAdditionalDataHolder, IParsable /// The customPrompt property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Prompt? CustomPrompt { get; set; } + public global::ApiSdk.Models.Prompt? CustomPrompt { get; set; } #nullable restore #else - public Prompt CustomPrompt { get; set; } + public global::ApiSdk.Models.Prompt CustomPrompt { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public StartHoldMusicPostRequestBody() { @@ -39,12 +41,12 @@ public StartHoldMusicPostRequestBody() /// /// 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 StartHoldMusicPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.Participants.Item.StartHoldMusic.StartHoldMusicPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StartHoldMusicPostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.Participants.Item.StartHoldMusic.StartHoldMusicPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "clientContext", n => { ClientContext = n.GetStringValue(); } }, - { "customPrompt", n => { CustomPrompt = n.GetObjectValue(Prompt.CreateFromDiscriminatorValue); } }, + { "customPrompt", n => { CustomPrompt = n.GetObjectValue(global::ApiSdk.Models.Prompt.CreateFromDiscriminatorValue); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); - writer.WriteObjectValue("customPrompt", CustomPrompt); + writer.WriteObjectValue("customPrompt", CustomPrompt); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.cs b/src/generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.cs index f265570cf8..e6c79197d7 100644 --- a/src/generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Participants/Item/StartHoldMusic/StartHoldMusicRequestBuilder.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.Communications.Calls.Item.Participants.Item.StartHoldMusic /// /// Provides operations to call the startHoldMusic method. /// - public class StartHoldMusicRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StartHoldMusicRequestBuilder : BaseCliRequestBuilder { /// /// Put a participant on hold and play music in the background. @@ -57,8 +60,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(StartHoldMusicPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.Participants.Item.StartHoldMusic.StartHoldMusicPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 StartHoldMusicRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/startHoldMusic", 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 StartHoldMusicRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/startHoldMusic", rawUrl) @@ -101,11 +104,11 @@ public StartHoldMusicRequestBuilder(string rawUrl) : base("{+baseurl}/communicat /// 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(StartHoldMusicPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Participants.Item.StartHoldMusic.StartHoldMusicPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(StartHoldMusicPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Participants.Item.StartHoldMusic.StartHoldMusicPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(StartHoldMusicPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicPostRequestBody.cs b/src/generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicPostRequestBody.cs index 923e9cf39b..0dbf1e87bb 100644 --- a/src/generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.Calls.Item.Participants.Item.StopHoldMusic { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class StopHoldMusicPostRequestBody : IAdditionalDataHolder, IParsable + public partial class StopHoldMusicPostRequestBody : 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. @@ -21,7 +23,7 @@ public class StopHoldMusicPostRequestBody : IAdditionalDataHolder, IParsable public string ClientContext { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public StopHoldMusicPostRequestBody() { @@ -30,12 +32,12 @@ public StopHoldMusicPostRequestBody() /// /// 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 StopHoldMusicPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.Participants.Item.StopHoldMusic.StopHoldMusicPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StopHoldMusicPostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.Participants.Item.StopHoldMusic.StopHoldMusicPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.cs b/src/generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.cs index bc39b35f44..a03b7cb909 100644 --- a/src/generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Participants/Item/StopHoldMusic/StopHoldMusicRequestBuilder.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.Communications.Calls.Item.Participants.Item.StopHoldMusic /// /// Provides operations to call the stopHoldMusic method. /// - public class StopHoldMusicRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StopHoldMusicRequestBuilder : BaseCliRequestBuilder { /// /// Reincorporate a participant previously put on hold to the call. @@ -57,8 +60,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(StopHoldMusicPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.Participants.Item.StopHoldMusic.StopHoldMusicPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 StopHoldMusicRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/stopHoldMusic", 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 StopHoldMusicRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/stopHoldMusic", rawUrl) @@ -101,11 +104,11 @@ public StopHoldMusicRequestBuilder(string rawUrl) : base("{+baseurl}/communicati /// 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(StopHoldMusicPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Participants.Item.StopHoldMusic.StopHoldMusicPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(StopHoldMusicPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Participants.Item.StopHoldMusic.StopHoldMusicPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(StopHoldMusicPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs b/src/generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs index 2f16773f20..3685468c36 100644 --- a/src/generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Participants/ParticipantsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.Calls.Item.Participants.Count; using ApiSdk.Communications.Calls.Item.Participants.Invite; using ApiSdk.Communications.Calls.Item.Participants.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Communications.Calls.Item.Participants /// /// Provides operations to manage the participants property of the microsoft.graph.call entity. /// - public class ParticipantsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParticipantsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the participants property of the microsoft.graph.call entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ParticipantItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Participants.Item.ParticipantItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildMuteNavCommand()); @@ -49,7 +52,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.Communications.Calls.Item.Participants.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Participant.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Participant.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -117,7 +120,7 @@ public Command BuildInviteNavCommand() { var command = new Command("invite"); command.Description = "Provides operations to call the invite method."; - var builder = new InviteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.Item.Participants.Invite.InviteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -230,14 +233,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 ParticipantsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/participants{?%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 ParticipantsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/participants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -250,11 +253,11 @@ public ParticipantsRequestBuilder(string rawUrl) : base("{+baseurl}/communicatio /// 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); @@ -270,11 +273,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(Participant body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Participant body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Participant body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Participant body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -286,7 +289,8 @@ public RequestInformation ToPostRequestInformation(Participant body, Action /// Retrieve a list of participant objects in the call. /// - public class ParticipantsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParticipantsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -350,3 +354,4 @@ public class ParticipantsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/PlayPrompt/PlayPromptPostRequestBody.cs b/src/generated/Communications/Calls/Item/PlayPrompt/PlayPromptPostRequestBody.cs index e8f873495f..8aa246dfc3 100644 --- a/src/generated/Communications/Calls/Item/PlayPrompt/PlayPromptPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/PlayPrompt/PlayPromptPostRequestBody.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.Communications.Calls.Item.PlayPrompt { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PlayPromptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PlayPromptPostRequestBody : 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,13 +26,13 @@ public class PlayPromptPostRequestBody : IAdditionalDataHolder, IParsable /// The prompts property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Prompts { get; set; } + public List? Prompts { get; set; } #nullable restore #else - public List Prompts { get; set; } + public List Prompts { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PlayPromptPostRequestBody() { @@ -39,12 +41,12 @@ public PlayPromptPostRequestBody() /// /// 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 PlayPromptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.PlayPrompt.PlayPromptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PlayPromptPostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.PlayPrompt.PlayPromptPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "clientContext", n => { ClientContext = n.GetStringValue(); } }, - { "prompts", n => { Prompts = n.GetCollectionOfObjectValues(Prompt.CreateFromDiscriminatorValue)?.ToList(); } }, + { "prompts", n => { Prompts = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Prompt.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); - writer.WriteCollectionOfObjectValues("prompts", Prompts); + writer.WriteCollectionOfObjectValues("prompts", Prompts); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.cs b/src/generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.cs index 9b2c1612e5..d9cd3b2e0e 100644 --- a/src/generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/PlayPrompt/PlayPromptRequestBuilder.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.Communications.Calls.Item.PlayPrompt /// /// Provides operations to call the playPrompt method. /// - public class PlayPromptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlayPromptRequestBuilder : BaseCliRequestBuilder { /// /// Play a prompt in the call. For more information about how to handle operations, see commsOperation @@ -52,8 +55,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(PlayPromptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.PlayPrompt.PlayPromptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 PlayPromptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/playPrompt", 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 PlayPromptRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/playPrompt", rawUrl) @@ -95,11 +98,11 @@ public PlayPromptRequestBuilder(string rawUrl) : base("{+baseurl}/communications /// 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(PlayPromptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.PlayPrompt.PlayPromptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PlayPromptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.PlayPrompt.PlayPromptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(PlayPromptPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/RecordResponse/RecordResponsePostRequestBody.cs b/src/generated/Communications/Calls/Item/RecordResponse/RecordResponsePostRequestBody.cs index 9d8e9fcca2..01b9f952ac 100644 --- a/src/generated/Communications/Calls/Item/RecordResponse/RecordResponsePostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/RecordResponse/RecordResponsePostRequestBody.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.Communications.Calls.Item.RecordResponse { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RecordResponsePostRequestBody : IAdditionalDataHolder, IParsable + public partial class RecordResponsePostRequestBody : 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. @@ -34,10 +36,10 @@ public class RecordResponsePostRequestBody : IAdditionalDataHolder, IParsable /// The prompts property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Prompts { get; set; } + public List? Prompts { get; set; } #nullable restore #else - public List Prompts { get; set; } + public List Prompts { get; set; } #endif /// The stopTones property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -48,7 +50,7 @@ public class RecordResponsePostRequestBody : IAdditionalDataHolder, IParsable public List StopTones { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RecordResponsePostRequestBody() { @@ -57,12 +59,12 @@ public RecordResponsePostRequestBody() /// /// 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 RecordResponsePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.RecordResponse.RecordResponsePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RecordResponsePostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.RecordResponse.RecordResponsePostRequestBody(); } /// /// The deserialization information for the current model @@ -78,8 +80,8 @@ public virtual IDictionary> GetFieldDeserializers() { "maxRecordDurationInSeconds", n => { MaxRecordDurationInSeconds = n.GetIntValue(); } }, { "maxSilenceTimeoutInSeconds", n => { MaxSilenceTimeoutInSeconds = n.GetIntValue(); } }, { "playBeep", n => { PlayBeep = n.GetBoolValue(); } }, - { "prompts", n => { Prompts = n.GetCollectionOfObjectValues(Prompt.CreateFromDiscriminatorValue)?.ToList(); } }, - { "stopTones", n => { StopTones = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "prompts", n => { Prompts = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Prompt.CreateFromDiscriminatorValue)?.AsList(); } }, + { "stopTones", n => { StopTones = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -95,9 +97,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("maxRecordDurationInSeconds", MaxRecordDurationInSeconds); writer.WriteIntValue("maxSilenceTimeoutInSeconds", MaxSilenceTimeoutInSeconds); writer.WriteBoolValue("playBeep", PlayBeep); - writer.WriteCollectionOfObjectValues("prompts", Prompts); + writer.WriteCollectionOfObjectValues("prompts", Prompts); writer.WriteCollectionOfPrimitiveValues("stopTones", StopTones); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.cs b/src/generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.cs index 1c4a6b7cd6..a488c221ff 100644 --- a/src/generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/RecordResponse/RecordResponseRequestBuilder.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.Communications.Calls.Item.RecordResponse /// /// Provides operations to call the recordResponse method. /// - public class RecordResponseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RecordResponseRequestBuilder : BaseCliRequestBuilder { /// /// Records a short audio response from the caller.A bot can utilize this to capture a voice response from a caller after they are prompted for a response. For further information on how to handle operations, please review commsOperation This action is not intended to record the entire call. The maximum length of recording is 2 minutes. The recording is not saved permanently by the Cloud Communications Platform and is discarded shortly after the call ends. The bot must download the recording promptly after the recording operation finishes by using the recordingLocation value that's given in the completed notification. @@ -52,8 +55,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(RecordResponsePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.RecordResponse.RecordResponsePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 RecordResponseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/recordResponse", 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 RecordResponseRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/recordResponse", rawUrl) @@ -95,11 +98,11 @@ public RecordResponseRequestBuilder(string rawUrl) : base("{+baseurl}/communicat /// 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(RecordResponsePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.RecordResponse.RecordResponsePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RecordResponsePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.RecordResponse.RecordResponsePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(RecordResponsePostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Redirect/RedirectPostRequestBody.cs b/src/generated/Communications/Calls/Item/Redirect/RedirectPostRequestBody.cs index 9c9059054c..c0726299d7 100644 --- a/src/generated/Communications/Calls/Item/Redirect/RedirectPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/Redirect/RedirectPostRequestBody.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.Communications.Calls.Item.Redirect { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RedirectPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RedirectPostRequestBody : 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,15 +26,15 @@ public class RedirectPostRequestBody : IAdditionalDataHolder, IParsable /// The targets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Targets { get; set; } + public List? Targets { get; set; } #nullable restore #else - public List Targets { get; set; } + public List Targets { get; set; } #endif /// The timeout property public int? Timeout { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RedirectPostRequestBody() { @@ -41,12 +43,12 @@ public RedirectPostRequestBody() /// /// 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 RedirectPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.Redirect.RedirectPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RedirectPostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.Redirect.RedirectPostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "callbackUri", n => { CallbackUri = n.GetStringValue(); } }, - { "targets", n => { Targets = n.GetCollectionOfObjectValues(InvitationParticipantInfo.CreateFromDiscriminatorValue)?.ToList(); } }, + { "targets", n => { Targets = n.GetCollectionOfObjectValues(global::ApiSdk.Models.InvitationParticipantInfo.CreateFromDiscriminatorValue)?.AsList(); } }, { "timeout", n => { Timeout = n.GetIntValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("callbackUri", CallbackUri); - writer.WriteCollectionOfObjectValues("targets", Targets); + writer.WriteCollectionOfObjectValues("targets", Targets); writer.WriteIntValue("timeout", Timeout); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.cs b/src/generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.cs index 8d3d2f5ec8..cc30d687ed 100644 --- a/src/generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Redirect/RedirectRequestBuilder.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.Communications.Calls.Item.Redirect /// /// Provides operations to call the redirect method. /// - public class RedirectRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RedirectRequestBuilder : BaseCliRequestBuilder { /// /// Redirect an incoming call that hasn't been answered or rejected yet. The terms 'redirecting' and 'forwarding' a call are used interchangeably. The bot is expected to redirect the call before the call times out. The current timeout value is 15 seconds. @@ -43,8 +46,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(RedirectPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.Redirect.RedirectPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 RedirectRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/redirect", 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 RedirectRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/redirect", rawUrl) @@ -84,11 +87,11 @@ public RedirectRequestBuilder(string rawUrl) : base("{+baseurl}/communications/c /// 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(RedirectPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Redirect.RedirectPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RedirectPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Redirect.RedirectPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(RedirectPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Reject/RejectPostRequestBody.cs b/src/generated/Communications/Calls/Item/Reject/RejectPostRequestBody.cs index e1217868f6..09691c1c18 100644 --- a/src/generated/Communications/Calls/Item/Reject/RejectPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/Reject/RejectPostRequestBody.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.Communications.Calls.Item.Reject { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RejectPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RejectPostRequestBody : 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. @@ -22,9 +24,9 @@ public class RejectPostRequestBody : IAdditionalDataHolder, IParsable public string CallbackUri { get; set; } #endif /// The reason property - public RejectReason? Reason { get; set; } + public global::ApiSdk.Models.RejectReason? Reason { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RejectPostRequestBody() { @@ -33,12 +35,12 @@ public RejectPostRequestBody() /// /// 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 RejectPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.Reject.RejectPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RejectPostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.Reject.RejectPostRequestBody(); } /// /// The deserialization information for the current model @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "callbackUri", n => { CallbackUri = n.GetStringValue(); } }, - { "reason", n => { Reason = n.GetEnumValue(); } }, + { "reason", n => { Reason = n.GetEnumValue(); } }, }; } /// @@ -60,8 +62,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("callbackUri", CallbackUri); - writer.WriteEnumValue("reason", Reason); + writer.WriteEnumValue("reason", Reason); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Reject/RejectRequestBuilder.cs b/src/generated/Communications/Calls/Item/Reject/RejectRequestBuilder.cs index a0e8774003..c967ba3629 100644 --- a/src/generated/Communications/Calls/Item/Reject/RejectRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Reject/RejectRequestBuilder.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.Communications.Calls.Item.Reject /// /// Provides operations to call the reject method. /// - public class RejectRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RejectRequestBuilder : BaseCliRequestBuilder { /// /// Enable a bot to reject an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer or reject the call before the call times out. The current timeout value is 15 seconds. This API does not end existing calls that have already been answered. Use delete call to end a call. @@ -43,8 +46,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(RejectPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.Reject.RejectPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 RejectRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/reject", 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 RejectRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/reject", rawUrl) @@ -84,11 +87,11 @@ public RejectRequestBuilder(string rawUrl) : base("{+baseurl}/communications/cal /// 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(RejectPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Reject.RejectPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RejectPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Reject.RejectPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(RejectPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/SendDtmfTones/SendDtmfTonesPostRequestBody.cs b/src/generated/Communications/Calls/Item/SendDtmfTones/SendDtmfTonesPostRequestBody.cs index 34b22e0d52..56efdad291 100644 --- a/src/generated/Communications/Calls/Item/SendDtmfTones/SendDtmfTonesPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/SendDtmfTones/SendDtmfTonesPostRequestBody.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.Communications.Calls.Item.SendDtmfTones { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SendDtmfTonesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SendDtmfTonesPostRequestBody : 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. @@ -26,13 +28,13 @@ public class SendDtmfTonesPostRequestBody : IAdditionalDataHolder, IParsable /// The tones property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Tones { get; set; } + public List? Tones { get; set; } #nullable restore #else - public List Tones { get; set; } + public List Tones { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SendDtmfTonesPostRequestBody() { @@ -41,12 +43,12 @@ public SendDtmfTonesPostRequestBody() /// /// 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 SendDtmfTonesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.SendDtmfTones.SendDtmfTonesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SendDtmfTonesPostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.SendDtmfTones.SendDtmfTonesPostRequestBody(); } /// /// The deserialization information for the current model @@ -58,7 +60,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "clientContext", n => { ClientContext = n.GetStringValue(); } }, { "delayBetweenTonesMs", n => { DelayBetweenTonesMs = n.GetIntValue(); } }, - { "tones", n => { Tones = n.GetCollectionOfEnumValues()?.ToList(); } }, + { "tones", n => { Tones = n.GetCollectionOfEnumValues()?.AsList(); } }, }; } /// @@ -70,8 +72,9 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); writer.WriteIntValue("delayBetweenTonesMs", DelayBetweenTonesMs); - writer.WriteCollectionOfEnumValues("tones", Tones); + writer.WriteCollectionOfEnumValues("tones", Tones); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/SendDtmfTones/SendDtmfTonesRequestBuilder.cs b/src/generated/Communications/Calls/Item/SendDtmfTones/SendDtmfTonesRequestBuilder.cs index 092b3f436d..076fe366e6 100644 --- a/src/generated/Communications/Calls/Item/SendDtmfTones/SendDtmfTonesRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/SendDtmfTones/SendDtmfTonesRequestBuilder.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.Communications.Calls.Item.SendDtmfTones /// /// Provides operations to call the sendDtmfTones method. /// - public class SendDtmfTonesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SendDtmfTonesRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sendDtmfTones @@ -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(SendDtmfTonesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.SendDtmfTones.SendDtmfTonesPostRequestBody.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 SendDtmfTonesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones", 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 SendDtmfTonesRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones", rawUrl) @@ -94,11 +97,11 @@ public SendDtmfTonesRequestBuilder(string rawUrl) : base("{+baseurl}/communicati /// 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(SendDtmfTonesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.SendDtmfTones.SendDtmfTonesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SendDtmfTonesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.SendDtmfTones.SendDtmfTonesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -109,3 +112,4 @@ public RequestInformation ToPostRequestInformation(SendDtmfTonesPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/SubscribeToTone/SubscribeToTonePostRequestBody.cs b/src/generated/Communications/Calls/Item/SubscribeToTone/SubscribeToTonePostRequestBody.cs index 241b7b95c4..68f94d533d 100644 --- a/src/generated/Communications/Calls/Item/SubscribeToTone/SubscribeToTonePostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/SubscribeToTone/SubscribeToTonePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.Calls.Item.SubscribeToTone { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SubscribeToTonePostRequestBody : IAdditionalDataHolder, IParsable + public partial class SubscribeToTonePostRequestBody : 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. @@ -21,7 +23,7 @@ public class SubscribeToTonePostRequestBody : IAdditionalDataHolder, IParsable public string ClientContext { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SubscribeToTonePostRequestBody() { @@ -30,12 +32,12 @@ public SubscribeToTonePostRequestBody() /// /// 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 SubscribeToTonePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.SubscribeToTone.SubscribeToTonePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SubscribeToTonePostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.SubscribeToTone.SubscribeToTonePostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.cs b/src/generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.cs index 639c060a95..09187a191d 100644 --- a/src/generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/SubscribeToTone/SubscribeToToneRequestBuilder.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.Communications.Calls.Item.SubscribeToTone /// /// Provides operations to call the subscribeToTone method. /// - public class SubscribeToToneRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscribeToToneRequestBuilder : BaseCliRequestBuilder { /// /// Subscribe to DTMF (dual-tone multi-frequency signaling) which allows you to be notified when the user presses keys on a 'dialpad'. @@ -52,8 +55,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(SubscribeToTonePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.SubscribeToTone.SubscribeToTonePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 SubscribeToToneRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/subscribeToTone", 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 SubscribeToToneRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/subscribeToTone", rawUrl) @@ -95,11 +98,11 @@ public SubscribeToToneRequestBuilder(string rawUrl) : base("{+baseurl}/communica /// 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(SubscribeToTonePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.SubscribeToTone.SubscribeToTonePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SubscribeToTonePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.SubscribeToTone.SubscribeToTonePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(SubscribeToTonePostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs b/src/generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs index b3abb38a9d..118d407fa0 100644 --- a/src/generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.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.Communications.Calls.Item.Transfer { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TransferPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TransferPostRequestBody : 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. @@ -16,21 +18,21 @@ public class TransferPostRequestBody : IAdditionalDataHolder, IParsable /// The transferee property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ParticipantInfo? Transferee { get; set; } + public global::ApiSdk.Models.ParticipantInfo? Transferee { get; set; } #nullable restore #else - public ParticipantInfo Transferee { get; set; } + public global::ApiSdk.Models.ParticipantInfo Transferee { get; set; } #endif /// The transferTarget property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public InvitationParticipantInfo? TransferTarget { get; set; } + public global::ApiSdk.Models.InvitationParticipantInfo? TransferTarget { get; set; } #nullable restore #else - public InvitationParticipantInfo TransferTarget { get; set; } + public global::ApiSdk.Models.InvitationParticipantInfo TransferTarget { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TransferPostRequestBody() { @@ -39,12 +41,12 @@ public TransferPostRequestBody() /// /// 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 TransferPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.Transfer.TransferPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TransferPostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.Transfer.TransferPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +56,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "transferTarget", n => { TransferTarget = n.GetObjectValue(InvitationParticipantInfo.CreateFromDiscriminatorValue); } }, - { "transferee", n => { Transferee = n.GetObjectValue(ParticipantInfo.CreateFromDiscriminatorValue); } }, + { "transferTarget", n => { TransferTarget = n.GetObjectValue(global::ApiSdk.Models.InvitationParticipantInfo.CreateFromDiscriminatorValue); } }, + { "transferee", n => { Transferee = n.GetObjectValue(global::ApiSdk.Models.ParticipantInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +67,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("transferee", Transferee); - writer.WriteObjectValue("transferTarget", TransferTarget); + writer.WriteObjectValue("transferee", Transferee); + writer.WriteObjectValue("transferTarget", TransferTarget); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.cs b/src/generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.cs index a965f7d1aa..32a021717e 100644 --- a/src/generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Transfer/TransferRequestBuilder.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.Communications.Calls.Item.Transfer /// /// Provides operations to call the transfer method. /// - public class TransferRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TransferRequestBuilder : BaseCliRequestBuilder { /// /// Transfer an active peer-to-peer call or group call. A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly. @@ -43,8 +46,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(TransferPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.Transfer.TransferPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 TransferRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/transfer", 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 TransferRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/transfer", rawUrl) @@ -84,11 +87,11 @@ public TransferRequestBuilder(string rawUrl) : base("{+baseurl}/communications/c /// 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(TransferPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Transfer.TransferPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TransferPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Transfer.TransferPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(TransferPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Unmute/UnmutePostRequestBody.cs b/src/generated/Communications/Calls/Item/Unmute/UnmutePostRequestBody.cs index ec41a60f52..b45a0ce9e0 100644 --- a/src/generated/Communications/Calls/Item/Unmute/UnmutePostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/Unmute/UnmutePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.Calls.Item.Unmute { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnmutePostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnmutePostRequestBody : 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. @@ -21,7 +23,7 @@ public class UnmutePostRequestBody : IAdditionalDataHolder, IParsable public string ClientContext { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnmutePostRequestBody() { @@ -30,12 +32,12 @@ public UnmutePostRequestBody() /// /// 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 UnmutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.Unmute.UnmutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnmutePostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.Unmute.UnmutePostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.cs b/src/generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.cs index b3f298d6df..256415db3c 100644 --- a/src/generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Unmute/UnmuteRequestBuilder.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.Communications.Calls.Item.Unmute /// /// Provides operations to call the unmute method. /// - public class UnmuteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmuteRequestBuilder : BaseCliRequestBuilder { /// /// Allow the application to unmute itself. This is a server unmute, meaning that the server will start sending audio packets for this participant to other participants again. For more information about how to handle unmute operations, see unmuteParticipantOperation. @@ -52,8 +55,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(UnmutePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.Unmute.UnmutePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 UnmuteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/unmute", 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 UnmuteRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/unmute", rawUrl) @@ -95,11 +98,11 @@ public UnmuteRequestBuilder(string rawUrl) : base("{+baseurl}/communications/cal /// 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(UnmutePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Unmute.UnmutePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnmutePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.Unmute.UnmutePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(UnmutePostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusPostRequestBody.cs b/src/generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusPostRequestBody.cs index e5b3b61f6e..5f1bd3673e 100644 --- a/src/generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusPostRequestBody.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.Communications.Calls.Item.UpdateRecordingStatus { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UpdateRecordingStatusPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UpdateRecordingStatusPostRequestBody : 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. @@ -22,9 +24,9 @@ public class UpdateRecordingStatusPostRequestBody : IAdditionalDataHolder, IPars public string ClientContext { get; set; } #endif /// The status property - public RecordingStatus? Status { get; set; } + public global::ApiSdk.Models.RecordingStatus? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UpdateRecordingStatusPostRequestBody() { @@ -33,12 +35,12 @@ public UpdateRecordingStatusPostRequestBody() /// /// 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 UpdateRecordingStatusPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.Item.UpdateRecordingStatus.UpdateRecordingStatusPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UpdateRecordingStatusPostRequestBody(); + return new global::ApiSdk.Communications.Calls.Item.UpdateRecordingStatus.UpdateRecordingStatusPostRequestBody(); } /// /// The deserialization information for the current model @@ -49,7 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "clientContext", n => { ClientContext = n.GetStringValue(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// @@ -60,8 +62,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientContext", ClientContext); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.cs b/src/generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.cs index a1812ff967..eb6910b06f 100644 --- a/src/generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/UpdateRecordingStatus/UpdateRecordingStatusRequestBuilder.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.Communications.Calls.Item.UpdateRecordingStatus /// /// Provides operations to call the updateRecordingStatus method. /// - public class UpdateRecordingStatusRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UpdateRecordingStatusRequestBuilder : BaseCliRequestBuilder { /// /// Update the application's recording status associated with a call. This requires the use of the Teams policy-based recording solution. @@ -52,8 +55,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(UpdateRecordingStatusPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.Item.UpdateRecordingStatus.UpdateRecordingStatusPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 UpdateRecordingStatusRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/updateRecordingStatus", 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 UpdateRecordingStatusRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/updateRecordingStatus", rawUrl) @@ -95,11 +98,11 @@ public UpdateRecordingStatusRequestBuilder(string rawUrl) : base("{+baseurl}/com /// 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(UpdateRecordingStatusPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.UpdateRecordingStatus.UpdateRecordingStatusPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UpdateRecordingStatusPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.Item.UpdateRecordingStatus.UpdateRecordingStatusPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(UpdateRecordingStatusPostRequ } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityPostRequestBody.cs b/src/generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityPostRequestBody.cs index 32ee278c82..9c0933ca41 100644 --- a/src/generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityPostRequestBody.cs +++ b/src/generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityPostRequestBody.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.Communications.Calls.LogTeleconferenceDeviceQuality { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LogTeleconferenceDeviceQualityPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LogTeleconferenceDeviceQualityPostRequestBody : 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. @@ -16,13 +18,13 @@ public class LogTeleconferenceDeviceQualityPostRequestBody : IAdditionalDataHold /// The quality property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeleconferenceDeviceQuality? Quality { get; set; } + public global::ApiSdk.Models.TeleconferenceDeviceQuality? Quality { get; set; } #nullable restore #else - public TeleconferenceDeviceQuality Quality { get; set; } + public global::ApiSdk.Models.TeleconferenceDeviceQuality Quality { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LogTeleconferenceDeviceQualityPostRequestBody() { @@ -31,12 +33,12 @@ public LogTeleconferenceDeviceQualityPostRequestBody() /// /// 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 LogTeleconferenceDeviceQualityPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Calls.LogTeleconferenceDeviceQuality.LogTeleconferenceDeviceQualityPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LogTeleconferenceDeviceQualityPostRequestBody(); + return new global::ApiSdk.Communications.Calls.LogTeleconferenceDeviceQuality.LogTeleconferenceDeviceQualityPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "quality", n => { Quality = n.GetObjectValue(TeleconferenceDeviceQuality.CreateFromDiscriminatorValue); } }, + { "quality", n => { Quality = n.GetObjectValue(global::ApiSdk.Models.TeleconferenceDeviceQuality.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("quality", Quality); + writer.WriteObjectValue("quality", Quality); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.cs b/src/generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.cs index 6aa24eb228..708804f386 100644 --- a/src/generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.cs +++ b/src/generated/Communications/Calls/LogTeleconferenceDeviceQuality/LogTeleconferenceDeviceQualityRequestBuilder.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.Communications.Calls.LogTeleconferenceDeviceQuality /// /// Provides operations to call the logTeleconferenceDeviceQuality method. /// - public class LogTeleconferenceDeviceQualityRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LogTeleconferenceDeviceQualityRequestBuilder : BaseCliRequestBuilder { /// /// Log video teleconferencing device quality data. The Cloud Video Interop (CVI) bot represents video teleconferencing (VTC) devices and acts as a back-to-back agent for a VTC device in a conference call. Because a CVI bot is in the middle of the VTC and Microsoft Teams infrastructure as a VTC proxy, it has two media legs. One media leg is between the CVI bot and Teams infrastructure, such as Teams conference server or a Teams client. The other media leg is between the CVI bot and the VTC device. The third-party partners own the VTC media leg and the Teams infrastructure cannot access the quality data of the third-party call leg. This method is only for the CVI partners to provide their media quality data. @@ -38,8 +41,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(LogTeleconferenceDeviceQualityPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Calls.LogTeleconferenceDeviceQuality.LogTeleconferenceDeviceQualityPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -57,14 +60,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 LogTeleconferenceDeviceQualityRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/calls/logTeleconferenceDeviceQuality", 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 LogTeleconferenceDeviceQualityRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/logTeleconferenceDeviceQuality", rawUrl) @@ -78,11 +81,11 @@ public LogTeleconferenceDeviceQualityRequestBuilder(string rawUrl) : base("{+bas /// 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(LogTeleconferenceDeviceQualityPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.LogTeleconferenceDeviceQuality.LogTeleconferenceDeviceQualityPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LogTeleconferenceDeviceQualityPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Calls.LogTeleconferenceDeviceQuality.LogTeleconferenceDeviceQualityPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -93,3 +96,4 @@ public RequestInformation ToPostRequestInformation(LogTeleconferenceDeviceQualit } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/CommunicationsRequestBuilder.cs b/src/generated/Communications/CommunicationsRequestBuilder.cs index f920fc6cc7..378405695e 100644 --- a/src/generated/Communications/CommunicationsRequestBuilder.cs +++ b/src/generated/Communications/CommunicationsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.CallRecords; using ApiSdk.Communications.Calls; using ApiSdk.Communications.GetPresencesByUserId; @@ -6,6 +7,7 @@ using ApiSdk.Communications.Presences; 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 +26,8 @@ namespace ApiSdk.Communications /// /// Provides operations to manage the cloudCommunications singleton. /// - public class CommunicationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommunicationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the callRecords property of the microsoft.graph.cloudCommunications entity. @@ -34,7 +37,7 @@ public Command BuildCallRecordsNavCommand() { var command = new Command("call-records"); command.Description = "Provides operations to manage the callRecords property of the microsoft.graph.cloudCommunications entity."; - var builder = new CallRecordsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.CallRecords.CallRecordsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -63,7 +66,7 @@ public Command BuildCallsNavCommand() { var command = new Command("calls"); command.Description = "Provides operations to manage the calls property of the microsoft.graph.cloudCommunications entity."; - var builder = new CallsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Calls.CallsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -137,7 +140,7 @@ public Command BuildGetPresencesByUserIdNavCommand() { var command = new Command("get-presences-by-user-id"); command.Description = "Provides operations to call the getPresencesByUserId method."; - var builder = new GetPresencesByUserIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.GetPresencesByUserId.GetPresencesByUserIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -154,12 +157,14 @@ public Command BuildOnlineMeetingsNavCommand() { var command = new Command("online-meetings"); command.Description = "Provides operations to manage the onlineMeetings property of the microsoft.graph.cloudCommunications entity."; - var builder = new OnlineMeetingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.OnlineMeetingsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); execCommands.Add(builder.BuildCreateCommand()); nonExecCommands.Add(builder.BuildCreateOrGetNavCommand()); + nonExecCommands.Add(builder.BuildGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeNavCommand()); + nonExecCommands.Add(builder.BuildGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeNavCommand()); execCommands.Add(builder.BuildListCommand()); var cmds = builder.BuildCommand(); execCommands.AddRange(cmds.Item1); @@ -199,8 +204,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(CloudCommunications.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudCommunications.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -227,7 +232,7 @@ public Command BuildPresencesNavCommand() { var command = new Command("presences"); command.Description = "Provides operations to manage the presences property of the microsoft.graph.cloudCommunications entity."; - var builder = new PresencesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Presences.PresencesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -247,14 +252,14 @@ public Command BuildPresencesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CommunicationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications{?%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 CommunicationsRequestBuilder(string rawUrl) : base("{+baseurl}/communications{?%24expand,%24select}", rawUrl) @@ -267,11 +272,11 @@ public CommunicationsRequestBuilder(string rawUrl) : base("{+baseurl}/communicat /// 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); @@ -287,11 +292,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(CloudCommunications body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudCommunications body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CloudCommunications body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudCommunications body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +308,8 @@ public RequestInformation ToPatchRequestInformation(CloudCommunications body, Ac /// /// Get communications /// - public class CommunicationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommunicationsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -328,3 +334,4 @@ public class CommunicationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostRequestBody.cs b/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostRequestBody.cs index 6e6f0de2e8..9a046ad819 100644 --- a/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostRequestBody.cs +++ b/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.GetPresencesByUserId { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetPresencesByUserIdPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetPresencesByUserIdPostRequestBody : 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. @@ -21,7 +23,7 @@ public class GetPresencesByUserIdPostRequestBody : IAdditionalDataHolder, IParsa public List Ids { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetPresencesByUserIdPostRequestBody() { @@ -30,12 +32,12 @@ public GetPresencesByUserIdPostRequestBody() /// /// 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 GetPresencesByUserIdPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.GetPresencesByUserId.GetPresencesByUserIdPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetPresencesByUserIdPostRequestBody(); + return new global::ApiSdk.Communications.GetPresencesByUserId.GetPresencesByUserIdPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.cs b/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.cs index d2417010bc..3abb161fd0 100644 --- a/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.cs +++ b/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Communications.GetPresencesByUserId { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetPresencesByUserIdPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetPresencesByUserIdPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetPresencesByUserIdPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Communications.GetPresencesByUserId.GetPresencesByUserIdPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetPresencesByUserIdPostResponse(); + return new global::ApiSdk.Communications.GetPresencesByUserId.GetPresencesByUserIdPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Presence.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Presence.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.cs b/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.cs index 89f42b7d9e..d0949bb141 100644 --- a/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.cs +++ b/src/generated/Communications/GetPresencesByUserId/GetPresencesByUserIdRequestBuilder.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.Communications.GetPresencesByUserId /// /// Provides operations to call the getPresencesByUserId method. /// - public class GetPresencesByUserIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetPresencesByUserIdRequestBuilder : BaseCliRequestBuilder { /// /// Get the presence information for multiple users. @@ -50,8 +53,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(GetPresencesByUserIdPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.GetPresencesByUserId.GetPresencesByUserIdPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetPresencesByUserIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/getPresencesByUserId", 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 GetPresencesByUserIdRequestBuilder(string rawUrl) : base("{+baseurl}/communications/getPresencesByUserId", rawUrl) @@ -101,11 +104,11 @@ public GetPresencesByUserIdRequestBuilder(string rawUrl) : base("{+baseurl}/comm /// 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(GetPresencesByUserIdPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.GetPresencesByUserId.GetPresencesByUserIdPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetPresencesByUserIdPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.GetPresencesByUserId.GetPresencesByUserIdPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetPresencesByUserIdPostReque } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Count/CountRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Count/CountRequestBuilder.cs index 7cfe32d250..d26bda3ad5 100644 --- a/src/generated/Communications/OnlineMeetings/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/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.Communications.OnlineMeetings.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}/communications/onlineMeetings/$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}/communications/onlineMeetings/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onli /// 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/Communications/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs b/src/generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs index da4d6bafba..63c1676b52 100644 --- a/src/generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.cs +++ b/src/generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetPostRequestBody.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.Communications.OnlineMeetings.CreateOrGet { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateOrGetPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateOrGetPostRequestBody : 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. @@ -16,10 +18,10 @@ public class CreateOrGetPostRequestBody : IAdditionalDataHolder, IParsable /// The chatInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.ChatInfo? ChatInfo { get; set; } + public global::ApiSdk.Models.ChatInfo? ChatInfo { get; set; } #nullable restore #else - public ApiSdk.Models.ChatInfo ChatInfo { get; set; } + public global::ApiSdk.Models.ChatInfo ChatInfo { get; set; } #endif /// The endDateTime property public DateTimeOffset? EndDateTime { get; set; } @@ -34,10 +36,10 @@ public class CreateOrGetPostRequestBody : IAdditionalDataHolder, IParsable /// The participants property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MeetingParticipants? Participants { get; set; } + public global::ApiSdk.Models.MeetingParticipants? Participants { get; set; } #nullable restore #else - public MeetingParticipants Participants { get; set; } + public global::ApiSdk.Models.MeetingParticipants Participants { get; set; } #endif /// The startDateTime property public DateTimeOffset? StartDateTime { get; set; } @@ -50,7 +52,7 @@ public class CreateOrGetPostRequestBody : IAdditionalDataHolder, IParsable public string Subject { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateOrGetPostRequestBody() { @@ -59,12 +61,12 @@ public CreateOrGetPostRequestBody() /// /// 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 CreateOrGetPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.OnlineMeetings.CreateOrGet.CreateOrGetPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateOrGetPostRequestBody(); + return new global::ApiSdk.Communications.OnlineMeetings.CreateOrGet.CreateOrGetPostRequestBody(); } /// /// The deserialization information for the current model @@ -74,10 +76,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "chatInfo", n => { ChatInfo = n.GetObjectValue(ApiSdk.Models.ChatInfo.CreateFromDiscriminatorValue); } }, + { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::ApiSdk.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, { "externalId", n => { ExternalId = n.GetStringValue(); } }, - { "participants", n => { Participants = n.GetObjectValue(MeetingParticipants.CreateFromDiscriminatorValue); } }, + { "participants", n => { Participants = n.GetObjectValue(global::ApiSdk.Models.MeetingParticipants.CreateFromDiscriminatorValue); } }, { "startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, { "subject", n => { Subject = n.GetStringValue(); } }, }; @@ -89,13 +91,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("chatInfo", ChatInfo); + writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); writer.WriteStringValue("externalId", ExternalId); - writer.WriteObjectValue("participants", Participants); + writer.WriteObjectValue("participants", Participants); writer.WriteDateTimeOffsetValue("startDateTime", StartDateTime); writer.WriteStringValue("subject", Subject); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs index 79b4a47835..5e98adb217 100644 --- a/src/generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/CreateOrGet/CreateOrGetRequestBuilder.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.Communications.OnlineMeetings.CreateOrGet /// /// Provides operations to call the createOrGet method. /// - public class CreateOrGetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateOrGetRequestBuilder : BaseCliRequestBuilder { /// /// Create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. @@ -47,8 +50,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(CreateOrGetPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.OnlineMeetings.CreateOrGet.CreateOrGetPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -68,14 +71,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 CreateOrGetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/createOrGet", 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 CreateOrGetRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/createOrGet", rawUrl) @@ -89,11 +92,11 @@ public CreateOrGetRequestBuilder(string rawUrl) : base("{+baseurl}/communication /// 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(CreateOrGetPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.OnlineMeetings.CreateOrGet.CreateOrGetPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateOrGetPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.OnlineMeetings.CreateOrGet.CreateOrGetPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -104,3 +107,4 @@ public RequestInformation ToPostRequestInformation(CreateOrGetPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/generated/Communications/OnlineMeetings/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs new file mode 100644 index 0000000000..38449bd77b --- /dev/null +++ b/src/generated/Communications/OnlineMeetings/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Communications.OnlineMeetings.GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Communications.OnlineMeetings.GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime.GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Communications.OnlineMeetings.GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime.GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.CallRecording.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs new file mode 100644 index 0000000000..814f2da789 --- /dev/null +++ b/src/generated/Communications/OnlineMeetings/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -0,0 +1,258 @@ +// +#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; +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.Communications.OnlineMeetings.GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime +{ + /// + /// Provides operations to call the getAllRecordings method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// Find more info here + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/onlinemeeting-getallrecordings?view=graph-rest-1.0"; + var meetingOrganizerUserIdOption = new Option("--meeting-organizer-user-id", description: "Usage: meetingOrganizerUserId='@meetingOrganizerUserId'") { + }; + meetingOrganizerUserIdOption.IsRequired = false; + command.AddOption(meetingOrganizerUserIdOption); + var startDateTimeOption = new Option("--start-date-time", description: "Usage: startDateTime=@startDateTime") { + }; + startDateTimeOption.IsRequired = false; + command.AddOption(startDateTimeOption); + var endDateTimeOption = new Option("--end-date-time", description: "Usage: endDateTime=@endDateTime") { + }; + endDateTimeOption.IsRequired = false; + command.AddOption(endDateTimeOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var meetingOrganizerUserId = invocationContext.ParseResult.GetValueForOption(meetingOrganizerUserIdOption); + var startDateTime = invocationContext.ParseResult.GetValueForOption(startDateTimeOption); + var endDateTime = invocationContext.ParseResult.GetValueForOption(endDateTimeOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(meetingOrganizerUserId)) q.QueryParameters.MeetingOrganizerUserId = meetingOrganizerUserId; + q.QueryParameters.StartDateTime = startDateTime; + q.QueryParameters.EndDateTime = endDateTime; + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Select = select; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Expand = expand; + }); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/getAllRecordings(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,endDateTime*,meetingOrganizerUserId*,startDateTime*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/getAllRecordings(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,endDateTime*,meetingOrganizerUserId*,startDateTime*}", rawUrl) + { + } + /// + /// Get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// + /// 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; + } + /// + /// Get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Usage: endDateTime=@endDateTime + [QueryParameter("endDateTime")] + public DateTimeOffset? EndDateTime { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Usage: meetingOrganizerUserId='@meetingOrganizerUserId' +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("meetingOrganizerUserId")] + public string? MeetingOrganizerUserId { get; set; } +#nullable restore +#else + [QueryParameter("meetingOrganizerUserId")] + public string MeetingOrganizerUserId { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Usage: startDateTime=@startDateTime + [QueryParameter("startDateTime")] + public DateTimeOffset? StartDateTime { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs b/src/generated/Communications/OnlineMeetings/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs new file mode 100644 index 0000000000..50d7744a73 --- /dev/null +++ b/src/generated/Communications/OnlineMeetings/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Communications.OnlineMeetings.GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Communications.OnlineMeetings.GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime.GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Communications.OnlineMeetings.GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime.GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.CallTranscript.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs new file mode 100644 index 0000000000..43d1e13302 --- /dev/null +++ b/src/generated/Communications/OnlineMeetings/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime/GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -0,0 +1,258 @@ +// +#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; +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.Communications.OnlineMeetings.GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime +{ + /// + /// Provides operations to call the getAllTranscripts method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// Find more info here + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/onlinemeeting-getalltranscripts?view=graph-rest-1.0"; + var meetingOrganizerUserIdOption = new Option("--meeting-organizer-user-id", description: "Usage: meetingOrganizerUserId='@meetingOrganizerUserId'") { + }; + meetingOrganizerUserIdOption.IsRequired = false; + command.AddOption(meetingOrganizerUserIdOption); + var startDateTimeOption = new Option("--start-date-time", description: "Usage: startDateTime=@startDateTime") { + }; + startDateTimeOption.IsRequired = false; + command.AddOption(startDateTimeOption); + var endDateTimeOption = new Option("--end-date-time", description: "Usage: endDateTime=@endDateTime") { + }; + endDateTimeOption.IsRequired = false; + command.AddOption(endDateTimeOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var meetingOrganizerUserId = invocationContext.ParseResult.GetValueForOption(meetingOrganizerUserIdOption); + var startDateTime = invocationContext.ParseResult.GetValueForOption(startDateTimeOption); + var endDateTime = invocationContext.ParseResult.GetValueForOption(endDateTimeOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(meetingOrganizerUserId)) q.QueryParameters.MeetingOrganizerUserId = meetingOrganizerUserId; + q.QueryParameters.StartDateTime = startDateTime; + q.QueryParameters.EndDateTime = endDateTime; + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Select = select; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Expand = expand; + }); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/getAllTranscripts(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,endDateTime*,meetingOrganizerUserId*,startDateTime*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/getAllTranscripts(meetingOrganizerUserId='@meetingOrganizerUserId',startDateTime=@startDateTime,endDateTime=@endDateTime){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,endDateTime*,meetingOrganizerUserId*,startDateTime*}", rawUrl) + { + } + /// + /// Get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// + /// 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; + } + /// + /// Get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you perform an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Usage: endDateTime=@endDateTime + [QueryParameter("endDateTime")] + public DateTimeOffset? EndDateTime { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Usage: meetingOrganizerUserId='@meetingOrganizerUserId' +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("meetingOrganizerUserId")] + public string? MeetingOrganizerUserId { get; set; } +#nullable restore +#else + [QueryParameter("meetingOrganizerUserId")] + public string MeetingOrganizerUserId { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Usage: startDateTime=@startDateTime + [QueryParameter("startDateTime")] + public DateTimeOffset? StartDateTime { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs index 17ff39f362..c9077a9bc6 100644 --- a/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.OnlineMeetings.Item.AttendanceReports.Count; using ApiSdk.Communications.OnlineMeetings.Item.AttendanceReports.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.Communications.OnlineMeetings.Item.AttendanceReports /// /// Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. /// - public class AttendanceReportsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttendanceReportsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MeetingAttendanceReportItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.AttendanceReports.Item.MeetingAttendanceReportItemRequestBuilder(PathParameters); commands.Add(builder.BuildAttendanceRecordsNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Communications.OnlineMeetings.Item.AttendanceReports.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(MeetingAttendanceReport.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MeetingAttendanceReport.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 AttendanceReportsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports{?%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 AttendanceReportsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AttendanceReportsRequestBuilder(string rawUrl) : base("{+baseurl}/communi /// 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(MeetingAttendanceReport body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MeetingAttendanceReport body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MeetingAttendanceReport body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MeetingAttendanceReport body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(MeetingAttendanceReport body, /// /// The attendance reports of an online meeting. Read-only. /// - public class AttendanceReportsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttendanceReportsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AttendanceReportsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs index c12dc447b5..a1c65c4b3e 100644 --- a/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/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.Communications.OnlineMeetings.Item.AttendanceReports.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}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/$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}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onli /// 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/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs index bd0725aa82..2fc7364aca 100644 --- a/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/AttendanceRecordsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.OnlineMeetings.Item.AttendanceReports.Item.AttendanceRecords.Count; using ApiSdk.Communications.OnlineMeetings.Item.AttendanceReports.Item.AttendanceRecords.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.Communications.OnlineMeetings.Item.AttendanceReports.Item.Atten /// /// Provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. /// - public class AttendanceRecordsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttendanceRecordsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. @@ -30,7 +33,7 @@ public class AttendanceRecordsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttendanceRecordItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.AttendanceReports.Item.AttendanceRecords.Item.AttendanceRecordItemRequestBuilder(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.Communications.OnlineMeetings.Item.AttendanceReports.Item.AttendanceRecords.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AttendanceRecord.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AttendanceRecord.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AttendanceRecordsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%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 AttendanceRecordsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public AttendanceRecordsRequestBuilder(string rawUrl) : base("{+baseurl}/communi /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AttendanceRecord body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AttendanceRecord body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AttendanceRecord body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AttendanceRecord body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(AttendanceRecord body, Action /// /// List of attendance records of an attendance report. Read-only. /// - public class AttendanceRecordsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttendanceRecordsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class AttendanceRecordsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs index dc8fbe4b15..3481431431 100644 --- a/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/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.Communications.OnlineMeetings.Item.AttendanceReports.Item.Atten /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/$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}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onli /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs index bf94f2b06f..e766e2af6e 100644 --- a/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/AttendanceRecords/Item/AttendanceRecordItemRequestBuilder.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.Communications.OnlineMeetings.Item.AttendanceReports.Item.Atten /// /// Provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. /// - public class AttendanceRecordItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttendanceRecordItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attendanceRecords for communications @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AttendanceRecord.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AttendanceRecord.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AttendanceRecordItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/{attendanceRecord%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 AttendanceRecordItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/{attendanceRecord%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(AttendanceRecord body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AttendanceRecord body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AttendanceRecord body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AttendanceRecord body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(AttendanceRecord body, Actio /// /// List of attendance records of an attendance report. Read-only. /// - public class AttendanceRecordItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttendanceRecordItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class AttendanceRecordItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs index b87b99671b..c27178c28a 100644 --- a/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/AttendanceReports/Item/MeetingAttendanceReportItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.OnlineMeetings.Item.AttendanceReports.Item.AttendanceRecords; 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.Communications.OnlineMeetings.Item.AttendanceReports.Item /// /// Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. /// - public class MeetingAttendanceReportItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MeetingAttendanceReportItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. @@ -30,7 +33,7 @@ public Command BuildAttendanceRecordsNavCommand() { var command = new Command("attendance-records"); command.Description = "Provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity."; - var builder = new AttendanceRecordsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.AttendanceReports.Item.AttendanceRecords.AttendanceRecordsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -183,8 +186,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(MeetingAttendanceReport.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MeetingAttendanceReport.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -206,14 +209,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 MeetingAttendanceReportItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%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 MeetingAttendanceReportItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports/{meetingAttendanceReport%2Did}{?%24expand,%24select}", rawUrl) @@ -245,11 +248,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); @@ -265,11 +268,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(MeetingAttendanceReport body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MeetingAttendanceReport body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MeetingAttendanceReport body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MeetingAttendanceReport body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +284,8 @@ public RequestInformation ToPatchRequestInformation(MeetingAttendanceReport body /// /// The attendance reports of an online meeting. Read-only. /// - public class MeetingAttendanceReportItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MeetingAttendanceReportItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -306,3 +310,4 @@ public class MeetingAttendanceReportItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs index b466229113..f2a12a7918 100644 --- a/src/generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/AttendeeReport/AttendeeReportRequestBuilder.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.Communications.OnlineMeetings.Item.AttendeeReport /// /// Provides operations to manage the media for the cloudCommunications entity. /// - public class AttendeeReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttendeeReportRequestBuilder : BaseCliRequestBuilder { /// /// The content stream of the attendee report of a Microsoft Teams live event. Read-only. @@ -146,14 +149,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AttendeeReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendeeReport", 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 AttendeeReportRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendeeReport", rawUrl) @@ -221,3 +224,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetVirtualAppointmentJoinWebUrlGetResponse : IAdditionalDataHolder, IParsable + public partial class GetVirtualAppointmentJoinWebUrlGetResponse : 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. @@ -21,7 +23,7 @@ public class GetVirtualAppointmentJoinWebUrlGetResponse : IAdditionalDataHolder, public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetVirtualAppointmentJoinWebUrlGetResponse() { @@ -30,12 +32,12 @@ public GetVirtualAppointmentJoinWebUrlGetResponse() /// /// 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 GetVirtualAppointmentJoinWebUrlGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl.GetVirtualAppointmentJoinWebUrlGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetVirtualAppointmentJoinWebUrlGetResponse(); + return new global::ApiSdk.Communications.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl.GetVirtualAppointmentJoinWebUrlGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs index 15e1b7aabb..29381b697e 100644 --- a/src/generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/GetVirtualAppointmentJoinWebUrl/GetVirtualAppointmentJoinWebUrlRequestBuilder.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.Communications.OnlineMeetings.Item.GetVirtualAppointmentJoinWeb /// /// Provides operations to call the getVirtualAppointmentJoinWebUrl method. /// - public class GetVirtualAppointmentJoinWebUrlRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetVirtualAppointmentJoinWebUrlRequestBuilder : BaseCliRequestBuilder { /// /// Get a join web URL for a Microsoft Virtual Appointment. This web URL includes enhanced business-to-customer experiences such as mobile browser join and virtual lobby rooms. With Teams Premium, you can configure a custom lobby room experience for attendees by adding your company logo and access the Virtual Appointments usage report for organizational analytics. @@ -60,14 +63,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 GetVirtualAppointmentJoinWebUrlRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/getVirtualAppointmentJoinWebUrl()", 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 GetVirtualAppointmentJoinWebUrlRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/getVirtualAppointmentJoinWebUrl()", rawUrl) @@ -94,3 +97,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Communications.OnlineMeetings.Item.AttendanceReports; using ApiSdk.Communications.OnlineMeetings.Item.AttendeeReport; using ApiSdk.Communications.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl; @@ -8,6 +9,7 @@ using ApiSdk.Communications.OnlineMeetings.Item.Transcripts; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -26,7 +28,8 @@ namespace ApiSdk.Communications.OnlineMeetings.Item /// /// Provides operations to manage the onlineMeetings property of the microsoft.graph.cloudCommunications entity. /// - public class OnlineMeetingItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnlineMeetingItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. @@ -36,7 +39,7 @@ public Command BuildAttendanceReportsNavCommand() { var command = new Command("attendance-reports"); command.Description = "Provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity."; - var builder = new AttendanceReportsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.AttendanceReports.AttendanceReportsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -63,7 +66,7 @@ public Command BuildAttendeeReportNavCommand() { var command = new Command("attendee-report"); command.Description = "Provides operations to manage the media for the cloudCommunications entity."; - var builder = new AttendeeReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.AttendeeReport.AttendeeReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -169,7 +172,7 @@ public Command BuildGetVirtualAppointmentJoinWebUrlNavCommand() { var command = new Command("get-virtual-appointment-join-web-url"); command.Description = "Provides operations to call the getVirtualAppointmentJoinWebUrl method."; - var builder = new GetVirtualAppointmentJoinWebUrlRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.GetVirtualAppointmentJoinWebUrl.GetVirtualAppointmentJoinWebUrlRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -208,8 +211,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(OnlineMeeting.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnlineMeeting.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -237,11 +240,12 @@ public Command BuildRecordingsNavCommand() { var command = new Command("recordings"); command.Description = "Provides operations to manage the recordings property of the microsoft.graph.onlineMeeting entity."; - var builder = new RecordingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.Recordings.RecordingsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); execCommands.Add(builder.BuildCreateCommand()); + nonExecCommands.Add(builder.BuildDeltaNavCommand()); execCommands.Add(builder.BuildListCommand()); var cmds = builder.BuildCommand(); execCommands.AddRange(cmds.Item1); @@ -264,7 +268,7 @@ public Command BuildSendVirtualAppointmentReminderSmsNavCommand() { var command = new Command("send-virtual-appointment-reminder-sms"); command.Description = "Provides operations to call the sendVirtualAppointmentReminderSms method."; - var builder = new SendVirtualAppointmentReminderSmsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentReminderSms.SendVirtualAppointmentReminderSmsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -281,7 +285,7 @@ public Command BuildSendVirtualAppointmentSmsNavCommand() { var command = new Command("send-virtual-appointment-sms"); command.Description = "Provides operations to call the sendVirtualAppointmentSms method."; - var builder = new SendVirtualAppointmentSmsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentSms.SendVirtualAppointmentSmsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -298,11 +302,12 @@ public Command BuildTranscriptsNavCommand() { var command = new Command("transcripts"); command.Description = "Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity."; - var builder = new TranscriptsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.Transcripts.TranscriptsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); execCommands.Add(builder.BuildCreateCommand()); + nonExecCommands.Add(builder.BuildDeltaNavCommand()); execCommands.Add(builder.BuildListCommand()); var cmds = builder.BuildCommand(); execCommands.AddRange(cmds.Item1); @@ -318,14 +323,14 @@ public Command BuildTranscriptsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnlineMeetingItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%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 OnlineMeetingItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}{?%24expand,%24select}", rawUrl) @@ -357,11 +362,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); @@ -377,11 +382,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(OnlineMeeting body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnlineMeeting body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnlineMeeting body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnlineMeeting body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -393,7 +398,8 @@ public RequestInformation ToPatchRequestInformation(OnlineMeeting body, Action /// Get onlineMeetings from communications /// - public class OnlineMeetingItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnlineMeetingItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -418,3 +424,4 @@ public class OnlineMeetingItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/Recordings/Count/CountRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/Recordings/Count/CountRequestBuilder.cs index 10a1a1a6b5..ca5c59c5a1 100644 --- a/src/generated/Communications/OnlineMeetings/Item/Recordings/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/Recordings/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.Communications.OnlineMeetings.Item.Recordings.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}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/$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}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onli /// 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/Communications/OnlineMeetings/Item/Recordings/Delta/DeltaGetResponse.cs b/src/generated/Communications/OnlineMeetings/Item/Recordings/Delta/DeltaGetResponse.cs new file mode 100644 index 0000000000..9ab2ec8a66 --- /dev/null +++ b/src/generated/Communications/OnlineMeetings/Item/Recordings/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Communications.OnlineMeetings.Item.Recordings.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Communications.OnlineMeetings.Item.Recordings.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Communications.OnlineMeetings.Item.Recordings.Delta.DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.CallRecording.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/Recordings/Delta/DeltaRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/Recordings/Delta/DeltaRequestBuilder.cs new file mode 100644 index 0000000000..040209d8ae --- /dev/null +++ b/src/generated/Communications/OnlineMeetings/Item/Recordings/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#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; +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.Communications.OnlineMeetings.Item.Recordings.Delta +{ + /// + /// Provides operations to call the delta method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function delta + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function delta"; + var onlineMeetingIdOption = new Option("--online-meeting-id", description: "The unique identifier of onlineMeeting") { + }; + onlineMeetingIdOption.IsRequired = true; + command.AddOption(onlineMeetingIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var onlineMeetingId = invocationContext.ParseResult.GetValueForOption(onlineMeetingIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Select = select; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Expand = expand; + }); + if (onlineMeetingId is not null) requestInfo.PathParameters.Add("onlineMeeting%2Did", onlineMeetingId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Invoke function delta + /// + /// 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; + } + /// + /// Invoke function delta + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/Recordings/Item/CallRecordingItemRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/Recordings/Item/CallRecordingItemRequestBuilder.cs index 3d6c6c1b4f..8bdead21bb 100644 --- a/src/generated/Communications/OnlineMeetings/Item/Recordings/Item/CallRecordingItemRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/Recordings/Item/CallRecordingItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.OnlineMeetings.Item.Recordings.Item.Content; 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.Communications.OnlineMeetings.Item.Recordings.Item /// /// Provides operations to manage the recordings property of the microsoft.graph.onlineMeeting entity. /// - public class CallRecordingItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallRecordingItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the cloudCommunications entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the cloudCommunications entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.Recordings.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -175,8 +178,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(CallRecording.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CallRecording.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -198,14 +201,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 CallRecordingItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/{callRecording%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 CallRecordingItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/{callRecording%2Did}{?%24expand,%24select}", rawUrl) @@ -237,11 +240,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); @@ -257,11 +260,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(CallRecording body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallRecording body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CallRecording body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallRecording body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -273,7 +276,8 @@ public RequestInformation ToPatchRequestInformation(CallRecording body, Action /// The recordings of an online meeting. Read-only. /// - public class CallRecordingItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallRecordingItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -298,3 +302,4 @@ public class CallRecordingItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/Recordings/Item/Content/ContentRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/Recordings/Item/Content/ContentRequestBuilder.cs index 28686fa91c..29383ff37d 100644 --- a/src/generated/Communications/OnlineMeetings/Item/Recordings/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/Recordings/Item/Content/ContentRequestBuilder.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.Communications.OnlineMeetings.Item.Recordings.Item.Content /// /// Provides operations to manage the media for the cloudCommunications entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content of the recording. Read-only. @@ -163,14 +166,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/{callRecording%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings/{callRecording%2Did}/content", rawUrl) @@ -238,3 +241,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Communications.OnlineMeetings.Item.Recordings.Count; +using ApiSdk.Communications.OnlineMeetings.Item.Recordings.Delta; using ApiSdk.Communications.OnlineMeetings.Item.Recordings.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 +24,8 @@ namespace ApiSdk.Communications.OnlineMeetings.Item.Recordings /// /// Provides operations to manage the recordings property of the microsoft.graph.onlineMeeting entity. /// - public class RecordingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RecordingsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the recordings property of the microsoft.graph.onlineMeeting entity. @@ -31,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new CallRecordingItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.Recordings.Item.CallRecordingItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +50,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.Communications.OnlineMeetings.Item.Recordings.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +89,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(CallRecording.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CallRecording.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -107,6 +111,23 @@ public Command BuildCreateCommand() return command; } /// + /// Provides operations to call the delta method. + /// + /// A + public Command BuildDeltaNavCommand() + { + var command = new Command("delta"); + command.Description = "Provides operations to call the delta method."; + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.Recordings.Delta.DeltaRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// The recordings of an online meeting. Read-only. /// /// A @@ -209,14 +230,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 RecordingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings{?%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 RecordingsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/recordings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +250,11 @@ public RecordingsRequestBuilder(string rawUrl) : base("{+baseurl}/communications /// 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 +270,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(CallRecording body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CallRecording body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CallRecording body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CallRecording body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +286,8 @@ public RequestInformation ToPostRequestInformation(CallRecording body, Action /// The recordings of an online meeting. Read-only. /// - public class RecordingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RecordingsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +351,4 @@ public class RecordingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentReminderSms/SendVirtualAppointmentReminderSmsPostRequestBody.cs b/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentReminderSms/SendVirtualAppointmentReminderSmsPostRequestBody.cs index 7f1b8b8de6..08ffe9ea86 100644 --- a/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentReminderSms/SendVirtualAppointmentReminderSmsPostRequestBody.cs +++ b/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentReminderSms/SendVirtualAppointmentReminderSmsPostRequestBody.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.Communications.OnlineMeetings.Item.SendVirtualAppointmentReminderSms { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SendVirtualAppointmentReminderSmsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SendVirtualAppointmentReminderSmsPostRequestBody : 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. @@ -16,15 +18,15 @@ public class SendVirtualAppointmentReminderSmsPostRequestBody : IAdditionalDataH /// The attendees property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Attendees { get; set; } + public List? Attendees { get; set; } #nullable restore #else - public List Attendees { get; set; } + public List Attendees { get; set; } #endif /// The remindBeforeTimeInMinutesType property - public ApiSdk.Models.RemindBeforeTimeInMinutesType? RemindBeforeTimeInMinutesType { get; set; } + public global::ApiSdk.Models.RemindBeforeTimeInMinutesType? RemindBeforeTimeInMinutesType { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SendVirtualAppointmentReminderSmsPostRequestBody() { @@ -33,12 +35,12 @@ public SendVirtualAppointmentReminderSmsPostRequestBody() /// /// 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 SendVirtualAppointmentReminderSmsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentReminderSms.SendVirtualAppointmentReminderSmsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SendVirtualAppointmentReminderSmsPostRequestBody(); + return new global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentReminderSms.SendVirtualAppointmentReminderSmsPostRequestBody(); } /// /// The deserialization information for the current model @@ -48,8 +50,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "attendees", n => { Attendees = n.GetCollectionOfObjectValues(AttendeeNotificationInfo.CreateFromDiscriminatorValue)?.ToList(); } }, - { "remindBeforeTimeInMinutesType", n => { RemindBeforeTimeInMinutesType = n.GetEnumValue(); } }, + { "attendees", n => { Attendees = n.GetCollectionOfObjectValues(global::ApiSdk.Models.AttendeeNotificationInfo.CreateFromDiscriminatorValue)?.AsList(); } }, + { "remindBeforeTimeInMinutesType", n => { RemindBeforeTimeInMinutesType = n.GetEnumValue(); } }, }; } /// @@ -59,9 +61,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("attendees", Attendees); - writer.WriteEnumValue("remindBeforeTimeInMinutesType", RemindBeforeTimeInMinutesType); + writer.WriteCollectionOfObjectValues("attendees", Attendees); + writer.WriteEnumValue("remindBeforeTimeInMinutesType", RemindBeforeTimeInMinutesType); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentReminderSms/SendVirtualAppointmentReminderSmsRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentReminderSms/SendVirtualAppointmentReminderSmsRequestBuilder.cs index a0f86e3acc..5f5b78282e 100644 --- a/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentReminderSms/SendVirtualAppointmentReminderSmsRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentReminderSms/SendVirtualAppointmentReminderSmsRequestBuilder.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.Communications.OnlineMeetings.Item.SendVirtualAppointmentRemind /// /// Provides operations to call the sendVirtualAppointmentReminderSms method. /// - public class SendVirtualAppointmentReminderSmsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SendVirtualAppointmentReminderSmsRequestBuilder : BaseCliRequestBuilder { /// /// Send an SMS reminder to external attendees for a Teams virtual appointment. This feature requires Teams premium and attendees must have a valid United States phone number to receive SMS notifications. @@ -43,8 +46,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(SendVirtualAppointmentReminderSmsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentReminderSms.SendVirtualAppointmentReminderSmsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 SendVirtualAppointmentReminderSmsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/sendVirtualAppointmentReminderSms", 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 SendVirtualAppointmentReminderSmsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/sendVirtualAppointmentReminderSms", rawUrl) @@ -84,11 +87,11 @@ public SendVirtualAppointmentReminderSmsRequestBuilder(string rawUrl) : base("{+ /// 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(SendVirtualAppointmentReminderSmsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentReminderSms.SendVirtualAppointmentReminderSmsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SendVirtualAppointmentReminderSmsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentReminderSms.SendVirtualAppointmentReminderSmsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(SendVirtualAppointmentReminde } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentSms/SendVirtualAppointmentSmsPostRequestBody.cs b/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentSms/SendVirtualAppointmentSmsPostRequestBody.cs index f505c3efdb..08c29ea656 100644 --- a/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentSms/SendVirtualAppointmentSmsPostRequestBody.cs +++ b/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentSms/SendVirtualAppointmentSmsPostRequestBody.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.Communications.OnlineMeetings.Item.SendVirtualAppointmentSms { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SendVirtualAppointmentSmsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SendVirtualAppointmentSmsPostRequestBody : 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. @@ -16,15 +18,15 @@ public class SendVirtualAppointmentSmsPostRequestBody : IAdditionalDataHolder, I /// The attendees property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Attendees { get; set; } + public List? Attendees { get; set; } #nullable restore #else - public List Attendees { get; set; } + public List Attendees { get; set; } #endif /// The messageType property - public VirtualAppointmentMessageType? MessageType { get; set; } + public global::ApiSdk.Models.VirtualAppointmentMessageType? MessageType { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SendVirtualAppointmentSmsPostRequestBody() { @@ -33,12 +35,12 @@ public SendVirtualAppointmentSmsPostRequestBody() /// /// 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 SendVirtualAppointmentSmsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentSms.SendVirtualAppointmentSmsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SendVirtualAppointmentSmsPostRequestBody(); + return new global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentSms.SendVirtualAppointmentSmsPostRequestBody(); } /// /// The deserialization information for the current model @@ -48,8 +50,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "attendees", n => { Attendees = n.GetCollectionOfObjectValues(AttendeeNotificationInfo.CreateFromDiscriminatorValue)?.ToList(); } }, - { "messageType", n => { MessageType = n.GetEnumValue(); } }, + { "attendees", n => { Attendees = n.GetCollectionOfObjectValues(global::ApiSdk.Models.AttendeeNotificationInfo.CreateFromDiscriminatorValue)?.AsList(); } }, + { "messageType", n => { MessageType = n.GetEnumValue(); } }, }; } /// @@ -59,9 +61,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("attendees", Attendees); - writer.WriteEnumValue("messageType", MessageType); + writer.WriteCollectionOfObjectValues("attendees", Attendees); + writer.WriteEnumValue("messageType", MessageType); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentSms/SendVirtualAppointmentSmsRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentSms/SendVirtualAppointmentSmsRequestBuilder.cs index a3c7fdf00a..9a02f3cedb 100644 --- a/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentSms/SendVirtualAppointmentSmsRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/SendVirtualAppointmentSms/SendVirtualAppointmentSmsRequestBuilder.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.Communications.OnlineMeetings.Item.SendVirtualAppointmentSms /// /// Provides operations to call the sendVirtualAppointmentSms method. /// - public class SendVirtualAppointmentSmsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SendVirtualAppointmentSmsRequestBuilder : BaseCliRequestBuilder { /// /// Send an SMS notification to external attendees when a Teams virtual appointment is confirmed, rescheduled, or canceled. This feature requires Teams premium. Attendees must have a valid United States phone number to receive these SMS notifications. @@ -43,8 +46,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(SendVirtualAppointmentSmsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentSms.SendVirtualAppointmentSmsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 SendVirtualAppointmentSmsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/sendVirtualAppointmentSms", 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 SendVirtualAppointmentSmsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/sendVirtualAppointmentSms", rawUrl) @@ -84,11 +87,11 @@ public SendVirtualAppointmentSmsRequestBuilder(string rawUrl) : base("{+baseurl} /// 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(SendVirtualAppointmentSmsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentSms.SendVirtualAppointmentSmsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SendVirtualAppointmentSmsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.OnlineMeetings.Item.SendVirtualAppointmentSms.SendVirtualAppointmentSmsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(SendVirtualAppointmentSmsPost } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs index b2c632e2c3..cef68ef5dc 100644 --- a/src/generated/Communications/OnlineMeetings/Item/Transcripts/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/Transcripts/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.Communications.OnlineMeetings.Item.Transcripts.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}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/$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}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onli /// 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/Communications/OnlineMeetings/Item/Transcripts/Delta/DeltaGetResponse.cs b/src/generated/Communications/OnlineMeetings/Item/Transcripts/Delta/DeltaGetResponse.cs new file mode 100644 index 0000000000..8063556f89 --- /dev/null +++ b/src/generated/Communications/OnlineMeetings/Item/Transcripts/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Delta.DeltaGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.CallTranscript.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/Transcripts/Delta/DeltaRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/Transcripts/Delta/DeltaRequestBuilder.cs new file mode 100644 index 0000000000..133f1f9594 --- /dev/null +++ b/src/generated/Communications/OnlineMeetings/Item/Transcripts/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#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; +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.Communications.OnlineMeetings.Item.Transcripts.Delta +{ + /// + /// Provides operations to call the delta method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function delta + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function delta"; + var onlineMeetingIdOption = new Option("--online-meeting-id", description: "The unique identifier of onlineMeeting") { + }; + onlineMeetingIdOption.IsRequired = true; + command.AddOption(onlineMeetingIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var onlineMeetingId = invocationContext.ParseResult.GetValueForOption(onlineMeetingIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Select = select; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Expand = expand; + }); + if (onlineMeetingId is not null) requestInfo.PathParameters.Add("onlineMeeting%2Did", onlineMeetingId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Invoke function delta + /// + /// 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; + } + /// + /// Invoke function delta + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs index a785487065..8e522344fb 100644 --- a/src/generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/Transcripts/Item/CallTranscriptItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Item.Content; using ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Item.MetadataContent; 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.Communications.OnlineMeetings.Item.Transcripts.Item /// /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. /// - public class CallTranscriptItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallTranscriptItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the cloudCommunications entity. @@ -31,7 +34,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the cloudCommunications entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -149,7 +152,7 @@ public Command BuildMetadataContentNavCommand() { var command = new Command("metadata-content"); command.Description = "Provides operations to manage the media for the cloudCommunications entity."; - var builder = new MetadataContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Item.MetadataContent.MetadataContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -195,8 +198,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(CallTranscript.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CallTranscript.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -218,14 +221,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 CallTranscriptItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%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 CallTranscriptItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}{?%24expand,%24select}", rawUrl) @@ -257,11 +260,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); @@ -277,11 +280,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(CallTranscript body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallTranscript body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CallTranscript body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CallTranscript body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -293,7 +296,8 @@ public RequestInformation ToPatchRequestInformation(CallTranscript body, Action< /// /// The transcripts of an online meeting. Read-only. /// - public class CallTranscriptItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CallTranscriptItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -318,3 +322,4 @@ public class CallTranscriptItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs index 22704d9d6b..d58ad47de6 100644 --- a/src/generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/Item/Transcripts/Item/Content/ContentRequestBuilder.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.Communications.OnlineMeetings.Item.Transcripts.Item.Content /// /// Provides operations to manage the media for the cloudCommunications entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content of the transcript. Read-only. @@ -163,14 +166,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/content", rawUrl) @@ -238,3 +241,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Item.MetadataCon /// /// Provides operations to manage the media for the cloudCommunications entity. /// - public class MetadataContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MetadataContentRequestBuilder : BaseCliRequestBuilder { /// /// The time-aligned metadata of the utterances in the transcript. Read-only. @@ -164,14 +167,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MetadataContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/metadataContent", 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 MetadataContentRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts/{callTranscript%2Did}/metadataContent", rawUrl) @@ -239,3 +242,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Count; +using ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Delta; using ApiSdk.Communications.OnlineMeetings.Item.Transcripts.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 +24,8 @@ namespace ApiSdk.Communications.OnlineMeetings.Item.Transcripts /// /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. /// - public class TranscriptsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TranscriptsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. @@ -31,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new CallTranscriptItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Item.CallTranscriptItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,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.Communications.OnlineMeetings.Item.Transcripts.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +90,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(CallTranscript.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CallTranscript.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -108,6 +112,23 @@ public Command BuildCreateCommand() return command; } /// + /// Provides operations to call the delta method. + /// + /// A + public Command BuildDeltaNavCommand() + { + var command = new Command("delta"); + command.Description = "Provides operations to call the delta method."; + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.Transcripts.Delta.DeltaRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// The transcripts of an online meeting. Read-only. /// /// A @@ -210,14 +231,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 TranscriptsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts{?%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 TranscriptsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/transcripts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +251,11 @@ public TranscriptsRequestBuilder(string rawUrl) : base("{+baseurl}/communication /// 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); @@ -250,11 +271,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(CallTranscript body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CallTranscript body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CallTranscript body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CallTranscript body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +287,8 @@ public RequestInformation ToPostRequestInformation(CallTranscript body, Action /// The transcripts of an online meeting. Read-only. /// - public class TranscriptsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TranscriptsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +352,4 @@ public class TranscriptsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs b/src/generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs index 082a91e339..c4d15c626d 100644 --- a/src/generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs +++ b/src/generated/Communications/OnlineMeetings/OnlineMeetingsRequestBuilder.cs @@ -1,9 +1,13 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.OnlineMeetings.Count; using ApiSdk.Communications.OnlineMeetings.CreateOrGet; +using ApiSdk.Communications.OnlineMeetings.GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime; +using ApiSdk.Communications.OnlineMeetings.GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime; using ApiSdk.Communications.OnlineMeetings.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; @@ -22,7 +26,8 @@ namespace ApiSdk.Communications.OnlineMeetings /// /// Provides operations to manage the onlineMeetings property of the microsoft.graph.cloudCommunications entity. /// - public class OnlineMeetingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnlineMeetingsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the onlineMeetings property of the microsoft.graph.cloudCommunications entity. @@ -32,7 +37,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnlineMeetingItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.Item.OnlineMeetingItemRequestBuilder(PathParameters); commands.Add(builder.BuildAttendanceReportsNavCommand()); commands.Add(builder.BuildAttendeeReportNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -53,7 +58,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.Communications.OnlineMeetings.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -87,8 +92,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(OnlineMeeting.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnlineMeeting.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -115,7 +120,7 @@ public Command BuildCreateOrGetNavCommand() { var command = new Command("create-or-get"); command.Description = "Provides operations to call the createOrGet method."; - var builder = new CreateOrGetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.OnlineMeetings.CreateOrGet.CreateOrGetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -125,14 +130,48 @@ public Command BuildCreateOrGetNavCommand() return command; } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Provides operations to call the getAllRecordings method. + /// + /// A + public Command BuildGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeNavCommand() + { + var command = new Command("get-all-recordingsmeeting-organizer-user-id-meeting-organizer-user-id-with-start-date-time-with-end-date-time"); + command.Description = "Provides operations to call the getAllRecordings method."; + var builder = new global::ApiSdk.Communications.OnlineMeetings.GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime.GetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the getAllTranscripts method. + /// + /// A + public Command BuildGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeNavCommand() + { + var command = new Command("get-all-transcriptsmeeting-organizer-user-id-meeting-organizer-user-id-with-start-date-time-with-end-date-time"); + command.Description = "Provides operations to call the getAllTranscripts method."; + var builder = new global::ApiSdk.Communications.OnlineMeetings.GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTime.GetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) and Teams live event recordings (deprecated) are online meeting artifacts. For more information, see Online meeting artifacts and permissions. /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) is an online meeting artifact. For details, see Online meeting artifacts and permissions.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/onlinemeeting-get?view=graph-rest-1.0"; + command.Description = "Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) and Teams live event recordings (deprecated) are online meeting artifacts. For more information, see Online meeting artifacts and permissions.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/onlinemeeting-get?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -222,31 +261,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnlineMeetingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/onlineMeetings{?%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 OnlineMeetingsRequestBuilder(string rawUrl) : base("{+baseurl}/communications/onlineMeetings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) and Teams live event recordings (deprecated) are online meeting artifacts. For more information, see Online meeting artifacts and permissions. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -262,11 +301,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(OnlineMeeting body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnlineMeeting body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnlineMeeting body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnlineMeeting body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -276,9 +315,10 @@ public RequestInformation ToPostRequestInformation(OnlineMeeting body, Action - /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) is an online meeting artifact. For details, see Online meeting artifacts and permissions. + /// Retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) and Teams live event recordings (deprecated) are online meeting artifacts. For more information, see Online meeting artifacts and permissions. /// - public class OnlineMeetingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnlineMeetingsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +382,4 @@ public class OnlineMeetingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Presences/Count/CountRequestBuilder.cs b/src/generated/Communications/Presences/Count/CountRequestBuilder.cs index d9b67d4499..fce0dd3607 100644 --- a/src/generated/Communications/Presences/Count/CountRequestBuilder.cs +++ b/src/generated/Communications/Presences/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.Communications.Presences.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}/communications/presences/$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}/communications/presences/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/communications/pres /// 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/Communications/Presences/Item/ClearPresence/ClearPresencePostRequestBody.cs b/src/generated/Communications/Presences/Item/ClearPresence/ClearPresencePostRequestBody.cs index 80fca0ee32..a2432cbf17 100644 --- a/src/generated/Communications/Presences/Item/ClearPresence/ClearPresencePostRequestBody.cs +++ b/src/generated/Communications/Presences/Item/ClearPresence/ClearPresencePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.Presences.Item.ClearPresence { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClearPresencePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ClearPresencePostRequestBody : 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. @@ -21,7 +23,7 @@ public class ClearPresencePostRequestBody : IAdditionalDataHolder, IParsable public string SessionId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClearPresencePostRequestBody() { @@ -30,12 +32,12 @@ public ClearPresencePostRequestBody() /// /// 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 ClearPresencePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Presences.Item.ClearPresence.ClearPresencePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClearPresencePostRequestBody(); + return new global::ApiSdk.Communications.Presences.Item.ClearPresence.ClearPresencePostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.cs b/src/generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.cs index 882641e5a1..0a257739f7 100644 --- a/src/generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.cs +++ b/src/generated/Communications/Presences/Item/ClearPresence/ClearPresenceRequestBuilder.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.Communications.Presences.Item.ClearPresence /// /// Provides operations to call the clearPresence method. /// - public class ClearPresenceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearPresenceRequestBuilder : BaseCliRequestBuilder { /// /// Clear the application's presence session for a user. If it is the user's only presence session, the user's presence will change to Offline/Offline. For details about presences sessions, see presence: setPresence. @@ -43,8 +46,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(ClearPresencePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Presences.Item.ClearPresence.ClearPresencePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 ClearPresenceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/presences/{presence%2Did}/clearPresence", 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 ClearPresenceRequestBuilder(string rawUrl) : base("{+baseurl}/communications/presences/{presence%2Did}/clearPresence", rawUrl) @@ -84,11 +87,11 @@ public ClearPresenceRequestBuilder(string rawUrl) : base("{+baseurl}/communicati /// 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(ClearPresencePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Presences.Item.ClearPresence.ClearPresencePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ClearPresencePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Presences.Item.ClearPresence.ClearPresencePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(ClearPresencePostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs b/src/generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs index 02147bd5e3..4b61b824fc 100644 --- a/src/generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.cs +++ b/src/generated/Communications/Presences/Item/ClearUserPreferredPresence/ClearUserPreferredPresenceRequestBuilder.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.Communications.Presences.Item.ClearUserPreferredPresence /// /// Provides operations to call the clearUserPreferredPresence method. /// - public class ClearUserPreferredPresenceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearUserPreferredPresenceRequestBuilder : BaseCliRequestBuilder { /// /// Clear the preferred availability and activity status for a user. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ClearUserPreferredPresenceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/presences/{presence%2Did}/clearUserPreferredPresence", 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 ClearUserPreferredPresenceRequestBuilder(string rawUrl) : base("{+baseurl}/communications/presences/{presence%2Did}/clearUserPreferredPresence", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Communications.Presences.Item.ClearPresence; using ApiSdk.Communications.Presences.Item.ClearUserPreferredPresence; using ApiSdk.Communications.Presences.Item.SetPresence; @@ -6,6 +7,7 @@ using ApiSdk.Communications.Presences.Item.SetUserPreferredPresence; 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 +26,8 @@ namespace ApiSdk.Communications.Presences.Item /// /// Provides operations to manage the presences property of the microsoft.graph.cloudCommunications entity. /// - public class PresenceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PresenceItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clearPresence method. @@ -34,7 +37,7 @@ public Command BuildClearPresenceNavCommand() { var command = new Command("clear-presence"); command.Description = "Provides operations to call the clearPresence method."; - var builder = new ClearPresenceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Presences.Item.ClearPresence.ClearPresenceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildClearUserPreferredPresenceNavCommand() { var command = new Command("clear-user-preferred-presence"); command.Description = "Provides operations to call the clearUserPreferredPresence method."; - var builder = new ClearUserPreferredPresenceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Presences.Item.ClearUserPreferredPresence.ClearUserPreferredPresenceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -178,8 +181,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.Presence.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Presence.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,7 +210,7 @@ public Command BuildSetPresenceNavCommand() { var command = new Command("set-presence"); command.Description = "Provides operations to call the setPresence method."; - var builder = new SetPresenceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Presences.Item.SetPresence.SetPresenceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -224,7 +227,7 @@ public Command BuildSetStatusMessageNavCommand() { var command = new Command("set-status-message"); command.Description = "Provides operations to call the setStatusMessage method."; - var builder = new SetStatusMessageRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Presences.Item.SetStatusMessage.SetStatusMessageRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -241,7 +244,7 @@ public Command BuildSetUserPreferredPresenceNavCommand() { var command = new Command("set-user-preferred-presence"); command.Description = "Provides operations to call the setUserPreferredPresence method."; - var builder = new SetUserPreferredPresenceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Presences.Item.SetUserPreferredPresence.SetUserPreferredPresenceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -251,14 +254,14 @@ public Command BuildSetUserPreferredPresenceNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PresenceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/presences/{presence%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 PresenceItemRequestBuilder(string rawUrl) : base("{+baseurl}/communications/presences/{presence%2Did}{?%24expand,%24select}", rawUrl) @@ -290,11 +293,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); @@ -310,11 +313,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.Presence body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Presence body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Presence body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Presence body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -326,7 +329,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Presence body, /// /// Get a user's presence information. /// - public class PresenceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PresenceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -351,3 +355,4 @@ public class PresenceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Presences/Item/SetPresence/SetPresencePostRequestBody.cs b/src/generated/Communications/Presences/Item/SetPresence/SetPresencePostRequestBody.cs index 33879d67db..ca24ac25fb 100644 --- a/src/generated/Communications/Presences/Item/SetPresence/SetPresencePostRequestBody.cs +++ b/src/generated/Communications/Presences/Item/SetPresence/SetPresencePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.Presences.Item.SetPresence { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetPresencePostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetPresencePostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The activity property @@ -39,7 +41,7 @@ public class SetPresencePostRequestBody : IAdditionalDataHolder, IParsable public string SessionId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetPresencePostRequestBody() { @@ -48,12 +50,12 @@ public SetPresencePostRequestBody() /// /// 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 SetPresencePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Presences.Item.SetPresence.SetPresencePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetPresencePostRequestBody(); + return new global::ApiSdk.Communications.Presences.Item.SetPresence.SetPresencePostRequestBody(); } /// /// The deserialization information for the current model @@ -84,3 +86,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.cs b/src/generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.cs index 0df372f62e..8e30dcef86 100644 --- a/src/generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.cs +++ b/src/generated/Communications/Presences/Item/SetPresence/SetPresenceRequestBuilder.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.Communications.Presences.Item.SetPresence /// /// Provides operations to call the setPresence method. /// - public class SetPresenceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetPresenceRequestBuilder : BaseCliRequestBuilder { /// /// Set the state of a user's presence session as an application. @@ -43,8 +46,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(SetPresencePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Presences.Item.SetPresence.SetPresencePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 SetPresenceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/presences/{presence%2Did}/setPresence", 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 SetPresenceRequestBuilder(string rawUrl) : base("{+baseurl}/communications/presences/{presence%2Did}/setPresence", rawUrl) @@ -84,11 +87,11 @@ public SetPresenceRequestBuilder(string rawUrl) : base("{+baseurl}/communication /// 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(SetPresencePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Presences.Item.SetPresence.SetPresencePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetPresencePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Presences.Item.SetPresence.SetPresencePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(SetPresencePostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessagePostRequestBody.cs b/src/generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessagePostRequestBody.cs index 969ac2483a..91aeeb11c3 100644 --- a/src/generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessagePostRequestBody.cs +++ b/src/generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessagePostRequestBody.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.Communications.Presences.Item.SetStatusMessage { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetStatusMessagePostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetStatusMessagePostRequestBody : 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. @@ -16,13 +18,13 @@ public class SetStatusMessagePostRequestBody : IAdditionalDataHolder, IParsable /// The statusMessage property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PresenceStatusMessage? StatusMessage { get; set; } + public global::ApiSdk.Models.PresenceStatusMessage? StatusMessage { get; set; } #nullable restore #else - public PresenceStatusMessage StatusMessage { get; set; } + public global::ApiSdk.Models.PresenceStatusMessage StatusMessage { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetStatusMessagePostRequestBody() { @@ -31,12 +33,12 @@ public SetStatusMessagePostRequestBody() /// /// 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 SetStatusMessagePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Presences.Item.SetStatusMessage.SetStatusMessagePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetStatusMessagePostRequestBody(); + return new global::ApiSdk.Communications.Presences.Item.SetStatusMessage.SetStatusMessagePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "statusMessage", n => { StatusMessage = n.GetObjectValue(PresenceStatusMessage.CreateFromDiscriminatorValue); } }, + { "statusMessage", n => { StatusMessage = n.GetObjectValue(global::ApiSdk.Models.PresenceStatusMessage.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("statusMessage", StatusMessage); + writer.WriteObjectValue("statusMessage", StatusMessage); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs b/src/generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs index 87f00c0210..1da9b663d7 100644 --- a/src/generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs +++ b/src/generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.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.Communications.Presences.Item.SetStatusMessage /// /// Provides operations to call the setStatusMessage method. /// - public class SetStatusMessageRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetStatusMessageRequestBuilder : BaseCliRequestBuilder { /// /// Set a presence status message for a user. An optional expiration date and time can be supplied. @@ -43,8 +46,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(SetStatusMessagePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Presences.Item.SetStatusMessage.SetStatusMessagePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 SetStatusMessageRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/presences/{presence%2Did}/setStatusMessage", 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 SetStatusMessageRequestBuilder(string rawUrl) : base("{+baseurl}/communications/presences/{presence%2Did}/setStatusMessage", rawUrl) @@ -84,11 +87,11 @@ public SetStatusMessageRequestBuilder(string rawUrl) : base("{+baseurl}/communic /// 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(SetStatusMessagePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Presences.Item.SetStatusMessage.SetStatusMessagePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetStatusMessagePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Presences.Item.SetStatusMessage.SetStatusMessagePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(SetStatusMessagePostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs b/src/generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs index a85e29dbeb..7813a9e2a0 100644 --- a/src/generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs +++ b/src/generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresencePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Communications.Presences.Item.SetUserPreferredPresence { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetUserPreferredPresencePostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetUserPreferredPresencePostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The activity property @@ -31,7 +33,7 @@ public class SetUserPreferredPresencePostRequestBody : IAdditionalDataHolder, IP /// The expirationDuration property public TimeSpan? ExpirationDuration { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetUserPreferredPresencePostRequestBody() { @@ -40,12 +42,12 @@ public SetUserPreferredPresencePostRequestBody() /// /// 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 SetUserPreferredPresencePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Communications.Presences.Item.SetUserPreferredPresence.SetUserPreferredPresencePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetUserPreferredPresencePostRequestBody(); + return new global::ApiSdk.Communications.Presences.Item.SetUserPreferredPresence.SetUserPreferredPresencePostRequestBody(); } /// /// The deserialization information for the current model @@ -74,3 +76,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs b/src/generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs index ab9c02e498..056e7a4f60 100644 --- a/src/generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.cs +++ b/src/generated/Communications/Presences/Item/SetUserPreferredPresence/SetUserPreferredPresenceRequestBuilder.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.Communications.Presences.Item.SetUserPreferredPresence /// /// Provides operations to call the setUserPreferredPresence method. /// - public class SetUserPreferredPresenceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetUserPreferredPresenceRequestBuilder : BaseCliRequestBuilder { /// /// Set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence shows as the preferred status. Preferred presence takes effect only when at least one presence session exists for the user. Otherwise, the user's presence shows as Offline. A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client. For more details, see presence sessions and time-out and expiration. @@ -43,8 +46,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(SetUserPreferredPresencePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Communications.Presences.Item.SetUserPreferredPresence.SetUserPreferredPresencePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 SetUserPreferredPresenceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/presences/{presence%2Did}/setUserPreferredPresence", 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 SetUserPreferredPresenceRequestBuilder(string rawUrl) : base("{+baseurl}/communications/presences/{presence%2Did}/setUserPreferredPresence", rawUrl) @@ -84,11 +87,11 @@ public SetUserPreferredPresenceRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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(SetUserPreferredPresencePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Presences.Item.SetUserPreferredPresence.SetUserPreferredPresencePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetUserPreferredPresencePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Communications.Presences.Item.SetUserPreferredPresence.SetUserPreferredPresencePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(SetUserPreferredPresencePostR } } } +#pragma warning restore CS0618 diff --git a/src/generated/Communications/Presences/PresencesRequestBuilder.cs b/src/generated/Communications/Presences/PresencesRequestBuilder.cs index 9e049c784c..e9ecf944eb 100644 --- a/src/generated/Communications/Presences/PresencesRequestBuilder.cs +++ b/src/generated/Communications/Presences/PresencesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Communications.Presences.Count; using ApiSdk.Communications.Presences.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.Communications.Presences /// /// Provides operations to manage the presences property of the microsoft.graph.cloudCommunications entity. /// - public class PresencesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PresencesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the presences property of the microsoft.graph.cloudCommunications entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new PresenceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.Presences.Item.PresenceItemRequestBuilder(PathParameters); commands.Add(builder.BuildClearPresenceNavCommand()); commands.Add(builder.BuildClearUserPreferredPresenceNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -50,7 +53,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.Communications.Presences.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(ApiSdk.Models.Presence.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Presence.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 PresencesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/communications/presences{?%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 PresencesRequestBuilder(string rawUrl) : base("{+baseurl}/communications/presences{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -221,11 +224,11 @@ public PresencesRequestBuilder(string rawUrl) : base("{+baseurl}/communications/ /// 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(ApiSdk.Models.Presence body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Presence body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.Presence body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Presence body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -257,7 +260,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.Presence body, /// /// Get a user's presence information. /// - public class PresencesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PresencesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -321,3 +325,4 @@ public class PresencesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Compliance/ComplianceRequestBuilder.cs b/src/generated/Compliance/ComplianceRequestBuilder.cs index 16a322fe33..36687c0771 100644 --- a/src/generated/Compliance/ComplianceRequestBuilder.cs +++ b/src/generated/Compliance/ComplianceRequestBuilder.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.Compliance /// /// Provides operations to manage the compliance singleton. /// - public class ComplianceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ComplianceRequestBuilder : BaseCliRequestBuilder { /// /// Get compliance @@ -92,8 +95,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.Compliance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Compliance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -113,14 +116,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 ComplianceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/compliance{?%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 ComplianceRequestBuilder(string rawUrl) : base("{+baseurl}/compliance{?%24expand,%24select}", rawUrl) @@ -133,11 +136,11 @@ public ComplianceRequestBuilder(string rawUrl) : base("{+baseurl}/compliance{?%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); @@ -153,11 +156,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.Compliance body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Compliance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Compliance body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Compliance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -169,7 +172,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Compliance bod /// /// Get compliance /// - public class ComplianceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ComplianceRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -194,3 +198,4 @@ public class ComplianceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/ConnectionsRequestBuilder.cs b/src/generated/Connections/ConnectionsRequestBuilder.cs index 95a2f06bdd..446b56591a 100644 --- a/src/generated/Connections/ConnectionsRequestBuilder.cs +++ b/src/generated/Connections/ConnectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Connections.Count; using ApiSdk.Connections.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections /// /// Provides operations to manage the collection of externalConnection entities. /// - public class ConnectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConnectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of externalConnection entities. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ExternalConnectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.ExternalConnectionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGroupsNavCommand()); @@ -49,7 +52,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.Connections.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(ExternalConnection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalConnection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -200,14 +203,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 ConnectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections{?%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 ConnectionsRequestBuilder(string rawUrl) : base("{+baseurl}/connections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -220,11 +223,11 @@ public ConnectionsRequestBuilder(string rawUrl) : base("{+baseurl}/connections{? /// 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); @@ -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 ToPostRequestInformation(ExternalConnection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalConnection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExternalConnection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalConnection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPostRequestInformation(ExternalConnection body, Acti /// /// Get entities from connections /// - public class ConnectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConnectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -320,3 +324,4 @@ public class ConnectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Count/CountRequestBuilder.cs b/src/generated/Connections/Count/CountRequestBuilder.cs index d71a41e073..f2bd3a801e 100644 --- a/src/generated/Connections/Count/CountRequestBuilder.cs +++ b/src/generated/Connections/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.Connections.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}/connections/$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}/connections/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/connections/$count{ /// 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/Connections/Item/ExternalConnectionItemRequestBuilder.cs b/src/generated/Connections/Item/ExternalConnectionItemRequestBuilder.cs index 92f173c5f9..7fdca4d03b 100644 --- a/src/generated/Connections/Item/ExternalConnectionItemRequestBuilder.cs +++ b/src/generated/Connections/Item/ExternalConnectionItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Connections.Item.Groups; using ApiSdk.Connections.Item.Items; using ApiSdk.Connections.Item.Operations; using ApiSdk.Connections.Item.Schema; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -23,7 +25,8 @@ namespace ApiSdk.Connections.Item /// /// Provides operations to manage the collection of externalConnection entities. /// - public class ExternalConnectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalConnectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete entity from connections @@ -120,7 +123,7 @@ public Command BuildGroupsNavCommand() { var command = new Command("groups"); command.Description = "Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity."; - var builder = new GroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Groups.GroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -147,7 +150,7 @@ public Command BuildItemsNavCommand() { var command = new Command("items"); command.Description = "Provides operations to manage the items property of the microsoft.graph.externalConnectors.externalConnection entity."; - var builder = new ItemsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Items.ItemsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -174,7 +177,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.externalConnectors.externalConnection entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -223,8 +226,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(ExternalConnection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalConnection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -252,7 +255,7 @@ public Command BuildSchemaNavCommand() { var command = new Command("schema"); command.Description = "Provides operations to manage the schema property of the microsoft.graph.externalConnectors.externalConnection entity."; - var builder = new SchemaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Schema.SchemaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -263,14 +266,14 @@ public Command BuildSchemaNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExternalConnectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%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 ExternalConnectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}{?%24expand,%24select}", rawUrl) @@ -302,11 +305,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); @@ -322,11 +325,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(ExternalConnection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalConnection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ExternalConnection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalConnection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -338,7 +341,8 @@ public RequestInformation ToPatchRequestInformation(ExternalConnection body, Act /// /// Get entity from connections by key /// - public class ExternalConnectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalConnectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -363,3 +367,4 @@ public class ExternalConnectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Groups/Count/CountRequestBuilder.cs b/src/generated/Connections/Item/Groups/Count/CountRequestBuilder.cs index 8c75bf25d6..8e26811b6d 100644 --- a/src/generated/Connections/Item/Groups/Count/CountRequestBuilder.cs +++ b/src/generated/Connections/Item/Groups/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.Connections.Item.Groups.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}/connections/{externalConnection%2Did}/groups/$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}/connections/{externalConnection%2Did}/groups/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{extern /// 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/Connections/Item/Groups/GroupsRequestBuilder.cs b/src/generated/Connections/Item/Groups/GroupsRequestBuilder.cs index 78435dac17..98755c58b0 100644 --- a/src/generated/Connections/Item/Groups/GroupsRequestBuilder.cs +++ b/src/generated/Connections/Item/Groups/GroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Connections.Item.Groups.Count; using ApiSdk.Connections.Item.Groups.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Groups /// /// Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class GroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ExternalGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Groups.Item.ExternalGroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildMembersNavCommand()); @@ -46,7 +49,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.Connections.Item.Groups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(ExternalGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalGroup.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 GroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/groups{?%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 GroupsRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/groups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public GroupsRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{exter /// 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(ExternalGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExternalGroup body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ExternalGroup body, Action /// Get groups from connections /// - public class GroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class GroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs b/src/generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs index 683b3632ab..057a4fd058 100644 --- a/src/generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs +++ b/src/generated/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Connections.Item.Groups.Item.Members; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Groups.Item /// /// Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class ExternalGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property groups for connections @@ -129,7 +132,7 @@ public Command BuildMembersNavCommand() { var command = new Command("members"); command.Description = "Provides operations to manage the members property of the microsoft.graph.externalConnectors.externalGroup entity."; - var builder = new MembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Groups.Item.Members.MembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -183,8 +186,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(ExternalGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -206,14 +209,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 ExternalGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%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 ExternalGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}{?%24expand,%24select}", rawUrl) @@ -245,11 +248,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); @@ -265,11 +268,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(ExternalGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ExternalGroup body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +284,8 @@ public RequestInformation ToPatchRequestInformation(ExternalGroup body, Action /// Get groups from connections /// - public class ExternalGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalGroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -306,3 +310,4 @@ public class ExternalGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs b/src/generated/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs index d053c49c1c..1dcc559566 100644 --- a/src/generated/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs +++ b/src/generated/Connections/Item/Groups/Item/Members/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.Connections.Item.Groups.Item.Members.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/$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}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{extern /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs b/src/generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs index bda6071fee..f1667f682d 100644 --- a/src/generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs +++ b/src/generated/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Groups.Item.Members.Item /// /// Provides operations to manage the members property of the microsoft.graph.externalConnectors.externalGroup entity. /// - public class IdentityItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IdentityItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property members for connections @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.ExternalConnectors.Identity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.Identity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public IdentityItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/{identity%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 IdentityItemRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/{identity%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ExternalConnectors.Identity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.Identity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ExternalConnectors.Identity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.Identity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ExternalConnec /// /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// - public class IdentityItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IdentityItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class IdentityItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs b/src/generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs index ed83e40a58..2f034c8073 100644 --- a/src/generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs +++ b/src/generated/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Connections.Item.Groups.Item.Members.Count; using ApiSdk.Connections.Item.Groups.Item.Members.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Groups.Item.Members /// /// Provides operations to manage the members property of the microsoft.graph.externalConnectors.externalGroup entity. /// - public class MembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the members property of the microsoft.graph.externalConnectors.externalGroup entity. @@ -30,7 +33,7 @@ public class MembersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new IdentityItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Groups.Item.Members.Item.IdentityItemRequestBuilder(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.Connections.Item.Groups.Item.Members.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.ExternalConnectors.Identity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.Identity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members{?%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 MembersRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public MembersRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{exte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ApiSdk.Models.ExternalConnectors.Identity body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.Identity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.ExternalConnectors.Identity body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.Identity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.ExternalConnect /// /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Items/Count/CountRequestBuilder.cs b/src/generated/Connections/Item/Items/Count/CountRequestBuilder.cs index 1b2ba1f3f3..9f0c3b4669 100644 --- a/src/generated/Connections/Item/Items/Count/CountRequestBuilder.cs +++ b/src/generated/Connections/Item/Items/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.Connections.Item.Items.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}/connections/{externalConnection%2Did}/items/$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}/connections/{externalConnection%2Did}/items/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{extern /// 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/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs b/src/generated/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs index 46e247d112..b1a51fe32b 100644 --- a/src/generated/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs +++ b/src/generated/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Connections.Item.Items.Item.Activities.Count; using ApiSdk.Connections.Item.Items.Item.Activities.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Items.Item.Activities /// /// Provides operations to manage the activities property of the microsoft.graph.externalConnectors.externalItem entity. /// - public class ActivitiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ActivitiesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the activities property of the microsoft.graph.externalConnectors.externalItem entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ExternalActivityItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Items.Item.Activities.Item.ExternalActivityItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Connections.Item.Items.Item.Activities.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(ExternalActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 ActivitiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities{?%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 ActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public ActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{e /// 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); @@ -261,11 +264,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(ExternalActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExternalActivity body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ExternalActivity body, Action /// /// Returns a list of activities performed on the item. Write-only. /// - public class ActivitiesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ActivitiesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class ActivitiesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs b/src/generated/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs index bc87763557..bc59775d28 100644 --- a/src/generated/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs +++ b/src/generated/Connections/Item/Items/Item/Activities/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.Connections.Item.Items.Item.Activities.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/$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}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{extern /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs b/src/generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs index a77f9daa42..7593d7996a 100644 --- a/src/generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs +++ b/src/generated/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Connections.Item.Items.Item.Activities.Item.PerformedBy; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Items.Item.Activities.Item /// /// Provides operations to manage the activities property of the microsoft.graph.externalConnectors.externalItem entity. /// - public class ExternalActivityItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalActivityItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property activities for connections @@ -173,8 +176,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(ExternalActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildPerformedByNavCommand() { var command = new Command("performed-by"); command.Description = "Provides operations to manage the performedBy property of the microsoft.graph.externalConnectors.externalActivity entity."; - var builder = new PerformedByRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Items.Item.Activities.Item.PerformedBy.PerformedByRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -214,14 +217,14 @@ public Command BuildPerformedByNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExternalActivityItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%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 ExternalActivityItemRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(ExternalActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ExternalActivity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(ExternalActivity body, Actio /// /// Returns a list of activities performed on the item. Write-only. /// - public class ExternalActivityItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalActivityItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class ExternalActivityItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs b/src/generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs index a7f5949dc8..b44c0f6da9 100644 --- a/src/generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs +++ b/src/generated/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Items.Item.Activities.Item.PerformedBy /// /// Provides operations to manage the performedBy property of the microsoft.graph.externalConnectors.externalActivity entity. /// - public class PerformedByRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PerformedByRequestBuilder : BaseCliRequestBuilder { /// /// Represents an identity used to identify who is responsible for the activity. @@ -86,14 +89,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 PerformedByRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}/performedBy{?%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 PerformedByRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}/performedBy{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public PerformedByRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{ /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// Represents an identity used to identify who is responsible for the activity. /// - public class PerformedByRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PerformedByRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class PerformedByRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs b/src/generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs index 0006a6b8ae..ed261649bc 100644 --- a/src/generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs +++ b/src/generated/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Connections.Item.Items.Item.Activities; using ApiSdk.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Items.Item /// /// Provides operations to manage the items property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class ExternalItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the activities property of the microsoft.graph.externalConnectors.externalItem entity. @@ -31,7 +34,7 @@ public Command BuildActivitiesNavCommand() { var command = new Command("activities"); command.Description = "Provides operations to manage the activities property of the microsoft.graph.externalConnectors.externalItem entity."; - var builder = new ActivitiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Items.Item.Activities.ActivitiesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -157,7 +160,7 @@ public Command BuildMicrosoftGraphExternalConnectorsAddActivitiesNavCommand() { var command = new Command("microsoft-graph-external-connectors-add-activities"); command.Description = "Provides operations to call the addActivities method."; - var builder = new MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -201,8 +204,8 @@ public Command BuildPutCommand() 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(ExternalItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,14 +227,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExternalItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%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 ExternalItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}{?%24expand,%24select}", rawUrl) @@ -263,11 +266,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); @@ -283,11 +286,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 ToPutRequestInformation(ExternalItem body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ExternalItem body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPutRequestInformation(ExternalItem body, Action /// Get items from connections /// - public class ExternalItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -324,3 +328,4 @@ public class ExternalItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs b/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs index e5465a4304..b79d18251a 100644 --- a/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs +++ b/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs @@ -1,28 +1,30 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddActivitiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddActivitiesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The activities property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Activities { get; set; } + public List? Activities { get; set; } #nullable restore #else - public List Activities { get; set; } + public List Activities { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddActivitiesPostRequestBody() { @@ -31,12 +33,12 @@ public AddActivitiesPostRequestBody() /// /// 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 AddActivitiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddActivitiesPostRequestBody(); + return new global::ApiSdk.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "activities", n => { Activities = n.GetCollectionOfObjectValues(ExternalActivity.CreateFromDiscriminatorValue)?.ToList(); } }, + { "activities", n => { Activities = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExternalConnectors.ExternalActivity.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("activities", Activities); + writer.WriteCollectionOfObjectValues("activities", Activities); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs b/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs index e6d842955e..d7a1ae162f 100644 --- a/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs +++ b/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs @@ -1,34 +1,36 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; 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.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddActivitiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class AddActivitiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new AddActivitiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddActivitiesPostResponse(); + return new global::ApiSdk.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostResponse(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExternalActivityResult.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExternalConnectors.ExternalActivityResult.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -49,7 +51,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs b/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs index 5ea09a5b1c..529f0a410e 100644 --- a/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs +++ b/src/generated/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.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.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAdd /// /// Provides operations to call the addActivities method. /// - public class MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action addActivities @@ -59,8 +62,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(AddActivitiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -91,14 +94,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 MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/microsoft.graph.externalConnectors.addActivities", 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 MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/items/{externalItem%2Did}/microsoft.graph.externalConnectors.addActivities", rawUrl) @@ -112,11 +115,11 @@ public MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(string rawUrl /// 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(AddActivitiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddActivitiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -127,3 +130,4 @@ public RequestInformation ToPostRequestInformation(AddActivitiesPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Items/ItemsRequestBuilder.cs b/src/generated/Connections/Item/Items/ItemsRequestBuilder.cs index 4e212b8692..20abb0053d 100644 --- a/src/generated/Connections/Item/Items/ItemsRequestBuilder.cs +++ b/src/generated/Connections/Item/Items/ItemsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Connections.Item.Items.Count; using ApiSdk.Connections.Item.Items.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Items /// /// Provides operations to manage the items property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class ItemsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the items property of the microsoft.graph.externalConnectors.externalConnection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ExternalItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Items.Item.ExternalItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildActivitiesNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.Connections.Item.Items.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(ExternalItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ItemsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/items{?%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 ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{extern /// 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); @@ -250,11 +253,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(ExternalItem body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExternalItem body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(ExternalItem body, Action /// Get items from connections /// - public class ItemsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ItemsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Operations/Count/CountRequestBuilder.cs b/src/generated/Connections/Item/Operations/Count/CountRequestBuilder.cs index f81f835ff9..3f52c9e010 100644 --- a/src/generated/Connections/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/generated/Connections/Item/Operations/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.Connections.Item.Operations.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}/connections/{externalConnection%2Did}/operations/$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}/connections/{externalConnection%2Did}/operations/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{extern /// 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/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs b/src/generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs index 204f078b27..3e76f98c7b 100644 --- a/src/generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs +++ b/src/generated/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Operations.Item /// /// Provides operations to manage the operations property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class ConnectionOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConnectionOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property operations for connections @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ConnectionOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ConnectionOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/operations/{connectionOperation%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 ConnectionOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/operations/{connectionOperation%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ConnectionOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ConnectionOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(ConnectionOperation body, Ac /// /// Get operations from connections /// - public class ConnectionOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConnectionOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ConnectionOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Operations/OperationsRequestBuilder.cs b/src/generated/Connections/Item/Operations/OperationsRequestBuilder.cs index e0b5af4be7..bebf5a3430 100644 --- a/src/generated/Connections/Item/Operations/OperationsRequestBuilder.cs +++ b/src/generated/Connections/Item/Operations/OperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Connections.Item.Operations.Count; using ApiSdk.Connections.Item.Operations.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the operations property of the microsoft.graph.externalConnectors.externalConnection entity. @@ -30,7 +33,7 @@ public class OperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ConnectionOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.Item.Operations.Item.ConnectionOperationItemRequestBuilder(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.Connections.Item.Operations.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(ConnectionOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{e /// 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); @@ -247,11 +250,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(ConnectionOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ConnectionOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(ConnectionOperation body, Act /// /// Get operations from connections /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class OperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Connections/Item/Schema/SchemaRequestBuilder.cs b/src/generated/Connections/Item/Schema/SchemaRequestBuilder.cs index ee50949cc7..c3c9d3c91f 100644 --- a/src/generated/Connections/Item/Schema/SchemaRequestBuilder.cs +++ b/src/generated/Connections/Item/Schema/SchemaRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.Connections.Item.Schema /// /// Provides operations to manage the schema property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class SchemaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchemaRequestBuilder : BaseCliRequestBuilder { /// /// Get schema from connections @@ -103,8 +106,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.ExternalConnectors.Schema.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.Schema.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,14 +128,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 SchemaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/connections/{externalConnection%2Did}/schema{?%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 SchemaRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{externalConnection%2Did}/schema{?%24expand,%24select}", rawUrl) @@ -145,11 +148,11 @@ public SchemaRequestBuilder(string rawUrl) : base("{+baseurl}/connections/{exter /// 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); @@ -165,11 +168,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.ExternalConnectors.Schema body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.Schema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ExternalConnectors.Schema body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.Schema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -181,7 +184,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ExternalConnec /// /// Get schema from connections /// - public class SchemaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchemaRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,3 +210,4 @@ public class SchemaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/ContactsRequestBuilder.cs b/src/generated/Contacts/ContactsRequestBuilder.cs index 4c6ed20814..8487275416 100644 --- a/src/generated/Contacts/ContactsRequestBuilder.cs +++ b/src/generated/Contacts/ContactsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Count; using ApiSdk.Contacts.Delta; using ApiSdk.Contacts.GetAvailableExtensionProperties; @@ -7,6 +8,7 @@ using ApiSdk.Contacts.ValidateProperties; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Contacts /// /// Provides operations to manage the collection of orgContact entities. /// - public class ContactsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContactsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of orgContact entities. @@ -35,7 +38,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OrgContactItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.OrgContactItemRequestBuilder(PathParameters); commands.Add(builder.BuildCheckMemberGroupsNavCommand()); commands.Add(builder.BuildCheckMemberObjectsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -60,7 +63,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.Contacts.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -94,8 +97,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(OrgContact.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OrgContact.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -122,7 +125,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -139,7 +142,7 @@ public Command BuildGetAvailableExtensionPropertiesNavCommand() { var command = new Command("get-available-extension-properties"); command.Description = "Provides operations to call the getAvailableExtensionProperties method."; - var builder = new GetAvailableExtensionPropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -156,7 +159,7 @@ public Command BuildGetByIdsNavCommand() { var command = new Command("get-by-ids"); command.Description = "Provides operations to call the getByIds method."; - var builder = new GetByIdsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.GetByIds.GetByIdsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -277,7 +280,7 @@ public Command BuildValidatePropertiesNavCommand() { var command = new Command("validate-properties"); command.Description = "Provides operations to call the validateProperties method."; - var builder = new ValidatePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.ValidateProperties.ValidatePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -287,14 +290,14 @@ public Command BuildValidatePropertiesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContactsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts{?%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 ContactsRequestBuilder(string rawUrl) : base("{+baseurl}/contacts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -307,11 +310,11 @@ public ContactsRequestBuilder(string rawUrl) : base("{+baseurl}/contacts{?%24cou /// 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); @@ -327,11 +330,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(OrgContact body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OrgContact body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OrgContact body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OrgContact body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -343,7 +346,8 @@ public RequestInformation ToPostRequestInformation(OrgContact body, Action /// Get the list of organizational contacts for this organization. /// - public class ContactsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContactsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -407,3 +411,4 @@ public class ContactsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Count/CountRequestBuilder.cs b/src/generated/Contacts/Count/CountRequestBuilder.cs index 0e8478283d..daf8dde1d0 100644 --- a/src/generated/Contacts/Count/CountRequestBuilder.cs +++ b/src/generated/Contacts/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.Contacts.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 @@ -64,14 +67,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}/contacts/$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}/contacts/$count{?%24filter,%24search}", rawUrl) @@ -84,11 +87,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/$count{?%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); @@ -99,7 +102,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 @@ -124,3 +128,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Delta/DeltaGetResponse.cs b/src/generated/Contacts/Delta/DeltaGetResponse.cs index 1b80fb2ba4..8624aa05b5 100644 --- a/src/generated/Contacts/Delta/DeltaGetResponse.cs +++ b/src/generated/Contacts/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Contacts.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contacts.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Contacts.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(OrgContact.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.OrgContact.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Delta/DeltaRequestBuilder.cs b/src/generated/Contacts/Delta/DeltaRequestBuilder.cs index 8a3a81036f..00abc0f072 100644 --- a/src/generated/Contacts/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Contacts/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Contacts.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details. + /// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/orgcontact-delta?view=graph-rest-1.0"; + command.Description = "Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/orgcontact-delta?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -118,31 +121,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details. + /// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -151,9 +154,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details. + /// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index f8d389f234..76c9c6d4bd 100644 --- a/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contacts.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetAvailableExtensionPropertiesPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHol /// The isSyncedFromOnPremises property public bool? IsSyncedFromOnPremises { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAvailableExtensionPropertiesPostRequestBody() { @@ -24,12 +26,12 @@ public GetAvailableExtensionPropertiesPostRequestBody() /// /// 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 GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contacts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostRequestBody(); + return new global::ApiSdk.Contacts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 2561993e6a..a24a3501f3 100644 --- a/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Contacts.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAvailableExtensionPropertiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contacts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostResponse(); + return new global::ApiSdk.Contacts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExtensionProperty.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 5e7ae48525..1580b462c9 100644 --- a/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/generated/Contacts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.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.Contacts.GetAvailableExtensionProperties /// /// Provides operations to call the getAvailableExtensionProperties method. /// - public class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: @@ -50,8 +53,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(GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contacts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetAvailableExtensionPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/getAvailableExtensionProperties", 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 GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/getAvailableExtensionProperties", rawUrl) @@ -101,11 +104,11 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+ba /// 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(GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/GetByIds/GetByIdsPostRequestBody.cs b/src/generated/Contacts/GetByIds/GetByIdsPostRequestBody.cs index 24fc214c85..151780f31e 100644 --- a/src/generated/Contacts/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/generated/Contacts/GetByIds/GetByIdsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contacts.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetByIdsPostRequestBody : 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. @@ -29,7 +31,7 @@ public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable public List Types { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetByIdsPostRequestBody() { @@ -38,12 +40,12 @@ public GetByIdsPostRequestBody() /// /// 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 GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contacts.GetByIds.GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostRequestBody(); + return new global::ApiSdk.Contacts.GetByIds.GetByIdsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/GetByIds/GetByIdsPostResponse.cs b/src/generated/Contacts/GetByIds/GetByIdsPostResponse.cs index 0b857a9b64..d7622e57f6 100644 --- a/src/generated/Contacts/GetByIds/GetByIdsPostResponse.cs +++ b/src/generated/Contacts/GetByIds/GetByIdsPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Contacts.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetByIdsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contacts.GetByIds.GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostResponse(); + return new global::ApiSdk.Contacts.GetByIds.GetByIdsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/GetByIds/GetByIdsRequestBuilder.cs b/src/generated/Contacts/GetByIds/GetByIdsRequestBuilder.cs index c89f6d43c6..78daf4a69a 100644 --- a/src/generated/Contacts/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/generated/Contacts/GetByIds/GetByIdsRequestBuilder.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.Contacts.GetByIds /// /// Provides operations to call the getByIds method. /// - public class GetByIdsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetByIdsRequestBuilder : BaseCliRequestBuilder { /// /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -50,8 +53,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(GetByIdsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contacts.GetByIds.GetByIdsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetByIdsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/getByIds", 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 GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/getByIds", rawUrl) @@ -101,11 +104,11 @@ public GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/getById /// 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(GetByIdsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 73e700e9e1..1f18bf1f20 100644 --- a/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contacts.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberGroupsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List GroupIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberGroupsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberGroupsPostRequestBody() /// /// 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 CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contacts.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostRequestBody(); + return new global::ApiSdk.Contacts.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 60b2fe796f..89a8b83710 100644 --- a/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.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.Contacts.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountRespon /// /// 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 new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contacts.Item.CheckMemberGroups.CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostResponse(); + return new global::ApiSdk.Contacts.Item.CheckMemberGroups.CheckMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 8097a26e75..477e831901 100644 --- a/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/generated/Contacts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Contacts.Item.CheckMemberGroups /// /// Provides operations to call the checkMemberGroups method. /// - public class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; + command.Description = "Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; var orgContactIdOption = new Option("--org-contact-id", description: "The unique identifier of orgContact") { }; orgContactIdOption.IsRequired = true; @@ -55,8 +58,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(CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contacts.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 CheckMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/checkMemberGroups", 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 CheckMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// /// 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 ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 315c15e246..d9ef6a6fa6 100644 --- a/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contacts.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberObjectsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsabl public List Ids { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberObjectsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberObjectsPostRequestBody() /// /// 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 CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contacts.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostRequestBody(); + return new global::ApiSdk.Contacts.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index e1866e04f6..d8cd2225bf 100644 --- a/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.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.Contacts.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountRespo /// /// 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 new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contacts.Item.CheckMemberObjects.CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostResponse(); + return new global::ApiSdk.Contacts.Item.CheckMemberObjects.CheckMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 1ee79060e2..39ffb3e808 100644 --- a/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/generated/Contacts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.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.Contacts.Item.CheckMemberObjects /// /// Provides operations to call the checkMemberObjects method. /// - public class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action checkMemberObjects @@ -54,8 +57,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(CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contacts.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -85,14 +88,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 CheckMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/checkMemberObjects", 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 CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/checkMemberObjects", rawUrl) @@ -106,11 +109,11 @@ public CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/contac /// 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(CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -121,3 +124,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/DirectReports/Count/CountRequestBuilder.cs b/src/generated/Contacts/Item/DirectReports/Count/CountRequestBuilder.cs index 6b1af6c4f0..d312cad86b 100644 --- a/src/generated/Contacts/Item/DirectReports/Count/CountRequestBuilder.cs +++ b/src/generated/Contacts/Item/DirectReports/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.Contacts.Item.DirectReports.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 @@ -70,14 +73,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}/contacts/{orgContact%2Did}/directReports/$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}/contacts/{orgContact%2Did}/directReports/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContac /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.cs b/src/generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.cs index e14c55bd14..4fd22249e3 100644 --- a/src/generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.cs +++ b/src/generated/Contacts/Item/DirectReports/DirectReportsRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.DirectReports.Count; using ApiSdk.Contacts.Item.DirectReports.GraphOrgContact; using ApiSdk.Contacts.Item.DirectReports.GraphUser; using ApiSdk.Contacts.Item.DirectReports.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; @@ -23,7 +25,8 @@ namespace ApiSdk.Contacts.Item.DirectReports /// /// Provides operations to manage the directReports property of the microsoft.graph.orgContact entity. /// - public class DirectReportsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectReportsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the directReports property of the microsoft.graph.orgContact entity. @@ -33,7 +36,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.DirectReports.Item.DirectoryObjectItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGraphOrgContactByIdNavCommand()); commands.Add(builder.BuildGraphUserByIdNavCommand()); @@ -47,7 +50,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.Contacts.Item.DirectReports.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -64,7 +67,7 @@ public Command BuildGraphOrgContactNavCommand() { var command = new Command("graph-org-contact"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.DirectReports.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -87,7 +90,7 @@ public Command BuildGraphUserNavCommand() { var command = new Command("graph-user"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.DirectReports.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -213,14 +216,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 DirectReportsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports{?%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 DirectReportsRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -233,11 +236,11 @@ public DirectReportsRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{o /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,7 +251,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the direct reports for this organizational contact. /// - public class DirectReportsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectReportsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -312,3 +316,4 @@ public class DirectReportsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs b/src/generated/Contacts/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs index cd18b7d501..15c9004ac7 100644 --- a/src/generated/Contacts/Item/DirectReports/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/generated/Contacts/Item/DirectReports/GraphOrgContact/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.Contacts.Item.DirectReports.GraphOrgContact.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 @@ -70,14 +73,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}/contacts/{orgContact%2Did}/directReports/graph.orgContact/$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}/contacts/{orgContact%2Did}/directReports/graph.orgContact/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContac /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs index e1cbf65b5b..58bc22242a 100644 --- a/src/generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/Contacts/Item/DirectReports/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.DirectReports.GraphOrgContact.Count; 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.Contacts.Item.DirectReports.GraphOrgContact /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Contacts.Item.DirectReports.GraphOrgContact.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/ /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/DirectReports/GraphUser/Count/CountRequestBuilder.cs b/src/generated/Contacts/Item/DirectReports/GraphUser/Count/CountRequestBuilder.cs index a074936d89..09dac221f3 100644 --- a/src/generated/Contacts/Item/DirectReports/GraphUser/Count/CountRequestBuilder.cs +++ b/src/generated/Contacts/Item/DirectReports/GraphUser/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.Contacts.Item.DirectReports.GraphUser.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 @@ -70,14 +73,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}/contacts/{orgContact%2Did}/directReports/graph.user/$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}/contacts/{orgContact%2Did}/directReports/graph.user/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContac /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs index fbbf17e53b..7a385d9496 100644 --- a/src/generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Contacts/Item/DirectReports/GraphUser/GraphUserRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.DirectReports.GraphUser.Count; 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.Contacts.Item.DirectReports.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Contacts.Item.DirectReports.GraphUser.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgCo /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs index 31e341697c..c7cad52142 100644 --- a/src/generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Contacts/Item/DirectReports/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.DirectReports.Item.GraphOrgContact; using ApiSdk.Contacts.Item.DirectReports.Item.GraphUser; 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.Contacts.Item.DirectReports.Item /// /// Provides operations to manage the directReports property of the microsoft.graph.orgContact entity. /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// The contact's direct reports. (The users and contacts that have their manager property set to this contact.) Read-only. Nullable. Supports $expand. @@ -96,7 +99,7 @@ public Command BuildGraphOrgContactByIdNavCommand() { var command = new Command("graph-org-contact-by-id"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.DirectReports.Item.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -113,7 +116,7 @@ public Command BuildGraphUserByIdNavCommand() { var command = new Command("graph-user-by-id"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.DirectReports.Item.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -123,14 +126,14 @@ public Command BuildGraphUserByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/conta /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// The contact's direct reports. (The users and contacts that have their manager property set to this contact.) Read-only. Nullable. Supports $expand. /// - public class DirectoryObjectItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class DirectoryObjectItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 317d6ccf0d..7e35af2129 100644 --- a/src/generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/Contacts/Item/DirectReports/Item/GraphOrgContact/GraphOrgContactRequestBuilder.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.Contacts.Item.DirectReports.Item.GraphOrgContact /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -87,14 +90,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%2Did}/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/ /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs index d2ea8d6060..8d88f7a59d 100644 --- a/src/generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Contacts/Item/DirectReports/Item/GraphUser/GraphUserRequestBuilder.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.Contacts.Item.DirectReports.Item.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -87,14 +90,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%2Did}/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/directReports/{directoryObject%2Did}/graph.user{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgCo /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 59b8ef88fa..e83badd4e7 100644 --- a/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contacts.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberGroupsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberGroupsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberGroupsPostRequestBody() /// /// 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 GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contacts.Item.GetMemberGroups.GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostRequestBody(); + return new global::ApiSdk.Contacts.Item.GetMemberGroups.GetMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index e2110301d3..42ba39806a 100644 --- a/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsPostResponse.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.Contacts.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse /// /// 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 new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contacts.Item.GetMemberGroups.GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostResponse(); + return new global::ApiSdk.Contacts.Item.GetMemberGroups.GetMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index b60a2f0756..3876333290 100644 --- a/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/generated/Contacts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Contacts.Item.GetMemberGroups /// /// Provides operations to call the getMemberGroups method. /// - public class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; + command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; var orgContactIdOption = new Option("--org-contact-id", description: "The unique identifier of orgContact") { }; orgContactIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contacts.Item.GetMemberGroups.GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/getMemberGroups", 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 GetMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// /// 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 ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 04bd49d9c6..3bfc4ae817 100644 --- a/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contacts.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberObjectsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberObjectsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberObjectsPostRequestBody() /// /// 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 GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contacts.Item.GetMemberObjects.GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostRequestBody(); + return new global::ApiSdk.Contacts.Item.GetMemberObjects.GetMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 142c5d0388..fb82cd38a8 100644 --- a/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsPostResponse.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.Contacts.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountRespons /// /// 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 new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contacts.Item.GetMemberObjects.GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostResponse(); + return new global::ApiSdk.Contacts.Item.GetMemberObjects.GetMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index ddcf426077..14a7f25625 100644 --- a/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/generated/Contacts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Contacts.Item.GetMemberObjects /// /// Provides operations to call the getMemberObjects method. /// - public class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; + command.Description = "Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; var orgContactIdOption = new Option("--org-contact-id", description: "The unique identifier of orgContact") { }; orgContactIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contacts.Item.GetMemberObjects.GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/getMemberObjects", 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 GetMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// /// 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 ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/Manager/ManagerRequestBuilder.cs b/src/generated/Contacts/Item/Manager/ManagerRequestBuilder.cs index 2b0a871f51..a41bfbe4c0 100644 --- a/src/generated/Contacts/Item/Manager/ManagerRequestBuilder.cs +++ b/src/generated/Contacts/Item/Manager/ManagerRequestBuilder.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.Contacts.Item.Manager /// /// Provides operations to manage the manager property of the microsoft.graph.orgContact entity. /// - public class ManagerRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagerRequestBuilder : BaseCliRequestBuilder { /// /// Get this organizational contact's manager. @@ -75,14 +78,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 ManagerRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/manager{?%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 ManagerRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/manager{?%24expand,%24select}", rawUrl) @@ -95,11 +98,11 @@ public ManagerRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgCont /// 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); @@ -110,7 +113,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get this organizational contact's manager. /// - public class ManagerRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagerRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,3 +139,4 @@ public class ManagerRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/MemberOf/Count/CountRequestBuilder.cs b/src/generated/Contacts/Item/MemberOf/Count/CountRequestBuilder.cs index f9510792f1..7a67b05266 100644 --- a/src/generated/Contacts/Item/MemberOf/Count/CountRequestBuilder.cs +++ b/src/generated/Contacts/Item/MemberOf/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.Contacts.Item.MemberOf.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 @@ -70,14 +73,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}/contacts/{orgContact%2Did}/memberOf/$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}/contacts/{orgContact%2Did}/memberOf/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContac /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index ae695deb49..11b4298dfb 100644 --- a/src/generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/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.Contacts.Item.MemberOf.GraphAdministrativeUnit.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 @@ -70,14 +73,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}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit/$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}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContac /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 6511a65bfc..12ddd2741f 100644 --- a/src/generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.MemberOf.GraphAdministrativeUnit.Count; 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.Contacts.Item.MemberOf.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Contacts.Item.MemberOf.GraphAdministrativeUnit.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/c /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/Contacts/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs index 9a0792df16..6cc6ce16b5 100644 --- a/src/generated/Contacts/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/Contacts/Item/MemberOf/GraphGroup/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.Contacts.Item.MemberOf.GraphGroup.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 @@ -70,14 +73,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}/contacts/{orgContact%2Did}/memberOf/graph.group/$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}/contacts/{orgContact%2Did}/memberOf/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContac /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs index 2bb2dde36e..bbe176b688 100644 --- a/src/generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Contacts/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.MemberOf.GraphGroup.Count; 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.Contacts.Item.MemberOf.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Contacts.Item.MemberOf.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgC /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs index af0bbafadc..dac4144937 100644 --- a/src/generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.MemberOf.Item.GraphAdministrativeUnit; using ApiSdk.Contacts.Item.MemberOf.Item.GraphGroup; 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.Contacts.Item.MemberOf.Item /// /// Provides operations to manage the memberOf property of the microsoft.graph.orgContact entity. /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Groups that this contact is a member of. Read-only. Nullable. Supports $expand. @@ -96,7 +99,7 @@ public Command BuildGraphAdministrativeUnitByIdNavCommand() { var command = new Command("graph-administrative-unit-by-id"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.MemberOf.Item.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -113,7 +116,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.MemberOf.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -123,14 +126,14 @@ public Command BuildGraphGroupByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/conta /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Groups that this contact is a member of. Read-only. Nullable. Supports $expand. /// - public class DirectoryObjectItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class DirectoryObjectItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 9b1cd58577..396c13c715 100644 --- a/src/generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.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.Contacts.Item.MemberOf.Item.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -87,14 +90,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/c /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index b7637ef68d..8b4e3c195b 100644 --- a/src/generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Contacts/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.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.Contacts.Item.MemberOf.Item.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -87,14 +90,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgC /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs b/src/generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs index 2304081d35..f44b166d04 100644 --- a/src/generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs +++ b/src/generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.MemberOf.Count; using ApiSdk.Contacts.Item.MemberOf.GraphAdministrativeUnit; using ApiSdk.Contacts.Item.MemberOf.GraphGroup; using ApiSdk.Contacts.Item.MemberOf.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; @@ -23,7 +25,8 @@ namespace ApiSdk.Contacts.Item.MemberOf /// /// Provides operations to manage the memberOf property of the microsoft.graph.orgContact entity. /// - public class MemberOfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MemberOfRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the memberOf property of the microsoft.graph.orgContact entity. @@ -33,7 +36,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.MemberOf.Item.DirectoryObjectItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGraphAdministrativeUnitByIdNavCommand()); commands.Add(builder.BuildGraphGroupByIdNavCommand()); @@ -47,7 +50,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.Contacts.Item.MemberOf.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -64,7 +67,7 @@ public Command BuildGraphAdministrativeUnitNavCommand() { var command = new Command("graph-administrative-unit"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.MemberOf.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -87,7 +90,7 @@ public Command BuildGraphGroupNavCommand() { var command = new Command("graph-group"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.MemberOf.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -213,14 +216,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 MemberOfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf{?%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 MemberOfRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/memberOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -233,11 +236,11 @@ public MemberOfRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgCon /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,7 +251,8 @@ public RequestInformation ToGetRequestInformation(Action /// List the groups that this organizational contact is a member of. /// - public class MemberOfRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MemberOfRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -312,3 +316,4 @@ public class MemberOfRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/OrgContactItemRequestBuilder.cs b/src/generated/Contacts/Item/OrgContactItemRequestBuilder.cs index 9555a0859e..eada747280 100644 --- a/src/generated/Contacts/Item/OrgContactItemRequestBuilder.cs +++ b/src/generated/Contacts/Item/OrgContactItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.CheckMemberGroups; using ApiSdk.Contacts.Item.CheckMemberObjects; using ApiSdk.Contacts.Item.DirectReports; @@ -12,6 +13,7 @@ using ApiSdk.Contacts.Item.TransitiveMemberOf; 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; @@ -30,7 +32,8 @@ namespace ApiSdk.Contacts.Item /// /// Provides operations to manage the collection of orgContact entities. /// - public class OrgContactItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OrgContactItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the checkMemberGroups method. @@ -40,7 +43,7 @@ public Command BuildCheckMemberGroupsNavCommand() { var command = new Command("check-member-groups"); command.Description = "Provides operations to call the checkMemberGroups method."; - var builder = new CheckMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.CheckMemberGroups.CheckMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -57,7 +60,7 @@ public Command BuildCheckMemberObjectsNavCommand() { var command = new Command("check-member-objects"); command.Description = "Provides operations to call the checkMemberObjects method."; - var builder = new CheckMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.CheckMemberObjects.CheckMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -109,7 +112,7 @@ public Command BuildDirectReportsNavCommand() { var command = new Command("direct-reports"); command.Description = "Provides operations to manage the directReports property of the microsoft.graph.orgContact entity."; - var builder = new DirectReportsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.DirectReports.DirectReportsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -190,7 +193,7 @@ public Command BuildGetMemberGroupsNavCommand() { var command = new Command("get-member-groups"); command.Description = "Provides operations to call the getMemberGroups method."; - var builder = new GetMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.GetMemberGroups.GetMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,7 +210,7 @@ public Command BuildGetMemberObjectsNavCommand() { var command = new Command("get-member-objects"); command.Description = "Provides operations to call the getMemberObjects method."; - var builder = new GetMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.GetMemberObjects.GetMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -224,7 +227,7 @@ public Command BuildManagerNavCommand() { var command = new Command("manager"); command.Description = "Provides operations to manage the manager property of the microsoft.graph.orgContact entity."; - var builder = new ManagerRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.Manager.ManagerRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -241,7 +244,7 @@ public Command BuildMemberOfNavCommand() { var command = new Command("member-of"); command.Description = "Provides operations to manage the memberOf property of the microsoft.graph.orgContact entity."; - var builder = new MemberOfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.MemberOf.MemberOfRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -291,8 +294,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(OrgContact.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OrgContact.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -320,7 +323,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -337,7 +340,7 @@ public Command BuildRetryServiceProvisioningNavCommand() { var command = new Command("retry-service-provisioning"); command.Description = "Provides operations to call the retryServiceProvisioning method."; - var builder = new RetryServiceProvisioningRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.RetryServiceProvisioning.RetryServiceProvisioningRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -354,7 +357,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -377,7 +380,7 @@ public Command BuildTransitiveMemberOfNavCommand() { var command = new Command("transitive-member-of"); command.Description = "Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity."; - var builder = new TransitiveMemberOfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.TransitiveMemberOf.TransitiveMemberOfRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -398,14 +401,14 @@ public Command BuildTransitiveMemberOfNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OrgContactItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%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 OrgContactItemRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}{?%24expand,%24select}", rawUrl) @@ -437,11 +440,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); @@ -457,11 +460,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(OrgContact body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OrgContact body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OrgContact body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OrgContact body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -473,7 +476,8 @@ public RequestInformation ToPatchRequestInformation(OrgContact body, Action /// Get the properties and relationships of an organizational contact. /// - public class OrgContactItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OrgContactItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -498,3 +502,4 @@ public class OrgContactItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Contacts/Item/Restore/RestoreRequestBuilder.cs index ae4d93a66a..cd8eb7c2fc 100644 --- a/src/generated/Contacts/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Contacts/Item/Restore/RestoreRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.Contacts.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var orgContactIdOption = new Option("--org-contact-id", description: "The unique identifier of orgContact") { }; orgContactIdOption.IsRequired = true; @@ -61,21 +64,21 @@ 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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Contacts.Item.RetryServiceProvisioning /// /// Provides operations to call the retryServiceProvisioning method. /// - public class RetryServiceProvisioningRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RetryServiceProvisioningRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action retryServiceProvisioning @@ -49,14 +52,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 RetryServiceProvisioningRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/retryServiceProvisioning", 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 RetryServiceProvisioningRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/retryServiceProvisioning", rawUrl) @@ -83,3 +86,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Contacts.Item.ServiceProvisioningErrors.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 @@ -70,14 +73,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}/contacts/{orgContact%2Did}/serviceProvisioningErrors/$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}/contacts/{orgContact%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContac /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 0d2078d30e..57aedd262f 100644 --- a/src/generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Contacts/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.ServiceProvisioningErrors.Count; 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.Contacts.Item.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \contacts\{orgContact-id}\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Contacts.Item.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -142,14 +145,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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -162,11 +165,11 @@ public ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl} /// 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); @@ -177,7 +180,8 @@ public RequestInformation ToGetRequestInformation(Action /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from an organizational contact object . Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -241,3 +245,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs b/src/generated/Contacts/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs index 6ec42b3a52..bd0fef2270 100644 --- a/src/generated/Contacts/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs +++ b/src/generated/Contacts/Item/TransitiveMemberOf/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.Contacts.Item.TransitiveMemberOf.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 @@ -70,14 +73,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}/contacts/{orgContact%2Did}/transitiveMemberOf/$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}/contacts/{orgContact%2Did}/transitiveMemberOf/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContac /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index 46a1081cff..9e0551246b 100644 --- a/src/generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/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.Contacts.Item.TransitiveMemberOf.GraphAdministrativeUnit.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 @@ -70,14 +73,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}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit/$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}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContac /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index c89e1f2fec..36b9a5c3f4 100644 --- a/src/generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.TransitiveMemberOf.GraphAdministrativeUnit.Count; 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.Contacts.Item.TransitiveMemberOf.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Contacts.Item.TransitiveMemberOf.GraphAdministrativeUnit.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/c /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/Contacts/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs index 9041b62e77..bbf9ef8f05 100644 --- a/src/generated/Contacts/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/Contacts/Item/TransitiveMemberOf/GraphGroup/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.Contacts.Item.TransitiveMemberOf.GraphGroup.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 @@ -70,14 +73,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}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.group/$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}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContac /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs index abc2cb79ab..823c49d0f4 100644 --- a/src/generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Contacts/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.TransitiveMemberOf.GraphGroup.Count; 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.Contacts.Item.TransitiveMemberOf.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Contacts.Item.TransitiveMemberOf.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgC /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 17d45a658d..9c8f1dbb6f 100644 --- a/src/generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit; using ApiSdk.Contacts.Item.TransitiveMemberOf.Item.GraphGroup; 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.Contacts.Item.TransitiveMemberOf.Item /// /// Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity. /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Groups that this contact is a member of, including groups that the contact is nested under. Read-only. Nullable. @@ -96,7 +99,7 @@ public Command BuildGraphAdministrativeUnitByIdNavCommand() { var command = new Command("graph-administrative-unit-by-id"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -113,7 +116,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.TransitiveMemberOf.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -123,14 +126,14 @@ public Command BuildGraphGroupByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/conta /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Groups that this contact is a member of, including groups that the contact is nested under. Read-only. Nullable. /// - public class DirectoryObjectItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class DirectoryObjectItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index ad7aa70d37..e036f351c8 100644 --- a/src/generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.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.Contacts.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -87,14 +90,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/c /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index 3afc3857fd..7af9c0ffe1 100644 --- a/src/generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Contacts/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.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.Contacts.Item.TransitiveMemberOf.Item.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -87,14 +90,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgC /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs b/src/generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs index 79fc348b2c..9f299df23f 100644 --- a/src/generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs +++ b/src/generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Contacts.Item.TransitiveMemberOf.Count; using ApiSdk.Contacts.Item.TransitiveMemberOf.GraphAdministrativeUnit; using ApiSdk.Contacts.Item.TransitiveMemberOf.GraphGroup; using ApiSdk.Contacts.Item.TransitiveMemberOf.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; @@ -23,7 +25,8 @@ namespace ApiSdk.Contacts.Item.TransitiveMemberOf /// /// Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity. /// - public class TransitiveMemberOfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TransitiveMemberOfRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity. @@ -33,7 +36,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.TransitiveMemberOf.Item.DirectoryObjectItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGraphAdministrativeUnitByIdNavCommand()); commands.Add(builder.BuildGraphGroupByIdNavCommand()); @@ -47,7 +50,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.Contacts.Item.TransitiveMemberOf.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -64,7 +67,7 @@ public Command BuildGraphAdministrativeUnitNavCommand() { var command = new Command("graph-administrative-unit"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.TransitiveMemberOf.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -87,7 +90,7 @@ public Command BuildGraphGroupNavCommand() { var command = new Command("graph-group"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.Item.TransitiveMemberOf.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -213,14 +216,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 TransitiveMemberOfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf{?%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 TransitiveMemberOfRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -233,11 +236,11 @@ public TransitiveMemberOfRequestBuilder(string rawUrl) : base("{+baseurl}/contac /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,7 +251,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get groups that this organizational contact is a member of. The API request is transitive, and returns all groups the organizational contact is a nested member of. /// - public class TransitiveMemberOfRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TransitiveMemberOfRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -312,3 +316,4 @@ public class TransitiveMemberOfRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/generated/Contacts/ValidateProperties/ValidatePropertiesPostRequestBody.cs index 52375ba39c..390f00a1aa 100644 --- a/src/generated/Contacts/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/generated/Contacts/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contacts.ValidateProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidatePropertiesPostRequestBody : 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. @@ -39,7 +41,7 @@ public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsabl /// The onBehalfOfUserId property public Guid? OnBehalfOfUserId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidatePropertiesPostRequestBody() { @@ -48,12 +50,12 @@ public ValidatePropertiesPostRequestBody() /// /// 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 ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contacts.ValidateProperties.ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidatePropertiesPostRequestBody(); + return new global::ApiSdk.Contacts.ValidateProperties.ValidatePropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -84,3 +86,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 2b9a77b486..51e85b136b 100644 --- a/src/generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/generated/Contacts/ValidateProperties/ValidatePropertiesRequestBuilder.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.Contacts.ValidateProperties /// /// Provides operations to call the validateProperties method. /// - public class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. @@ -38,8 +41,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(ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contacts.ValidateProperties.ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -57,14 +60,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 ValidatePropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contacts/validateProperties", 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 ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/validateProperties", rawUrl) @@ -78,11 +81,11 @@ public ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/contac /// 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(ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.ValidateProperties.ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contacts.ValidateProperties.ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -93,3 +96,4 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/ContractsRequestBuilder.cs b/src/generated/Contracts/ContractsRequestBuilder.cs index 396e3a65a8..4657aed212 100644 --- a/src/generated/Contracts/ContractsRequestBuilder.cs +++ b/src/generated/Contracts/ContractsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Contracts.Count; using ApiSdk.Contracts.Delta; using ApiSdk.Contracts.GetAvailableExtensionProperties; @@ -7,6 +8,7 @@ using ApiSdk.Contracts.ValidateProperties; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Contracts /// /// Provides operations to manage the collection of contract entities. /// - public class ContractsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContractsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of contract entities. @@ -35,7 +38,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ContractItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contracts.Item.ContractItemRequestBuilder(PathParameters); commands.Add(builder.BuildCheckMemberGroupsNavCommand()); commands.Add(builder.BuildCheckMemberObjectsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -54,7 +57,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.Contracts.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Contract.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Contract.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -116,7 +119,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contracts.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -133,7 +136,7 @@ public Command BuildGetAvailableExtensionPropertiesNavCommand() { var command = new Command("get-available-extension-properties"); command.Description = "Provides operations to call the getAvailableExtensionProperties method."; - var builder = new GetAvailableExtensionPropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contracts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -150,7 +153,7 @@ public Command BuildGetByIdsNavCommand() { var command = new Command("get-by-ids"); command.Description = "Provides operations to call the getByIds method."; - var builder = new GetByIdsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contracts.GetByIds.GetByIdsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -264,7 +267,7 @@ public Command BuildValidatePropertiesNavCommand() { var command = new Command("validate-properties"); command.Description = "Provides operations to call the validateProperties method."; - var builder = new ValidatePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contracts.ValidateProperties.ValidatePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -274,14 +277,14 @@ public Command BuildValidatePropertiesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContractsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contracts{?%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 ContractsRequestBuilder(string rawUrl) : base("{+baseurl}/contracts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -294,11 +297,11 @@ public ContractsRequestBuilder(string rawUrl) : base("{+baseurl}/contracts{?%24c /// 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); @@ -314,11 +317,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(Contract body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Contract body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Contract body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Contract body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -330,7 +333,8 @@ public RequestInformation ToPostRequestInformation(Contract body, Action /// Retrieve a list of contract objects associated to a partner tenant. /// - public class ContractsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContractsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -394,3 +398,4 @@ public class ContractsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Count/CountRequestBuilder.cs b/src/generated/Contracts/Count/CountRequestBuilder.cs index 284681c072..0158bcb7ef 100644 --- a/src/generated/Contracts/Count/CountRequestBuilder.cs +++ b/src/generated/Contracts/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.Contracts.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}/contracts/$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}/contracts/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/$count{?% /// 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/Contracts/Delta/DeltaGetResponse.cs b/src/generated/Contracts/Delta/DeltaGetResponse.cs index 19d120137e..72cfd565e3 100644 --- a/src/generated/Contracts/Delta/DeltaGetResponse.cs +++ b/src/generated/Contracts/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Contracts.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contracts.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Contracts.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Delta/DeltaRequestBuilder.cs b/src/generated/Contracts/Delta/DeltaRequestBuilder.cs index 0793a279e2..d8a0b63d23 100644 --- a/src/generated/Contracts/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Contracts/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Contracts.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-1.0"; + command.Description = "Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -118,31 +121,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contracts/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -151,9 +154,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index bd89bec61a..a1bb03bae8 100644 --- a/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contracts.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetAvailableExtensionPropertiesPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHol /// The isSyncedFromOnPremises property public bool? IsSyncedFromOnPremises { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAvailableExtensionPropertiesPostRequestBody() { @@ -24,12 +26,12 @@ public GetAvailableExtensionPropertiesPostRequestBody() /// /// 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 GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contracts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostRequestBody(); + return new global::ApiSdk.Contracts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 4865b918f0..56eb4567cc 100644 --- a/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Contracts.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAvailableExtensionPropertiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contracts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostResponse(); + return new global::ApiSdk.Contracts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExtensionProperty.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index abc6b51fa5..9bc9a46a5d 100644 --- a/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/generated/Contracts/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.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.Contracts.GetAvailableExtensionProperties /// /// Provides operations to call the getAvailableExtensionProperties method. /// - public class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: @@ -50,8 +53,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(GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contracts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetAvailableExtensionPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contracts/getAvailableExtensionProperties", 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 GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/getAvailableExtensionProperties", rawUrl) @@ -101,11 +104,11 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+ba /// 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(GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/GetByIds/GetByIdsPostRequestBody.cs b/src/generated/Contracts/GetByIds/GetByIdsPostRequestBody.cs index b0274f3f7e..868e466584 100644 --- a/src/generated/Contracts/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/generated/Contracts/GetByIds/GetByIdsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contracts.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetByIdsPostRequestBody : 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. @@ -29,7 +31,7 @@ public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable public List Types { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetByIdsPostRequestBody() { @@ -38,12 +40,12 @@ public GetByIdsPostRequestBody() /// /// 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 GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contracts.GetByIds.GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostRequestBody(); + return new global::ApiSdk.Contracts.GetByIds.GetByIdsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/GetByIds/GetByIdsPostResponse.cs b/src/generated/Contracts/GetByIds/GetByIdsPostResponse.cs index 8f6461f2e3..540c45ee31 100644 --- a/src/generated/Contracts/GetByIds/GetByIdsPostResponse.cs +++ b/src/generated/Contracts/GetByIds/GetByIdsPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Contracts.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetByIdsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contracts.GetByIds.GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostResponse(); + return new global::ApiSdk.Contracts.GetByIds.GetByIdsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/GetByIds/GetByIdsRequestBuilder.cs b/src/generated/Contracts/GetByIds/GetByIdsRequestBuilder.cs index d43bead289..6fdd0f68a1 100644 --- a/src/generated/Contracts/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/generated/Contracts/GetByIds/GetByIdsRequestBuilder.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.Contracts.GetByIds /// /// Provides operations to call the getByIds method. /// - public class GetByIdsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetByIdsRequestBuilder : BaseCliRequestBuilder { /// /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -50,8 +53,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(GetByIdsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contracts.GetByIds.GetByIdsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetByIdsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contracts/getByIds", 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 GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/getByIds", rawUrl) @@ -101,11 +104,11 @@ public GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/getByI /// 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(GetByIdsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 6c6dcabf5e..b7fdabfa38 100644 --- a/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contracts.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberGroupsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List GroupIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberGroupsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberGroupsPostRequestBody() /// /// 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 CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contracts.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostRequestBody(); + return new global::ApiSdk.Contracts.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 270c99950a..890b265f5c 100644 --- a/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.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.Contracts.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountRespon /// /// 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 new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contracts.Item.CheckMemberGroups.CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostResponse(); + return new global::ApiSdk.Contracts.Item.CheckMemberGroups.CheckMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 6f5f3a52e1..1ae7a87868 100644 --- a/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/generated/Contracts/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Contracts.Item.CheckMemberGroups /// /// Provides operations to call the checkMemberGroups method. /// - public class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; + command.Description = "Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; var contractIdOption = new Option("--contract-id", description: "The unique identifier of contract") { }; contractIdOption.IsRequired = true; @@ -55,8 +58,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(CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contracts.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 CheckMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contracts/{contract%2Did}/checkMemberGroups", 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 CheckMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/{contract%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// /// 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 ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 36bf276ef8..f1d8d29e2c 100644 --- a/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contracts.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberObjectsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsabl public List Ids { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberObjectsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberObjectsPostRequestBody() /// /// 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 CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contracts.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostRequestBody(); + return new global::ApiSdk.Contracts.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 457f6bfb5e..b62f563339 100644 --- a/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.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.Contracts.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountRespo /// /// 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 new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contracts.Item.CheckMemberObjects.CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostResponse(); + return new global::ApiSdk.Contracts.Item.CheckMemberObjects.CheckMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 7a97217c64..2d46ba4522 100644 --- a/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/generated/Contracts/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.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.Contracts.Item.CheckMemberObjects /// /// Provides operations to call the checkMemberObjects method. /// - public class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action checkMemberObjects @@ -54,8 +57,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(CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contracts.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -85,14 +88,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 CheckMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contracts/{contract%2Did}/checkMemberObjects", 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 CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/{contract%2Did}/checkMemberObjects", rawUrl) @@ -106,11 +109,11 @@ public CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/contra /// 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(CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -121,3 +124,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/ContractItemRequestBuilder.cs b/src/generated/Contracts/Item/ContractItemRequestBuilder.cs index ea9b318b41..ac6bb84181 100644 --- a/src/generated/Contracts/Item/ContractItemRequestBuilder.cs +++ b/src/generated/Contracts/Item/ContractItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Contracts.Item.CheckMemberGroups; using ApiSdk.Contracts.Item.CheckMemberObjects; using ApiSdk.Contracts.Item.GetMemberGroups; @@ -6,6 +7,7 @@ using ApiSdk.Contracts.Item.Restore; 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 +26,8 @@ namespace ApiSdk.Contracts.Item /// /// Provides operations to manage the collection of contract entities. /// - public class ContractItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContractItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the checkMemberGroups method. @@ -34,7 +37,7 @@ public Command BuildCheckMemberGroupsNavCommand() { var command = new Command("check-member-groups"); command.Description = "Provides operations to call the checkMemberGroups method."; - var builder = new CheckMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contracts.Item.CheckMemberGroups.CheckMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCheckMemberObjectsNavCommand() { var command = new Command("check-member-objects"); command.Description = "Provides operations to call the checkMemberObjects method."; - var builder = new CheckMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contracts.Item.CheckMemberObjects.CheckMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -156,7 +159,7 @@ public Command BuildGetMemberGroupsNavCommand() { var command = new Command("get-member-groups"); command.Description = "Provides operations to call the getMemberGroups method."; - var builder = new GetMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contracts.Item.GetMemberGroups.GetMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -173,7 +176,7 @@ public Command BuildGetMemberObjectsNavCommand() { var command = new Command("get-member-objects"); command.Description = "Provides operations to call the getMemberObjects method."; - var builder = new GetMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contracts.Item.GetMemberObjects.GetMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -212,8 +215,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(Contract.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Contract.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -241,7 +244,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contracts.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -251,14 +254,14 @@ public Command BuildRestoreNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContractItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contracts/{contract%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 ContractItemRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/{contract%2Did}{?%24expand,%24select}", rawUrl) @@ -290,11 +293,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); @@ -310,11 +313,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(Contract body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Contract body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Contract body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Contract body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -326,7 +329,8 @@ public RequestInformation ToPatchRequestInformation(Contract body, Action /// Retrieve the properties and relationships of contract object. /// - public class ContractItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContractItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -351,3 +355,4 @@ public class ContractItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 1fa3d00386..dec9cda097 100644 --- a/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contracts.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberGroupsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberGroupsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberGroupsPostRequestBody() /// /// 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 GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contracts.Item.GetMemberGroups.GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostRequestBody(); + return new global::ApiSdk.Contracts.Item.GetMemberGroups.GetMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index b007bd3558..106abbbd77 100644 --- a/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsPostResponse.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.Contracts.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse /// /// 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 new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contracts.Item.GetMemberGroups.GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostResponse(); + return new global::ApiSdk.Contracts.Item.GetMemberGroups.GetMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 1131802ed5..372f7919d9 100644 --- a/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/generated/Contracts/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Contracts.Item.GetMemberGroups /// /// Provides operations to call the getMemberGroups method. /// - public class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; + command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; var contractIdOption = new Option("--contract-id", description: "The unique identifier of contract") { }; contractIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contracts.Item.GetMemberGroups.GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contracts/{contract%2Did}/getMemberGroups", 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 GetMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/{contract%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// /// 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 ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index b25a42f4fa..c8d60c76f7 100644 --- a/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contracts.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberObjectsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberObjectsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberObjectsPostRequestBody() /// /// 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 GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contracts.Item.GetMemberObjects.GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostRequestBody(); + return new global::ApiSdk.Contracts.Item.GetMemberObjects.GetMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index e26de6f07a..de65f05486 100644 --- a/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsPostResponse.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.Contracts.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountRespons /// /// 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 new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Contracts.Item.GetMemberObjects.GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostResponse(); + return new global::ApiSdk.Contracts.Item.GetMemberObjects.GetMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 995a1ba57b..81779de58f 100644 --- a/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/generated/Contracts/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Contracts.Item.GetMemberObjects /// /// Provides operations to call the getMemberObjects method. /// - public class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; + command.Description = "Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; var contractIdOption = new Option("--contract-id", description: "The unique identifier of contract") { }; contractIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contracts.Item.GetMemberObjects.GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contracts/{contract%2Did}/getMemberObjects", 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 GetMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/{contract%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// /// 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 ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Contracts/Item/Restore/RestoreRequestBuilder.cs index 32870907cb..8ed7ebed87 100644 --- a/src/generated/Contracts/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Contracts/Item/Restore/RestoreRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.Contracts.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var contractIdOption = new Option("--contract-id", description: "The unique identifier of contract") { }; contractIdOption.IsRequired = true; @@ -61,21 +64,21 @@ 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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contracts/{contract%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/{contract%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Contracts.ValidateProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidatePropertiesPostRequestBody : 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. @@ -39,7 +41,7 @@ public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsabl /// The onBehalfOfUserId property public Guid? OnBehalfOfUserId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidatePropertiesPostRequestBody() { @@ -48,12 +50,12 @@ public ValidatePropertiesPostRequestBody() /// /// 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 ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Contracts.ValidateProperties.ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidatePropertiesPostRequestBody(); + return new global::ApiSdk.Contracts.ValidateProperties.ValidatePropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -84,3 +86,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.cs index f4346c8680..eaa9b8b02d 100644 --- a/src/generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/generated/Contracts/ValidateProperties/ValidatePropertiesRequestBuilder.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.Contracts.ValidateProperties /// /// Provides operations to call the validateProperties method. /// - public class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. @@ -38,8 +41,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(ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Contracts.ValidateProperties.ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -57,14 +60,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 ValidatePropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/contracts/validateProperties", 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 ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/validateProperties", rawUrl) @@ -78,11 +81,11 @@ public ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/contra /// 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(ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.ValidateProperties.ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Contracts.ValidateProperties.ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -93,3 +96,4 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DataPolicyOperations/Count/CountRequestBuilder.cs b/src/generated/DataPolicyOperations/Count/CountRequestBuilder.cs index 2dfa5e6a82..ab6b45a1a1 100644 --- a/src/generated/DataPolicyOperations/Count/CountRequestBuilder.cs +++ b/src/generated/DataPolicyOperations/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.DataPolicyOperations.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}/dataPolicyOperations/$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}/dataPolicyOperations/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/dataPolicyOperation /// 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/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs b/src/generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs index f131db7690..8a25b6ef68 100644 --- a/src/generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs +++ b/src/generated/DataPolicyOperations/DataPolicyOperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DataPolicyOperations.Count; using ApiSdk.DataPolicyOperations.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.DataPolicyOperations /// /// Provides operations to manage the collection of dataPolicyOperation entities. /// - public class DataPolicyOperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataPolicyOperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of dataPolicyOperation entities. @@ -30,7 +33,7 @@ public class DataPolicyOperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DataPolicyOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DataPolicyOperations.Item.DataPolicyOperationItemRequestBuilder(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.DataPolicyOperations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DataPolicyOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DataPolicyOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 DataPolicyOperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/dataPolicyOperations{?%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 DataPolicyOperationsRequestBuilder(string rawUrl) : base("{+baseurl}/dataPolicyOperations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public DataPolicyOperationsRequestBuilder(string rawUrl) : base("{+baseurl}/data /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(DataPolicyOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DataPolicyOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DataPolicyOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DataPolicyOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(DataPolicyOperation body, Act /// /// Retrieve the properties of a dataPolicyOperation object. /// - public class DataPolicyOperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataPolicyOperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class DataPolicyOperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.cs b/src/generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.cs index de28f75079..b2a5c1f63f 100644 --- a/src/generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.cs +++ b/src/generated/DataPolicyOperations/Item/DataPolicyOperationItemRequestBuilder.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.DataPolicyOperations.Item /// /// Provides operations to manage the collection of dataPolicyOperation entities. /// - public class DataPolicyOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataPolicyOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete entity from dataPolicyOperations @@ -139,8 +142,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(DataPolicyOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DataPolicyOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 DataPolicyOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/dataPolicyOperations/{dataPolicyOperation%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 DataPolicyOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/dataPolicyOperations/{dataPolicyOperation%2Did}{?%24expand,%24select}", rawUrl) @@ -200,11 +203,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); @@ -220,11 +223,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(DataPolicyOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DataPolicyOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DataPolicyOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DataPolicyOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -236,7 +239,8 @@ public RequestInformation ToPatchRequestInformation(DataPolicyOperation body, Ac /// /// Retrieve the properties of a dataPolicyOperation object. /// - public class DataPolicyOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataPolicyOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -261,3 +265,4 @@ public class DataPolicyOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.cs b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.cs index 50ee33bc21..5780bc5dd8 100644 --- a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Count; using ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.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.DeviceAppManagement.AndroidManagedAppProtections /// /// Provides operations to manage the androidManagedAppProtections property of the microsoft.graph.deviceAppManagement entity. /// - public class AndroidManagedAppProtectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AndroidManagedAppProtectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the androidManagedAppProtections property of the microsoft.graph.deviceAppManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new AndroidManagedAppProtectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.AndroidManagedAppProtectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildAppsNavCommand()); commands.Add(builder.BuildAssignmentsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -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.DeviceAppManagement.AndroidManagedAppProtections.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(AndroidManagedAppProtection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AndroidManagedAppProtection.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 AndroidManagedAppProtectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections{?%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 AndroidManagedAppProtectionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -221,11 +224,11 @@ public AndroidManagedAppProtectionsRequestBuilder(string rawUrl) : base("{+baseu /// 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(AndroidManagedAppProtection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AndroidManagedAppProtection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AndroidManagedAppProtection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AndroidManagedAppProtection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -257,7 +260,8 @@ public RequestInformation ToPostRequestInformation(AndroidManagedAppProtection b /// /// List properties and relationships of the androidManagedAppProtection objects. /// - public class AndroidManagedAppProtectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AndroidManagedAppProtectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -321,3 +325,4 @@ public class AndroidManagedAppProtectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Count/CountRequestBuilder.cs index fb4af792d0..75cd08dcbc 100644 --- a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/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.DeviceAppManagement.AndroidManagedAppProtections.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}/deviceAppManagement/androidManagedAppProtections/$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}/deviceAppManagement/androidManagedAppProtections/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.cs b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.cs index 14476ea86a..dc225b086c 100644 --- a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/AndroidManagedAppProtectionItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.Apps; using ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.Assignments; using ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.DeploymentSummary; 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.DeviceAppManagement.AndroidManagedAppProtections.Item /// /// Provides operations to manage the androidManagedAppProtections property of the microsoft.graph.deviceAppManagement entity. /// - public class AndroidManagedAppProtectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AndroidManagedAppProtectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the apps property of the microsoft.graph.androidManagedAppProtection entity. @@ -32,7 +35,7 @@ public Command BuildAppsNavCommand() { var command = new Command("apps"); command.Description = "Provides operations to manage the apps property of the microsoft.graph.androidManagedAppProtection entity."; - var builder = new AppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.Apps.AppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppProtection entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -122,7 +125,7 @@ public Command BuildDeploymentSummaryNavCommand() { var command = new Command("deployment-summary"); command.Description = "Provides operations to manage the deploymentSummary property of the microsoft.graph.androidManagedAppProtection entity."; - var builder = new DeploymentSummaryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.DeploymentSummary.DeploymentSummaryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -217,8 +220,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(AndroidManagedAppProtection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AndroidManagedAppProtection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -239,14 +242,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 AndroidManagedAppProtectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%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 AndroidManagedAppProtectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}{?%24expand,%24select}", rawUrl) @@ -278,11 +281,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); @@ -298,11 +301,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(AndroidManagedAppProtection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AndroidManagedAppProtection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AndroidManagedAppProtection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AndroidManagedAppProtection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -314,7 +317,8 @@ public RequestInformation ToPatchRequestInformation(AndroidManagedAppProtection /// /// Read properties and relationships of the androidManagedAppProtection object. /// - public class AndroidManagedAppProtectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AndroidManagedAppProtectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -339,3 +343,4 @@ public class AndroidManagedAppProtectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.cs b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.cs index fbea2ae68c..217681ee7b 100644 --- a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/AppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.Apps.Count; using ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.Apps.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.DeviceAppManagement.AndroidManagedAppProtections.Item.Apps /// /// Provides operations to manage the apps property of the microsoft.graph.androidManagedAppProtection entity. /// - public class AppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the apps property of the microsoft.graph.androidManagedAppProtection entity. @@ -30,7 +33,7 @@ public class AppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ManagedMobileAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.Apps.Item.ManagedMobileAppItemRequestBuilder(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.DeviceAppManagement.AndroidManagedAppProtections.Item.Apps.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(ManagedMobileApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedMobileApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps{?%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 AppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/ /// 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); @@ -247,11 +250,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(ManagedMobileApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action /// /// List of apps to which the policy is deployed. /// - public class AppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs index b5f2b4e414..cc728fc7bf 100644 --- a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/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.DeviceAppManagement.AndroidManagedAppProtections.Item.Apps.Coun /// /// 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}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps/$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}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs index 0ffd8f75ca..61ca8e2e3f 100644 --- a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.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.DeviceAppManagement.AndroidManagedAppProtections.Item.Apps.Item /// /// Provides operations to manage the apps property of the microsoft.graph.androidManagedAppProtection entity. /// - public class ManagedMobileAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedMobileAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property apps for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ManagedMobileApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedMobileApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedMobileAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps/{managedMobileApp%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 ManagedMobileAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/apps/{managedMobileApp%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Actio /// /// List of apps to which the policy is deployed. /// - public class ManagedMobileAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedMobileAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ManagedMobileAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs index e412e0e8fa..47cf2ec7da 100644 --- a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.Assignments.Count; using ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.Assignments.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.DeviceAppManagement.AndroidManagedAppProtections.Item.Assignmen /// /// Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppProtection entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppProtection entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TargetedManagedAppPolicyAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.Item.Assignments.Item.TargetedManagedAppPolicyAssignmentItemRequestBuilder(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.DeviceAppManagement.AndroidManagedAppProtections.Item.Assignments.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(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssig /// /// Navigation property to list of inclusion and exclusion groups to which the policy is deployed. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs index 8c136ab830..a778c94a7f 100644 --- a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/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.DeviceAppManagement.AndroidManagedAppProtections.Item.Assignmen /// /// 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}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments/$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}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs index 65d604e533..1a16e9bb00 100644 --- a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.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.DeviceAppManagement.AndroidManagedAppProtections.Item.Assignmen /// /// Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppProtection entity. /// - public class TargetedManagedAppPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TargetedManagedAppPolicyAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments/{targetedManagedAppPolicyAssignment%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 TargetedManagedAppPolicyAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssi /// /// Navigation property to list of inclusion and exclusion groups to which the policy is deployed. /// - public class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParamet } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs index 1d69506063..21efb56994 100644 --- a/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/AndroidManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.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.DeviceAppManagement.AndroidManagedAppProtections.Item.Deploymen /// /// Provides operations to manage the deploymentSummary property of the microsoft.graph.androidManagedAppProtection entity. /// - public class DeploymentSummaryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeploymentSummaryRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deploymentSummary for deviceAppManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ManagedAppPolicyDeploymentSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeploymentSummaryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/deploymentSummary{?%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 DeploymentSummaryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections/{androidManagedAppProtection%2Did}/deploymentSummary{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSu /// /// Navigation property to deployment summary of the configuration. /// - public class DeploymentSummaryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeploymentSummaryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class DeploymentSummaryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Count/CountRequestBuilder.cs index 241d9206ed..7462081eb8 100644 --- a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/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.DeviceAppManagement.DefaultManagedAppProtections.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}/deviceAppManagement/defaultManagedAppProtections/$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}/deviceAppManagement/defaultManagedAppProtections/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.cs b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.cs index 6b3fb3c875..8fdba01832 100644 --- a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/DefaultManagedAppProtectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.DefaultManagedAppProtections.Count; using ApiSdk.DeviceAppManagement.DefaultManagedAppProtections.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.DeviceAppManagement.DefaultManagedAppProtections /// /// Provides operations to manage the defaultManagedAppProtections property of the microsoft.graph.deviceAppManagement entity. /// - public class DefaultManagedAppProtectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DefaultManagedAppProtectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the defaultManagedAppProtections property of the microsoft.graph.deviceAppManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DefaultManagedAppProtectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.DefaultManagedAppProtections.Item.DefaultManagedAppProtectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDeploymentSummaryNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.DefaultManagedAppProtections.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -82,8 +85,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(DefaultManagedAppProtection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DefaultManagedAppProtection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -200,14 +203,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 DefaultManagedAppProtectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/defaultManagedAppProtections{?%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 DefaultManagedAppProtectionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/defaultManagedAppProtections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -220,11 +223,11 @@ public DefaultManagedAppProtectionsRequestBuilder(string rawUrl) : base("{+baseu /// 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); @@ -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 ToPostRequestInformation(DefaultManagedAppProtection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DefaultManagedAppProtection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DefaultManagedAppProtection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DefaultManagedAppProtection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPostRequestInformation(DefaultManagedAppProtection b /// /// List properties and relationships of the defaultManagedAppProtection objects. /// - public class DefaultManagedAppProtectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DefaultManagedAppProtectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -320,3 +324,4 @@ public class DefaultManagedAppProtectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.cs b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.cs index ca51ca3ca8..73f050b854 100644 --- a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/AppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.DefaultManagedAppProtections.Item.Apps.Count; using ApiSdk.DeviceAppManagement.DefaultManagedAppProtections.Item.Apps.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.DeviceAppManagement.DefaultManagedAppProtections.Item.Apps /// /// Provides operations to manage the apps property of the microsoft.graph.defaultManagedAppProtection entity. /// - public class AppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the apps property of the microsoft.graph.defaultManagedAppProtection entity. @@ -30,7 +33,7 @@ public class AppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ManagedMobileAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.DefaultManagedAppProtections.Item.Apps.Item.ManagedMobileAppItemRequestBuilder(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.DeviceAppManagement.DefaultManagedAppProtections.Item.Apps.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(ManagedMobileApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedMobileApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps{?%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 AppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/ /// 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); @@ -247,11 +250,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(ManagedMobileApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action /// /// List of apps to which the policy is deployed. /// - public class AppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs index b8a1ec9cee..2ff3e476ba 100644 --- a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/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.DeviceAppManagement.DefaultManagedAppProtections.Item.Apps.Coun /// /// 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}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps/$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}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs index 434f136d36..2a889866c1 100644 --- a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.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.DeviceAppManagement.DefaultManagedAppProtections.Item.Apps.Item /// /// Provides operations to manage the apps property of the microsoft.graph.defaultManagedAppProtection entity. /// - public class ManagedMobileAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedMobileAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property apps for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ManagedMobileApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedMobileApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedMobileAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps/{managedMobileApp%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 ManagedMobileAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/apps/{managedMobileApp%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Actio /// /// List of apps to which the policy is deployed. /// - public class ManagedMobileAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedMobileAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ManagedMobileAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.cs b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.cs index 6bcb88b1dc..a5a880044d 100644 --- a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DefaultManagedAppProtectionItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.DefaultManagedAppProtections.Item.Apps; using ApiSdk.DeviceAppManagement.DefaultManagedAppProtections.Item.DeploymentSummary; 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.DeviceAppManagement.DefaultManagedAppProtections.Item /// /// Provides operations to manage the defaultManagedAppProtections property of the microsoft.graph.deviceAppManagement entity. /// - public class DefaultManagedAppProtectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DefaultManagedAppProtectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the apps property of the microsoft.graph.defaultManagedAppProtection entity. @@ -31,7 +34,7 @@ public Command BuildAppsNavCommand() { var command = new Command("apps"); command.Description = "Provides operations to manage the apps property of the microsoft.graph.defaultManagedAppProtection entity."; - var builder = new AppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.DefaultManagedAppProtections.Item.Apps.AppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -94,7 +97,7 @@ public Command BuildDeploymentSummaryNavCommand() { var command = new Command("deployment-summary"); command.Description = "Provides operations to manage the deploymentSummary property of the microsoft.graph.defaultManagedAppProtection entity."; - var builder = new DeploymentSummaryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.DefaultManagedAppProtections.Item.DeploymentSummary.DeploymentSummaryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -189,8 +192,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(DefaultManagedAppProtection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DefaultManagedAppProtection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 DefaultManagedAppProtectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%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 DefaultManagedAppProtectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}{?%24expand,%24select}", rawUrl) @@ -250,11 +253,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); @@ -270,11 +273,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(DefaultManagedAppProtection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DefaultManagedAppProtection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DefaultManagedAppProtection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DefaultManagedAppProtection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -286,7 +289,8 @@ public RequestInformation ToPatchRequestInformation(DefaultManagedAppProtection /// /// Read properties and relationships of the defaultManagedAppProtection object. /// - public class DefaultManagedAppProtectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DefaultManagedAppProtectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -311,3 +315,4 @@ public class DefaultManagedAppProtectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs index 3459ccb22a..2feabd34cd 100644 --- a/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/DefaultManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.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.DeviceAppManagement.DefaultManagedAppProtections.Item.Deploymen /// /// Provides operations to manage the deploymentSummary property of the microsoft.graph.defaultManagedAppProtection entity. /// - public class DeploymentSummaryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeploymentSummaryRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deploymentSummary for deviceAppManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ManagedAppPolicyDeploymentSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeploymentSummaryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/deploymentSummary{?%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 DeploymentSummaryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/defaultManagedAppProtections/{defaultManagedAppProtection%2Did}/deploymentSummary{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSu /// /// Navigation property to deployment summary of the configuration. /// - public class DeploymentSummaryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeploymentSummaryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class DeploymentSummaryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs b/src/generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs index f023bc15f4..47294ef3d9 100644 --- a/src/generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.AndroidManagedAppProtections; using ApiSdk.DeviceAppManagement.DefaultManagedAppProtections; using ApiSdk.DeviceAppManagement.IosManagedAppProtections; @@ -16,6 +17,7 @@ using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies; 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; @@ -34,7 +36,8 @@ namespace ApiSdk.DeviceAppManagement /// /// Provides operations to manage the deviceAppManagement singleton. /// - public class DeviceAppManagementRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceAppManagementRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the androidManagedAppProtections property of the microsoft.graph.deviceAppManagement entity. @@ -44,7 +47,7 @@ public Command BuildAndroidManagedAppProtectionsNavCommand() { var command = new Command("android-managed-app-protections"); command.Description = "Provides operations to manage the androidManagedAppProtections property of the microsoft.graph.deviceAppManagement entity."; - var builder = new AndroidManagedAppProtectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.AndroidManagedAppProtections.AndroidManagedAppProtectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -71,7 +74,7 @@ public Command BuildDefaultManagedAppProtectionsNavCommand() { var command = new Command("default-managed-app-protections"); command.Description = "Provides operations to manage the defaultManagedAppProtections property of the microsoft.graph.deviceAppManagement entity."; - var builder = new DefaultManagedAppProtectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.DefaultManagedAppProtections.DefaultManagedAppProtectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -92,13 +95,13 @@ public Command BuildDefaultManagedAppProtectionsNavCommand() } /// /// Read properties and relationships of the deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the deviceAppManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the deviceAppManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-get?view=graph-rest-1.0"; var selectOption = new Option("--select", description: "Select properties to be returned") { Arity = ArgumentArity.ZeroOrMore }; @@ -145,7 +148,7 @@ public Command BuildIosManagedAppProtectionsNavCommand() { var command = new Command("ios-managed-app-protections"); command.Description = "Provides operations to manage the iosManagedAppProtections property of the microsoft.graph.deviceAppManagement entity."; - var builder = new IosManagedAppProtectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.IosManagedAppProtections.IosManagedAppProtectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -172,7 +175,7 @@ public Command BuildManagedAppPoliciesNavCommand() { var command = new Command("managed-app-policies"); command.Description = "Provides operations to manage the managedAppPolicies property of the microsoft.graph.deviceAppManagement entity."; - var builder = new ManagedAppPoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppPolicies.ManagedAppPoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -199,7 +202,7 @@ public Command BuildManagedAppRegistrationsNavCommand() { var command = new Command("managed-app-registrations"); command.Description = "Provides operations to manage the managedAppRegistrations property of the microsoft.graph.deviceAppManagement entity."; - var builder = new ManagedAppRegistrationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.ManagedAppRegistrationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -227,7 +230,7 @@ public Command BuildManagedAppStatusesNavCommand() { var command = new Command("managed-app-statuses"); command.Description = "Provides operations to manage the managedAppStatuses property of the microsoft.graph.deviceAppManagement entity."; - var builder = new ManagedAppStatusesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppStatuses.ManagedAppStatusesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -254,7 +257,7 @@ public Command BuildManagedEBooksNavCommand() { var command = new Command("managed-e-books"); command.Description = "Provides operations to manage the managedEBooks property of the microsoft.graph.deviceAppManagement entity."; - var builder = new ManagedEBooksRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.ManagedEBooksRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -281,7 +284,7 @@ public Command BuildMdmWindowsInformationProtectionPoliciesNavCommand() { var command = new Command("mdm-windows-information-protection-policies"); command.Description = "Provides operations to manage the mdmWindowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity."; - var builder = new MdmWindowsInformationProtectionPoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.MdmWindowsInformationProtectionPoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -308,7 +311,7 @@ public Command BuildMobileAppCategoriesNavCommand() { var command = new Command("mobile-app-categories"); command.Description = "Provides operations to manage the mobileAppCategories property of the microsoft.graph.deviceAppManagement entity."; - var builder = new MobileAppCategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppCategories.MobileAppCategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -335,7 +338,7 @@ public Command BuildMobileAppConfigurationsNavCommand() { var command = new Command("mobile-app-configurations"); command.Description = "Provides operations to manage the mobileAppConfigurations property of the microsoft.graph.deviceAppManagement entity."; - var builder = new MobileAppConfigurationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.MobileAppConfigurationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -362,7 +365,7 @@ public Command BuildMobileAppsNavCommand() { var command = new Command("mobile-apps"); command.Description = "Provides operations to manage the mobileApps property of the microsoft.graph.deviceAppManagement entity."; - var builder = new MobileAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.MobileAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -399,13 +402,13 @@ public Command BuildMobileAppsNavCommand() } /// /// Update the properties of a deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a deviceAppManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a deviceAppManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-update?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -423,8 +426,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.DeviceAppManagement.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceAppManagement.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -451,7 +454,7 @@ public Command BuildSyncMicrosoftStoreForBusinessAppsNavCommand() { var command = new Command("sync-microsoft-store-for-business-apps"); command.Description = "Provides operations to call the syncMicrosoftStoreForBusinessApps method."; - var builder = new SyncMicrosoftStoreForBusinessAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.SyncMicrosoftStoreForBusinessApps.SyncMicrosoftStoreForBusinessAppsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -468,7 +471,7 @@ public Command BuildTargetedManagedAppConfigurationsNavCommand() { var command = new Command("targeted-managed-app-configurations"); command.Description = "Provides operations to manage the targetedManagedAppConfigurations property of the microsoft.graph.deviceAppManagement entity."; - var builder = new TargetedManagedAppConfigurationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.TargetedManagedAppConfigurationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -495,7 +498,7 @@ public Command BuildVppTokensNavCommand() { var command = new Command("vpp-tokens"); command.Description = "Provides operations to manage the vppTokens property of the microsoft.graph.deviceAppManagement entity."; - var builder = new VppTokensRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.VppTokens.VppTokensRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -522,7 +525,7 @@ public Command BuildWindowsInformationProtectionPoliciesNavCommand() { var command = new Command("windows-information-protection-policies"); command.Description = "Provides operations to manage the windowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity."; - var builder = new WindowsInformationProtectionPoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.WindowsInformationProtectionPoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -542,14 +545,14 @@ public Command BuildWindowsInformationProtectionPoliciesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceAppManagementRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement{?%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 DeviceAppManagementRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement{?%24expand,%24select}", rawUrl) @@ -562,11 +565,11 @@ public DeviceAppManagementRequestBuilder(string rawUrl) : base("{+baseurl}/devic /// 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); @@ -582,11 +585,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.DeviceAppManagement body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceAppManagement body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DeviceAppManagement body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceAppManagement body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -598,7 +601,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DeviceAppManag /// /// Read properties and relationships of the deviceAppManagement object. /// - public class DeviceAppManagementRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceAppManagementRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -623,3 +627,4 @@ public class DeviceAppManagementRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/IosManagedAppProtections/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/IosManagedAppProtections/Count/CountRequestBuilder.cs index 61167b0b66..36cf37039f 100644 --- a/src/generated/DeviceAppManagement/IosManagedAppProtections/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/IosManagedAppProtections/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.DeviceAppManagement.IosManagedAppProtections.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}/deviceAppManagement/iosManagedAppProtections/$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}/deviceAppManagement/iosManagedAppProtections/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.cs b/src/generated/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.cs index a92cd192a8..cddf46c541 100644 --- a/src/generated/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/IosManagedAppProtections/IosManagedAppProtectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.IosManagedAppProtections.Count; using ApiSdk.DeviceAppManagement.IosManagedAppProtections.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.DeviceAppManagement.IosManagedAppProtections /// /// Provides operations to manage the iosManagedAppProtections property of the microsoft.graph.deviceAppManagement entity. /// - public class IosManagedAppProtectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IosManagedAppProtectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the iosManagedAppProtections property of the microsoft.graph.deviceAppManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new IosManagedAppProtectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.IosManagedAppProtectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildAppsNavCommand()); commands.Add(builder.BuildAssignmentsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -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.DeviceAppManagement.IosManagedAppProtections.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(IosManagedAppProtection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.IosManagedAppProtection.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 IosManagedAppProtectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections{?%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 IosManagedAppProtectionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -221,11 +224,11 @@ public IosManagedAppProtectionsRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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(IosManagedAppProtection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.IosManagedAppProtection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IosManagedAppProtection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.IosManagedAppProtection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -257,7 +260,8 @@ public RequestInformation ToPostRequestInformation(IosManagedAppProtection body, /// /// List properties and relationships of the iosManagedAppProtection objects. /// - public class IosManagedAppProtectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IosManagedAppProtectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -321,3 +325,4 @@ public class IosManagedAppProtectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.cs b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.cs index b7a70f9ebd..f4f8a37fab 100644 --- a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/AppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.Apps.Count; using ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.Apps.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.DeviceAppManagement.IosManagedAppProtections.Item.Apps /// /// Provides operations to manage the apps property of the microsoft.graph.iosManagedAppProtection entity. /// - public class AppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the apps property of the microsoft.graph.iosManagedAppProtection entity. @@ -30,7 +33,7 @@ public class AppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ManagedMobileAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.Apps.Item.ManagedMobileAppItemRequestBuilder(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.DeviceAppManagement.IosManagedAppProtections.Item.Apps.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(ManagedMobileApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedMobileApp.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 AppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps{?%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 AppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/ /// 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(ManagedMobileApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action /// /// List properties and relationships of the managedMobileApp objects. /// - public class AppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs index 6e2ea9514d..574089d8b7 100644 --- a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/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.DeviceAppManagement.IosManagedAppProtections.Item.Apps.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}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps/$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}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs index 6e301e7b93..f93e5d69e8 100644 --- a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.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.DeviceAppManagement.IosManagedAppProtections.Item.Apps.Item /// /// Provides operations to manage the apps property of the microsoft.graph.iosManagedAppProtection entity. /// - public class ManagedMobileAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedMobileAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a managedMobileApp. @@ -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(ManagedMobileApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedMobileApp.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 ManagedMobileAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps/{managedMobileApp%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 ManagedMobileAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/apps/{managedMobileApp%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(ManagedMobileApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Actio /// /// Read properties and relationships of the managedMobileApp object. /// - public class ManagedMobileAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedMobileAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class ManagedMobileAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs index 59b8525581..31c19c58fa 100644 --- a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.Assignments.Count; using ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.Assignments.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.DeviceAppManagement.IosManagedAppProtections.Item.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppProtection entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppProtection entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TargetedManagedAppPolicyAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.Assignments.Item.TargetedManagedAppPolicyAssignmentItemRequestBuilder(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.DeviceAppManagement.IosManagedAppProtections.Item.Assignments.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(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -208,14 +211,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -228,11 +231,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssig /// /// List properties and relationships of the targetedManagedAppPolicyAssignment objects. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -328,3 +332,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs index b459f12918..21774aa40a 100644 --- a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/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.DeviceAppManagement.IosManagedAppProtections.Item.Assignments.C /// /// 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}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments/$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}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs index 7f018cdcf6..30ad6369e3 100644 --- a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.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.DeviceAppManagement.IosManagedAppProtections.Item.Assignments.I /// /// Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppProtection entity. /// - public class TargetedManagedAppPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a targetedManagedAppPolicyAssignment. @@ -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(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment.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 TargetedManagedAppPolicyAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments/{targetedManagedAppPolicyAssignment%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 TargetedManagedAppPolicyAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/assignments/{targetedManagedAppPolicyAssignment%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(TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssi /// /// Read properties and relationships of the targetedManagedAppPolicyAssignment object. /// - public class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParamet } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs index c01f5fb1e0..226d7765ff 100644 --- a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.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.DeviceAppManagement.IosManagedAppProtections.Item.DeploymentSum /// /// Provides operations to manage the deploymentSummary property of the microsoft.graph.iosManagedAppProtection entity. /// - public class DeploymentSummaryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeploymentSummaryRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deploymentSummary for deviceAppManagement @@ -140,8 +143,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(ManagedAppPolicyDeploymentSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary.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 DeploymentSummaryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/deploymentSummary{?%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 DeploymentSummaryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}/deploymentSummary{?%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(ManagedAppPolicyDeploymentSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSu /// /// Read properties and relationships of the managedAppPolicyDeploymentSummary object. /// - public class DeploymentSummaryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeploymentSummaryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class DeploymentSummaryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.cs b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.cs index aba0ffdb99..fb8590ea82 100644 --- a/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/IosManagedAppProtections/Item/IosManagedAppProtectionItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.Apps; using ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.Assignments; using ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.DeploymentSummary; 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.DeviceAppManagement.IosManagedAppProtections.Item /// /// Provides operations to manage the iosManagedAppProtections property of the microsoft.graph.deviceAppManagement entity. /// - public class IosManagedAppProtectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IosManagedAppProtectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the apps property of the microsoft.graph.iosManagedAppProtection entity. @@ -32,7 +35,7 @@ public Command BuildAppsNavCommand() { var command = new Command("apps"); command.Description = "Provides operations to manage the apps property of the microsoft.graph.iosManagedAppProtection entity."; - var builder = new AppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.Apps.AppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppProtection entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -122,7 +125,7 @@ public Command BuildDeploymentSummaryNavCommand() { var command = new Command("deployment-summary"); command.Description = "Provides operations to manage the deploymentSummary property of the microsoft.graph.iosManagedAppProtection entity."; - var builder = new DeploymentSummaryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.IosManagedAppProtections.Item.DeploymentSummary.DeploymentSummaryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -217,8 +220,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(IosManagedAppProtection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.IosManagedAppProtection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -239,14 +242,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 IosManagedAppProtectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%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 IosManagedAppProtectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/iosManagedAppProtections/{iosManagedAppProtection%2Did}{?%24expand,%24select}", rawUrl) @@ -278,11 +281,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); @@ -298,11 +301,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(IosManagedAppProtection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.IosManagedAppProtection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(IosManagedAppProtection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.IosManagedAppProtection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -314,7 +317,8 @@ public RequestInformation ToPatchRequestInformation(IosManagedAppProtection body /// /// Read properties and relationships of the iosManagedAppProtection object. /// - public class IosManagedAppProtectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IosManagedAppProtectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -339,3 +343,4 @@ public class IosManagedAppProtectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppPolicies/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppPolicies/Count/CountRequestBuilder.cs index e90f200cfe..60a41b573a 100644 --- a/src/generated/DeviceAppManagement/ManagedAppPolicies/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppPolicies/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.DeviceAppManagement.ManagedAppPolicies.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}/deviceAppManagement/managedAppPolicies/$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}/deviceAppManagement/managedAppPolicies/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index 57f213ff8c..ac521fa1dc 100644 --- a/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedAppPolicies.Item.TargetApps; 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.DeviceAppManagement.ManagedAppPolicies.Item /// /// Provides operations to manage the managedAppPolicies property of the microsoft.graph.deviceAppManagement entity. /// - public class ManagedAppPolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppPolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property managedAppPolicies for deviceAppManagement @@ -58,14 +61,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Read properties and relationships of the managedAppConfiguration object. - /// Find more info here + /// Read properties and relationships of the targetedManagedAppProtection object. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the managedAppConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the targetedManagedAppProtection object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-get?view=graph-rest-1.0"; var managedAppPolicyIdOption = new Option("--managed-app-policy-id", description: "The unique identifier of managedAppPolicy") { }; managedAppPolicyIdOption.IsRequired = true; @@ -140,8 +143,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(ManagedAppPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppPolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -169,7 +172,7 @@ public Command BuildTargetAppsNavCommand() { var command = new Command("target-apps"); command.Description = "Provides operations to call the targetApps method."; - var builder = new TargetAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppPolicies.Item.TargetApps.TargetAppsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -179,14 +182,14 @@ public Command BuildTargetAppsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedAppPolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppPolicies/{managedAppPolicy%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 ManagedAppPolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppPolicies/{managedAppPolicy%2Did}{?%24expand,%24select}", rawUrl) @@ -212,17 +215,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedAppConfiguration object. + /// Read properties and relationships of the targetedManagedAppProtection object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -238,11 +241,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -252,9 +255,10 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Actio return requestInfo; } /// - /// Read properties and relationships of the managedAppConfiguration object. + /// Read properties and relationships of the targetedManagedAppProtection object. /// - public class ManagedAppPolicyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -279,3 +283,4 @@ public class ManagedAppPolicyItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs b/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs index 209d0747c2..e64b7d40f1 100644 --- a/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsPostRequestBody.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.DeviceAppManagement.ManagedAppPolicies.Item.TargetApps { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TargetAppsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TargetAppsPostRequestBody : 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. @@ -16,13 +18,13 @@ public class TargetAppsPostRequestBody : IAdditionalDataHolder, IParsable /// The apps property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Apps { get; set; } + public List? Apps { get; set; } #nullable restore #else - public List Apps { get; set; } + public List Apps { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TargetAppsPostRequestBody() { @@ -31,12 +33,12 @@ public TargetAppsPostRequestBody() /// /// 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 TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.ManagedAppPolicies.Item.TargetApps.TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TargetAppsPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.ManagedAppPolicies.Item.TargetApps.TargetAppsPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ManagedMobileApp.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("apps", Apps); + writer.WriteCollectionOfObjectValues("apps", Apps); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index d830cf7122..0da2340488 100644 --- a/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DeviceAppManagement.ManagedAppPolicies.Item.TargetApps /// /// Provides operations to call the targetApps method. /// - public class TargetAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetAppsRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Not yet documented\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0"; + command.Description = "Not yet documented\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0"; var managedAppPolicyIdOption = new Option("--managed-app-policy-id", description: "The unique identifier of managedAppPolicy") { }; managedAppPolicyIdOption.IsRequired = true; @@ -43,8 +46,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(TargetAppsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.ManagedAppPolicies.Item.TargetApps.TargetAppsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 TargetAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppPolicies/{managedAppPolicy%2Did}/targetApps", 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 TargetAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppPolicies/{managedAppPolicy%2Did}/targetApps", rawUrl) @@ -84,11 +87,11 @@ public TargetAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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(TargetAppsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.ManagedAppPolicies.Item.TargetApps.TargetAppsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.ManagedAppPolicies.Item.TargetApps.TargetAppsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs index cd6ae34d26..7ac9f7a5ab 100644 --- a/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedAppPolicies.Count; using ApiSdk.DeviceAppManagement.ManagedAppPolicies.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.DeviceAppManagement.ManagedAppPolicies /// /// Provides operations to manage the managedAppPolicies property of the microsoft.graph.deviceAppManagement entity. /// - public class ManagedAppPoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppPoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the managedAppPolicies property of the microsoft.graph.deviceAppManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ManagedAppPolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppPolicies.Item.ManagedAppPolicyItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceAppManagement.ManagedAppPolicies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -80,8 +83,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(ManagedAppPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppPolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -101,14 +104,14 @@ public Command BuildCreateCommand() return command; } /// - /// List properties and relationships of the managedAppPolicy objects. - /// Find more info here + /// List properties and relationships of the managedAppProtection objects. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the managedAppPolicy objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the managedAppProtection objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -198,31 +201,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedAppPoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppPolicies{?%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 ManagedAppPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List properties and relationships of the managedAppPolicy objects. + /// List properties and relationships of the managedAppProtection objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -238,11 +241,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -252,9 +255,10 @@ public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action return requestInfo; } /// - /// List properties and relationships of the managedAppPolicy objects. + /// List properties and relationships of the managedAppProtection objects. /// - public class ManagedAppPoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppPoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -318,3 +322,4 @@ public class ManagedAppPoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Count/CountRequestBuilder.cs index b75e18394d..6c1885334d 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/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.DeviceAppManagement.ManagedAppRegistrations.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}/deviceAppManagement/managedAppRegistrations/$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}/deviceAppManagement/managedAppRegistrations/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.cs index 30c8a8961e..782444cd47 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationGetResponse.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.DeviceAppManagement.ManagedAppRegistrations.GetUserIdsWithFlaggedAppRegistration { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetUserIdsWithFlaggedAppRegistrationGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetUserIdsWithFlaggedAppRegistrationGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetUserIdsWithFlaggedAppRegistrationGetResponse : BaseCollectionPag /// /// 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 new GetUserIdsWithFlaggedAppRegistrationGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.GetUserIdsWithFlaggedAppRegistration.GetUserIdsWithFlaggedAppRegistrationGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetUserIdsWithFlaggedAppRegistrationGetResponse(); + return new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.GetUserIdsWithFlaggedAppRegistration.GetUserIdsWithFlaggedAppRegistrationGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.cs index 484941d90e..d201524c60 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/GetUserIdsWithFlaggedAppRegistration/GetUserIdsWithFlaggedAppRegistrationRequestBuilder.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.DeviceAppManagement.ManagedAppRegistrations.GetUserIdsWithFlagg /// /// Provides operations to call the getUserIdsWithFlaggedAppRegistration method. /// - public class GetUserIdsWithFlaggedAppRegistrationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetUserIdsWithFlaggedAppRegistrationRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -97,14 +100,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 GetUserIdsWithFlaggedAppRegistrationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration(){?%24count,%24filter,%24search,%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 GetUserIdsWithFlaggedAppRegistrationRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) @@ -117,11 +120,11 @@ public GetUserIdsWithFlaggedAppRegistrationRequestBuilder(string rawUrl) : base( /// 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); @@ -132,7 +135,8 @@ public RequestInformation ToGetRequestInformation(Action /// Not yet documented /// - public class GetUserIdsWithFlaggedAppRegistrationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetUserIdsWithFlaggedAppRegistrationRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -166,3 +170,4 @@ public class GetUserIdsWithFlaggedAppRegistrationRequestBuilderGetQueryParameter } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.cs index 8bce6fdac1..36bd4ebf57 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/AppliedPoliciesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.Count; using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.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.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicie /// /// Provides operations to manage the appliedPolicies property of the microsoft.graph.managedAppRegistration entity. /// - public class AppliedPoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppliedPoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the appliedPolicies property of the microsoft.graph.managedAppRegistration entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ManagedAppPolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.Item.ManagedAppPolicyItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(ManagedAppPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppPolicy.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 AppliedPoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies{?%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 AppliedPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AppliedPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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(ManagedAppPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action /// /// Zero or more policys already applied on the registered app when it last synchronized with managment service. /// - public class AppliedPoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppliedPoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AppliedPoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Count/CountRequestBuilder.cs index 4dd0a5892b..6940da0f89 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/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.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicie /// /// 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}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies/$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}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index bd4769edff..9118a013ce 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.Item.TargetApps; 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.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicie /// /// Provides operations to manage the appliedPolicies property of the microsoft.graph.managedAppRegistration entity. /// - public class ManagedAppPolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppPolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property appliedPolicies for deviceAppManagement @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ManagedAppPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppPolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -186,7 +189,7 @@ public Command BuildTargetAppsNavCommand() { var command = new Command("target-apps"); command.Description = "Provides operations to call the targetApps method."; - var builder = new TargetAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.Item.TargetApps.TargetAppsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -196,14 +199,14 @@ public Command BuildTargetAppsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedAppPolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies/{managedAppPolicy%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 ManagedAppPolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies/{managedAppPolicy%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Actio /// /// Zero or more policys already applied on the registered app when it last synchronized with managment service. /// - public class ManagedAppPolicyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ManagedAppPolicyItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs index 725e82f456..12ef07ebdd 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsPostRequestBody.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.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.Item.TargetApps { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TargetAppsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TargetAppsPostRequestBody : 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. @@ -16,13 +18,13 @@ public class TargetAppsPostRequestBody : IAdditionalDataHolder, IParsable /// The apps property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Apps { get; set; } + public List? Apps { get; set; } #nullable restore #else - public List Apps { get; set; } + public List Apps { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TargetAppsPostRequestBody() { @@ -31,12 +33,12 @@ public TargetAppsPostRequestBody() /// /// 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 TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.Item.TargetApps.TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TargetAppsPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.Item.TargetApps.TargetAppsPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ManagedMobileApp.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("apps", Apps); + writer.WriteCollectionOfObjectValues("apps", Apps); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 992b9130b4..5fb340bbff 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicie /// /// Provides operations to call the targetApps method. /// - public class TargetAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetAppsRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Not yet documented\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0"; + command.Description = "Not yet documented\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0"; var managedAppRegistrationIdOption = new Option("--managed-app-registration-id", description: "The unique identifier of managedAppRegistration") { }; managedAppRegistrationIdOption.IsRequired = true; @@ -48,8 +51,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(TargetAppsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.Item.TargetApps.TargetAppsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 TargetAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies/{managedAppPolicy%2Did}/targetApps", 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 TargetAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/appliedPolicies/{managedAppPolicy%2Did}/targetApps", rawUrl) @@ -90,11 +93,11 @@ public TargetAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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(TargetAppsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.Item.TargetApps.TargetAppsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.Item.TargetApps.TargetAppsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Count/CountRequestBuilder.cs index 2fcf7cce21..f751186347 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/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.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolici /// /// 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}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies/$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}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.cs index 1ce98419bb..51e9cd456a 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/IntendedPoliciesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.Count; using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.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.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolici /// /// Provides operations to manage the intendedPolicies property of the microsoft.graph.managedAppRegistration entity. /// - public class IntendedPoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntendedPoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the intendedPolicies property of the microsoft.graph.managedAppRegistration entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ManagedAppPolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.Item.ManagedAppPolicyItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(ManagedAppPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppPolicy.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 IntendedPoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies{?%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 IntendedPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public IntendedPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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(ManagedAppPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action /// /// Zero or more policies admin intended for the app as of now. /// - public class IntendedPoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntendedPoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class IntendedPoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index bccd7309a7..cff31984b1 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.Item.TargetApps; 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.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolici /// /// Provides operations to manage the intendedPolicies property of the microsoft.graph.managedAppRegistration entity. /// - public class ManagedAppPolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppPolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property intendedPolicies for deviceAppManagement @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ManagedAppPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppPolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -186,7 +189,7 @@ public Command BuildTargetAppsNavCommand() { var command = new Command("target-apps"); command.Description = "Provides operations to call the targetApps method."; - var builder = new TargetAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.Item.TargetApps.TargetAppsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -196,14 +199,14 @@ public Command BuildTargetAppsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedAppPolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies/{managedAppPolicy%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 ManagedAppPolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies/{managedAppPolicy%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Actio /// /// Zero or more policies admin intended for the app as of now. /// - public class ManagedAppPolicyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ManagedAppPolicyItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs index 2993c7d485..4899dbe6bf 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsPostRequestBody.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.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.Item.TargetApps { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TargetAppsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TargetAppsPostRequestBody : 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. @@ -16,13 +18,13 @@ public class TargetAppsPostRequestBody : IAdditionalDataHolder, IParsable /// The apps property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Apps { get; set; } + public List? Apps { get; set; } #nullable restore #else - public List Apps { get; set; } + public List Apps { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TargetAppsPostRequestBody() { @@ -31,12 +33,12 @@ public TargetAppsPostRequestBody() /// /// 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 TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.Item.TargetApps.TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TargetAppsPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.Item.TargetApps.TargetAppsPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, + { "apps", n => { Apps = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ManagedMobileApp.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("apps", Apps); + writer.WriteCollectionOfObjectValues("apps", Apps); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 67ec766bc6..e20c2d7fa9 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolici /// /// Provides operations to call the targetApps method. /// - public class TargetAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetAppsRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Not yet documented\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0"; + command.Description = "Not yet documented\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0"; var managedAppRegistrationIdOption = new Option("--managed-app-registration-id", description: "The unique identifier of managedAppRegistration") { }; managedAppRegistrationIdOption.IsRequired = true; @@ -48,8 +51,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(TargetAppsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.Item.TargetApps.TargetAppsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 TargetAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies/{managedAppPolicy%2Did}/targetApps", 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 TargetAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/intendedPolicies/{managedAppPolicy%2Did}/targetApps", rawUrl) @@ -90,11 +93,11 @@ public TargetAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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(TargetAppsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.Item.TargetApps.TargetAppsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.Item.TargetApps.TargetAppsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs index 924e65e8ef..625a668abf 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies; using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies; using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.Operations; 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.DeviceAppManagement.ManagedAppRegistrations.Item /// /// Provides operations to manage the managedAppRegistrations property of the microsoft.graph.deviceAppManagement entity. /// - public class ManagedAppRegistrationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppRegistrationItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the appliedPolicies property of the microsoft.graph.managedAppRegistration entity. @@ -32,7 +35,7 @@ public Command BuildAppliedPoliciesNavCommand() { var command = new Command("applied-policies"); command.Description = "Provides operations to manage the appliedPolicies property of the microsoft.graph.managedAppRegistration entity."; - var builder = new AppliedPoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicies.AppliedPoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -87,14 +90,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Read properties and relationships of the iosManagedAppRegistration object. - /// Find more info here + /// Read properties and relationships of the managedAppRegistration object. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the iosManagedAppRegistration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the managedAppRegistration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-get?view=graph-rest-1.0"; var managedAppRegistrationIdOption = new Option("--managed-app-registration-id", description: "The unique identifier of managedAppRegistration") { }; managedAppRegistrationIdOption.IsRequired = true; @@ -147,7 +150,7 @@ public Command BuildIntendedPoliciesNavCommand() { var command = new Command("intended-policies"); command.Description = "Provides operations to manage the intendedPolicies property of the microsoft.graph.managedAppRegistration entity."; - var builder = new IntendedPoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolicies.IntendedPoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -174,7 +177,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.managedAppRegistration entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -223,8 +226,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(ManagedAppRegistration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppRegistration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -245,14 +248,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 ManagedAppRegistrationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%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 ManagedAppRegistrationItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}{?%24expand,%24select}", rawUrl) @@ -278,17 +281,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosManagedAppRegistration object. + /// Read properties and relationships of the managedAppRegistration object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -304,11 +307,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(ManagedAppRegistration body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppRegistration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedAppRegistration body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppRegistration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -318,9 +321,10 @@ public RequestInformation ToPatchRequestInformation(ManagedAppRegistration body, return requestInfo; } /// - /// Read properties and relationships of the iosManagedAppRegistration object. + /// Read properties and relationships of the managedAppRegistration object. /// - public class ManagedAppRegistrationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppRegistrationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -345,3 +349,4 @@ public class ManagedAppRegistrationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Count/CountRequestBuilder.cs index c88a352cd3..f6f0024da5 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/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.DeviceAppManagement.ManagedAppRegistrations.Item.Operations.Cou /// /// 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}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations/$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}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.cs index 21a81ac23b..448a0f8735 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/Item/ManagedAppOperationItemRequestBuilder.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.DeviceAppManagement.ManagedAppRegistrations.Item.Operations.Ite /// /// Provides operations to manage the operations property of the microsoft.graph.managedAppRegistration entity. /// - public class ManagedAppOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a managedAppOperation. @@ -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(ManagedAppOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppOperation.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 ManagedAppOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations/{managedAppOperation%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 ManagedAppOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations/{managedAppOperation%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(ManagedAppOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedAppOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(ManagedAppOperation body, Ac /// /// Read properties and relationships of the managedAppOperation object. /// - public class ManagedAppOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class ManagedAppOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.cs index ed4d90eeef..5c4a487be6 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/Operations/OperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.Operations.Count; using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.Operations.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.DeviceAppManagement.ManagedAppRegistrations.Item.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.managedAppRegistration entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the operations property of the microsoft.graph.managedAppRegistration entity. @@ -30,7 +33,7 @@ public class OperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ManagedAppOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.Operations.Item.ManagedAppOperationItemRequestBuilder(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.DeviceAppManagement.ManagedAppRegistrations.Item.Operations.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(ManagedAppOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppOperation.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 OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations/{managedAppRegistration%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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(ManagedAppOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedAppOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ManagedAppOperation body, Act /// /// List properties and relationships of the managedAppOperation objects. /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class OperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs index 91581c6b2e..13a7fcc49a 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Count; using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.GetUserIdsWithFlaggedAppRegistration; using ApiSdk.DeviceAppManagement.ManagedAppRegistrations.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; @@ -22,7 +24,8 @@ namespace ApiSdk.DeviceAppManagement.ManagedAppRegistrations /// /// Provides operations to manage the managedAppRegistrations property of the microsoft.graph.deviceAppManagement entity. /// - public class ManagedAppRegistrationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppRegistrationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the managedAppRegistrations property of the microsoft.graph.deviceAppManagement entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ManagedAppRegistrationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.ManagedAppRegistrationItemRequestBuilder(PathParameters); commands.Add(builder.BuildAppliedPoliciesNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -49,7 +52,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.DeviceAppManagement.ManagedAppRegistrations.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(ManagedAppRegistration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppRegistration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -112,7 +115,7 @@ public Command BuildGetUserIdsWithFlaggedAppRegistrationNavCommand() { var command = new Command("get-user-ids-with-flagged-app-registration"); command.Description = "Provides operations to call the getUserIdsWithFlaggedAppRegistration method."; - var builder = new GetUserIdsWithFlaggedAppRegistrationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppRegistrations.GetUserIdsWithFlaggedAppRegistration.GetUserIdsWithFlaggedAppRegistrationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedAppRegistrationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations{?%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 ManagedAppRegistrationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ManagedAppRegistrationsRequestBuilder(string rawUrl) : base("{+baseurl}/d /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ManagedAppRegistration body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppRegistration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedAppRegistration body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppRegistration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(ManagedAppRegistration body, /// /// List properties and relationships of the managedAppRegistration objects. /// - public class ManagedAppRegistrationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppRegistrationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ManagedAppRegistrationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppStatuses/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppStatuses/Count/CountRequestBuilder.cs index 7a313e7a12..9ca6a8d1a7 100644 --- a/src/generated/DeviceAppManagement/ManagedAppStatuses/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppStatuses/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.DeviceAppManagement.ManagedAppStatuses.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}/deviceAppManagement/managedAppStatuses/$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}/deviceAppManagement/managedAppStatuses/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs index 8986361deb..676d176e28 100644 --- a/src/generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.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.DeviceAppManagement.ManagedAppStatuses.Item /// /// Provides operations to manage the managedAppStatuses property of the microsoft.graph.deviceAppManagement entity. /// - public class ManagedAppStatusItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppStatusItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property managedAppStatuses for deviceAppManagement @@ -139,8 +142,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(ManagedAppStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppStatus.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 ManagedAppStatusItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppStatuses/{managedAppStatus%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 ManagedAppStatusItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppStatuses/{managedAppStatus%2Did}{?%24expand,%24select}", rawUrl) @@ -200,11 +203,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); @@ -220,11 +223,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(ManagedAppStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedAppStatus body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -236,7 +239,8 @@ public RequestInformation ToPatchRequestInformation(ManagedAppStatus body, Actio /// /// Read properties and relationships of the managedAppStatusRaw object. /// - public class ManagedAppStatusItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppStatusItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -261,3 +265,4 @@ public class ManagedAppStatusItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs index dbd9b62a69..0f92d9f153 100644 --- a/src/generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedAppStatuses.Count; using ApiSdk.DeviceAppManagement.ManagedAppStatuses.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.DeviceAppManagement.ManagedAppStatuses /// /// Provides operations to manage the managedAppStatuses property of the microsoft.graph.deviceAppManagement entity. /// - public class ManagedAppStatusesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppStatusesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the managedAppStatuses property of the microsoft.graph.deviceAppManagement entity. @@ -30,7 +33,7 @@ public class ManagedAppStatusesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ManagedAppStatusItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedAppStatuses.Item.ManagedAppStatusItemRequestBuilder(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.DeviceAppManagement.ManagedAppStatuses.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ManagedAppStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppStatus.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,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 ManagedAppStatusesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedAppStatuses{?%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 ManagedAppStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -216,11 +219,11 @@ public ManagedAppStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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); @@ -236,11 +239,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(ManagedAppStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedAppStatus body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedAppStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -252,7 +255,8 @@ public RequestInformation ToPostRequestInformation(ManagedAppStatus body, Action /// /// List properties and relationships of the managedAppStatus objects. /// - public class ManagedAppStatusesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedAppStatusesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -316,3 +320,4 @@ public class ManagedAppStatusesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Count/CountRequestBuilder.cs index 30978382db..6a98cd3078 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/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.DeviceAppManagement.ManagedEBooks.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}/deviceAppManagement/managedEBooks/$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}/deviceAppManagement/managedEBooks/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignPostRequestBody.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignPostRequestBody.cs index 8da09c8677..450e63e437 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignPostRequestBody.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.DeviceAppManagement.ManagedEBooks.Item.Assign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AssignPostRequestBody : IAdditionalDataHolder, IParsable /// The managedEBookAssignments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ManagedEBookAssignments { get; set; } + public List? ManagedEBookAssignments { get; set; } #nullable restore #else - public List ManagedEBookAssignments { get; set; } + public List ManagedEBookAssignments { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignPostRequestBody() { @@ -31,12 +33,12 @@ public AssignPostRequestBody() /// /// 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 AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assign.AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assign.AssignPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "managedEBookAssignments", n => { ManagedEBookAssignments = n.GetCollectionOfObjectValues(ManagedEBookAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "managedEBookAssignments", n => { ManagedEBookAssignments = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ManagedEBookAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("managedEBookAssignments", ManagedEBookAssignments); + writer.WriteCollectionOfObjectValues("managedEBookAssignments", ManagedEBookAssignments); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.cs index f71dfcc11f..3be0bb1ac3 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assign/AssignRequestBuilder.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.DeviceAppManagement.ManagedEBooks.Item.Assign /// /// Provides operations to call the assign method. /// - public class AssignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -43,8 +46,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(AssignPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assign.AssignPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 AssignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assign", 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 AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assign", rawUrl) @@ -84,11 +87,11 @@ public AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(AssignPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assign.AssignPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assign.AssignPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs index 3d24959817..edb674446d 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assignments.Count; using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assignments.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.DeviceAppManagement.ManagedEBooks.Item.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.managedEBook entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.managedEBook entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ManagedEBookAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assignments.Item.ManagedEBookAssignmentItemRequestBuilder(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.DeviceAppManagement.ManagedEBooks.Item.Assignments.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(ManagedEBookAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedEBookAssignment.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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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(ManagedEBookAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedEBookAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedEBookAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedEBookAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ManagedEBookAssignment body, /// /// List properties and relationships of the managedEBookAssignment objects. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Count/CountRequestBuilder.cs index 9021e2e78b..e241330a4e 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/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.DeviceAppManagement.ManagedEBooks.Item.Assignments.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}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/$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}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs index 716f87ad75..80d1a9af85 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assignments.Item /// /// Provides operations to manage the assignments property of the microsoft.graph.managedEBook entity. /// - public class ManagedEBookAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedEBookAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// - /// Deletes a managedEBookAssignment. - /// Find more info here + /// Deletes a iosVppEBookAssignment. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a managedEBookAssignment.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-delete?view=graph-rest-1.0"; + command.Description = "Deletes a iosVppEBookAssignment.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-delete?view=graph-rest-1.0"; var managedEBookIdOption = new Option("--managed-ebook-id", description: "The unique identifier of managedEBook") { }; managedEBookIdOption.IsRequired = true; @@ -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(ManagedEBookAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedEBookAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -181,21 +184,21 @@ 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 ManagedEBookAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/{managedEBookAssignment%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 ManagedEBookAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/{managedEBookAssignment%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Deletes a managedEBookAssignment. + /// Deletes a iosVppEBookAssignment. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -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(ManagedEBookAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedEBookAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedEBookAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedEBookAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(ManagedEBookAssignment body, /// /// Read properties and relationships of the iosVppEBookAssignment object. /// - public class ManagedEBookAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedEBookAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class ManagedEBookAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Count/CountRequestBuilder.cs index fb844eee05..b389ff2c60 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/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.DeviceAppManagement.ManagedEBooks.Item.DeviceStates.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}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates/$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}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.cs index a6ed90f27a..398801a349 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/DeviceStatesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.DeviceStates.Count; using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.DeviceStates.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.DeviceAppManagement.ManagedEBooks.Item.DeviceStates /// /// Provides operations to manage the deviceStates property of the microsoft.graph.managedEBook entity. /// - public class DeviceStatesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceStates property of the microsoft.graph.managedEBook entity. @@ -30,7 +33,7 @@ public class DeviceStatesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceInstallStateItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.DeviceStates.Item.DeviceInstallStateItemRequestBuilder(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.DeviceAppManagement.ManagedEBooks.Item.DeviceStates.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(DeviceInstallState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceInstallState.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 DeviceStatesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates{?%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 DeviceStatesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public DeviceStatesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMan /// 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(DeviceInstallState body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceInstallState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceInstallState body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceInstallState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(DeviceInstallState body, Acti /// /// List properties and relationships of the deviceInstallState objects. /// - public class DeviceStatesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class DeviceStatesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs index 578b8e233e..a886a933a7 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.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.DeviceAppManagement.ManagedEBooks.Item.DeviceStates.Item /// /// Provides operations to manage the deviceStates property of the microsoft.graph.managedEBook entity. /// - public class DeviceInstallStateItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceInstallStateItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceInstallState. @@ -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(DeviceInstallState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceInstallState.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 DeviceInstallStateItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates/{deviceInstallState%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 DeviceInstallStateItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/deviceStates/{deviceInstallState%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(DeviceInstallState body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceInstallState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceInstallState body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceInstallState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(DeviceInstallState body, Act /// /// Read properties and relationships of the deviceInstallState object. /// - public class DeviceInstallStateItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceInstallStateItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class DeviceInstallStateItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.cs index 53d3831f18..4da261c30f 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/InstallSummary/InstallSummaryRequestBuilder.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.DeviceAppManagement.ManagedEBooks.Item.InstallSummary /// /// Provides operations to manage the installSummary property of the microsoft.graph.managedEBook entity. /// - public class InstallSummaryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstallSummaryRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property installSummary for deviceAppManagement @@ -140,8 +143,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(EBookInstallSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EBookInstallSummary.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 InstallSummaryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/installSummary{?%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 InstallSummaryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/installSummary{?%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(EBookInstallSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EBookInstallSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EBookInstallSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EBookInstallSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(EBookInstallSummary body, Ac /// /// Read properties and relationships of the eBookInstallSummary object. /// - public class InstallSummaryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstallSummaryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class InstallSummaryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs index b0aff8208d..7e943948e0 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assign; using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assignments; using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.DeviceStates; @@ -6,6 +7,7 @@ using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary; 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 +26,8 @@ namespace ApiSdk.DeviceAppManagement.ManagedEBooks.Item /// /// Provides operations to manage the managedEBooks property of the microsoft.graph.deviceAppManagement entity. /// - public class ManagedEBookItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedEBookItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.managedEBook entity. @@ -34,7 +37,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.managedEBook entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -61,7 +64,7 @@ public Command BuildAssignNavCommand() { var command = new Command("assign"); command.Description = "Provides operations to call the assign method."; - var builder = new AssignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assign.AssignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -114,7 +117,7 @@ public Command BuildDeviceStatesNavCommand() { var command = new Command("device-states"); command.Description = "Provides operations to manage the deviceStates property of the microsoft.graph.managedEBook entity."; - var builder = new DeviceStatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.DeviceStates.DeviceStatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -134,14 +137,14 @@ public Command BuildDeviceStatesNavCommand() return command; } /// - /// Read properties and relationships of the iosVppEBook object. - /// Find more info here + /// Read properties and relationships of the managedEBook object. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the iosVppEBook object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebook-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the managedEBook object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebook-get?view=graph-rest-1.0"; var managedEBookIdOption = new Option("--managed-ebook-id", description: "The unique identifier of managedEBook") { }; managedEBookIdOption.IsRequired = true; @@ -194,7 +197,7 @@ public Command BuildInstallSummaryNavCommand() { var command = new Command("install-summary"); command.Description = "Provides operations to manage the installSummary property of the microsoft.graph.managedEBook entity."; - var builder = new InstallSummaryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.InstallSummary.InstallSummaryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -236,8 +239,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(ManagedEBook.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedEBook.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -265,7 +268,7 @@ public Command BuildUserStateSummaryNavCommand() { var command = new Command("user-state-summary"); command.Description = "Provides operations to manage the userStateSummary property of the microsoft.graph.managedEBook entity."; - var builder = new UserStateSummaryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.UserStateSummaryRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -285,14 +288,14 @@ public Command BuildUserStateSummaryNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedEBookItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%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 ManagedEBookItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}{?%24expand,%24select}", rawUrl) @@ -318,17 +321,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -344,11 +347,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(ManagedEBook body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedEBook body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedEBook body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedEBook body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -358,9 +361,10 @@ public RequestInformation ToPatchRequestInformation(ManagedEBook body, Action - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// - public class ManagedEBookItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedEBookItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -385,3 +389,4 @@ public class ManagedEBookItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Count/CountRequestBuilder.cs index 962a6b2931..bc8bd72f58 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/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.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.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}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/$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}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Count/CountRequestBuilder.cs index 3cd52c545b..df267a48cc 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/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.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Item.De /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates/$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}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.cs index fffe527f2d..24dcae2154 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/DeviceStatesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Item.DeviceStates.Count; using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Item.DeviceStates.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.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Item.De /// /// Provides operations to manage the deviceStates property of the microsoft.graph.userInstallStateSummary entity. /// - public class DeviceStatesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceStates property of the microsoft.graph.userInstallStateSummary entity. @@ -30,7 +33,7 @@ public class DeviceStatesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceInstallStateItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Item.DeviceStates.Item.DeviceInstallStateItemRequestBuilder(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.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Item.DeviceStates.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DeviceInstallState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceInstallState.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceStatesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates{?%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 DeviceStatesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public DeviceStatesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMan /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(DeviceInstallState body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceInstallState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceInstallState body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceInstallState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(DeviceInstallState body, Acti /// /// The install state of the eBook. /// - public class DeviceStatesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class DeviceStatesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs index 056705dc96..bdfaaf7f4b 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/DeviceStates/Item/DeviceInstallStateItemRequestBuilder.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.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Item.De /// /// Provides operations to manage the deviceStates property of the microsoft.graph.userInstallStateSummary entity. /// - public class DeviceInstallStateItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceInstallStateItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deviceStates for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DeviceInstallState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceInstallState.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceInstallStateItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates/{deviceInstallState%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 DeviceInstallStateItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}/deviceStates/{deviceInstallState%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(DeviceInstallState body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceInstallState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceInstallState body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceInstallState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(DeviceInstallState body, Act /// /// The install state of the eBook. /// - public class DeviceInstallStateItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceInstallStateItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class DeviceInstallStateItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.cs index 0e8d39657f..96cdd9f415 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/Item/UserInstallStateSummaryItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Item.DeviceStates; 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.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Item /// /// Provides operations to manage the userStateSummary property of the microsoft.graph.managedEBook entity. /// - public class UserInstallStateSummaryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserInstallStateSummaryItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a userInstallStateSummary. @@ -72,7 +75,7 @@ public Command BuildDeviceStatesNavCommand() { var command = new Command("device-states"); command.Description = "Provides operations to manage the deviceStates property of the microsoft.graph.userInstallStateSummary entity."; - var builder = new DeviceStatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Item.DeviceStates.DeviceStatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -186,8 +189,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(UserInstallStateSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserInstallStateSummary.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -209,14 +212,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 UserInstallStateSummaryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%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 UserInstallStateSummaryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary/{userInstallStateSummary%2Did}{?%24expand,%24select}", rawUrl) @@ -248,11 +251,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); @@ -268,11 +271,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(UserInstallStateSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserInstallStateSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserInstallStateSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserInstallStateSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -284,7 +287,8 @@ public RequestInformation ToPatchRequestInformation(UserInstallStateSummary body /// /// Read properties and relationships of the userInstallStateSummary object. /// - public class UserInstallStateSummaryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserInstallStateSummaryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -309,3 +313,4 @@ public class UserInstallStateSummaryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.cs index 44cb7041c2..53c470dabd 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/UserStateSummary/UserStateSummaryRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Count; using ApiSdk.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.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.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary /// /// Provides operations to manage the userStateSummary property of the microsoft.graph.managedEBook entity. /// - public class UserStateSummaryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStateSummaryRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userStateSummary property of the microsoft.graph.managedEBook entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new UserInstallStateSummaryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Item.UserInstallStateSummaryItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDeviceStatesNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.DeviceAppManagement.ManagedEBooks.Item.UserStateSummary.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(UserInstallStateSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserInstallStateSummary.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 UserStateSummaryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary{?%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 UserStateSummaryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/userStateSummary{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -231,11 +234,11 @@ public UserStateSummaryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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); @@ -251,11 +254,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(UserInstallStateSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserInstallStateSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserInstallStateSummary body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserInstallStateSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(UserInstallStateSummary body, /// /// List properties and relationships of the userInstallStateSummary objects. /// - public class UserStateSummaryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStateSummaryRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class UserStateSummaryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs index 989048ce0a..75bbb9b8a4 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.ManagedEBooks.Count; using ApiSdk.DeviceAppManagement.ManagedEBooks.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.DeviceAppManagement.ManagedEBooks /// /// Provides operations to manage the managedEBooks property of the microsoft.graph.deviceAppManagement entity. /// - public class ManagedEBooksRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedEBooksRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the managedEBooks property of the microsoft.graph.deviceAppManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ManagedEBookItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.ManagedEBooks.Item.ManagedEBookItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentsNavCommand()); commands.Add(builder.BuildAssignNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -50,7 +53,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.DeviceAppManagement.ManagedEBooks.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(ManagedEBook.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedEBook.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -106,14 +109,14 @@ public Command BuildCreateCommand() return command; } /// - /// List properties and relationships of the managedEBook objects. - /// Find more info here + /// List properties and relationships of the iosVppEBook objects. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the managedEBook objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebook-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the iosVppEBook objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebook-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -203,31 +206,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedEBooksRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/managedEBooks{?%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 ManagedEBooksRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List properties and relationships of the managedEBook objects. + /// List properties and relationships of the iosVppEBook objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -243,11 +246,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(ManagedEBook body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedEBook body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedEBook body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedEBook body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -257,9 +260,10 @@ public RequestInformation ToPostRequestInformation(ManagedEBook body, Action - /// List properties and relationships of the managedEBook objects. + /// List properties and relationships of the iosVppEBook objects. /// - public class ManagedEBooksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedEBooksRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -323,3 +327,4 @@ public class ManagedEBooksRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs index af3a33d68d..0248c248c4 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Cou /// /// 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}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/$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}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs index dfc9402d12..f752cb6540 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.Assignments.Count; using ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.Assignments.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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Ite /// /// Provides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TargetedManagedAppPolicyAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.Assignments.Item.TargetedManagedAppPolicyAssignmentItemRequestBuilder(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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.Assignments.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(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssig /// /// Navigation property to list of security groups targeted for policy. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs index a8432ddb21..32415f337e 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Ite /// /// 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}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments/$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}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs index 17a4fcda20..fadbbd561d 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Ite /// /// Provides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity. /// - public class TargetedManagedAppPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TargetedManagedAppPolicyAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments/{targetedManagedAppPolicyAssignment%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 TargetedManagedAppPolicyAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssi /// /// Navigation property to list of security groups targeted for policy. /// - public class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParamet } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs index 0834519cf4..58c6cd2d84 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Ite /// /// 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}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/$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}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs index ff856eddb7..721a9998e5 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles.Count; using ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles.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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Ite /// /// Provides operations to manage the exemptAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. /// - public class ExemptAppLockerFilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExemptAppLockerFilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the exemptAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. @@ -30,7 +33,7 @@ public class ExemptAppLockerFilesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new WindowsInformationProtectionAppLockerFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles.Item.WindowsInformationProtectionAppLockerFileItemRequestBuilder(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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles.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(WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 ExemptAppLockerFilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles{?%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 ExemptAppLockerFilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public ExemptAppLockerFilesRequestBuilder(string rawUrl) : base("{+baseurl}/devi /// 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); @@ -247,11 +250,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(WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionA /// /// Another way to input exempt apps through xml files /// - public class ExemptAppLockerFilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExemptAppLockerFilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class ExemptAppLockerFilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs index 40d6914412..ff62dd887a 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Ite /// /// Provides operations to manage the exemptAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. /// - public class WindowsInformationProtectionAppLockerFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLockerFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property exemptAppLockerFiles for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WindowsInformationProtectionAppLockerFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/{windowsInformationProtectionAppLockerFile%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 WindowsInformationProtectionAppLockerFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/{windowsInformationProtectionAppLockerFile%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection /// /// Another way to input exempt apps through xml files /// - public class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQuery } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.cs index f41fc6ccf1..b9dbba7c55 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/MdmWindowsInformationProtectionPolicyItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.Assignments; using ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles; using ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles; 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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Ite /// /// Provides operations to manage the mdmWindowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity. /// - public class MdmWindowsInformationProtectionPolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MdmWindowsInformationProtectionPolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -95,7 +98,7 @@ public Command BuildExemptAppLockerFilesNavCommand() { var command = new Command("exempt-app-locker-files"); command.Description = "Provides operations to manage the exemptAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity."; - var builder = new ExemptAppLockerFilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles.ExemptAppLockerFilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -198,8 +201,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(MdmWindowsInformationProtectionPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MdmWindowsInformationProtectionPolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -227,7 +230,7 @@ public Command BuildProtectedAppLockerFilesNavCommand() { var command = new Command("protected-app-locker-files"); command.Description = "Provides operations to manage the protectedAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity."; - var builder = new ProtectedAppLockerFilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles.ProtectedAppLockerFilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -247,14 +250,14 @@ public Command BuildProtectedAppLockerFilesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MdmWindowsInformationProtectionPolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%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 MdmWindowsInformationProtectionPolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}{?%24expand,%24select}", rawUrl) @@ -286,11 +289,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); @@ -306,11 +309,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(MdmWindowsInformationProtectionPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MdmWindowsInformationProtectionPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MdmWindowsInformationProtectionPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MdmWindowsInformationProtectionPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -322,7 +325,8 @@ public RequestInformation ToPatchRequestInformation(MdmWindowsInformationProtect /// /// Read properties and relationships of the mdmWindowsInformationProtectionPolicy object. /// - public class MdmWindowsInformationProtectionPolicyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MdmWindowsInformationProtectionPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -347,3 +351,4 @@ public class MdmWindowsInformationProtectionPolicyItemRequestBuilderGetQueryPara } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs index 79a81c7cef..c8adf53e5c 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Ite /// /// 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}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/$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}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs index d8f0822182..10ccb0af31 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Ite /// /// Provides operations to manage the protectedAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. /// - public class WindowsInformationProtectionAppLockerFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLockerFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property protectedAppLockerFiles for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WindowsInformationProtectionAppLockerFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/{windowsInformationProtectionAppLockerFile%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 WindowsInformationProtectionAppLockerFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/{windowsInformationProtectionAppLockerFile%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection /// /// Another way to input protected apps through xml files /// - public class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQuery } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs index e5dd0533c9..5878be293c 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles.Count; using ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles.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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Ite /// /// Provides operations to manage the protectedAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. /// - public class ProtectedAppLockerFilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProtectedAppLockerFilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the protectedAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. @@ -30,7 +33,7 @@ public class ProtectedAppLockerFilesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new WindowsInformationProtectionAppLockerFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles.Item.WindowsInformationProtectionAppLockerFileItemRequestBuilder(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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles.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(WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 ProtectedAppLockerFilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles{?%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 ProtectedAppLockerFilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies/{mdmWindowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public ProtectedAppLockerFilesRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -247,11 +250,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(WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionA /// /// Another way to input protected apps through xml files /// - public class ProtectedAppLockerFilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProtectedAppLockerFilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class ProtectedAppLockerFilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.cs b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.cs index dc4af88a5f..c50c395735 100644 --- a/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MdmWindowsInformationProtectionPolicies/MdmWindowsInformationProtectionPoliciesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Count; using ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies /// /// Provides operations to manage the mdmWindowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity. /// - public class MdmWindowsInformationProtectionPoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MdmWindowsInformationProtectionPoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the mdmWindowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MdmWindowsInformationProtectionPolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.Item.MdmWindowsInformationProtectionPolicyItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildExemptAppLockerFilesNavCommand()); @@ -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.DeviceAppManagement.MdmWindowsInformationProtectionPolicies.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(MdmWindowsInformationProtectionPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MdmWindowsInformationProtectionPolicy.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 MdmWindowsInformationProtectionPoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies{?%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 MdmWindowsInformationProtectionPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mdmWindowsInformationProtectionPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -221,11 +224,11 @@ public MdmWindowsInformationProtectionPoliciesRequestBuilder(string rawUrl) : ba /// 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(MdmWindowsInformationProtectionPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MdmWindowsInformationProtectionPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MdmWindowsInformationProtectionPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MdmWindowsInformationProtectionPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -257,7 +260,8 @@ public RequestInformation ToPostRequestInformation(MdmWindowsInformationProtecti /// /// List properties and relationships of the mdmWindowsInformationProtectionPolicy objects. /// - public class MdmWindowsInformationProtectionPoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MdmWindowsInformationProtectionPoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -321,3 +325,4 @@ public class MdmWindowsInformationProtectionPoliciesRequestBuilderGetQueryParame } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppCategories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppCategories/Count/CountRequestBuilder.cs index 63b661f7ac..4882fe0fc6 100644 --- a/src/generated/DeviceAppManagement/MobileAppCategories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppCategories/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.DeviceAppManagement.MobileAppCategories.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}/deviceAppManagement/mobileAppCategories/$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}/deviceAppManagement/mobileAppCategories/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.cs index 6490aa4517..74fb25c1a6 100644 --- a/src/generated/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppCategories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileAppCategories.Item /// /// Provides operations to manage the mobileAppCategories property of the microsoft.graph.deviceAppManagement entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a mobileAppCategory. @@ -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(MobileAppCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppCategory.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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppCategories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppCategories/{mobileAppCategory%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(MobileAppCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppCategory body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppCategory body, Acti /// /// Read properties and relationships of the mobileAppCategory object. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.cs index 2b0540f865..77a7647bdb 100644 --- a/src/generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppCategories/MobileAppCategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileAppCategories.Count; using ApiSdk.DeviceAppManagement.MobileAppCategories.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.DeviceAppManagement.MobileAppCategories /// /// Provides operations to manage the mobileAppCategories property of the microsoft.graph.deviceAppManagement entity. /// - public class MobileAppCategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the mobileAppCategories property of the microsoft.graph.deviceAppManagement entity. @@ -30,7 +33,7 @@ public class MobileAppCategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppCategories.Item.MobileAppCategoryItemRequestBuilder(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.DeviceAppManagement.MobileAppCategories.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(MobileAppCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppCategory.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 MobileAppCategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppCategories{?%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 MobileAppCategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppCategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public MobileAppCategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/devic /// 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(MobileAppCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppCategory body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(MobileAppCategory body, Actio /// /// List properties and relationships of the mobileAppCategory objects. /// - public class MobileAppCategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class MobileAppCategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Count/CountRequestBuilder.cs index 72eac30361..9d544a493e 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/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.DeviceAppManagement.MobileAppConfigurations.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}/deviceAppManagement/mobileAppConfigurations/$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}/deviceAppManagement/mobileAppConfigurations/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignPostRequestBody.cs index d218f0d79a..ee94d55fb7 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignPostRequestBody.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.DeviceAppManagement.MobileAppConfigurations.Item.Assign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AssignPostRequestBody : IAdditionalDataHolder, IParsable /// The assignments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assignments { get; set; } + public List? Assignments { get; set; } #nullable restore #else - public List Assignments { get; set; } + public List Assignments { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignPostRequestBody() { @@ -31,12 +33,12 @@ public AssignPostRequestBody() /// /// 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 AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assign.AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assign.AssignPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(ManagedDeviceMobileAppConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("assignments", Assignments); + writer.WriteCollectionOfObjectValues("assignments", Assignments); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.cs index 7f439dd4a0..78a84ba25a 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assign/AssignRequestBuilder.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.DeviceAppManagement.MobileAppConfigurations.Item.Assign /// /// Provides operations to call the assign method. /// - public class AssignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -43,8 +46,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(AssignPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assign.AssignPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 AssignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assign", 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 AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assign", rawUrl) @@ -84,11 +87,11 @@ public AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(AssignPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assign.AssignPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assign.AssignPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs index 810e1f8227..43b71f899c 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assignments.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.DeviceAppManagement.MobileAppConfigurations.Item.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assignments.Item.ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileAppConfigurations.Item.Assignments.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(ManagedDeviceMobileAppConfigurationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationAssignment.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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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(ManagedDeviceMobileAppConfigurationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfigurationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfigu /// /// List properties and relationships of the managedDeviceMobileAppConfigurationAssignment objects. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs index 2cb6eefa2d..90b0842033 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/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.DeviceAppManagement.MobileAppConfigurations.Item.Assignments.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}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments/$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}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.cs index 23bba6901a..c78559d267 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/Assignments/Item/ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileAppConfigurations.Item.Assignments.It /// /// Provides operations to manage the assignments property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. /// - public class ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a managedDeviceMobileAppConfigurationAssignment. @@ -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(ManagedDeviceMobileAppConfigurationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationAssignment.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 ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments/{managedDeviceMobileAppConfigurationAssignment%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 ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/assignments/{managedDeviceMobileAppConfigurationAssignment%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(ManagedDeviceMobileAppConfigurationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfigurationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig /// /// Read properties and relationships of the managedDeviceMobileAppConfigurationAssignment object. /// - public class ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class ManagedDeviceMobileAppConfigurationAssignmentItemRequestBuilderGetQ } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.cs index 466ce0dfb7..bdf259705d 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatusSummary/DeviceStatusSummaryRequestBuilder.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.DeviceAppManagement.MobileAppConfigurations.Item.DeviceStatusSu /// /// Provides operations to manage the deviceStatusSummary property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. /// - public class DeviceStatusSummaryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusSummaryRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deviceStatusSummary for deviceAppManagement @@ -140,8 +143,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(ManagedDeviceMobileAppConfigurationDeviceSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationDeviceSummary.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 DeviceStatusSummaryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatusSummary{?%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 DeviceStatusSummaryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatusSummary{?%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(ManagedDeviceMobileAppConfigurationDeviceSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationDeviceSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfigurationDeviceSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationDeviceSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig /// /// Read properties and relationships of the managedDeviceMobileAppConfigurationDeviceSummary object. /// - public class DeviceStatusSummaryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusSummaryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class DeviceStatusSummaryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs index e192ac1883..b3c708a061 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/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.DeviceAppManagement.MobileAppConfigurations.Item.DeviceStatuses /// /// 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}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses/$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}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs index 9deb8f747e..3f0e75cc5f 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.DeviceStatuses.Count; using ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.DeviceStatuses.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.DeviceAppManagement.MobileAppConfigurations.Item.DeviceStatuses /// /// Provides operations to manage the deviceStatuses property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. /// - public class DeviceStatusesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceStatuses property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. @@ -30,7 +33,7 @@ public class DeviceStatusesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.DeviceStatuses.Item.ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder(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.DeviceAppManagement.MobileAppConfigurations.Item.DeviceStatuses.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(ManagedDeviceMobileAppConfigurationDeviceStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationDeviceStatus.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 DeviceStatusesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses{?%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 DeviceStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public DeviceStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppM /// 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(ManagedDeviceMobileAppConfigurationDeviceStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationDeviceStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfigurationDeviceStatus body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationDeviceStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfigu /// /// List properties and relationships of the managedDeviceMobileAppConfigurationDeviceStatus objects. /// - public class DeviceStatusesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class DeviceStatusesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.cs index bce4a7662e..94efd67b1d 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/DeviceStatuses/Item/ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder.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.DeviceAppManagement.MobileAppConfigurations.Item.DeviceStatuses /// /// Provides operations to manage the deviceStatuses property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. /// - public class ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a managedDeviceMobileAppConfigurationDeviceStatus. @@ -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(ManagedDeviceMobileAppConfigurationDeviceStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationDeviceStatus.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 ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses/{managedDeviceMobileAppConfigurationDeviceStatus%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 ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/deviceStatuses/{managedDeviceMobileAppConfigurationDeviceStatus%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(ManagedDeviceMobileAppConfigurationDeviceStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationDeviceStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfigurationDeviceStatus body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationDeviceStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig /// /// Read properties and relationships of the managedDeviceMobileAppConfigurationDeviceStatus object. /// - public class ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class ManagedDeviceMobileAppConfigurationDeviceStatusItemRequestBuilderGe } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs index 103ffe1421..8de14e3cfc 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assign; using ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assignments; using ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.DeviceStatusSummary; @@ -7,6 +8,7 @@ using ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.UserStatuses; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item /// /// Provides operations to manage the mobileAppConfigurations property of the microsoft.graph.deviceAppManagement entity. /// - public class ManagedDeviceMobileAppConfigurationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceMobileAppConfigurationItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. @@ -35,7 +38,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.managedDeviceMobileAppConfiguration entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -62,7 +65,7 @@ public Command BuildAssignNavCommand() { var command = new Command("assign"); command.Description = "Provides operations to call the assign method."; - var builder = new AssignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.Assign.AssignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -115,7 +118,7 @@ public Command BuildDeviceStatusesNavCommand() { var command = new Command("device-statuses"); command.Description = "Provides operations to manage the deviceStatuses property of the microsoft.graph.managedDeviceMobileAppConfiguration entity."; - var builder = new DeviceStatusesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.DeviceStatuses.DeviceStatusesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -142,7 +145,7 @@ public Command BuildDeviceStatusSummaryNavCommand() { var command = new Command("device-status-summary"); command.Description = "Provides operations to manage the deviceStatusSummary property of the microsoft.graph.managedDeviceMobileAppConfiguration entity."; - var builder = new DeviceStatusSummaryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.DeviceStatusSummary.DeviceStatusSummaryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -237,8 +240,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(ManagedDeviceMobileAppConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDeviceMobileAppConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -266,7 +269,7 @@ public Command BuildUserStatusesNavCommand() { var command = new Command("user-statuses"); command.Description = "Provides operations to manage the userStatuses property of the microsoft.graph.managedDeviceMobileAppConfiguration entity."; - var builder = new UserStatusesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.UserStatuses.UserStatusesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -293,7 +296,7 @@ public Command BuildUserStatusSummaryNavCommand() { var command = new Command("user-status-summary"); command.Description = "Provides operations to manage the userStatusSummary property of the microsoft.graph.managedDeviceMobileAppConfiguration entity."; - var builder = new UserStatusSummaryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.UserStatusSummary.UserStatusSummaryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -305,14 +308,14 @@ public Command BuildUserStatusSummaryNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedDeviceMobileAppConfigurationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%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 ManagedDeviceMobileAppConfigurationItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}{?%24expand,%24select}", rawUrl) @@ -344,11 +347,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); @@ -364,11 +367,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(ManagedDeviceMobileAppConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -380,7 +383,8 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig /// /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. /// - public class ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -405,3 +409,4 @@ public class ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParame } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.cs index 0fdeffe338..2c2ef21432 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatusSummary/UserStatusSummaryRequestBuilder.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.DeviceAppManagement.MobileAppConfigurations.Item.UserStatusSumm /// /// Provides operations to manage the userStatusSummary property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. /// - public class UserStatusSummaryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusSummaryRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userStatusSummary for deviceAppManagement @@ -140,8 +143,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(ManagedDeviceMobileAppConfigurationUserSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationUserSummary.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 UserStatusSummaryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatusSummary{?%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 UserStatusSummaryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatusSummary{?%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(ManagedDeviceMobileAppConfigurationUserSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationUserSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfigurationUserSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationUserSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig /// /// Read properties and relationships of the managedDeviceMobileAppConfigurationUserSummary object. /// - public class UserStatusSummaryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusSummaryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class UserStatusSummaryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs index 339a35cb1a..90374c0f2f 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/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.DeviceAppManagement.MobileAppConfigurations.Item.UserStatuses.C /// /// 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}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses/$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}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.cs index c85a22cdf0..37fbc15207 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/Item/ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder.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.DeviceAppManagement.MobileAppConfigurations.Item.UserStatuses.I /// /// Provides operations to manage the userStatuses property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. /// - public class ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a managedDeviceMobileAppConfigurationUserStatus. @@ -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(ManagedDeviceMobileAppConfigurationUserStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationUserStatus.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 ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses/{managedDeviceMobileAppConfigurationUserStatus%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 ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses/{managedDeviceMobileAppConfigurationUserStatus%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(ManagedDeviceMobileAppConfigurationUserStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationUserStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfigurationUserStatus body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationUserStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig /// /// Read properties and relationships of the managedDeviceMobileAppConfigurationUserStatus object. /// - public class ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilderGetQ } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs index f799ed43aa..5faedab81d 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.UserStatuses.Count; using ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.UserStatuses.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.DeviceAppManagement.MobileAppConfigurations.Item.UserStatuses /// /// Provides operations to manage the userStatuses property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. /// - public class UserStatusesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userStatuses property of the microsoft.graph.managedDeviceMobileAppConfiguration entity. @@ -30,7 +33,7 @@ public class UserStatusesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.UserStatuses.Item.ManagedDeviceMobileAppConfigurationUserStatusItemRequestBuilder(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.DeviceAppManagement.MobileAppConfigurations.Item.UserStatuses.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(ManagedDeviceMobileAppConfigurationUserStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationUserStatus.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 UserStatusesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses{?%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 UserStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration%2Did}/userStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public UserStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMan /// 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(ManagedDeviceMobileAppConfigurationUserStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationUserStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfigurationUserStatus body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfigurationUserStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfigu /// /// List properties and relationships of the managedDeviceMobileAppConfigurationUserStatus objects. /// - public class UserStatusesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class UserStatusesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs index 64f9319dd3..b8f6868b80 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileAppConfigurations.Count; using ApiSdk.DeviceAppManagement.MobileAppConfigurations.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.DeviceAppManagement.MobileAppConfigurations /// /// Provides operations to manage the mobileAppConfigurations property of the microsoft.graph.deviceAppManagement entity. /// - public class MobileAppConfigurationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppConfigurationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the mobileAppConfigurations property of the microsoft.graph.deviceAppManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ManagedDeviceMobileAppConfigurationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileAppConfigurations.Item.ManagedDeviceMobileAppConfigurationItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentsNavCommand()); commands.Add(builder.BuildAssignNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -51,7 +54,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.DeviceAppManagement.MobileAppConfigurations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(ManagedDeviceMobileAppConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDeviceMobileAppConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -107,14 +110,14 @@ public Command BuildCreateCommand() return command; } /// - /// List properties and relationships of the iosMobileAppConfiguration objects. - /// Find more info here + /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the iosMobileAppConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-iosmobileappconfiguration-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the managedDeviceMobileAppConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-manageddevicemobileappconfiguration-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -204,31 +207,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppConfigurationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations{?%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 MobileAppConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List properties and relationships of the iosMobileAppConfiguration objects. + /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -244,11 +247,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(ManagedDeviceMobileAppConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedDeviceMobileAppConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -258,9 +261,10 @@ public RequestInformation ToPostRequestInformation(ManagedDeviceMobileAppConfigu return requestInfo; } /// - /// List properties and relationships of the iosMobileAppConfiguration objects. + /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. /// - public class MobileAppConfigurationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppConfigurationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -324,3 +328,4 @@ public class MobileAppConfigurationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Count/CountRequestBuilder.cs index 007e0897f0..cf9981e982 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/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.DeviceAppManagement.MobileApps.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}/deviceAppManagement/mobileApps/$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}/deviceAppManagement/mobileApps/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.cs index a24857093f..c52d5351b6 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/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.DeviceAppManagement.MobileApps.GraphAndroidLobApp.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}/deviceAppManagement/mobileApps/graph.androidLobApp/$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}/deviceAppManagement/mobileApps/graph.androidLobApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs index 955796f1dc..14d5f07d19 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidLobApp.Count; 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.DeviceAppManagement.MobileApps.GraphAndroidLobApp /// /// Casts the previous resource to androidLobApp. /// - public class GraphAndroidLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAndroidLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphAndroidLobApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphAndroidLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.androidLobApp{?%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 GraphAndroidLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.androidLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphAndroidLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.androidLobApp in the microsoft.graph.mobileApp collection /// - public class GraphAndroidLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAndroidLobAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphAndroidLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.cs index 3d3110bf12..dca9162465 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/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.DeviceAppManagement.MobileApps.GraphAndroidStoreApp.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}/deviceAppManagement/mobileApps/graph.androidStoreApp/$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}/deviceAppManagement/mobileApps/graph.androidStoreApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs index 7efe973a23..9ac46504ab 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidStoreApp.Count; 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.DeviceAppManagement.MobileApps.GraphAndroidStoreApp /// /// Casts the previous resource to androidStoreApp. /// - public class GraphAndroidStoreAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAndroidStoreAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphAndroidStoreApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphAndroidStoreAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.androidStoreApp{?%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 GraphAndroidStoreAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.androidStoreApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphAndroidStoreAppRequestBuilder(string rawUrl) : base("{+baseurl}/devi /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.androidStoreApp in the microsoft.graph.mobileApp collection /// - public class GraphAndroidStoreAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAndroidStoreAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphAndroidStoreAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.cs index 7d709cb9fb..db9e196fc3 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/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.DeviceAppManagement.MobileApps.GraphIosLobApp.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}/deviceAppManagement/mobileApps/graph.iosLobApp/$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}/deviceAppManagement/mobileApps/graph.iosLobApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs index eb112906ce..920b458f1f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphIosLobApp.Count; 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.DeviceAppManagement.MobileApps.GraphIosLobApp /// /// Casts the previous resource to iosLobApp. /// - public class GraphIosLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphIosLobApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphIosLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosLobApp{?%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 GraphIosLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphIosLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppM /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.iosLobApp in the microsoft.graph.mobileApp collection /// - public class GraphIosLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosLobAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphIosLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.cs index 83007908d0..49cd6ee12f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/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.DeviceAppManagement.MobileApps.GraphIosStoreApp.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}/deviceAppManagement/mobileApps/graph.iosStoreApp/$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}/deviceAppManagement/mobileApps/graph.iosStoreApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs index dc984f6fa5..88186a40b2 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphIosStoreApp.Count; 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.DeviceAppManagement.MobileApps.GraphIosStoreApp /// /// Casts the previous resource to iosStoreApp. /// - public class GraphIosStoreAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosStoreAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphIosStoreApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphIosStoreAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosStoreApp{?%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 GraphIosStoreAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosStoreApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphIosStoreAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.iosStoreApp in the microsoft.graph.mobileApp collection /// - public class GraphIosStoreAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosStoreAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphIosStoreAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.cs index 2200eeefa7..be8f578adc 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/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.DeviceAppManagement.MobileApps.GraphIosVppApp.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}/deviceAppManagement/mobileApps/graph.iosVppApp/$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}/deviceAppManagement/mobileApps/graph.iosVppApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs index 7b389a48b9..e598c2fad9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphIosVppApp.Count; 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.DeviceAppManagement.MobileApps.GraphIosVppApp /// /// Casts the previous resource to iosVppApp. /// - public class GraphIosVppAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosVppAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphIosVppApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphIosVppAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosVppApp{?%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 GraphIosVppAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosVppApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphIosVppAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppM /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.iosVppApp in the microsoft.graph.mobileApp collection /// - public class GraphIosVppAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosVppAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphIosVppAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.cs index 991c3e76ae..de01055e10 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/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.DeviceAppManagement.MobileApps.GraphMacOSDmgApp.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}/deviceAppManagement/mobileApps/graph.macOSDmgApp/$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}/deviceAppManagement/mobileApps/graph.macOSDmgApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs index 1f187edc70..765ce31335 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphMacOSDmgApp.Count; 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.DeviceAppManagement.MobileApps.GraphMacOSDmgApp /// /// Casts the previous resource to macOSDmgApp. /// - public class GraphMacOSDmgAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMacOSDmgAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphMacOSDmgApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphMacOSDmgAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.macOSDmgApp{?%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 GraphMacOSDmgAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.macOSDmgApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphMacOSDmgAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.macOSDmgApp in the microsoft.graph.mobileApp collection /// - public class GraphMacOSDmgAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMacOSDmgAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphMacOSDmgAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.cs index dbc66e34d4..6b18450943 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/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.DeviceAppManagement.MobileApps.GraphMacOSLobApp.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}/deviceAppManagement/mobileApps/graph.macOSLobApp/$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}/deviceAppManagement/mobileApps/graph.macOSLobApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs index 8529a4c2c2..6900e30f4c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphMacOSLobApp.Count; 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.DeviceAppManagement.MobileApps.GraphMacOSLobApp /// /// Casts the previous resource to macOSLobApp. /// - public class GraphMacOSLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMacOSLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphMacOSLobApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphMacOSLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.macOSLobApp{?%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 GraphMacOSLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.macOSLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphMacOSLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.macOSLobApp in the microsoft.graph.mobileApp collection /// - public class GraphMacOSLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMacOSLobAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphMacOSLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.cs index 9626d1081f..39c076df49 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/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.DeviceAppManagement.MobileApps.GraphManagedAndroidLobApp.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}/deviceAppManagement/mobileApps/graph.managedAndroidLobApp/$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}/deviceAppManagement/mobileApps/graph.managedAndroidLobApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs index d481041dc2..2b729f1149 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphManagedAndroidLobApp.Count; 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.DeviceAppManagement.MobileApps.GraphManagedAndroidLobApp /// /// Casts the previous resource to managedAndroidLobApp. /// - public class GraphManagedAndroidLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedAndroidLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphManagedAndroidLobApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphManagedAndroidLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedAndroidLobApp{?%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 GraphManagedAndroidLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedAndroidLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphManagedAndroidLobAppRequestBuilder(string rawUrl) : base("{+baseurl} /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.managedAndroidLobApp in the microsoft.graph.mobileApp collection /// - public class GraphManagedAndroidLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedAndroidLobAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphManagedAndroidLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.cs index 777d718322..cf6a6dd000 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/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.DeviceAppManagement.MobileApps.GraphManagedIOSLobApp.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}/deviceAppManagement/mobileApps/graph.managedIOSLobApp/$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}/deviceAppManagement/mobileApps/graph.managedIOSLobApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs index 1ce50fbc8a..da151866b6 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphManagedIOSLobApp.Count; 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.DeviceAppManagement.MobileApps.GraphManagedIOSLobApp /// /// Casts the previous resource to managedIOSLobApp. /// - public class GraphManagedIOSLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedIOSLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphManagedIOSLobApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphManagedIOSLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedIOSLobApp{?%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 GraphManagedIOSLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedIOSLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphManagedIOSLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.managedIOSLobApp in the microsoft.graph.mobileApp collection /// - public class GraphManagedIOSLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedIOSLobAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphManagedIOSLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/Count/CountRequestBuilder.cs index 98acae96da..ea26668609 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/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.DeviceAppManagement.MobileApps.GraphManagedMobileLobApp.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}/deviceAppManagement/mobileApps/graph.managedMobileLobApp/$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}/deviceAppManagement/mobileApps/graph.managedMobileLobApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs index c201e6ea82..503b88de8c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphManagedMobileLobApp.Count; 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.DeviceAppManagement.MobileApps.GraphManagedMobileLobApp /// /// Casts the previous resource to managedMobileLobApp. /// - public class GraphManagedMobileLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedMobileLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphManagedMobileLobApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphManagedMobileLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedMobileLobApp{?%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 GraphManagedMobileLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedMobileLobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphManagedMobileLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.managedMobileLobApp in the microsoft.graph.mobileApp collection /// - public class GraphManagedMobileLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedMobileLobAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphManagedMobileLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.cs index 958af3912b..6f9e073272 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/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.DeviceAppManagement.MobileApps.GraphMicrosoftStoreForBusinessAp /// /// 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}/deviceAppManagement/mobileApps/graph.microsoftStoreForBusinessApp/$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}/deviceAppManagement/mobileApps/graph.microsoftStoreForBusinessApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs index 0a50ada0e0..2f67b76c20 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphMicrosoftStoreForBusinessApp.Count; 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.DeviceAppManagement.MobileApps.GraphMicrosoftStoreForBusinessAp /// /// Casts the previous resource to microsoftStoreForBusinessApp. /// - public class GraphMicrosoftStoreForBusinessAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMicrosoftStoreForBusinessAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphMicrosoftStoreForBusinessApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphMicrosoftStoreForBusinessAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.microsoftStoreForBusinessApp{?%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 GraphMicrosoftStoreForBusinessAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.microsoftStoreForBusinessApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphMicrosoftStoreForBusinessAppRequestBuilder(string rawUrl) : base("{+ /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.microsoftStoreForBusinessApp in the microsoft.graph.mobileApp collection /// - public class GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.cs index c5d3047781..1d7e3839a8 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/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.DeviceAppManagement.MobileApps.GraphWin32LobApp.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}/deviceAppManagement/mobileApps/graph.win32LobApp/$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}/deviceAppManagement/mobileApps/graph.win32LobApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs index 7d1f68d8e0..a90d62d6e6 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphWin32LobApp.Count; 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.DeviceAppManagement.MobileApps.GraphWin32LobApp /// /// Casts the previous resource to win32LobApp. /// - public class GraphWin32LobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWin32LobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphWin32LobApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphWin32LobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.win32LobApp{?%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 GraphWin32LobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.win32LobApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphWin32LobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.win32LobApp in the microsoft.graph.mobileApp collection /// - public class GraphWin32LobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWin32LobAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphWin32LobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.cs index 0fd2de6e5e..6ce1dcb49c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/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.DeviceAppManagement.MobileApps.GraphWindowsAppX.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}/deviceAppManagement/mobileApps/graph.windowsAppX/$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}/deviceAppManagement/mobileApps/graph.windowsAppX/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs index 6e35e5095e..75285f29c7 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsAppX.Count; 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.DeviceAppManagement.MobileApps.GraphWindowsAppX /// /// Casts the previous resource to windowsAppX. /// - public class GraphWindowsAppXRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsAppXRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphWindowsAppX.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphWindowsAppXRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsAppX{?%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 GraphWindowsAppXRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsAppX{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphWindowsAppXRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.windowsAppX in the microsoft.graph.mobileApp collection /// - public class GraphWindowsAppXRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsAppXRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphWindowsAppXRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.cs index c882cd0833..83601e3cad 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/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.DeviceAppManagement.MobileApps.GraphWindowsMobileMSI.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}/deviceAppManagement/mobileApps/graph.windowsMobileMSI/$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}/deviceAppManagement/mobileApps/graph.windowsMobileMSI/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs index 4130526774..458c856b16 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsMobileMSI.Count; 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.DeviceAppManagement.MobileApps.GraphWindowsMobileMSI /// /// Casts the previous resource to windowsMobileMSI. /// - public class GraphWindowsMobileMSIRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsMobileMSIRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphWindowsMobileMSI.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphWindowsMobileMSIRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsMobileMSI{?%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 GraphWindowsMobileMSIRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsMobileMSI{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphWindowsMobileMSIRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.windowsMobileMSI in the microsoft.graph.mobileApp collection /// - public class GraphWindowsMobileMSIRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsMobileMSIRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphWindowsMobileMSIRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.cs index 6368e23ab4..8fad839780 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/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.DeviceAppManagement.MobileApps.GraphWindowsUniversalAppX.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}/deviceAppManagement/mobileApps/graph.windowsUniversalAppX/$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}/deviceAppManagement/mobileApps/graph.windowsUniversalAppX/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs index f080917a39..74f94d4825 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsUniversalAppX.Count; 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.DeviceAppManagement.MobileApps.GraphWindowsUniversalAppX /// /// Casts the previous resource to windowsUniversalAppX. /// - public class GraphWindowsUniversalAppXRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsUniversalAppXRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphWindowsUniversalAppX.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphWindowsUniversalAppXRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsUniversalAppX{?%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 GraphWindowsUniversalAppXRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsUniversalAppX{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphWindowsUniversalAppXRequestBuilder(string rawUrl) : base("{+baseurl} /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.windowsUniversalAppX in the microsoft.graph.mobileApp collection /// - public class GraphWindowsUniversalAppXRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsUniversalAppXRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphWindowsUniversalAppXRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.cs index fcc6e79fc5..a2523cdecf 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/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.DeviceAppManagement.MobileApps.GraphWindowsWebApp.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}/deviceAppManagement/mobileApps/graph.windowsWebApp/$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}/deviceAppManagement/mobileApps/graph.windowsWebApp/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs index 0a51c73440..4f4f91a213 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsWebApp.Count; 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.DeviceAppManagement.MobileApps.GraphWindowsWebApp /// /// Casts the previous resource to windowsWebApp. /// - public class GraphWindowsWebAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsWebAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceAppManagement.MobileApps.GraphWindowsWebApp.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphWindowsWebAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsWebApp{?%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 GraphWindowsWebAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsWebApp{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphWindowsWebAppRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.windowsWebApp in the microsoft.graph.mobileApp collection /// - public class GraphWindowsWebAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsWebAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphWindowsWebAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/Assign/AssignPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/Assign/AssignPostRequestBody.cs index 7185d7c63b..f5dbc150e6 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/Assign/AssignPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/Assign/AssignPostRequestBody.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.DeviceAppManagement.MobileApps.Item.Assign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AssignPostRequestBody : IAdditionalDataHolder, IParsable /// The mobileAppAssignments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? MobileAppAssignments { get; set; } + public List? MobileAppAssignments { get; set; } #nullable restore #else - public List MobileAppAssignments { get; set; } + public List MobileAppAssignments { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignPostRequestBody() { @@ -31,12 +33,12 @@ public AssignPostRequestBody() /// /// 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 AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.Assign.AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.Assign.AssignPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "mobileAppAssignments", n => { MobileAppAssignments = n.GetCollectionOfObjectValues(MobileAppAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "mobileAppAssignments", n => { MobileAppAssignments = n.GetCollectionOfObjectValues(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("mobileAppAssignments", MobileAppAssignments); + writer.WriteCollectionOfObjectValues("mobileAppAssignments", MobileAppAssignments); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.cs index b821f3edad..3cffbf56c9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/Assign/AssignRequestBuilder.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.DeviceAppManagement.MobileApps.Item.Assign /// /// Provides operations to call the assign method. /// - public class AssignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action assign @@ -42,8 +45,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(AssignPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.Assign.AssignPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -62,14 +65,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 AssignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assign", 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 AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assign", rawUrl) @@ -83,11 +86,11 @@ public AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(AssignPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.Assign.AssignPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.Assign.AssignPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -98,3 +101,4 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.cs index b0568a8765..abf95b12e6 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.Assignments.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.DeviceAppManagement.MobileApps.Item.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// List properties and relationships of the mobileAppAssignment objects. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/Assignments/Count/CountRequestBuilder.cs index 614642ab0b..f5b30eb4a8 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/Assignments/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.DeviceAppManagement.MobileApps.Item.Assignments.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index c1115f6aa9..ae2b01d80e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.Assignments.Item /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a mobileAppAssignment. @@ -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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.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 MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/assignments/{mobileAppAssignment%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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// Read properties and relationships of the mobileAppAssignment object. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.cs index d57da1c515..28e2c0c23c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.Categories.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.DeviceAppManagement.MobileApps.Item.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/Categories/Count/CountRequestBuilder.cs index 789d5f4f10..eaa4ca253c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/Categories/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.DeviceAppManagement.MobileApps.Item.Categories.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 0e5cb143a6..fc4d9f0672 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.Categories.Item /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs index d9b54488aa..bf001bad88 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignme /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.cs index 10eb75fe5a..6a67660e82 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignme /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 60a80818c6..6665effc72 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignme /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.cs index 5c65d4fadb..c16a9ee99b 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categori /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.cs index bd43084cbd..9d4b43f272 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categori /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 4544e4f7fa..269d76507c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categori /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index ab5a959e42..8b3f321def 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentV /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class ContentVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.MobileAppContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContainedAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilesNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ContentVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions{?%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 ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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); @@ -250,11 +253,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action /// /// The list of content versions for this app. /// - public class ContentVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ContentVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs index e51ee78f6a..c8e8f9128a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentV /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 19ebb8746f..e055363ab1 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentV /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class ContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -30,7 +33,7 @@ public class ContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%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 ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class ContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index c36cdf37c7..e2d3f90eb3 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentV /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index a46ef1557f..f6bfa37241 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentV /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property containedApps for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index 85d6793113..dae34c4ee7 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentV /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index 9475036134..ebb9f12f07 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentV /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.MobileAppContentFileItemRequestBuilder(PathParameters); commands.Add(builder.BuildCommitNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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); @@ -262,11 +265,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(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac /// /// The list of files for this app content version. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index b2011241f4..bc7440b40e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.Commit { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CommitPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CommitPostRequestBody : IAdditionalDataHolder, IParsable /// The fileEncryptionInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } #nullable restore #else - public ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitPostRequestBody() { @@ -31,12 +33,12 @@ public CommitPostRequestBody() /// /// 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 CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(global::ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 70be45c19c..b30ad9317a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentV /// /// Provides operations to call the commit method. /// - public class CommitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommitRequestBuilder : BaseCliRequestBuilder { /// /// Commits a file of a given app. @@ -52,8 +55,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(CommitPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CommitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", 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 CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) @@ -95,11 +98,11 @@ public CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(CommitPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index 8747e29060..797aeb33ce 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.Commit; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.RenewUpload; 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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentV /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the commit method. @@ -31,7 +34,7 @@ public Command BuildCommitNavCommand() { var command = new Command("commit"); command.Description = "Provides operations to call the commit method."; - var builder = new CommitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,8 +194,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(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildRenewUploadNavCommand() { var command = new Command("renew-upload"); command.Description = "Provides operations to call the renewUpload method."; - var builder = new RenewUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.Item.RenewUpload.RenewUploadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildRenewUploadNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%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 MobileAppContentFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A /// /// The list of files for this app content version. /// - public class MobileAppContentFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class MobileAppContentFileItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index b7ece13462..6655713b58 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentV /// /// Provides operations to call the renewUpload method. /// - public class RenewUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewUploadRequestBuilder : BaseCliRequestBuilder { /// /// Renews the SAS URI for an application file upload. @@ -61,14 +64,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 RenewUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", 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 RenewUploadRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files; 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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentV /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Command BuildContainedAppsNavCommand() { var command = new Command("contained-apps"); command.Description = "Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity."; - var builder = new ContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.ContainedApps.ContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -211,8 +214,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 MobileAppContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%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 MobileAppContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio /// /// The list of content versions for this app. /// - public class MobileAppContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class MobileAppContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs index 5e943c9c90..ef7d57ae6d 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions; 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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp /// /// Casts the previous resource to androidLobApp. /// - public class GraphAndroidLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAndroidLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildContentVersionsNavCommand() { var command = new Command("content-versions"); command.Description = "Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity."; - var builder = new ContentVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.ContentVersions.ContentVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -157,14 +160,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 GraphAndroidLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp{?%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 GraphAndroidLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp{?%24expand,%24select}", rawUrl) @@ -177,11 +180,11 @@ public GraphAndroidLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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); @@ -192,7 +195,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidLobApp /// - public class GraphAndroidLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAndroidLobAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,3 +221,4 @@ public class GraphAndroidLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.cs index 9cca4d45b9..a864f7150c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assign /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.cs index db264eab1e..54180ffdad 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assign /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 0b73b8e639..d20f274c1a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assign /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.cs index 049bbfcf4b..14d840261b 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Catego /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.cs index 8e3e9f6655..304023bb98 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Catego /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 4ea6f5a507..b9ce1e5a12 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Catego /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs index 0520d5b9e3..96e813c540 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories; 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.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp /// /// Casts the previous resource to androidStoreApp. /// - public class GraphAndroidStoreAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAndroidStoreAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -31,7 +34,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -58,7 +61,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,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 GraphAndroidStoreAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp{?%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 GraphAndroidStoreAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public GraphAndroidStoreAppRequestBuilder(string rawUrl) : base("{+baseurl}/devi /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidStoreApp /// - public class GraphAndroidStoreAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAndroidStoreAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class GraphAndroidStoreAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.cs index 8288ef2a5c..3034c14c02 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.cs index 0d3ed8bf01..26f53512e9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments. /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index b1e4f880fc..2e4f5178c0 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments. /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.cs index 2fb5d91c80..65df71d177 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.cs index 7205f1ae04..56cfacf221 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories.C /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index d0eff7cbf9..a330a6c698 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories.I /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index 6f5b0a5abf..17b0d59416 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersi /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class ContentVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.MobileAppContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContainedAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilesNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ContentVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions{?%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 ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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); @@ -250,11 +253,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action /// /// The list of content versions for this app. /// - public class ContentVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ContentVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.cs index 46d82119ba..15154aad3f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersi /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 4987e7c145..661402a66a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersi /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class ContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -30,7 +33,7 @@ public class ContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%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 ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class ContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 89051784ac..d4c191722d 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersi /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 70ce1981a9..3080bfd95b 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersi /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property containedApps for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index a4d1089ce0..b4bde3e615 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersi /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index a30e447f85..a9910a0f87 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersi /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.MobileAppContentFileItemRequestBuilder(PathParameters); commands.Add(builder.BuildCommitNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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); @@ -262,11 +265,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(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac /// /// The list of files for this app content version. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index d7a0dca4a2..5d5195e31c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.Commit { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CommitPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CommitPostRequestBody : IAdditionalDataHolder, IParsable /// The fileEncryptionInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } #nullable restore #else - public ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitPostRequestBody() { @@ -31,12 +33,12 @@ public CommitPostRequestBody() /// /// 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 CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(global::ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index c8befe1fe5..e8c8d40057 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersi /// /// Provides operations to call the commit method. /// - public class CommitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommitRequestBuilder : BaseCliRequestBuilder { /// /// Commits a file of a given app. @@ -52,8 +55,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(CommitPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CommitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", 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 CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) @@ -95,11 +98,11 @@ public CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(CommitPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index 8cb3924a8d..ad6ee2b49f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.Commit; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.RenewUpload; 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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersi /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the commit method. @@ -31,7 +34,7 @@ public Command BuildCommitNavCommand() { var command = new Command("commit"); command.Description = "Provides operations to call the commit method."; - var builder = new CommitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.Commit.CommitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,8 +194,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(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildRenewUploadNavCommand() { var command = new Command("renew-upload"); command.Description = "Provides operations to call the renewUpload method."; - var builder = new RenewUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.Item.RenewUpload.RenewUploadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildRenewUploadNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%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 MobileAppContentFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A /// /// The list of files for this app content version. /// - public class MobileAppContentFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class MobileAppContentFileItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 35ad66e95b..c7d13f44e1 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersi /// /// Provides operations to call the renewUpload method. /// - public class RenewUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewUploadRequestBuilder : BaseCliRequestBuilder { /// /// Renews the SAS URI for an application file upload. @@ -61,14 +64,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 RenewUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", 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 RenewUploadRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files; 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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersi /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Command BuildContainedAppsNavCommand() { var command = new Command("contained-apps"); command.Description = "Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity."; - var builder = new ContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.ContainedApps.ContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -211,8 +214,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 MobileAppContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%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 MobileAppContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio /// /// The list of content versions for this app. /// - public class MobileAppContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class MobileAppContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs index 25abd793f0..bdfb33d7df 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions; 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.DeviceAppManagement.MobileApps.Item.GraphIosLobApp /// /// Casts the previous resource to iosLobApp. /// - public class GraphIosLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildContentVersionsNavCommand() { var command = new Command("content-versions"); command.Description = "Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity."; - var builder = new ContentVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.ContentVersions.ContentVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -157,14 +160,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 GraphIosLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp{?%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 GraphIosLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp{?%24expand,%24select}", rawUrl) @@ -177,11 +180,11 @@ public GraphIosLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppM /// 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); @@ -192,7 +195,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosLobApp /// - public class GraphIosLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosLobAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,3 +221,4 @@ public class GraphIosLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.cs index 76771c2cbf..5d19075708 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.cs index 506645b0e3..94881aad95 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignment /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 6e8b4f406a..4b05bc0097 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.cs index 222ef53ef4..cc3381cc40 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.cs index a8882ced6d..956ffe5435 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 12bd7c51a3..a781363383 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs index 8129428a69..fd4b49d930 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories; 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.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp /// /// Casts the previous resource to iosStoreApp. /// - public class GraphIosStoreAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosStoreAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -31,7 +34,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -58,7 +61,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,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 GraphIosStoreAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp{?%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 GraphIosStoreAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public GraphIosStoreAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosStoreApp /// - public class GraphIosStoreAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosStoreAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class GraphIosStoreAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.cs index 3c44e074d5..542708f8aa 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.cs index 9babca8862..55ae2fbd18 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments. /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 917da5330a..b5cb56f3e9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments. /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.cs index db013eaaf4..db1c7e08f1 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.cs index c4ea8e9346..02f3418d1d 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories.C /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 10e00adf76..008bbf1a6f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories.I /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs index 54b2cbc45b..8d52ff43ce 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories; 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.DeviceAppManagement.MobileApps.Item.GraphIosVppApp /// /// Casts the previous resource to iosVppApp. /// - public class GraphIosVppAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosVppAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -31,7 +34,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -58,7 +61,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,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 GraphIosVppAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp{?%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 GraphIosVppAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public GraphIosVppAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppM /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosVppApp /// - public class GraphIosVppAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphIosVppAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class GraphIosVppAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.cs index 451eb302d8..e72d17eca2 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.cs index 2a2b771c45..c8e9624671 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignment /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 7fc6ecc6ad..23b5a56169 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.cs index 9e0471361a..5474c51e8a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.cs index 3636aba2ca..5ce7a740d3 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index b13fd3d1a0..f604e091b1 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.cs index db04d8f272..31d5f6f70e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVer /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class ContentVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.MobileAppContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContainedAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilesNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ContentVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions{?%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 ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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); @@ -250,11 +253,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action /// /// The list of content versions for this app. /// - public class ContentVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ContentVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.cs index 56f7b8006c..a0b82d896d 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVer /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index b03d68ce0f..5c440d93fc 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVer /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class ContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -30,7 +33,7 @@ public class ContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%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 ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class ContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 33a735e3ec..fd843eea25 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVer /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 848e927710..5ec1f10559 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVer /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property containedApps for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index cd848a9637..2e5d189845 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVer /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index 9485245846..02c5c12d1e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVer /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.MobileAppContentFileItemRequestBuilder(PathParameters); commands.Add(builder.BuildCommitNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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); @@ -262,11 +265,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(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac /// /// The list of files for this app content version. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index ca74eb9aaf..2996a458cd 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.Commit { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CommitPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CommitPostRequestBody : IAdditionalDataHolder, IParsable /// The fileEncryptionInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } #nullable restore #else - public ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitPostRequestBody() { @@ -31,12 +33,12 @@ public CommitPostRequestBody() /// /// 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 CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(global::ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index a27522621a..68fc2cf039 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVer /// /// Provides operations to call the commit method. /// - public class CommitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommitRequestBuilder : BaseCliRequestBuilder { /// /// Commits a file of a given app. @@ -52,8 +55,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(CommitPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CommitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", 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 CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) @@ -95,11 +98,11 @@ public CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(CommitPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index 4f40b05315..2e79d05c54 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.Commit; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.RenewUpload; 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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVer /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the commit method. @@ -31,7 +34,7 @@ public Command BuildCommitNavCommand() { var command = new Command("commit"); command.Description = "Provides operations to call the commit method."; - var builder = new CommitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.Commit.CommitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,8 +194,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(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildRenewUploadNavCommand() { var command = new Command("renew-upload"); command.Description = "Provides operations to call the renewUpload method."; - var builder = new RenewUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.Item.RenewUpload.RenewUploadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildRenewUploadNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%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 MobileAppContentFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A /// /// The list of files for this app content version. /// - public class MobileAppContentFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class MobileAppContentFileItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 569c9da08e..5984a383aa 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVer /// /// Provides operations to call the renewUpload method. /// - public class RenewUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewUploadRequestBuilder : BaseCliRequestBuilder { /// /// Renews the SAS URI for an application file upload. @@ -61,14 +64,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 RenewUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", 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 RenewUploadRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files; 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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVer /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Command BuildContainedAppsNavCommand() { var command = new Command("contained-apps"); command.Description = "Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity."; - var builder = new ContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.ContainedApps.ContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -211,8 +214,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 MobileAppContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%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 MobileAppContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio /// /// The list of content versions for this app. /// - public class MobileAppContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class MobileAppContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs index 51f6dd9945..f0f1df682b 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions; 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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp /// /// Casts the previous resource to macOSDmgApp. /// - public class GraphMacOSDmgAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMacOSDmgAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildContentVersionsNavCommand() { var command = new Command("content-versions"); command.Description = "Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity."; - var builder = new ContentVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.ContentVersions.ContentVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -157,14 +160,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 GraphMacOSDmgAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp{?%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 GraphMacOSDmgAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp{?%24expand,%24select}", rawUrl) @@ -177,11 +180,11 @@ public GraphMacOSDmgAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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); @@ -192,7 +195,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSDmgApp /// - public class GraphMacOSDmgAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMacOSDmgAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,3 +221,4 @@ public class GraphMacOSDmgAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.cs index 939ec0d972..fee6972f72 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.cs index 3e6b356290..49cdcbcea2 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignment /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 7beb7b88c5..3cd99f8ae9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.cs index 4f6db17080..c610eecd33 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.cs index e4d2936378..d0938e10a7 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 3f21a19b37..8c768161f9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index 475b24c46e..954d668b75 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVer /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class ContentVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.MobileAppContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContainedAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilesNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ContentVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions{?%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 ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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); @@ -250,11 +253,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action /// /// The list of content versions for this app. /// - public class ContentVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ContentVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.cs index d336261470..bf28fe94bd 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVer /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 2af0df6b96..3e41901e0f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVer /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class ContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -30,7 +33,7 @@ public class ContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%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 ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class ContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 6ee492747b..24bae587d9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVer /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 404d8579f8..4946265786 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVer /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property containedApps for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index 2a2d811817..d99ba258ce 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVer /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index a359804f9f..8ef00e7496 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVer /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.MobileAppContentFileItemRequestBuilder(PathParameters); commands.Add(builder.BuildCommitNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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); @@ -262,11 +265,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(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac /// /// The list of files for this app content version. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index de7d0a04f4..dc4bf07eb7 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.Commit { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CommitPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CommitPostRequestBody : IAdditionalDataHolder, IParsable /// The fileEncryptionInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } #nullable restore #else - public ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitPostRequestBody() { @@ -31,12 +33,12 @@ public CommitPostRequestBody() /// /// 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 CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(global::ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index d41690e841..0c28cd8860 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVer /// /// Provides operations to call the commit method. /// - public class CommitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommitRequestBuilder : BaseCliRequestBuilder { /// /// Commits a file of a given app. @@ -52,8 +55,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(CommitPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CommitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", 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 CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) @@ -95,11 +98,11 @@ public CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(CommitPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index d3082ef697..4ba3cd33c8 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.Commit; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.RenewUpload; 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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVer /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the commit method. @@ -31,7 +34,7 @@ public Command BuildCommitNavCommand() { var command = new Command("commit"); command.Description = "Provides operations to call the commit method."; - var builder = new CommitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,8 +194,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(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildRenewUploadNavCommand() { var command = new Command("renew-upload"); command.Description = "Provides operations to call the renewUpload method."; - var builder = new RenewUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.Item.RenewUpload.RenewUploadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildRenewUploadNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%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 MobileAppContentFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A /// /// The list of files for this app content version. /// - public class MobileAppContentFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class MobileAppContentFileItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 7c41915a25..b4df05c796 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVer /// /// Provides operations to call the renewUpload method. /// - public class RenewUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewUploadRequestBuilder : BaseCliRequestBuilder { /// /// Renews the SAS URI for an application file upload. @@ -61,14 +64,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 RenewUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", 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 RenewUploadRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files; 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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVer /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Command BuildContainedAppsNavCommand() { var command = new Command("contained-apps"); command.Description = "Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity."; - var builder = new ContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.ContainedApps.ContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -211,8 +214,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 MobileAppContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%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 MobileAppContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio /// /// The list of content versions for this app. /// - public class MobileAppContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class MobileAppContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs index dc7bc6ea17..876e07dbf0 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions; 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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp /// /// Casts the previous resource to macOSLobApp. /// - public class GraphMacOSLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMacOSLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildContentVersionsNavCommand() { var command = new Command("content-versions"); command.Description = "Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity."; - var builder = new ContentVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.ContentVersions.ContentVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -157,14 +160,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 GraphMacOSLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp{?%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 GraphMacOSLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp{?%24expand,%24select}", rawUrl) @@ -177,11 +180,11 @@ public GraphMacOSLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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); @@ -192,7 +195,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSLobApp /// - public class GraphMacOSLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMacOSLobAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,3 +221,4 @@ public class GraphMacOSLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs index a17ad21a3a..14f343c76f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.A /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.cs index f1ffd183c6..beed28535f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.A /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 22aac9aad6..fd2647ea65 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.A /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.cs index f97d6946f7..d958f637cf 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.cs index 9e93aa5b83..1ccd51f0f7 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index d35a57d248..76bc03e304 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index f83c89a22f..26e638216b 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. /// - public class ContentVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.MobileAppContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContainedAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilesNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ContentVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions{?%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 ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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); @@ -250,11 +253,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action /// /// The list of content versions for this app. /// - public class ContentVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ContentVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs index 1e70aa0584..59726041c1 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index e4c6caea3d..f84fcc1bb4 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class ContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -30,7 +33,7 @@ public class ContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%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 ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class ContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 4ee2b095c6..04885effb3 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index f708e6ede4..ad080941c7 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property containedApps for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index 990dd99206..deaeaec7e9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index 8304591f79..3055e90c46 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.MobileAppContentFileItemRequestBuilder(PathParameters); commands.Add(builder.BuildCommitNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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); @@ -262,11 +265,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(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac /// /// The list of files for this app content version. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 5fed8492e4..0a94daab3a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.Commit { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CommitPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CommitPostRequestBody : IAdditionalDataHolder, IParsable /// The fileEncryptionInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } #nullable restore #else - public ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitPostRequestBody() { @@ -31,12 +33,12 @@ public CommitPostRequestBody() /// /// 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 CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(global::ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index e2433c7455..809d764bfd 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to call the commit method. /// - public class CommitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommitRequestBuilder : BaseCliRequestBuilder { /// /// Commits a file of a given app. @@ -52,8 +55,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(CommitPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CommitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", 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 CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) @@ -95,11 +98,11 @@ public CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(CommitPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index eaed8b7cdb..5cbcb0cd10 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.Commit; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.RenewUpload; 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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the commit method. @@ -31,7 +34,7 @@ public Command BuildCommitNavCommand() { var command = new Command("commit"); command.Description = "Provides operations to call the commit method."; - var builder = new CommitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.Commit.CommitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,8 +194,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(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildRenewUploadNavCommand() { var command = new Command("renew-upload"); command.Description = "Provides operations to call the renewUpload method."; - var builder = new RenewUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.Item.RenewUpload.RenewUploadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildRenewUploadNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%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 MobileAppContentFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A /// /// The list of files for this app content version. /// - public class MobileAppContentFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class MobileAppContentFileItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 16801cde3b..cdf67d61da 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to call the renewUpload method. /// - public class RenewUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewUploadRequestBuilder : BaseCliRequestBuilder { /// /// Renews the SAS URI for an application file upload. @@ -61,14 +64,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 RenewUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", 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 RenewUploadRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files; 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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.C /// /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. /// - public class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Command BuildContainedAppsNavCommand() { var command = new Command("contained-apps"); command.Description = "Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity."; - var builder = new ContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.ContainedApps.ContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -211,8 +214,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 MobileAppContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%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 MobileAppContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio /// /// The list of content versions for this app. /// - public class MobileAppContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class MobileAppContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs index 1d3b50cc4b..b7974b0c5a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions; 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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp /// /// Casts the previous resource to managedAndroidLobApp. /// - public class GraphManagedAndroidLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedAndroidLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildContentVersionsNavCommand() { var command = new Command("content-versions"); command.Description = "Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity."; - var builder = new ContentVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.ContentVersions.ContentVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -157,14 +160,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 GraphManagedAndroidLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp{?%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 GraphManagedAndroidLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp{?%24expand,%24select}", rawUrl) @@ -177,11 +180,11 @@ public GraphManagedAndroidLobAppRequestBuilder(string rawUrl) : base("{+baseurl} /// 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); @@ -192,7 +195,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedAndroidLobApp /// - public class GraphManagedAndroidLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedAndroidLobAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,3 +221,4 @@ public class GraphManagedAndroidLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.cs index fdcef6c74b..91f87fccf6 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assig /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.cs index 566dfb2934..fcd7c47f1f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assig /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 454f8de4ab..ea152f18a8 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assig /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.cs index 9b032f6a0d..0f4c3cf1ec 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categ /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.cs index 7482b7e21e..2706fbeda7 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categ /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 818f6b16b5..34cf79b2ae 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categ /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index a3c85be26f..012010a9ff 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Conte /// /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. /// - public class ContentVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.MobileAppContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContainedAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilesNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ContentVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions{?%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 ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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); @@ -250,11 +253,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action /// /// The list of content versions for this app. /// - public class ContentVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ContentVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.cs index 700ce90dfd..eb5d0a3b06 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Conte /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 238f26f02e..88f8e785ee 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Conte /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class ContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -30,7 +33,7 @@ public class ContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%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 ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class ContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 411f67b846..14e4ee6b67 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Conte /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 0263a6b2cb..bf72b4bf19 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Conte /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property containedApps for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index bb5a28af7b..02a777ea3e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Conte /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index f0e9f14485..fff83583ab 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Conte /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.MobileAppContentFileItemRequestBuilder(PathParameters); commands.Add(builder.BuildCommitNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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); @@ -262,11 +265,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(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac /// /// The list of files for this app content version. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index d2c6995d8c..cdf1ce4c05 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.Commit { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CommitPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CommitPostRequestBody : IAdditionalDataHolder, IParsable /// The fileEncryptionInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } #nullable restore #else - public ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitPostRequestBody() { @@ -31,12 +33,12 @@ public CommitPostRequestBody() /// /// 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 CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(global::ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 8266048049..9b72bef83a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Conte /// /// Provides operations to call the commit method. /// - public class CommitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommitRequestBuilder : BaseCliRequestBuilder { /// /// Commits a file of a given app. @@ -52,8 +55,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(CommitPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CommitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", 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 CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) @@ -95,11 +98,11 @@ public CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(CommitPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index ef966b847b..5a9346431e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.Commit; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.RenewUpload; 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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Conte /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the commit method. @@ -31,7 +34,7 @@ public Command BuildCommitNavCommand() { var command = new Command("commit"); command.Description = "Provides operations to call the commit method."; - var builder = new CommitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.Commit.CommitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,8 +194,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(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildRenewUploadNavCommand() { var command = new Command("renew-upload"); command.Description = "Provides operations to call the renewUpload method."; - var builder = new RenewUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.Item.RenewUpload.RenewUploadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildRenewUploadNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%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 MobileAppContentFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A /// /// The list of files for this app content version. /// - public class MobileAppContentFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class MobileAppContentFileItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 99f5bc74ef..d49dcfbfb8 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Conte /// /// Provides operations to call the renewUpload method. /// - public class RenewUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewUploadRequestBuilder : BaseCliRequestBuilder { /// /// Renews the SAS URI for an application file upload. @@ -61,14 +64,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 RenewUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", 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 RenewUploadRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files; 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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Conte /// /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. /// - public class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Command BuildContainedAppsNavCommand() { var command = new Command("contained-apps"); command.Description = "Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity."; - var builder = new ContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.ContainedApps.ContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -211,8 +214,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 MobileAppContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%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 MobileAppContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio /// /// The list of content versions for this app. /// - public class MobileAppContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class MobileAppContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs index 19c5c3eb27..c578124fec 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions; 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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp /// /// Casts the previous resource to managedIOSLobApp. /// - public class GraphManagedIOSLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedIOSLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildContentVersionsNavCommand() { var command = new Command("content-versions"); command.Description = "Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity."; - var builder = new ContentVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.ContentVersions.ContentVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -157,14 +160,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 GraphManagedIOSLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp{?%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 GraphManagedIOSLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp{?%24expand,%24select}", rawUrl) @@ -177,11 +180,11 @@ public GraphManagedIOSLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -192,7 +195,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedIOSLobApp /// - public class GraphManagedIOSLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedIOSLobAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,3 +221,4 @@ public class GraphManagedIOSLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.cs index f6b2bf9d69..f4e9b8fc4a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.As /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.cs index 52a2427871..8c5b3f2ae9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.As /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 255fb4a8de..1bf36713e6 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.As /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.cs index 5246be9f9e..1f22c52148 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Ca /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.cs index eb1db2c32c..9a9c79ff04 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Ca /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 1ac1c1f681..2dba8c121f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Ca /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.cs index bbe54bdb8d..88288a2944 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Co /// /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. /// - public class ContentVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.MobileAppContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContainedAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilesNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ContentVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions{?%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 ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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); @@ -250,11 +253,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action /// /// The list of content versions for this app. /// - public class ContentVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ContentVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.cs index a9a6b78ecc..e8685b63c1 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 27fa5a889a..d79272afe4 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Co /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class ContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -30,7 +33,7 @@ public class ContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%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 ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class ContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 8bae16b234..d72b032d81 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.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 @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 9998e92e9c..44a6f49048 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Co /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property containedApps for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index d0ec9db09b..f2db3a3663 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.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 @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index 19adce8dca..99c6e8a92a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Co /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.MobileAppContentFileItemRequestBuilder(PathParameters); commands.Add(builder.BuildCommitNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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); @@ -262,11 +265,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(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac /// /// The list of files for this app content version. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 324f941f9f..8b89bf422d 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.Commit { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CommitPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CommitPostRequestBody : IAdditionalDataHolder, IParsable /// The fileEncryptionInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } #nullable restore #else - public ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitPostRequestBody() { @@ -31,12 +33,12 @@ public CommitPostRequestBody() /// /// 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 CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(global::ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index aeb3c40efe..97803e3fda 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Co /// /// Provides operations to call the commit method. /// - public class CommitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommitRequestBuilder : BaseCliRequestBuilder { /// /// Commits a file of a given app. @@ -52,8 +55,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(CommitPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CommitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", 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 CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) @@ -95,11 +98,11 @@ public CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(CommitPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index 784a38cd55..a12e59e2fd 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.Commit; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.RenewUpload; 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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Co /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the commit method. @@ -31,7 +34,7 @@ public Command BuildCommitNavCommand() { var command = new Command("commit"); command.Description = "Provides operations to call the commit method."; - var builder = new CommitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.Commit.CommitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,8 +194,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(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildRenewUploadNavCommand() { var command = new Command("renew-upload"); command.Description = "Provides operations to call the renewUpload method."; - var builder = new RenewUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.Item.RenewUpload.RenewUploadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildRenewUploadNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%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 MobileAppContentFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A /// /// The list of files for this app content version. /// - public class MobileAppContentFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class MobileAppContentFileItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 44679112bd..7841381b76 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Co /// /// Provides operations to call the renewUpload method. /// - public class RenewUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewUploadRequestBuilder : BaseCliRequestBuilder { /// /// Renews the SAS URI for an application file upload. @@ -61,14 +64,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 RenewUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", 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 RenewUploadRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files; 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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Co /// /// Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity. /// - public class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Command BuildContainedAppsNavCommand() { var command = new Command("contained-apps"); command.Description = "Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity."; - var builder = new ContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.ContainedApps.ContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -211,8 +214,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 MobileAppContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%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 MobileAppContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio /// /// The list of content versions for this app. /// - public class MobileAppContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class MobileAppContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs index 12af5398f9..1f9700800a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedMobileLobApp/GraphManagedMobileLobAppRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions; 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.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp /// /// Casts the previous resource to managedMobileLobApp. /// - public class GraphManagedMobileLobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedMobileLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildContentVersionsNavCommand() { var command = new Command("content-versions"); command.Description = "Provides operations to manage the contentVersions property of the microsoft.graph.managedMobileLobApp entity."; - var builder = new ContentVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.ContentVersions.ContentVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -157,14 +160,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 GraphManagedMobileLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp{?%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 GraphManagedMobileLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedMobileLobApp{?%24expand,%24select}", rawUrl) @@ -177,11 +180,11 @@ public GraphManagedMobileLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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); @@ -192,7 +195,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedMobileLobApp /// - public class GraphManagedMobileLobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphManagedMobileLobAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,3 +221,4 @@ public class GraphManagedMobileLobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.cs index 11f785c63f..aedce95a4d 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusin /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.cs index 321747f671..696eb53706 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusin /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 356811a3dc..0bfd2ede0b 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusin /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.cs index cbaa947832..ba4a6c7a4a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusin /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.cs index 6413f209ed..a837573efb 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusin /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 8c2a98c3cd..d72e129aa1 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusin /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs index ac4bd8228e..4572574289 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories; 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.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusin /// /// Casts the previous resource to microsoftStoreForBusinessApp. /// - public class GraphMicrosoftStoreForBusinessAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMicrosoftStoreForBusinessAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -31,7 +34,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -58,7 +61,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,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 GraphMicrosoftStoreForBusinessAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp{?%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 GraphMicrosoftStoreForBusinessAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public GraphMicrosoftStoreForBusinessAppRequestBuilder(string rawUrl) : base("{+ /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.microsoftStoreForBusinessApp /// - public class GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.cs index 1700cf7ecc..1c29a97b21 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.cs index 43299345bf..8c71956bf0 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignment /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index c89b0f6315..5b2b83006f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.cs index d9d586f5e2..a7a9675ff4 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.cs index 1371b6efd1..f2e4d9fb67 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index c44a69a5a5..9a173ec0e0 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.cs index 8e86b9fac8..3c88f2ba6a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/ContentVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVer /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class ContentVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.MobileAppContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContainedAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilesNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ContentVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions{?%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 ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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); @@ -250,11 +253,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action /// /// The list of content versions for this app. /// - public class ContentVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ContentVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.cs index 9a83ec808a..62f092d9fc 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVer /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 29a3a5acfd..56f9f4a3e5 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVer /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class ContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -30,7 +33,7 @@ public class ContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%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 ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class ContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 1bda25b6ff..19540589ca 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVer /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index d3af319dbd..8a30de7bc1 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVer /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property containedApps for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index ad8bc26b53..ca55382f82 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVer /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs index 7279b9339b..264c9bb462 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVer /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.MobileAppContentFileItemRequestBuilder(PathParameters); commands.Add(builder.BuildCommitNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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); @@ -262,11 +265,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(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac /// /// The list of files for this app content version. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index afc2a55d3d..223aec3010 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.Commit { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CommitPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CommitPostRequestBody : IAdditionalDataHolder, IParsable /// The fileEncryptionInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } #nullable restore #else - public ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitPostRequestBody() { @@ -31,12 +33,12 @@ public CommitPostRequestBody() /// /// 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 CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(global::ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 24ae18a31a..add9e2903f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVer /// /// Provides operations to call the commit method. /// - public class CommitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommitRequestBuilder : BaseCliRequestBuilder { /// /// Commits a file of a given app. @@ -52,8 +55,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(CommitPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CommitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", 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 CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) @@ -95,11 +98,11 @@ public CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(CommitPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index 645f59ca1d..96067a11fb 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.Commit; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.RenewUpload; 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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVer /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the commit method. @@ -31,7 +34,7 @@ public Command BuildCommitNavCommand() { var command = new Command("commit"); command.Description = "Provides operations to call the commit method."; - var builder = new CommitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.Commit.CommitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,8 +194,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(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildRenewUploadNavCommand() { var command = new Command("renew-upload"); command.Description = "Provides operations to call the renewUpload method."; - var builder = new RenewUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.Item.RenewUpload.RenewUploadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildRenewUploadNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%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 MobileAppContentFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A /// /// The list of files for this app content version. /// - public class MobileAppContentFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class MobileAppContentFileItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 0a620dee50..4c7fd96363 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVer /// /// Provides operations to call the renewUpload method. /// - public class RenewUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewUploadRequestBuilder : BaseCliRequestBuilder { /// /// Renews the SAS URI for an application file upload. @@ -61,14 +64,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 RenewUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", 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 RenewUploadRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files; 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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVer /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Command BuildContainedAppsNavCommand() { var command = new Command("contained-apps"); command.Description = "Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity."; - var builder = new ContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.ContainedApps.ContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -211,8 +214,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 MobileAppContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%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 MobileAppContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio /// /// The list of content versions for this app. /// - public class MobileAppContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class MobileAppContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs index 279b5d9477..4c8aa7e736 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions; 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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp /// /// Casts the previous resource to win32LobApp. /// - public class GraphWin32LobAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWin32LobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildContentVersionsNavCommand() { var command = new Command("content-versions"); command.Description = "Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity."; - var builder = new ContentVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.ContentVersions.ContentVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -157,14 +160,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 GraphWin32LobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp{?%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 GraphWin32LobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp{?%24expand,%24select}", rawUrl) @@ -177,11 +180,11 @@ public GraphWin32LobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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); @@ -192,7 +195,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.win32LobApp /// - public class GraphWin32LobAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWin32LobAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,3 +221,4 @@ public class GraphWin32LobAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.cs index beba1ac8d5..8415d18a23 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.cs index a945acc9eb..3da2139c15 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignment /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 5348c43801..f623d4d3d2 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.cs index 1006c97fd0..a0b744166f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories.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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.cs index 13f72738ee..061daf2dd7 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index d8f764c3d9..44a661a68e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.cs index 0453d69e08..8f5f7f44e0 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/ContentVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVer /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class ContentVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.MobileAppContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContainedAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilesNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ContentVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions{?%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 ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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); @@ -250,11 +253,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action /// /// The list of content versions for this app. /// - public class ContentVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ContentVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.cs index 77356a8f76..3eb18c5f1e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVer /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 6062b0afd9..6038a934fb 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVer /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class ContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -30,7 +33,7 @@ public class ContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%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 ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class ContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 7708b763ae..90a1354c0e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVer /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 00cb4cb1ea..bcd8fb91ee 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVer /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property containedApps for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index 76fa50ff7c..7391f4db68 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVer /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs index 78a0fa6dbb..a06a186611 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVer /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.MobileAppContentFileItemRequestBuilder(PathParameters); commands.Add(builder.BuildCommitNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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); @@ -262,11 +265,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(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac /// /// The list of files for this app content version. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 315610bf66..7c36fb1591 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.Commit { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CommitPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CommitPostRequestBody : IAdditionalDataHolder, IParsable /// The fileEncryptionInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } #nullable restore #else - public ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitPostRequestBody() { @@ -31,12 +33,12 @@ public CommitPostRequestBody() /// /// 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 CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(global::ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index aa8af8bc9c..6d39e62036 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVer /// /// Provides operations to call the commit method. /// - public class CommitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommitRequestBuilder : BaseCliRequestBuilder { /// /// Commits a file of a given app. @@ -52,8 +55,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(CommitPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CommitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", 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 CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) @@ -95,11 +98,11 @@ public CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(CommitPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index bf57023b94..e23579fd7e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.Commit; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.RenewUpload; 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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVer /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the commit method. @@ -31,7 +34,7 @@ public Command BuildCommitNavCommand() { var command = new Command("commit"); command.Description = "Provides operations to call the commit method."; - var builder = new CommitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.Commit.CommitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,8 +194,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(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildRenewUploadNavCommand() { var command = new Command("renew-upload"); command.Description = "Provides operations to call the renewUpload method."; - var builder = new RenewUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.Item.RenewUpload.RenewUploadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildRenewUploadNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%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 MobileAppContentFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A /// /// The list of files for this app content version. /// - public class MobileAppContentFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class MobileAppContentFileItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 2d8c136041..6b08133a9e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVer /// /// Provides operations to call the renewUpload method. /// - public class RenewUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewUploadRequestBuilder : BaseCliRequestBuilder { /// /// Renews the SAS URI for an application file upload. @@ -61,14 +64,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 RenewUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", 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 RenewUploadRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files; 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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVer /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Command BuildContainedAppsNavCommand() { var command = new Command("contained-apps"); command.Description = "Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity."; - var builder = new ContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.ContainedApps.ContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -211,8 +214,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 MobileAppContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%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 MobileAppContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio /// /// The list of content versions for this app. /// - public class MobileAppContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class MobileAppContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs index 04ff746a86..d865a6953c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions; 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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX /// /// Casts the previous resource to windowsAppX. /// - public class GraphWindowsAppXRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsAppXRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildContentVersionsNavCommand() { var command = new Command("content-versions"); command.Description = "Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity."; - var builder = new ContentVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.ContentVersions.ContentVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -157,14 +160,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 GraphWindowsAppXRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX{?%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 GraphWindowsAppXRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX{?%24expand,%24select}", rawUrl) @@ -177,11 +180,11 @@ public GraphWindowsAppXRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAp /// 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); @@ -192,7 +195,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsAppX /// - public class GraphWindowsAppXRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsAppXRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,3 +221,4 @@ public class GraphWindowsAppXRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.cs index a3faaa49e4..eaabe2b613 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assig /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.cs index 8ba9c1527c..f7f3518ae7 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assig /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 01a6f5a3a4..4b211a3904 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assig /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.cs index cfdb26f79a..4494d1a82c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories.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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categ /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.cs index 261805c991..db79d03e7b 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categ /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 4dfb431a4c..2f1b3e367c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categ /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.cs index 82b7f70f7f..c6ed979f6f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/ContentVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Conte /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class ContentVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.MobileAppContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContainedAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilesNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ContentVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions{?%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 ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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); @@ -250,11 +253,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action /// /// The list of content versions for this app. /// - public class ContentVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ContentVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.cs index 5821912262..b86860bbda 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Conte /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index a1a7e422b9..fa3d8aa4c9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Conte /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class ContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -30,7 +33,7 @@ public class ContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps{?%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 ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class ContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 52318a8d25..58ed1832ce 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Conte /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index f9fda004a9..b0a8cd8738 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Conte /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property containedApps for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index da48918b5e..44a8edd4c5 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Conte /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.cs index 356dd988d1..9da2b29c4e 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Conte /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.MobileAppContentFileItemRequestBuilder(PathParameters); commands.Add(builder.BuildCommitNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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); @@ -262,11 +265,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(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac /// /// The list of files for this app content version. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index 6d81e65c48..725ffac584 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.Commit { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CommitPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CommitPostRequestBody : IAdditionalDataHolder, IParsable /// The fileEncryptionInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } #nullable restore #else - public ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitPostRequestBody() { @@ -31,12 +33,12 @@ public CommitPostRequestBody() /// /// 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 CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(global::ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index eeb6cc3b0d..38d7ef6c8b 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Conte /// /// Provides operations to call the commit method. /// - public class CommitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommitRequestBuilder : BaseCliRequestBuilder { /// /// Commits a file of a given app. @@ -52,8 +55,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(CommitPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CommitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", 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 CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) @@ -95,11 +98,11 @@ public CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(CommitPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index 0e94a4354d..b5a0df57da 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.Commit; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.RenewUpload; 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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Conte /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the commit method. @@ -31,7 +34,7 @@ public Command BuildCommitNavCommand() { var command = new Command("commit"); command.Description = "Provides operations to call the commit method."; - var builder = new CommitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.Commit.CommitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,8 +194,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(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildRenewUploadNavCommand() { var command = new Command("renew-upload"); command.Description = "Provides operations to call the renewUpload method."; - var builder = new RenewUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.Item.RenewUpload.RenewUploadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildRenewUploadNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%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 MobileAppContentFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A /// /// The list of files for this app content version. /// - public class MobileAppContentFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class MobileAppContentFileItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index 05f0d75262..05c73ab409 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Conte /// /// Provides operations to call the renewUpload method. /// - public class RenewUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewUploadRequestBuilder : BaseCliRequestBuilder { /// /// Renews the SAS URI for an application file upload. @@ -61,14 +64,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 RenewUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", 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 RenewUploadRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files; 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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Conte /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Command BuildContainedAppsNavCommand() { var command = new Command("contained-apps"); command.Description = "Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity."; - var builder = new ContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.ContainedApps.ContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -211,8 +214,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 MobileAppContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%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 MobileAppContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio /// /// The list of content versions for this app. /// - public class MobileAppContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class MobileAppContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs index 1abbd07576..f09613fc5a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions; 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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI /// /// Casts the previous resource to windowsMobileMSI. /// - public class GraphWindowsMobileMSIRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsMobileMSIRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildContentVersionsNavCommand() { var command = new Command("content-versions"); command.Description = "Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity."; - var builder = new ContentVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.ContentVersions.ContentVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -157,14 +160,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 GraphWindowsMobileMSIRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI{?%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 GraphWindowsMobileMSIRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI{?%24expand,%24select}", rawUrl) @@ -177,11 +180,11 @@ public GraphWindowsMobileMSIRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -192,7 +195,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsMobileMSI /// - public class GraphWindowsMobileMSIRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsMobileMSIRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,3 +221,4 @@ public class GraphWindowsMobileMSIRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.cs index 9129892606..82704355cf 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.A /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.cs index ae9c44ccc3..b244b3fab6 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.A /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index 2069154d40..ea37076306 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.A /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.cs index ac9a15c0c1..4a49c37a04 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.cs index 8fcf436c3f..a5b5bd47a5 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 612a1674eb..5bb5f55b11 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.cs index f897d378f1..cf615b72f3 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/CommittedContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. /// - public class CommittedContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommittedContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. @@ -30,7 +33,7 @@ public class CommittedContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps.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(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 CommittedContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps{?%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 CommittedContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public CommittedContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/de /// 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); @@ -247,11 +250,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(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. /// - public class CommittedContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommittedContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class CommittedContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.cs index c241238d85..8b39ac4cd8 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index 264f6d612d..f4c12a0384 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/CommittedContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property committedContainedApps for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/committedContainedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in the committed mobileAppContent of a windowsUniversalAppX app. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.cs index bb4db8df62..471395ed6b 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/ContentVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class ContentVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.MobileAppContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContainedAppsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilesNavCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ContentVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions{?%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 ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ContentVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceApp /// 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); @@ -250,11 +253,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContent body, Action /// /// The list of content versions for this app. /// - public class ContentVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ContentVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.cs index e930fce549..89131123a1 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs index 09521a39e9..c82c01facb 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/ContainedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class ContainedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -30,7 +33,7 @@ public class ContainedAppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileContainedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps.Item.MobileContainedAppItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContainedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%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 ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ContainedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMa /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(MobileContainedApp body, Acti /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class ContainedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContainedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ContainedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs index 7faba15c28..1075dae07a 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs index c729e2745d..0048767bdc 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/ContainedApps/Item/MobileContainedAppItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. /// - public class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property containedApps for deviceAppManagement @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileContainedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileContainedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileContainedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%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 MobileContainedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/containedApps/{mobileContainedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileContainedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(MobileContainedApp body, Act /// /// The collection of contained apps in a MobileLobApp acting as a package. /// - public class MobileContainedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileContainedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class MobileContainedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs index d1502d3756..8e9fcc5f98 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs index 62e59703c4..e5c17d8918 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/FilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class FilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppContentFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.MobileAppContentFileItemRequestBuilder(PathParameters); commands.Add(builder.BuildCommitNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 FilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files{?%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 FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public FilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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); @@ -262,11 +265,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(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(MobileAppContentFile body, Ac /// /// The list of files for this app content version. /// - public class FilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class FilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs index ea56cd13ac..5487d8f559 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitPostRequestBody.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.Commit { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CommitPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CommitPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CommitPostRequestBody : IAdditionalDataHolder, IParsable /// The fileEncryptionInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo? FileEncryptionInfo { get; set; } #nullable restore #else - public ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } + public global::ApiSdk.Models.FileEncryptionInfo FileEncryptionInfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CommitPostRequestBody() { @@ -31,12 +33,12 @@ public CommitPostRequestBody() /// /// 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 CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommitPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, + { "fileEncryptionInfo", n => { FileEncryptionInfo = n.GetObjectValue(global::ApiSdk.Models.FileEncryptionInfo.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); + writer.WriteObjectValue("fileEncryptionInfo", FileEncryptionInfo); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs index 771c6bcc18..099d5302ea 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/Commit/CommitRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to call the commit method. /// - public class CommitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommitRequestBuilder : BaseCliRequestBuilder { /// /// Commits a file of a given app. @@ -52,8 +55,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(CommitPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 CommitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", 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 CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/commit", rawUrl) @@ -95,11 +98,11 @@ public CommitRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(CommitPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.Commit.CommitPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(CommitPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs index 974a889657..87aac031df 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/MobileAppContentFileItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.Commit; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.RenewUpload; 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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity. /// - public class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the commit method. @@ -31,7 +34,7 @@ public Command BuildCommitNavCommand() { var command = new Command("commit"); command.Description = "Provides operations to call the commit method."; - var builder = new CommitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.Commit.CommitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,8 +194,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(MobileAppContentFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContentFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildRenewUploadNavCommand() { var command = new Command("renew-upload"); command.Description = "Provides operations to call the renewUpload method."; - var builder = new RenewUploadRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.Item.RenewUpload.RenewUploadRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildRenewUploadNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppContentFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%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 MobileAppContentFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContentFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContentFile body, A /// /// The list of files for this app content version. /// - public class MobileAppContentFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class MobileAppContentFileItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs index a20dc5d7fd..2e43ccef38 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/ContentVersions/Item/Files/Item/RenewUpload/RenewUploadRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to call the renewUpload method. /// - public class RenewUploadRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewUploadRequestBuilder : BaseCliRequestBuilder { /// /// Renews the SAS URI for an application file upload. @@ -61,14 +64,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 RenewUploadRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", 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 RenewUploadRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}/files/{mobileAppContentFile%2Did}/renewUpload", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files; 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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.C /// /// Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity. /// - public class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity. @@ -31,7 +34,7 @@ public Command BuildContainedAppsNavCommand() { var command = new Command("contained-apps"); command.Description = "Provides operations to manage the containedApps property of the microsoft.graph.mobileAppContent entity."; - var builder = new ContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.ContainedApps.ContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildFilesNavCommand() { var command = new Command("files"); command.Description = "Provides operations to manage the files property of the microsoft.graph.mobileAppContent entity."; - var builder = new FilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.Item.Files.FilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -211,8 +214,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(MobileAppContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 MobileAppContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%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 MobileAppContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX/contentVersions/{mobileAppContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(MobileAppContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppContent body, Actio /// /// The list of content versions for this app. /// - public class MobileAppContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class MobileAppContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs index 6b91e764b7..bbb0665f34 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX /// /// Casts the previous resource to windowsUniversalAppX. /// - public class GraphWindowsUniversalAppXRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsUniversalAppXRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -33,7 +36,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -60,7 +63,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -86,7 +89,7 @@ public Command BuildCommittedContainedAppsNavCommand() { var command = new Command("committed-contained-apps"); command.Description = "Provides operations to manage the committedContainedApps property of the microsoft.graph.windowsUniversalAppX entity."; - var builder = new CommittedContainedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.CommittedContainedApps.CommittedContainedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -113,7 +116,7 @@ public Command BuildContentVersionsNavCommand() { var command = new Command("content-versions"); command.Description = "Provides operations to manage the contentVersions property of the microsoft.graph.mobileLobApp entity."; - var builder = new ContentVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.ContentVersions.ContentVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -185,14 +188,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 GraphWindowsUniversalAppXRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX{?%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 GraphWindowsUniversalAppXRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX{?%24expand,%24select}", rawUrl) @@ -205,11 +208,11 @@ public GraphWindowsUniversalAppXRequestBuilder(string rawUrl) : base("{+baseurl} /// 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); @@ -220,7 +223,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsUniversalAppX /// - public class GraphWindowsUniversalAppXRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsUniversalAppXRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -245,3 +249,4 @@ public class GraphWindowsUniversalAppXRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.cs index 3d20e8fd20..f52bc5b88d 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments.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.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignme /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments.Item.MobileAppAssignmentItemRequestBuilder(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.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments.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(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(MobileAppAssignment body, Act /// /// The list of group assignments for this mobile app. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.cs index f5e10fa801..7bf9d593f7 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/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.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignme /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs index f0e2801d1a..3925b29dd1 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Assignments/Item/MobileAppAssignmentItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignme /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. /// - public class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(MobileAppAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/{mobileAppAssignment%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 MobileAppAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/assignments/{mobileAppAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppAssignment body, Ac /// /// The list of group assignments for this mobile app. /// - public class MobileAppAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class MobileAppAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.cs index 6a6ba361e5..3f31ed1a26 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/CategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories.Count; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories.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.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categori /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. @@ -30,7 +33,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileAppCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories.Item.MobileAppCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.cs index dfa6e8fa15..bc283be986 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/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.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categori /// /// 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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/$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}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs index 7f6aff2c05..b254c16884 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/Categories/Item/MobileAppCategoryItemRequestBuilder.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.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categori /// /// Provides operations to manage the categories property of the microsoft.graph.mobileApp entity. /// - public class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// The list of categories for this app. @@ -80,14 +83,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 MobileAppCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/{mobileAppCategory%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 MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp/categories/{mobileAppCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public MobileAppCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of categories for this app. /// - public class MobileAppCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class MobileAppCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs index a676b78ec4..81f457b3ed 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories; 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.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp /// /// Casts the previous resource to windowsWebApp. /// - public class GraphWindowsWebAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsWebAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -31,7 +34,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -58,7 +61,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,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 GraphWindowsWebAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp{?%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 GraphWindowsWebAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public GraphWindowsWebAppRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsWebApp /// - public class GraphWindowsWebAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWindowsWebAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class GraphWindowsWebAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs index d949b3743a..22ad6b7db9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Item.Assign; using ApiSdk.DeviceAppManagement.MobileApps.Item.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.Categories; @@ -20,6 +21,7 @@ using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp; 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; @@ -38,7 +40,8 @@ namespace ApiSdk.DeviceAppManagement.MobileApps.Item /// /// Provides operations to manage the mobileApps property of the microsoft.graph.deviceAppManagement entity. /// - public class MobileAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity. @@ -48,7 +51,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.mobileApp entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -75,7 +78,7 @@ public Command BuildAssignNavCommand() { var command = new Command("assign"); command.Description = "Provides operations to call the assign method."; - var builder = new AssignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.Assign.AssignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -92,7 +95,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.mobileApp entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -111,14 +114,14 @@ public Command BuildCategoriesNavCommand() return command; } /// - /// Deletes a iosLobApp. - /// Find more info here + /// Deletes a managedIOSLobApp. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a iosLobApp.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-ioslobapp-delete?view=graph-rest-1.0"; + command.Description = "Deletes a managedIOSLobApp.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-managedioslobapp-delete?view=graph-rest-1.0"; var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { }; mobileAppIdOption.IsRequired = true; @@ -147,14 +150,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Read properties and relationships of the windowsUniversalAppX object. - /// Find more info here + /// Read properties and relationships of the macOSOfficeSuiteApp object. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the windowsUniversalAppX object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-windowsuniversalappx-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the macOSOfficeSuiteApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-macosofficesuiteapp-get?view=graph-rest-1.0"; var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { }; mobileAppIdOption.IsRequired = true; @@ -207,7 +210,7 @@ public Command BuildGraphAndroidLobAppByIdNavCommand() { var command = new Command("graph-android-lob-app-by-id"); command.Description = "Casts the previous resource to androidLobApp."; - var builder = new GraphAndroidLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp.GraphAndroidLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -232,7 +235,7 @@ public Command BuildGraphAndroidStoreAppByIdNavCommand() { var command = new Command("graph-android-store-app-by-id"); command.Description = "Casts the previous resource to androidStoreApp."; - var builder = new GraphAndroidStoreAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp.GraphAndroidStoreAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -256,7 +259,7 @@ public Command BuildGraphIosLobAppByIdNavCommand() { var command = new Command("graph-ios-lob-app-by-id"); command.Description = "Casts the previous resource to iosLobApp."; - var builder = new GraphIosLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp.GraphIosLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -281,7 +284,7 @@ public Command BuildGraphIosStoreAppByIdNavCommand() { var command = new Command("graph-ios-store-app-by-id"); command.Description = "Casts the previous resource to iosStoreApp."; - var builder = new GraphIosStoreAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp.GraphIosStoreAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -305,7 +308,7 @@ public Command BuildGraphIosVppAppByIdNavCommand() { var command = new Command("graph-ios-vpp-app-by-id"); command.Description = "Casts the previous resource to iosVppApp."; - var builder = new GraphIosVppAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp.GraphIosVppAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -329,7 +332,7 @@ public Command BuildGraphMacOSDmgAppByIdNavCommand() { var command = new Command("graph-mac-o-s-dmg-app-by-id"); command.Description = "Casts the previous resource to macOSDmgApp."; - var builder = new GraphMacOSDmgAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp.GraphMacOSDmgAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -354,7 +357,7 @@ public Command BuildGraphMacOSLobAppByIdNavCommand() { var command = new Command("graph-mac-o-s-lob-app-by-id"); command.Description = "Casts the previous resource to macOSLobApp."; - var builder = new GraphMacOSLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp.GraphMacOSLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -379,7 +382,7 @@ public Command BuildGraphManagedAndroidLobAppByIdNavCommand() { var command = new Command("graph-managed-android-lob-app-by-id"); command.Description = "Casts the previous resource to managedAndroidLobApp."; - var builder = new GraphManagedAndroidLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp.GraphManagedAndroidLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -404,7 +407,7 @@ public Command BuildGraphManagedIOSLobAppByIdNavCommand() { var command = new Command("graph-managed-i-o-s-lob-app-by-id"); command.Description = "Casts the previous resource to managedIOSLobApp."; - var builder = new GraphManagedIOSLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp.GraphManagedIOSLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -429,7 +432,7 @@ public Command BuildGraphManagedMobileLobAppByIdNavCommand() { var command = new Command("graph-managed-mobile-lob-app-by-id"); command.Description = "Casts the previous resource to managedMobileLobApp."; - var builder = new GraphManagedMobileLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp.GraphManagedMobileLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -454,7 +457,7 @@ public Command BuildGraphMicrosoftStoreForBusinessAppByIdNavCommand() { var command = new Command("graph-microsoft-store-for-business-app-by-id"); command.Description = "Casts the previous resource to microsoftStoreForBusinessApp."; - var builder = new GraphMicrosoftStoreForBusinessAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp.GraphMicrosoftStoreForBusinessAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -478,7 +481,7 @@ public Command BuildGraphWin32LobAppByIdNavCommand() { var command = new Command("graph-win32-lob-app-by-id"); command.Description = "Casts the previous resource to win32LobApp."; - var builder = new GraphWin32LobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp.GraphWin32LobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -503,7 +506,7 @@ public Command BuildGraphWindowsAppXByIdNavCommand() { var command = new Command("graph-windows-app-x-by-id"); command.Description = "Casts the previous resource to windowsAppX."; - var builder = new GraphWindowsAppXRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX.GraphWindowsAppXRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -528,7 +531,7 @@ public Command BuildGraphWindowsMobileMSIByIdNavCommand() { var command = new Command("graph-windows-mobile-m-s-i-by-id"); command.Description = "Casts the previous resource to windowsMobileMSI."; - var builder = new GraphWindowsMobileMSIRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI.GraphWindowsMobileMSIRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -553,7 +556,7 @@ public Command BuildGraphWindowsUniversalAppXByIdNavCommand() { var command = new Command("graph-windows-universal-app-x-by-id"); command.Description = "Casts the previous resource to windowsUniversalAppX."; - var builder = new GraphWindowsUniversalAppXRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX.GraphWindowsUniversalAppXRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -579,7 +582,7 @@ public Command BuildGraphWindowsWebAppByIdNavCommand() { var command = new Command("graph-windows-web-app-by-id"); command.Description = "Casts the previous resource to windowsWebApp."; - var builder = new GraphWindowsWebAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp.GraphWindowsWebAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -596,14 +599,14 @@ public Command BuildGraphWindowsWebAppByIdNavCommand() return command; } /// - /// Update the properties of a windowsMicrosoftEdgeApp object. - /// Find more info here + /// Update the properties of a windowsAppX object. + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a windowsMicrosoftEdgeApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-windowsmicrosoftedgeapp-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a windowsAppX object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-windowsappx-update?view=graph-rest-1.0"; var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { }; mobileAppIdOption.IsRequired = true; @@ -626,8 +629,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(MobileApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -648,21 +651,21 @@ 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 MobileAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%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 MobileAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Deletes a iosLobApp. + /// Deletes a managedIOSLobApp. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -681,17 +684,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windowsUniversalAppX object. + /// Read properties and relationships of the macOSOfficeSuiteApp object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -700,18 +703,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windowsMicrosoftEdgeApp object. + /// Update the properties of a windowsAppX object. /// /// 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(MobileApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -721,9 +724,10 @@ public RequestInformation ToPatchRequestInformation(MobileApp body, Action - /// Read properties and relationships of the windowsUniversalAppX object. + /// Read properties and relationships of the macOSOfficeSuiteApp object. /// - public class MobileAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -748,3 +752,4 @@ public class MobileAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs index add2c4f21f..84ff90759f 100644 --- a/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.MobileApps.Count; using ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidLobApp; using ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidStoreApp; @@ -19,6 +20,7 @@ using ApiSdk.DeviceAppManagement.MobileApps.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; @@ -37,7 +39,8 @@ namespace ApiSdk.DeviceAppManagement.MobileApps /// /// Provides operations to manage the mobileApps property of the microsoft.graph.deviceAppManagement entity. /// - public class MobileAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the mobileApps property of the microsoft.graph.deviceAppManagement entity. @@ -47,7 +50,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.Item.MobileAppItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentsNavCommand()); commands.Add(builder.BuildAssignNavCommand()); commands.Add(builder.BuildCategoriesNavCommand()); @@ -80,7 +83,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.DeviceAppManagement.MobileApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -115,8 +118,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(MobileApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -143,7 +146,7 @@ public Command BuildGraphAndroidLobAppNavCommand() { var command = new Command("graph-android-lob-app"); command.Description = "Casts the previous resource to androidLobApp."; - var builder = new GraphAndroidLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidLobApp.GraphAndroidLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -166,7 +169,7 @@ public Command BuildGraphAndroidStoreAppNavCommand() { var command = new Command("graph-android-store-app"); command.Description = "Casts the previous resource to androidStoreApp."; - var builder = new GraphAndroidStoreAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidStoreApp.GraphAndroidStoreAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -189,7 +192,7 @@ public Command BuildGraphIosLobAppNavCommand() { var command = new Command("graph-ios-lob-app"); command.Description = "Casts the previous resource to iosLobApp."; - var builder = new GraphIosLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphIosLobApp.GraphIosLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -212,7 +215,7 @@ public Command BuildGraphIosStoreAppNavCommand() { var command = new Command("graph-ios-store-app"); command.Description = "Casts the previous resource to iosStoreApp."; - var builder = new GraphIosStoreAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphIosStoreApp.GraphIosStoreAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -235,7 +238,7 @@ public Command BuildGraphIosVppAppNavCommand() { var command = new Command("graph-ios-vpp-app"); command.Description = "Casts the previous resource to iosVppApp."; - var builder = new GraphIosVppAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphIosVppApp.GraphIosVppAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -258,7 +261,7 @@ public Command BuildGraphMacOSDmgAppNavCommand() { var command = new Command("graph-mac-o-s-dmg-app"); command.Description = "Casts the previous resource to macOSDmgApp."; - var builder = new GraphMacOSDmgAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphMacOSDmgApp.GraphMacOSDmgAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -281,7 +284,7 @@ public Command BuildGraphMacOSLobAppNavCommand() { var command = new Command("graph-mac-o-s-lob-app"); command.Description = "Casts the previous resource to macOSLobApp."; - var builder = new GraphMacOSLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphMacOSLobApp.GraphMacOSLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -304,7 +307,7 @@ public Command BuildGraphManagedAndroidLobAppNavCommand() { var command = new Command("graph-managed-android-lob-app"); command.Description = "Casts the previous resource to managedAndroidLobApp."; - var builder = new GraphManagedAndroidLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphManagedAndroidLobApp.GraphManagedAndroidLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -327,7 +330,7 @@ public Command BuildGraphManagedIOSLobAppNavCommand() { var command = new Command("graph-managed-i-o-s-lob-app"); command.Description = "Casts the previous resource to managedIOSLobApp."; - var builder = new GraphManagedIOSLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphManagedIOSLobApp.GraphManagedIOSLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -350,7 +353,7 @@ public Command BuildGraphManagedMobileLobAppNavCommand() { var command = new Command("graph-managed-mobile-lob-app"); command.Description = "Casts the previous resource to managedMobileLobApp."; - var builder = new GraphManagedMobileLobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphManagedMobileLobApp.GraphManagedMobileLobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -373,7 +376,7 @@ public Command BuildGraphMicrosoftStoreForBusinessAppNavCommand() { var command = new Command("graph-microsoft-store-for-business-app"); command.Description = "Casts the previous resource to microsoftStoreForBusinessApp."; - var builder = new GraphMicrosoftStoreForBusinessAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphMicrosoftStoreForBusinessApp.GraphMicrosoftStoreForBusinessAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -396,7 +399,7 @@ public Command BuildGraphWin32LobAppNavCommand() { var command = new Command("graph-win32-lob-app"); command.Description = "Casts the previous resource to win32LobApp."; - var builder = new GraphWin32LobAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphWin32LobApp.GraphWin32LobAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -419,7 +422,7 @@ public Command BuildGraphWindowsAppXNavCommand() { var command = new Command("graph-windows-app-x"); command.Description = "Casts the previous resource to windowsAppX."; - var builder = new GraphWindowsAppXRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsAppX.GraphWindowsAppXRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -442,7 +445,7 @@ public Command BuildGraphWindowsMobileMSINavCommand() { var command = new Command("graph-windows-mobile-m-s-i"); command.Description = "Casts the previous resource to windowsMobileMSI."; - var builder = new GraphWindowsMobileMSIRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsMobileMSI.GraphWindowsMobileMSIRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -465,7 +468,7 @@ public Command BuildGraphWindowsUniversalAppXNavCommand() { var command = new Command("graph-windows-universal-app-x"); command.Description = "Casts the previous resource to windowsUniversalAppX."; - var builder = new GraphWindowsUniversalAppXRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsUniversalAppX.GraphWindowsUniversalAppXRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -488,7 +491,7 @@ public Command BuildGraphWindowsWebAppNavCommand() { var command = new Command("graph-windows-web-app"); command.Description = "Casts the previous resource to windowsWebApp."; - var builder = new GraphWindowsWebAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsWebApp.GraphWindowsWebAppRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -504,14 +507,14 @@ public Command BuildGraphWindowsWebAppNavCommand() return command; } /// - /// List properties and relationships of the macOSLobApp objects. - /// Find more info here + /// List properties and relationships of the windowsUniversalAppX objects. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the macOSLobApp objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-macoslobapp-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the windowsUniversalAppX objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-windowsuniversalappx-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -601,31 +604,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MobileAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps{?%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 MobileAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List properties and relationships of the macOSLobApp objects. + /// List properties and relationships of the windowsUniversalAppX objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -641,11 +644,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(MobileApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -655,9 +658,10 @@ public RequestInformation ToPostRequestInformation(MobileApp body, Action - /// List properties and relationships of the macOSLobApp objects. + /// List properties and relationships of the windowsUniversalAppX objects. /// - public class MobileAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -721,3 +725,4 @@ public class MobileAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.cs index 70600e6aed..751d25e232 100644 --- a/src/generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/SyncMicrosoftStoreForBusinessApps/SyncMicrosoftStoreForBusinessAppsRequestBuilder.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.DeviceAppManagement.SyncMicrosoftStoreForBusinessApps /// /// Provides operations to call the syncMicrosoftStoreForBusinessApps method. /// - public class SyncMicrosoftStoreForBusinessAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SyncMicrosoftStoreForBusinessAppsRequestBuilder : BaseCliRequestBuilder { /// /// Syncs Intune account with Microsoft Store For Business @@ -44,14 +47,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 SyncMicrosoftStoreForBusinessAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/syncMicrosoftStoreForBusinessApps", 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 SyncMicrosoftStoreForBusinessAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/syncMicrosoftStoreForBusinessApps", rawUrl) @@ -78,3 +81,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.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}/deviceAppManagement/targetedManagedAppConfigurations/$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}/deviceAppManagement/targetedManagedAppConfigurations/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.cs index c357de53b5..f4989bf7a7 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/AppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Apps.Count; using ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Apps.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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Apps /// /// Provides operations to manage the apps property of the microsoft.graph.targetedManagedAppConfiguration entity. /// - public class AppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the apps property of the microsoft.graph.targetedManagedAppConfiguration entity. @@ -30,7 +33,7 @@ public class AppsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ManagedMobileAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Apps.Item.ManagedMobileAppItemRequestBuilder(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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Apps.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(ManagedMobileApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedMobileApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps{?%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 AppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/ /// 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); @@ -247,11 +250,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(ManagedMobileApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(ManagedMobileApp body, Action /// /// List of apps to which the policy is deployed. /// - public class AppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Count/CountRequestBuilder.cs index ed4d92e07d..d86d3ca84d 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Apps. /// /// 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}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps/$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}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs index 889f986725..025547945b 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Apps/Item/ManagedMobileAppItemRequestBuilder.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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Apps. /// /// Provides operations to manage the apps property of the microsoft.graph.targetedManagedAppConfiguration entity. /// - public class ManagedMobileAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedMobileAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property apps for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ManagedMobileApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedMobileApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedMobileAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps/{managedMobileApp%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 ManagedMobileAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/apps/{managedMobileApp%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedMobileApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(ManagedMobileApp body, Actio /// /// List of apps to which the policy is deployed. /// - public class ManagedMobileAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedMobileAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ManagedMobileAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignPostRequestBody.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignPostRequestBody.cs index de7f431188..0c521876fd 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignPostRequestBody.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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AssignPostRequestBody : IAdditionalDataHolder, IParsable /// The assignments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assignments { get; set; } + public List? Assignments { get; set; } #nullable restore #else - public List Assignments { get; set; } + public List Assignments { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignPostRequestBody() { @@ -31,12 +33,12 @@ public AssignPostRequestBody() /// /// 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 AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assign.AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assign.AssignPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("assignments", Assignments); + writer.WriteCollectionOfObjectValues("assignments", Assignments); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.cs index 16f097ff58..543f7b419f 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assign/AssignRequestBuilder.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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assig /// /// Provides operations to call the assign method. /// - public class AssignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -43,8 +46,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(AssignPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assign.AssignPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 AssignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assign", 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 AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assign", rawUrl) @@ -84,11 +87,11 @@ public AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagemen /// 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(AssignPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assign.AssignPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assign.AssignPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs index 82f74408cb..2ff30a3e1f 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assignments.Count; using ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assignments.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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assig /// /// Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppConfiguration entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppConfiguration entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TargetedManagedAppPolicyAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assignments.Item.TargetedManagedAppPolicyAssignmentItemRequestBuilder(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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assignments.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(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssig /// /// Navigation property to list of inclusion and exclusion groups to which the policy is deployed. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs index 7d2dbbbc18..73acd4051b 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assig /// /// 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}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments/$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}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs index 84cc9fa175..aca94ef633 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assig /// /// Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppConfiguration entity. /// - public class TargetedManagedAppPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TargetedManagedAppPolicyAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments/{targetedManagedAppPolicyAssignment%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 TargetedManagedAppPolicyAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssi /// /// Navigation property to list of inclusion and exclusion groups to which the policy is deployed. /// - public class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParamet } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs index 72460f920a..2d57ff2bb2 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/DeploymentSummary/DeploymentSummaryRequestBuilder.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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Deplo /// /// Provides operations to manage the deploymentSummary property of the microsoft.graph.targetedManagedAppConfiguration entity. /// - public class DeploymentSummaryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeploymentSummaryRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deploymentSummary for deviceAppManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ManagedAppPolicyDeploymentSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeploymentSummaryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/deploymentSummary{?%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 DeploymentSummaryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/deploymentSummary{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedAppPolicyDeploymentSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicyDeploymentSu /// /// Navigation property to deployment summary of the configuration. /// - public class DeploymentSummaryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeploymentSummaryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class DeploymentSummaryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsPostRequestBody.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsPostRequestBody.cs index f288efa7cb..16a7c7d825 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsPostRequestBody.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsPostRequestBody.cs @@ -1,30 +1,32 @@ // +#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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.TargetApps { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TargetAppsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TargetAppsPostRequestBody : 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. public IDictionary AdditionalData { get; set; } /// The appGroupType property - public TargetedManagedAppGroupType? AppGroupType { get; set; } + public global::ApiSdk.Models.TargetedManagedAppGroupType? AppGroupType { get; set; } /// The apps property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Apps { get; set; } + public List? Apps { get; set; } #nullable restore #else - public List Apps { get; set; } + public List Apps { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TargetAppsPostRequestBody() { @@ -33,12 +35,12 @@ public TargetAppsPostRequestBody() /// /// 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 TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.TargetApps.TargetAppsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TargetAppsPostRequestBody(); + return new global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.TargetApps.TargetAppsPostRequestBody(); } /// /// The deserialization information for the current model @@ -48,8 +50,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "appGroupType", n => { AppGroupType = n.GetEnumValue(); } }, - { "apps", n => { Apps = n.GetCollectionOfObjectValues(ManagedMobileApp.CreateFromDiscriminatorValue)?.ToList(); } }, + { "appGroupType", n => { AppGroupType = n.GetEnumValue(); } }, + { "apps", n => { Apps = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ManagedMobileApp.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -59,9 +61,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("appGroupType", AppGroupType); - writer.WriteCollectionOfObjectValues("apps", Apps); + writer.WriteEnumValue("appGroupType", AppGroupType); + writer.WriteCollectionOfObjectValues("apps", Apps); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.cs index d7ff425292..7783b0c668 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetApps/TargetAppsRequestBuilder.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.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Targe /// /// Provides operations to call the targetApps method. /// - public class TargetAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetAppsRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -43,8 +46,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(TargetAppsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.TargetApps.TargetAppsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 TargetAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/targetApps", 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 TargetAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}/targetApps", rawUrl) @@ -84,11 +87,11 @@ public TargetAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManag /// 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(TargetAppsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.TargetApps.TargetAppsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.TargetApps.TargetAppsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(TargetAppsPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.cs index 90225debcc..50af25951e 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/Item/TargetedManagedAppConfigurationItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Apps; using ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assign; using ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assignments; @@ -6,6 +7,7 @@ using ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.TargetApps; 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 +26,8 @@ namespace ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item /// /// Provides operations to manage the targetedManagedAppConfigurations property of the microsoft.graph.deviceAppManagement entity. /// - public class TargetedManagedAppConfigurationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppConfigurationItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the apps property of the microsoft.graph.targetedManagedAppConfiguration entity. @@ -34,7 +37,7 @@ public Command BuildAppsNavCommand() { var command = new Command("apps"); command.Description = "Provides operations to manage the apps property of the microsoft.graph.targetedManagedAppConfiguration entity."; - var builder = new AppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Apps.AppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -61,7 +64,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.targetedManagedAppConfiguration entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -88,7 +91,7 @@ public Command BuildAssignNavCommand() { var command = new Command("assign"); command.Description = "Provides operations to call the assign method."; - var builder = new AssignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.Assign.AssignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -141,7 +144,7 @@ public Command BuildDeploymentSummaryNavCommand() { var command = new Command("deployment-summary"); command.Description = "Provides operations to manage the deploymentSummary property of the microsoft.graph.targetedManagedAppConfiguration entity."; - var builder = new DeploymentSummaryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.DeploymentSummary.DeploymentSummaryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -236,8 +239,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(TargetedManagedAppConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -265,7 +268,7 @@ public Command BuildTargetAppsNavCommand() { var command = new Command("target-apps"); command.Description = "Provides operations to call the targetApps method."; - var builder = new TargetAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.TargetApps.TargetAppsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -275,14 +278,14 @@ public Command BuildTargetAppsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TargetedManagedAppConfigurationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%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 TargetedManagedAppConfigurationItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations/{targetedManagedAppConfiguration%2Did}{?%24expand,%24select}", rawUrl) @@ -314,11 +317,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); @@ -334,11 +337,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(TargetedManagedAppConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TargetedManagedAppConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -350,7 +353,8 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppConfigurat /// /// Read properties and relationships of the targetedManagedAppConfiguration object. /// - public class TargetedManagedAppConfigurationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -375,3 +379,4 @@ public class TargetedManagedAppConfigurationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.cs b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.cs index ef5f40a8e1..e66edeae8b 100644 --- a/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/TargetedManagedAppConfigurations/TargetedManagedAppConfigurationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Count; using ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.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.DeviceAppManagement.TargetedManagedAppConfigurations /// /// Provides operations to manage the targetedManagedAppConfigurations property of the microsoft.graph.deviceAppManagement entity. /// - public class TargetedManagedAppConfigurationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppConfigurationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the targetedManagedAppConfigurations property of the microsoft.graph.deviceAppManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TargetedManagedAppConfigurationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.TargetedManagedAppConfigurations.Item.TargetedManagedAppConfigurationItemRequestBuilder(PathParameters); commands.Add(builder.BuildAppsNavCommand()); commands.Add(builder.BuildAssignmentsNavCommand()); commands.Add(builder.BuildAssignNavCommand()); @@ -50,7 +53,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.DeviceAppManagement.TargetedManagedAppConfigurations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(TargetedManagedAppConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -203,14 +206,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 TargetedManagedAppConfigurationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations{?%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 TargetedManagedAppConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/targetedManagedAppConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -223,11 +226,11 @@ public TargetedManagedAppConfigurationsRequestBuilder(string rawUrl) : base("{+b /// 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); @@ -243,11 +246,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(TargetedManagedAppConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TargetedManagedAppConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -259,7 +262,8 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppConfigurati /// /// List properties and relationships of the targetedManagedAppConfiguration objects. /// - public class TargetedManagedAppConfigurationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppConfigurationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -323,3 +327,4 @@ public class TargetedManagedAppConfigurationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/VppTokens/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/VppTokens/Count/CountRequestBuilder.cs index 1803b4a1bf..b5deaad988 100644 --- a/src/generated/DeviceAppManagement/VppTokens/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/VppTokens/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.DeviceAppManagement.VppTokens.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}/deviceAppManagement/vppTokens/$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}/deviceAppManagement/vppTokens/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.cs b/src/generated/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.cs index d595a56657..6ddb5abc3d 100644 --- a/src/generated/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/VppTokens/Item/SyncLicenses/SyncLicensesRequestBuilder.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.DeviceAppManagement.VppTokens.Item.SyncLicenses /// /// Provides operations to call the syncLicenses method. /// - public class SyncLicensesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SyncLicensesRequestBuilder : BaseCliRequestBuilder { /// /// Syncs licenses associated with a specific appleVolumePurchaseProgramToken @@ -61,14 +64,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 SyncLicensesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/vppTokens/{vppToken%2Did}/syncLicenses", 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 SyncLicensesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/vppTokens/{vppToken%2Did}/syncLicenses", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.VppTokens.Item.SyncLicenses; 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.DeviceAppManagement.VppTokens.Item /// /// Provides operations to manage the vppTokens property of the microsoft.graph.deviceAppManagement entity. /// - public class VppTokenItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VppTokenItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a vppToken. @@ -142,8 +145,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(VppToken.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.VppToken.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,7 +174,7 @@ public Command BuildSyncLicensesNavCommand() { var command = new Command("sync-licenses"); command.Description = "Provides operations to call the syncLicenses method."; - var builder = new SyncLicensesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.VppTokens.Item.SyncLicenses.SyncLicensesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -181,14 +184,14 @@ public Command BuildSyncLicensesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public VppTokenItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/vppTokens/{vppToken%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 VppTokenItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/vppTokens/{vppToken%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(VppToken body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.VppToken body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(VppToken body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.VppToken body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(VppToken body, Action /// Read properties and relationships of the vppToken object. /// - public class VppTokenItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VppTokenItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class VppTokenItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.cs b/src/generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.cs index 25285814c2..f45ec95ec8 100644 --- a/src/generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/VppTokens/VppTokensRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.VppTokens.Count; using ApiSdk.DeviceAppManagement.VppTokens.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.DeviceAppManagement.VppTokens /// /// Provides operations to manage the vppTokens property of the microsoft.graph.deviceAppManagement entity. /// - public class VppTokensRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VppTokensRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the vppTokens property of the microsoft.graph.deviceAppManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new VppTokenItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.VppTokens.Item.VppTokenItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceAppManagement.VppTokens.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,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(VppToken.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.VppToken.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 VppTokensRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/vppTokens{?%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 VppTokensRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/vppTokens{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public VppTokensRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManage /// 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); @@ -239,11 +242,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(VppToken body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.VppToken body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(VppToken body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.VppToken body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(VppToken body, Action /// List properties and relationships of the vppToken objects. /// - public class VppTokensRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VppTokensRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class VppTokensRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs index 6dd44297c2..9f7d3d1af3 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/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.DeviceAppManagement.WindowsInformationProtectionPolicies.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}/deviceAppManagement/windowsInformationProtectionPolicies/$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}/deviceAppManagement/windowsInformationProtectionPolicies/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs index 5c560f891f..594ef93840 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.Assignments.Count; using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.Assignments.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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.A /// /// Provides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TargetedManagedAppPolicyAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.Assignments.Item.TargetedManagedAppPolicyAssignmentItemRequestBuilder(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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.Assignments.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(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana /// 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); @@ -247,11 +250,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(TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(TargetedManagedAppPolicyAssig /// /// Navigation property to list of security groups targeted for policy. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs index ec4e307aad..3cf3a6b205 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.A /// /// 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}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments/$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}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs index 78075fa5e9..9f05e9006f 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/Assignments/Item/TargetedManagedAppPolicyAssignmentItemRequestBuilder.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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.A /// /// Provides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity. /// - public class TargetedManagedAppPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TargetedManagedAppPolicyAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments/{targetedManagedAppPolicyAssignment%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 TargetedManagedAppPolicyAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/assignments/{targetedManagedAppPolicyAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TargetedManagedAppPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(TargetedManagedAppPolicyAssi /// /// Navigation property to list of security groups targeted for policy. /// - public class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class TargetedManagedAppPolicyAssignmentItemRequestBuilderGetQueryParamet } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs index 7278125e81..96374f77fb 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.E /// /// 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}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/$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}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs index 95b1f21cef..14b01086d1 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/ExemptAppLockerFilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles.Count; using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles.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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.E /// /// Provides operations to manage the exemptAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. /// - public class ExemptAppLockerFilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExemptAppLockerFilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the exemptAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. @@ -30,7 +33,7 @@ public class ExemptAppLockerFilesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new WindowsInformationProtectionAppLockerFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles.Item.WindowsInformationProtectionAppLockerFileItemRequestBuilder(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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles.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(WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile.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 ExemptAppLockerFilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles{?%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 ExemptAppLockerFilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public ExemptAppLockerFilesRequestBuilder(string rawUrl) : base("{+baseurl}/devi /// 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(WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionA /// /// List properties and relationships of the windowsInformationProtectionAppLockerFile objects. /// - public class ExemptAppLockerFilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExemptAppLockerFilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class ExemptAppLockerFilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs index db8bd43bac..7ae9d8d4c8 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ExemptAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.E /// /// Provides operations to manage the exemptAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. /// - public class WindowsInformationProtectionAppLockerFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLockerFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a windowsInformationProtectionAppLockerFile. @@ -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(WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile.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 WindowsInformationProtectionAppLockerFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/{windowsInformationProtectionAppLockerFile%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 WindowsInformationProtectionAppLockerFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/exemptAppLockerFiles/{windowsInformationProtectionAppLockerFile%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(WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection /// /// Read properties and relationships of the windowsInformationProtectionAppLockerFile object. /// - public class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQuery } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs index 9b6d172be9..4ec067484c 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.P /// /// 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}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/$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}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement /// 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/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs index e823f7b10e..0e198120b2 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/Item/WindowsInformationProtectionAppLockerFileItemRequestBuilder.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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.P /// /// Provides operations to manage the protectedAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. /// - public class WindowsInformationProtectionAppLockerFileItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLockerFileItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property protectedAppLockerFiles for deviceAppManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WindowsInformationProtectionAppLockerFileItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/{windowsInformationProtectionAppLockerFile%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 WindowsInformationProtectionAppLockerFileItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles/{windowsInformationProtectionAppLockerFile%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection /// /// Another way to input protected apps through xml files /// - public class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class WindowsInformationProtectionAppLockerFileItemRequestBuilderGetQuery } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs index 47e2b56a6c..3611985d07 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/ProtectedAppLockerFiles/ProtectedAppLockerFilesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles.Count; using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles.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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.P /// /// Provides operations to manage the protectedAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. /// - public class ProtectedAppLockerFilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProtectedAppLockerFilesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the protectedAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity. @@ -30,7 +33,7 @@ public class ProtectedAppLockerFilesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new WindowsInformationProtectionAppLockerFileItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles.Item.WindowsInformationProtectionAppLockerFileItemRequestBuilder(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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles.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(WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 ProtectedAppLockerFilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles{?%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 ProtectedAppLockerFilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}/protectedAppLockerFiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public ProtectedAppLockerFilesRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -247,11 +250,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(WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLockerFile body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionA /// /// Another way to input protected apps through xml files /// - public class ProtectedAppLockerFilesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProtectedAppLockerFilesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class ProtectedAppLockerFilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.cs index 9936d2a7a0..b451a20194 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/Item/WindowsInformationProtectionPolicyItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.Assignments; using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles; using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles; 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.DeviceAppManagement.WindowsInformationProtectionPolicies.Item /// /// Provides operations to manage the windowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity. /// - public class WindowsInformationProtectionPolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionPolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -95,7 +98,7 @@ public Command BuildExemptAppLockerFilesNavCommand() { var command = new Command("exempt-app-locker-files"); command.Description = "Provides operations to manage the exemptAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity."; - var builder = new ExemptAppLockerFilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ExemptAppLockerFiles.ExemptAppLockerFilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -198,8 +201,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(WindowsInformationProtectionPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionPolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -227,7 +230,7 @@ public Command BuildProtectedAppLockerFilesNavCommand() { var command = new Command("protected-app-locker-files"); command.Description = "Provides operations to manage the protectedAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity."; - var builder = new ProtectedAppLockerFilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.ProtectedAppLockerFiles.ProtectedAppLockerFilesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -247,14 +250,14 @@ public Command BuildProtectedAppLockerFilesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WindowsInformationProtectionPolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%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 WindowsInformationProtectionPolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies/{windowsInformationProtectionPolicy%2Did}{?%24expand,%24select}", rawUrl) @@ -286,11 +289,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); @@ -306,11 +309,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(WindowsInformationProtectionPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WindowsInformationProtectionPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -322,7 +325,8 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection /// /// Read properties and relationships of the windowsInformationProtectionPolicy object. /// - public class WindowsInformationProtectionPolicyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -347,3 +351,4 @@ public class WindowsInformationProtectionPolicyItemRequestBuilderGetQueryParamet } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.cs b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.cs index 2c098bb8fb..07e25265ca 100644 --- a/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/WindowsInformationProtectionPolicies/WindowsInformationProtectionPoliciesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Count; using ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.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.DeviceAppManagement.WindowsInformationProtectionPolicies /// /// Provides operations to manage the windowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity. /// - public class WindowsInformationProtectionPoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionPoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the windowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WindowsInformationProtectionPolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.WindowsInformationProtectionPolicies.Item.WindowsInformationProtectionPolicyItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildExemptAppLockerFilesNavCommand()); @@ -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.DeviceAppManagement.WindowsInformationProtectionPolicies.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(WindowsInformationProtectionPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionPolicy.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 WindowsInformationProtectionPoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies{?%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 WindowsInformationProtectionPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/windowsInformationProtectionPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -221,11 +224,11 @@ public WindowsInformationProtectionPoliciesRequestBuilder(string rawUrl) : base( /// 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(WindowsInformationProtectionPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WindowsInformationProtectionPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -257,7 +260,8 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionP /// /// List properties and relationships of the windowsInformationProtectionPolicy objects. /// - public class WindowsInformationProtectionPoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionPoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -321,3 +325,4 @@ public class WindowsInformationProtectionPoliciesRequestBuilderGetQueryParameter } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.cs b/src/generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.cs index 075ef20132..0f7cf7104b 100644 --- a/src/generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.cs +++ b/src/generated/DeviceManagement/ApplePushNotificationCertificate/ApplePushNotificationCertificateRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ApplePushNotificationCertificate.DownloadApplePushNotificationCertificateSigningRequest; 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.DeviceManagement.ApplePushNotificationCertificate /// /// Provides operations to manage the applePushNotificationCertificate property of the microsoft.graph.deviceManagement entity. /// - public class ApplePushNotificationCertificateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplePushNotificationCertificateRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property applePushNotificationCertificate for deviceManagement @@ -59,7 +62,7 @@ public Command BuildDownloadApplePushNotificationCertificateSigningRequestNavCom { var command = new Command("download-apple-push-notification-certificate-signing-request"); command.Description = "Provides operations to call the downloadApplePushNotificationCertificateSigningRequest method."; - var builder = new DownloadApplePushNotificationCertificateSigningRequestRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ApplePushNotificationCertificate.DownloadApplePushNotificationCertificateSigningRequest.DownloadApplePushNotificationCertificateSigningRequestRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -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(ApiSdk.Models.ApplePushNotificationCertificate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ApplePushNotificationCertificate.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 ApplePushNotificationCertificateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/applePushNotificationCertificate{?%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 ApplePushNotificationCertificateRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/applePushNotificationCertificate{?%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(ApiSdk.Models.ApplePushNotificationCertificate body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ApplePushNotificationCertificate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ApplePushNotificationCertificate body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ApplePushNotificationCertificate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ApplePushNotif /// /// Read properties and relationships of the applePushNotificationCertificate object. /// - public class ApplePushNotificationCertificateRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplePushNotificationCertificateRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class ApplePushNotificationCertificateRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.cs b/src/generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.cs index ca22a7a0d3..974c307112 100644 --- a/src/generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.cs +++ b/src/generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.ApplePushNotificationCertificate.DownloadApplePushNotificationCertificateSigningRequest { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DownloadApplePushNotificationCertificateSigningRequestGetResponse : IAdditionalDataHolder, IParsable + public partial class DownloadApplePushNotificationCertificateSigningRequestGetResponse : 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. @@ -21,7 +23,7 @@ public class DownloadApplePushNotificationCertificateSigningRequestGetResponse : public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DownloadApplePushNotificationCertificateSigningRequestGetResponse() { @@ -30,12 +32,12 @@ public DownloadApplePushNotificationCertificateSigningRequestGetResponse() /// /// 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 DownloadApplePushNotificationCertificateSigningRequestGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.ApplePushNotificationCertificate.DownloadApplePushNotificationCertificateSigningRequest.DownloadApplePushNotificationCertificateSigningRequestGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DownloadApplePushNotificationCertificateSigningRequestGetResponse(); + return new global::ApiSdk.DeviceManagement.ApplePushNotificationCertificate.DownloadApplePushNotificationCertificateSigningRequest.DownloadApplePushNotificationCertificateSigningRequestGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.cs b/src/generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.cs index b5085c3533..04940fb347 100644 --- a/src/generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.cs +++ b/src/generated/DeviceManagement/ApplePushNotificationCertificate/DownloadApplePushNotificationCertificateSigningRequest/DownloadApplePushNotificationCertificateSigningRequestRequestBuilder.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.DeviceManagement.ApplePushNotificationCertificate.DownloadApple /// /// Provides operations to call the downloadApplePushNotificationCertificateSigningRequest method. /// - public class DownloadApplePushNotificationCertificateSigningRequestRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DownloadApplePushNotificationCertificateSigningRequestRequestBuilder : BaseCliRequestBuilder { /// /// Download Apple push notification certificate signing request @@ -54,14 +57,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 DownloadApplePushNotificationCertificateSigningRequestRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/applePushNotificationCertificate/downloadApplePushNotificationCertificateSigningRequest()", 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 DownloadApplePushNotificationCertificateSigningRequestRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/applePushNotificationCertificate/downloadApplePushNotificationCertificateSigningRequest()", rawUrl) @@ -88,3 +91,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.AuditEvents.Count; using ApiSdk.DeviceManagement.AuditEvents.GetAuditActivityTypesWithCategory; using ApiSdk.DeviceManagement.AuditEvents.GetAuditCategories; using ApiSdk.DeviceManagement.AuditEvents.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; @@ -23,7 +25,8 @@ namespace ApiSdk.DeviceManagement.AuditEvents /// /// Provides operations to manage the auditEvents property of the microsoft.graph.deviceManagement entity. /// - public class AuditEventsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuditEventsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the auditEvents property of the microsoft.graph.deviceManagement entity. @@ -32,7 +35,7 @@ public class AuditEventsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AuditEventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.AuditEvents.Item.AuditEventItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceManagement.AuditEvents.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,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(AuditEvent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AuditEvent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -109,7 +112,7 @@ public Command BuildGetAuditActivityTypesWithCategoryRbCommand() { var command = new Command("get-audit-activity-types-with-category"); command.Description = "Provides operations to call the getAuditActivityTypes method."; - var builder = new GetAuditActivityTypesWithCategoryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.AuditEvents.GetAuditActivityTypesWithCategory.GetAuditActivityTypesWithCategoryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -126,7 +129,7 @@ public Command BuildGetAuditCategoriesNavCommand() { var command = new Command("get-audit-categories"); command.Description = "Provides operations to call the getAuditCategories method."; - var builder = new GetAuditCategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.AuditEvents.GetAuditCategories.GetAuditCategoriesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -233,14 +236,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 AuditEventsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/auditEvents{?%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 AuditEventsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/auditEvents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public AuditEventsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagem /// 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); @@ -273,11 +276,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(AuditEvent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AuditEvent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AuditEvent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AuditEvent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(AuditEvent body, Action /// List properties and relationships of the auditEvent objects. /// - public class AuditEventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuditEventsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class AuditEventsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/AuditEvents/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/AuditEvents/Count/CountRequestBuilder.cs index 1c9c2802f1..00efbc851e 100644 --- a/src/generated/DeviceManagement/AuditEvents/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/AuditEvents/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.DeviceManagement.AuditEvents.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}/deviceManagement/auditEvents/$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}/deviceManagement/auditEvents/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/au /// 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/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.cs b/src/generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.cs index 469a732a34..586802d6ad 100644 --- a/src/generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.cs +++ b/src/generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryGetResponse.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.DeviceManagement.AuditEvents.GetAuditActivityTypesWithCategory { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAuditActivityTypesWithCategoryGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAuditActivityTypesWithCategoryGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetAuditActivityTypesWithCategoryGetResponse : BaseCollectionPagina /// /// 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 new GetAuditActivityTypesWithCategoryGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DeviceManagement.AuditEvents.GetAuditActivityTypesWithCategory.GetAuditActivityTypesWithCategoryGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAuditActivityTypesWithCategoryGetResponse(); + return new global::ApiSdk.DeviceManagement.AuditEvents.GetAuditActivityTypesWithCategory.GetAuditActivityTypesWithCategoryGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.cs b/src/generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.cs index 7efdc28345..30617e5d53 100644 --- a/src/generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.cs +++ b/src/generated/DeviceManagement/AuditEvents/GetAuditActivityTypesWithCategory/GetAuditActivityTypesWithCategoryRequestBuilder.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.DeviceManagement.AuditEvents.GetAuditActivityTypesWithCategory /// /// Provides operations to call the getAuditActivityTypes method. /// - public class GetAuditActivityTypesWithCategoryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAuditActivityTypesWithCategoryRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function getAuditActivityTypes @@ -102,14 +105,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 GetAuditActivityTypesWithCategoryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/auditEvents/getAuditActivityTypes(category='{category}'){?%24count,%24filter,%24search,%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 GetAuditActivityTypesWithCategoryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/auditEvents/getAuditActivityTypes(category='{category}'){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) @@ -122,11 +125,11 @@ public GetAuditActivityTypesWithCategoryRequestBuilder(string rawUrl) : base("{+ /// 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); @@ -137,7 +140,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function getAuditActivityTypes /// - public class GetAuditActivityTypesWithCategoryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAuditActivityTypesWithCategoryRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -171,3 +175,4 @@ public class GetAuditActivityTypesWithCategoryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.cs b/src/generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.cs index f58374d889..9d811c5936 100644 --- a/src/generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.cs +++ b/src/generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesGetResponse.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.DeviceManagement.AuditEvents.GetAuditCategories { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAuditCategoriesGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAuditCategoriesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetAuditCategoriesGetResponse : BaseCollectionPaginationCountRespon /// /// 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 new GetAuditCategoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DeviceManagement.AuditEvents.GetAuditCategories.GetAuditCategoriesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAuditCategoriesGetResponse(); + return new global::ApiSdk.DeviceManagement.AuditEvents.GetAuditCategories.GetAuditCategoriesGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.cs b/src/generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.cs index a8867d0e19..db88b437c1 100644 --- a/src/generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.cs +++ b/src/generated/DeviceManagement/AuditEvents/GetAuditCategories/GetAuditCategoriesRequestBuilder.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.DeviceManagement.AuditEvents.GetAuditCategories /// /// Provides operations to call the getAuditCategories method. /// - public class GetAuditCategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAuditCategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -97,14 +100,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 GetAuditCategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/auditEvents/getAuditCategories(){?%24count,%24filter,%24search,%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 GetAuditCategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/auditEvents/getAuditCategories(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) @@ -117,11 +120,11 @@ public GetAuditCategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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); @@ -132,7 +135,8 @@ public RequestInformation ToGetRequestInformation(Action /// Not yet documented /// - public class GetAuditCategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAuditCategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -166,3 +170,4 @@ public class GetAuditCategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.cs b/src/generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.cs index 20501760f6..f9358b054c 100644 --- a/src/generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/AuditEvents/Item/AuditEventItemRequestBuilder.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.DeviceManagement.AuditEvents.Item /// /// Provides operations to manage the auditEvents property of the microsoft.graph.deviceManagement entity. /// - public class AuditEventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuditEventItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a auditEvent. @@ -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(AuditEvent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AuditEvent.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 AuditEventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/auditEvents/{auditEvent%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 AuditEventItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/auditEvents/{auditEvent%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(AuditEvent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AuditEvent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AuditEvent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AuditEvent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(AuditEvent body, Action /// Read properties and relationships of the auditEvent object. /// - public class AuditEventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuditEventItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class AuditEventItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.cs b/src/generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.cs index 4f8ff49454..d711e6ac25 100644 --- a/src/generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.cs +++ b/src/generated/DeviceManagement/ComplianceManagementPartners/ComplianceManagementPartnersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ComplianceManagementPartners.Count; using ApiSdk.DeviceManagement.ComplianceManagementPartners.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.DeviceManagement.ComplianceManagementPartners /// /// Provides operations to manage the complianceManagementPartners property of the microsoft.graph.deviceManagement entity. /// - public class ComplianceManagementPartnersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ComplianceManagementPartnersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the complianceManagementPartners property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class ComplianceManagementPartnersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ComplianceManagementPartnerItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ComplianceManagementPartners.Item.ComplianceManagementPartnerItemRequestBuilder(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.DeviceManagement.ComplianceManagementPartners.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(ComplianceManagementPartner.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ComplianceManagementPartner.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 ComplianceManagementPartnersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/complianceManagementPartners{?%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 ComplianceManagementPartnersRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/complianceManagementPartners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public ComplianceManagementPartnersRequestBuilder(string rawUrl) : base("{+baseu /// 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(ComplianceManagementPartner body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ComplianceManagementPartner body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ComplianceManagementPartner body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ComplianceManagementPartner body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(ComplianceManagementPartner b /// /// List properties and relationships of the complianceManagementPartner objects. /// - public class ComplianceManagementPartnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ComplianceManagementPartnersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class ComplianceManagementPartnersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ComplianceManagementPartners/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/ComplianceManagementPartners/Count/CountRequestBuilder.cs index 7e392ff678..fca37cded9 100644 --- a/src/generated/DeviceManagement/ComplianceManagementPartners/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/ComplianceManagementPartners/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.DeviceManagement.ComplianceManagementPartners.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}/deviceManagement/complianceManagementPartners/$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}/deviceManagement/complianceManagementPartners/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/co /// 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/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.cs b/src/generated/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.cs index b5efab08ae..965b989e6a 100644 --- a/src/generated/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/ComplianceManagementPartners/Item/ComplianceManagementPartnerItemRequestBuilder.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.DeviceManagement.ComplianceManagementPartners.Item /// /// Provides operations to manage the complianceManagementPartners property of the microsoft.graph.deviceManagement entity. /// - public class ComplianceManagementPartnerItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ComplianceManagementPartnerItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a complianceManagementPartner. @@ -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(ComplianceManagementPartner.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ComplianceManagementPartner.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 ComplianceManagementPartnerItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/complianceManagementPartners/{complianceManagementPartner%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 ComplianceManagementPartnerItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/complianceManagementPartners/{complianceManagementPartner%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(ComplianceManagementPartner body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ComplianceManagementPartner body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ComplianceManagementPartner body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ComplianceManagementPartner body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(ComplianceManagementPartner /// /// Read properties and relationships of the complianceManagementPartner object. /// - public class ComplianceManagementPartnerItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ComplianceManagementPartnerItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class ComplianceManagementPartnerItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.cs b/src/generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.cs index 3ce07eaff7..9c76b65068 100644 --- a/src/generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.cs +++ b/src/generated/DeviceManagement/ConditionalAccessSettings/ConditionalAccessSettingsRequestBuilder.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.DeviceManagement.ConditionalAccessSettings /// /// Provides operations to manage the conditionalAccessSettings property of the microsoft.graph.deviceManagement entity. /// - public class ConditionalAccessSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConditionalAccessSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property conditionalAccessSettings for deviceManagement @@ -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(OnPremisesConditionalAccessSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnPremisesConditionalAccessSettings.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 ConditionalAccessSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/conditionalAccessSettings{?%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 ConditionalAccessSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/conditionalAccessSettings{?%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(OnPremisesConditionalAccessSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnPremisesConditionalAccessSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnPremisesConditionalAccessSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnPremisesConditionalAccessSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -219,7 +222,8 @@ public RequestInformation ToPatchRequestInformation(OnPremisesConditionalAccessS /// /// Read properties and relationships of the onPremisesConditionalAccessSettings object. /// - public class ConditionalAccessSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConditionalAccessSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -244,3 +248,4 @@ public class ConditionalAccessSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DetectedApps/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DetectedApps/Count/CountRequestBuilder.cs index 3415fc2c4c..5bcf740bd7 100644 --- a/src/generated/DeviceManagement/DetectedApps/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DetectedApps/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.DeviceManagement.DetectedApps.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}/deviceManagement/detectedApps/$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}/deviceManagement/detectedApps/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.cs b/src/generated/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.cs index 4cf6e67a5a..7df36b275c 100644 --- a/src/generated/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.cs +++ b/src/generated/DeviceManagement/DetectedApps/DetectedAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DetectedApps.Count; using ApiSdk.DeviceManagement.DetectedApps.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.DeviceManagement.DetectedApps /// /// Provides operations to manage the detectedApps property of the microsoft.graph.deviceManagement entity. /// - public class DetectedAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetectedAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the detectedApps property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DetectedAppItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DetectedApps.Item.DetectedAppItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildManagedDevicesNavCommand()); @@ -46,7 +49,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.DeviceManagement.DetectedApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,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(DetectedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DetectedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 DetectedAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/detectedApps{?%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 DetectedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/detectedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public DetectedAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManage /// 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); @@ -239,11 +242,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(DetectedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DetectedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DetectedApp body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DetectedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(DetectedApp body, Action /// List properties and relationships of the detectedApp objects. /// - public class DetectedAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetectedAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class DetectedAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.cs b/src/generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.cs index 39a25f70d7..81cdc3ce13 100644 --- a/src/generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DetectedApps/Item/DetectedAppItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DetectedApps.Item.ManagedDevices; 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.DeviceManagement.DetectedApps.Item /// /// Provides operations to manage the detectedApps property of the microsoft.graph.deviceManagement entity. /// - public class DetectedAppItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetectedAppItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a detectedApp. @@ -119,7 +122,7 @@ public Command BuildManagedDevicesNavCommand() { var command = new Command("managed-devices"); command.Description = "Provides operations to manage the managedDevices property of the microsoft.graph.detectedApp entity."; - var builder = new ManagedDevicesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DetectedApps.Item.ManagedDevices.ManagedDevicesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -168,8 +171,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(DetectedApp.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DetectedApp.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -190,14 +193,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 DetectedAppItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/detectedApps/{detectedApp%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 DetectedAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}{?%24expand,%24select}", rawUrl) @@ -229,11 +232,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); @@ -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 ToPatchRequestInformation(DetectedApp body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DetectedApp body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DetectedApp body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DetectedApp body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPatchRequestInformation(DetectedApp body, Action /// Read properties and relationships of the detectedApp object. /// - public class DetectedAppItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetectedAppItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -290,3 +294,4 @@ public class DetectedAppItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Count/CountRequestBuilder.cs index 932a68de31..d04fa276e0 100644 --- a/src/generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DetectedApps/Item/ManagedDevices/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.DeviceManagement.DetectedApps.Item.ManagedDevices.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}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices/$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}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs b/src/generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs index 4d61fff31b..3cfa25822d 100644 --- a/src/generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DetectedApps/Item/ManagedDevices/Item/ManagedDeviceItemRequestBuilder.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.DeviceManagement.DetectedApps.Item.ManagedDevices.Item /// /// Provides operations to manage the managedDevices property of the microsoft.graph.detectedApp entity. /// - public class ManagedDeviceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceItemRequestBuilder : BaseCliRequestBuilder { /// /// The devices that have the discovered application installed @@ -80,14 +83,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 ManagedDeviceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices/{managedDevice%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 ManagedDeviceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices/{managedDevice%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public ManagedDeviceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceM /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The devices that have the discovered application installed /// - public class ManagedDeviceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class ManagedDeviceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs b/src/generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs index b7d8e3257e..e80022361d 100644 --- a/src/generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DetectedApps/Item/ManagedDevices/ManagedDevicesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DetectedApps.Item.ManagedDevices.Count; using ApiSdk.DeviceManagement.DetectedApps.Item.ManagedDevices.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.DeviceManagement.DetectedApps.Item.ManagedDevices /// /// Provides operations to manage the managedDevices property of the microsoft.graph.detectedApp entity. /// - public class ManagedDevicesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDevicesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the managedDevices property of the microsoft.graph.detectedApp entity. @@ -30,7 +33,7 @@ public class ManagedDevicesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ManagedDeviceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DetectedApps.Item.ManagedDevices.Item.ManagedDeviceItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.DeviceManagement.DetectedApps.Item.ManagedDevices.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 ManagedDevicesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices{?%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 ManagedDevicesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/detectedApps/{detectedApp%2Did}/managedDevices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public ManagedDevicesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMana /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The devices that have the discovered application installed /// - public class ManagedDevicesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDevicesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class ManagedDevicesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCategories/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCategories/Count/CountRequestBuilder.cs index 09cf62ace7..19a687d176 100644 --- a/src/generated/DeviceManagement/DeviceCategories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCategories/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.DeviceManagement.DeviceCategories.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}/deviceManagement/deviceCategories/$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}/deviceManagement/deviceCategories/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.cs index 1e4feaed15..c6b60a4de8 100644 --- a/src/generated/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCategories/DeviceCategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCategories.Count; using ApiSdk.DeviceManagement.DeviceCategories.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.DeviceManagement.DeviceCategories /// /// Provides operations to manage the deviceCategories property of the microsoft.graph.deviceManagement entity. /// - public class DeviceCategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceCategories property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class DeviceCategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCategories.Item.DeviceCategoryItemRequestBuilder(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.DeviceManagement.DeviceCategories.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(ApiSdk.Models.DeviceCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCategory.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 DeviceCategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCategories{?%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 DeviceCategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public DeviceCategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMa /// 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(ApiSdk.Models.DeviceCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.DeviceCategory body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.DeviceCategory /// /// List properties and relationships of the deviceCategory objects. /// - public class DeviceCategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class DeviceCategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.cs index 4bdd479301..c2e5c6bc7b 100644 --- a/src/generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCategories/Item/DeviceCategoryItemRequestBuilder.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.DeviceManagement.DeviceCategories.Item /// /// Provides operations to manage the deviceCategories property of the microsoft.graph.deviceManagement entity. /// - public class DeviceCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceCategory. @@ -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(ApiSdk.Models.DeviceCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCategory.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 DeviceCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCategories/{deviceCategory%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 DeviceCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCategories/{deviceCategory%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(ApiSdk.Models.DeviceCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DeviceCategory body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DeviceCategory /// /// Read properties and relationships of the deviceCategory object. /// - public class DeviceCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class DeviceCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Count/CountRequestBuilder.cs index 1fb544526c..e30cb84add 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/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.DeviceManagement.DeviceCompliancePolicies.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}/deviceManagement/deviceCompliancePolicies/$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}/deviceManagement/deviceCompliancePolicies/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs index def47c504d..60bcb664d6 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Count; using ApiSdk.DeviceManagement.DeviceCompliancePolicies.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.DeviceManagement.DeviceCompliancePolicies /// /// Provides operations to manage the deviceCompliancePolicies property of the microsoft.graph.deviceManagement entity. /// - public class DeviceCompliancePoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceCompliancePolicies property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DeviceCompliancePolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.DeviceCompliancePolicyItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentsNavCommand()); commands.Add(builder.BuildAssignNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -54,7 +57,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.DeviceManagement.DeviceCompliancePolicies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -64,14 +67,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Create a new windows81CompliancePolicy object. - /// Find more info here + /// Create a new androidCompliancePolicy object. + /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create a new windows81CompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-create?view=graph-rest-1.0"; + command.Description = "Create a new androidCompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-create?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -89,8 +92,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(DeviceCompliancePolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCompliancePolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -110,14 +113,14 @@ public Command BuildCreateCommand() return command; } /// - /// List properties and relationships of the windows81CompliancePolicy objects. - /// Find more info here + /// List properties and relationships of the androidCompliancePolicy objects. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the windows81CompliancePolicy objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the androidCompliancePolicy objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -207,31 +210,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceCompliancePoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies{?%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 DeviceCompliancePoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List properties and relationships of the windows81CompliancePolicy objects. + /// List properties and relationships of the androidCompliancePolicy objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -240,18 +243,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new windows81CompliancePolicy object. + /// Create a new androidCompliancePolicy object. /// /// 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 ToPostRequestInformation(DeviceCompliancePolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceCompliancePolicy body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -261,9 +264,10 @@ public RequestInformation ToPostRequestInformation(DeviceCompliancePolicy body, return requestInfo; } /// - /// List properties and relationships of the windows81CompliancePolicy objects. + /// List properties and relationships of the androidCompliancePolicy objects. /// - public class DeviceCompliancePoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class DeviceCompliancePoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostRequestBody.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostRequestBody.cs index 4baef1e6da..23edee5e41 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostRequestBody.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostRequestBody.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.DeviceManagement.DeviceCompliancePolicies.Item.Assign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AssignPostRequestBody : IAdditionalDataHolder, IParsable /// The assignments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assignments { get; set; } + public List? Assignments { get; set; } #nullable restore #else - public List Assignments { get; set; } + public List Assignments { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignPostRequestBody() { @@ -31,12 +33,12 @@ public AssignPostRequestBody() /// /// 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 AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assign.AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignPostRequestBody(); + return new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assign.AssignPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("assignments", Assignments); + writer.WriteCollectionOfObjectValues("assignments", Assignments); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.cs index 71a6ca0121..fa5aa06dbc 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignPostResponse.cs @@ -1,33 +1,35 @@ // +#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.DeviceManagement.DeviceCompliancePolicies.Item.Assign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class AssignPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new AssignPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assign.AssignPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignPostResponse(); + return new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assign.AssignPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.cs index fca38ab9a7..8b4b3a265e 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assign/AssignRequestBuilder.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.DeviceManagement.DeviceCompliancePolicies.Item.Assign /// /// Provides operations to call the assign method. /// - public class AssignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -55,8 +58,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(AssignPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assign.AssignPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AssignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assign", 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 AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assign", rawUrl) @@ -107,11 +110,11 @@ public AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/d /// 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(AssignPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assign.AssignPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assign.AssignPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.cs index 80bd69255a..98f5e75c68 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assignments.Count; using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assignments.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.DeviceManagement.DeviceCompliancePolicies.Item.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceCompliancePolicy entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceCompliancePolicyAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assignments.Item.DeviceCompliancePolicyAssignmentItemRequestBuilder(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.DeviceManagement.DeviceCompliancePolicies.Item.Assignments.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(DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCompliancePolicyAssignment.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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagem /// 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(DeviceCompliancePolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceCompliancePolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(DeviceCompliancePolicyAssignm /// /// List properties and relationships of the deviceCompliancePolicyAssignment objects. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Count/CountRequestBuilder.cs index 07a057cc85..a66e24190b 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/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.DeviceManagement.DeviceCompliancePolicies.Item.Assignments.Coun /// /// 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}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments/$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}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.cs index 4e37e18dde..4f685e6d10 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/Assignments/Item/DeviceCompliancePolicyAssignmentItemRequestBuilder.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.DeviceManagement.DeviceCompliancePolicies.Item.Assignments.Item /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class DeviceCompliancePolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceCompliancePolicyAssignment. @@ -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(DeviceCompliancePolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCompliancePolicyAssignment.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 DeviceCompliancePolicyAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments/{deviceCompliancePolicyAssignment%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 DeviceCompliancePolicyAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/assignments/{deviceCompliancePolicyAssignment%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(DeviceCompliancePolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicyAssign /// /// Read properties and relationships of the deviceCompliancePolicyAssignment object. /// - public class DeviceCompliancePolicyAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicyAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class DeviceCompliancePolicyAssignmentItemRequestBuilderGetQueryParameter } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs index 8c8dc47746..b4c48261cb 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assign; using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assignments; using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.DeviceSettingStateSummaries; @@ -10,6 +11,7 @@ using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.UserStatuses; 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; @@ -28,7 +30,8 @@ namespace ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item /// /// Provides operations to manage the deviceCompliancePolicies property of the microsoft.graph.deviceManagement entity. /// - public class DeviceCompliancePolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceCompliancePolicy entity. @@ -38,7 +41,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.deviceCompliancePolicy entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -65,7 +68,7 @@ public Command BuildAssignNavCommand() { var command = new Command("assign"); command.Description = "Provides operations to call the assign method."; - var builder = new AssignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.Assign.AssignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -75,14 +78,14 @@ public Command BuildAssignNavCommand() return command; } /// - /// Deletes a windows10MobileCompliancePolicy. - /// Find more info here + /// Deletes a windowsPhone81CompliancePolicy. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a windows10MobileCompliancePolicy.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-delete?view=graph-rest-1.0"; + command.Description = "Deletes a windowsPhone81CompliancePolicy.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81compliancepolicy-delete?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -118,7 +121,7 @@ public Command BuildDeviceSettingStateSummariesNavCommand() { var command = new Command("device-setting-state-summaries"); command.Description = "Provides operations to manage the deviceSettingStateSummaries property of the microsoft.graph.deviceCompliancePolicy entity."; - var builder = new DeviceSettingStateSummariesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.DeviceSettingStateSummaries.DeviceSettingStateSummariesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -145,7 +148,7 @@ public Command BuildDeviceStatusesNavCommand() { var command = new Command("device-statuses"); command.Description = "Provides operations to manage the deviceStatuses property of the microsoft.graph.deviceCompliancePolicy entity."; - var builder = new DeviceStatusesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.DeviceStatuses.DeviceStatusesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -172,7 +175,7 @@ public Command BuildDeviceStatusOverviewNavCommand() { var command = new Command("device-status-overview"); command.Description = "Provides operations to manage the deviceStatusOverview property of the microsoft.graph.deviceCompliancePolicy entity."; - var builder = new DeviceStatusOverviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.DeviceStatusOverview.DeviceStatusOverviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -184,14 +187,14 @@ public Command BuildDeviceStatusOverviewNavCommand() return command; } /// - /// Read properties and relationships of the androidWorkProfileCompliancePolicy object. - /// Find more info here + /// Read properties and relationships of the androidCompliancePolicy object. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the androidWorkProfileCompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the androidCompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-get?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -237,14 +240,14 @@ public Command BuildGetCommand() return command; } /// - /// Update the properties of a windows10MobileCompliancePolicy object. - /// Find more info here + /// Update the properties of a windows10CompliancePolicy object. + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a windows10MobileCompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a windows10CompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10compliancepolicy-update?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -267,8 +270,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(DeviceCompliancePolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCompliancePolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -296,7 +299,7 @@ public Command BuildScheduleActionsForRulesNavCommand() { var command = new Command("schedule-actions-for-rules"); command.Description = "Provides operations to call the scheduleActionsForRules method."; - var builder = new ScheduleActionsForRulesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduleActionsForRules.ScheduleActionsForRulesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -313,7 +316,7 @@ public Command BuildScheduledActionsForRuleNavCommand() { var command = new Command("scheduled-actions-for-rule"); command.Description = "Provides operations to manage the scheduledActionsForRule property of the microsoft.graph.deviceCompliancePolicy entity."; - var builder = new ScheduledActionsForRuleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActionsForRule.ScheduledActionsForRuleRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -340,7 +343,7 @@ public Command BuildUserStatusesNavCommand() { var command = new Command("user-statuses"); command.Description = "Provides operations to manage the userStatuses property of the microsoft.graph.deviceCompliancePolicy entity."; - var builder = new UserStatusesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.UserStatuses.UserStatusesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -367,7 +370,7 @@ public Command BuildUserStatusOverviewNavCommand() { var command = new Command("user-status-overview"); command.Description = "Provides operations to manage the userStatusOverview property of the microsoft.graph.deviceCompliancePolicy entity."; - var builder = new UserStatusOverviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.UserStatusOverview.UserStatusOverviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -379,21 +382,21 @@ public Command BuildUserStatusOverviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceCompliancePolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%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 DeviceCompliancePolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Deletes a windows10MobileCompliancePolicy. + /// Deletes a windowsPhone81CompliancePolicy. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -412,17 +415,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the androidWorkProfileCompliancePolicy object. + /// Read properties and relationships of the androidCompliancePolicy object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -431,18 +434,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windows10MobileCompliancePolicy object. + /// Update the properties of a windows10CompliancePolicy object. /// /// 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(DeviceCompliancePolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicy body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -452,9 +455,10 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicy body, return requestInfo; } /// - /// Read properties and relationships of the androidWorkProfileCompliancePolicy object. + /// Read properties and relationships of the androidCompliancePolicy object. /// - public class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -479,3 +483,4 @@ public class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs index 822ec1d99f..6350148389 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/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.DeviceManagement.DeviceCompliancePolicies.Item.DeviceSettingSta /// /// 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}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries/$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}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs index d8b8388d43..bfe8080494 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.DeviceSettingStateSummaries.Count; using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.DeviceSettingStateSummaries.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.DeviceManagement.DeviceCompliancePolicies.Item.DeviceSettingSta /// /// Provides operations to manage the deviceSettingStateSummaries property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class DeviceSettingStateSummariesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceSettingStateSummariesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceSettingStateSummaries property of the microsoft.graph.deviceCompliancePolicy entity. @@ -30,7 +33,7 @@ public class DeviceSettingStateSummariesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new SettingStateDeviceSummaryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.DeviceSettingStateSummaries.Item.SettingStateDeviceSummaryItemRequestBuilder(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.DeviceManagement.DeviceCompliancePolicies.Item.DeviceSettingStateSummaries.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(SettingStateDeviceSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SettingStateDeviceSummary.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 DeviceSettingStateSummariesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries{?%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 DeviceSettingStateSummariesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public DeviceSettingStateSummariesRequestBuilder(string rawUrl) : base("{+baseur /// 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); @@ -247,11 +250,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(SettingStateDeviceSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SettingStateDeviceSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SettingStateDeviceSummary body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SettingStateDeviceSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(SettingStateDeviceSummary bod /// /// Compliance Setting State Device Summary /// - public class DeviceSettingStateSummariesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceSettingStateSummariesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class DeviceSettingStateSummariesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs index 9294b5cec3..87cb2ec7a0 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.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.DeviceManagement.DeviceCompliancePolicies.Item.DeviceSettingSta /// /// Provides operations to manage the deviceSettingStateSummaries property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class SettingStateDeviceSummaryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SettingStateDeviceSummaryItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deviceSettingStateSummaries for deviceManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(SettingStateDeviceSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SettingStateDeviceSummary.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SettingStateDeviceSummaryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries/{settingStateDeviceSummary%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 SettingStateDeviceSummaryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceSettingStateSummaries/{settingStateDeviceSummary%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(SettingStateDeviceSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SettingStateDeviceSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SettingStateDeviceSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SettingStateDeviceSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(SettingStateDeviceSummary bo /// /// Compliance Setting State Device Summary /// - public class SettingStateDeviceSummaryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SettingStateDeviceSummaryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class SettingStateDeviceSummaryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs index a87852d53f..5a212d11a7 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.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.DeviceManagement.DeviceCompliancePolicies.Item.DeviceStatusOver /// /// Provides operations to manage the deviceStatusOverview property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class DeviceStatusOverviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusOverviewRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deviceStatusOverview for deviceManagement @@ -140,8 +143,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(DeviceComplianceDeviceOverview.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceDeviceOverview.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 DeviceStatusOverviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatusOverview{?%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 DeviceStatusOverviewRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatusOverview{?%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(DeviceComplianceDeviceOverview body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceDeviceOverview body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceComplianceDeviceOverview body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceDeviceOverview body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceDeviceOvervi /// /// Read properties and relationships of the deviceComplianceDeviceOverview object. /// - public class DeviceStatusOverviewRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusOverviewRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class DeviceStatusOverviewRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Count/CountRequestBuilder.cs index e8e686ed1c..66542a29d2 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/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.DeviceManagement.DeviceCompliancePolicies.Item.DeviceStatuses.C /// /// 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}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses/$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}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs index fe306aee3a..5fe41c5871 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.DeviceStatuses.Count; using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.DeviceStatuses.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.DeviceManagement.DeviceCompliancePolicies.Item.DeviceStatuses /// /// Provides operations to manage the deviceStatuses property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class DeviceStatusesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceStatuses property of the microsoft.graph.deviceCompliancePolicy entity. @@ -30,7 +33,7 @@ public class DeviceStatusesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceComplianceDeviceStatusItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.DeviceStatuses.Item.DeviceComplianceDeviceStatusItemRequestBuilder(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.DeviceManagement.DeviceCompliancePolicies.Item.DeviceStatuses.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(DeviceComplianceDeviceStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceDeviceStatus.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 DeviceStatusesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses{?%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 DeviceStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public DeviceStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMana /// 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(DeviceComplianceDeviceStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceComplianceDeviceStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceComplianceDeviceStatus body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceComplianceDeviceStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(DeviceComplianceDeviceStatus /// /// List properties and relationships of the deviceComplianceDeviceStatus objects. /// - public class DeviceStatusesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class DeviceStatusesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.cs index de395fa3c9..94291e9257 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceStatuses/Item/DeviceComplianceDeviceStatusItemRequestBuilder.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.DeviceManagement.DeviceCompliancePolicies.Item.DeviceStatuses.I /// /// Provides operations to manage the deviceStatuses property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class DeviceComplianceDeviceStatusItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceDeviceStatusItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceComplianceDeviceStatus. @@ -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(DeviceComplianceDeviceStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceDeviceStatus.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 DeviceComplianceDeviceStatusItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses/{deviceComplianceDeviceStatus%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 DeviceComplianceDeviceStatusItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/deviceStatuses/{deviceComplianceDeviceStatus%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(DeviceComplianceDeviceStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceDeviceStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceComplianceDeviceStatus body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceDeviceStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceDeviceStatus /// /// Read properties and relationships of the deviceComplianceDeviceStatus object. /// - public class DeviceComplianceDeviceStatusItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceDeviceStatusItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class DeviceComplianceDeviceStatusItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesPostRequestBody.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesPostRequestBody.cs index b63abca052..da1ee7add7 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesPostRequestBody.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesPostRequestBody.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.DeviceManagement.DeviceCompliancePolicies.Item.ScheduleActionsForRules { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ScheduleActionsForRulesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ScheduleActionsForRulesPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ScheduleActionsForRulesPostRequestBody : IAdditionalDataHolder, IPa /// The deviceComplianceScheduledActionForRules property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? DeviceComplianceScheduledActionForRules { get; set; } + public List? DeviceComplianceScheduledActionForRules { get; set; } #nullable restore #else - public List DeviceComplianceScheduledActionForRules { get; set; } + public List DeviceComplianceScheduledActionForRules { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ScheduleActionsForRulesPostRequestBody() { @@ -31,12 +33,12 @@ public ScheduleActionsForRulesPostRequestBody() /// /// 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 ScheduleActionsForRulesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduleActionsForRules.ScheduleActionsForRulesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScheduleActionsForRulesPostRequestBody(); + return new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduleActionsForRules.ScheduleActionsForRulesPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "deviceComplianceScheduledActionForRules", n => { DeviceComplianceScheduledActionForRules = n.GetCollectionOfObjectValues(DeviceComplianceScheduledActionForRule.CreateFromDiscriminatorValue)?.ToList(); } }, + { "deviceComplianceScheduledActionForRules", n => { DeviceComplianceScheduledActionForRules = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DeviceComplianceScheduledActionForRule.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("deviceComplianceScheduledActionForRules", DeviceComplianceScheduledActionForRules); + writer.WriteCollectionOfObjectValues("deviceComplianceScheduledActionForRules", DeviceComplianceScheduledActionForRules); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.cs index f69d468333..227d8c8d87 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduleActionsForRules/ScheduleActionsForRulesRequestBuilder.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.DeviceManagement.DeviceCompliancePolicies.Item.ScheduleActionsF /// /// Provides operations to call the scheduleActionsForRules method. /// - public class ScheduleActionsForRulesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScheduleActionsForRulesRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -43,8 +46,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(ScheduleActionsForRulesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduleActionsForRules.ScheduleActionsForRulesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 ScheduleActionsForRulesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduleActionsForRules", 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 ScheduleActionsForRulesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduleActionsForRules", rawUrl) @@ -84,11 +87,11 @@ public ScheduleActionsForRulesRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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(ScheduleActionsForRulesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduleActionsForRules.ScheduleActionsForRulesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ScheduleActionsForRulesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduleActionsForRules.ScheduleActionsForRulesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(ScheduleActionsForRulesPostRe } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Count/CountRequestBuilder.cs index 62d38268a6..d2686ea369 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/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.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActions /// /// 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}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/$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}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.cs index 8bd82b3412..37d17a87b1 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActionsForRule.Item.ScheduledActionConfigurations; 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.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActions /// /// Provides operations to manage the scheduledActionsForRule property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class DeviceComplianceScheduledActionForRuleItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceScheduledActionForRuleItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceComplianceScheduledActionForRule. @@ -159,8 +162,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(DeviceComplianceScheduledActionForRule.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceScheduledActionForRule.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,7 +192,7 @@ public Command BuildScheduledActionConfigurationsNavCommand() { var command = new Command("scheduled-action-configurations"); command.Description = "Provides operations to manage the scheduledActionConfigurations property of the microsoft.graph.deviceComplianceScheduledActionForRule entity."; - var builder = new ScheduledActionConfigurationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActionsForRule.Item.ScheduledActionConfigurations.ScheduledActionConfigurationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -209,14 +212,14 @@ public Command BuildScheduledActionConfigurationsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceComplianceScheduledActionForRuleItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%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 DeviceComplianceScheduledActionForRuleItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}{?%24expand,%24select}", rawUrl) @@ -248,11 +251,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); @@ -268,11 +271,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(DeviceComplianceScheduledActionForRule body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceScheduledActionForRule body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceComplianceScheduledActionForRule body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceScheduledActionForRule body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -284,7 +287,8 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceScheduledAct /// /// Read properties and relationships of the deviceComplianceScheduledActionForRule object. /// - public class DeviceComplianceScheduledActionForRuleItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceScheduledActionForRuleItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -309,3 +313,4 @@ public class DeviceComplianceScheduledActionForRuleItemRequestBuilderGetQueryPar } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Count/CountRequestBuilder.cs index 5f68412c2f..9dc542986e 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/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.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActions /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations/$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}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.cs index 814a38f07f..66de3b157c 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/Item/DeviceComplianceActionItemItemRequestBuilder.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,16 +21,18 @@ namespace ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActions /// /// Provides operations to manage the scheduledActionConfigurations property of the microsoft.graph.deviceComplianceScheduledActionForRule entity. /// - public class DeviceComplianceActionItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceActionItemItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete navigation property scheduledActionConfigurations for deviceManagement + /// Deletes a deviceComplianceActionItem. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete navigation property scheduledActionConfigurations for deviceManagement"; + command.Description = "Deletes a deviceComplianceActionItem.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-devicecomplianceactionitem-delete?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -69,13 +73,14 @@ public Command BuildDeleteCommand() return command; } /// - /// The list of scheduled action configurations for this compliance policy. Compliance policy must have one and only one block scheduled action. + /// Read properties and relationships of the deviceComplianceActionItem object. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The list of scheduled action configurations for this compliance policy. Compliance policy must have one and only one block scheduled action."; + command.Description = "Read properties and relationships of the deviceComplianceActionItem object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-devicecomplianceactionitem-get?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -133,13 +138,14 @@ public Command BuildGetCommand() return command; } /// - /// Update the navigation property scheduledActionConfigurations in deviceManagement + /// Update the properties of a deviceComplianceActionItem object. + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the navigation property scheduledActionConfigurations in deviceManagement"; + command.Description = "Update the properties of a deviceComplianceActionItem object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-devicecomplianceactionitem-update?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -172,8 +178,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(DeviceComplianceActionItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceActionItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,21 +202,21 @@ 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 DeviceComplianceActionItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations/{deviceComplianceActionItem%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 DeviceComplianceActionItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations/{deviceComplianceActionItem%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Delete navigation property scheduledActionConfigurations for deviceManagement + /// Deletes a deviceComplianceActionItem. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -229,17 +235,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The list of scheduled action configurations for this compliance policy. Compliance policy must have one and only one block scheduled action. + /// Read properties and relationships of the deviceComplianceActionItem object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,18 +254,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property scheduledActionConfigurations in deviceManagement + /// Update the properties of a deviceComplianceActionItem object. /// /// 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(DeviceComplianceActionItem body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceActionItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceComplianceActionItem body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceActionItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -269,9 +275,10 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceActionItem b return requestInfo; } /// - /// The list of scheduled action configurations for this compliance policy. Compliance policy must have one and only one block scheduled action. + /// Read properties and relationships of the deviceComplianceActionItem object. /// - public class DeviceComplianceActionItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceActionItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +303,4 @@ public class DeviceComplianceActionItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.cs index 09a2418bac..74a621fe79 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/Item/ScheduledActionConfigurations/ScheduledActionConfigurationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActionsForRule.Item.ScheduledActionConfigurations.Count; using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActionsForRule.Item.ScheduledActionConfigurations.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.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActions /// /// Provides operations to manage the scheduledActionConfigurations property of the microsoft.graph.deviceComplianceScheduledActionForRule entity. /// - public class ScheduledActionConfigurationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScheduledActionConfigurationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the scheduledActionConfigurations property of the microsoft.graph.deviceComplianceScheduledActionForRule entity. @@ -30,7 +33,7 @@ public class ScheduledActionConfigurationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceComplianceActionItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActionsForRule.Item.ScheduledActionConfigurations.Item.DeviceComplianceActionItemItemRequestBuilder(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.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActionsForRule.Item.ScheduledActionConfigurations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -54,13 +57,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Create new navigation property to scheduledActionConfigurations for deviceManagement + /// Create a new deviceComplianceActionItem object. + /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create new navigation property to scheduledActionConfigurations for deviceManagement"; + command.Description = "Create a new deviceComplianceActionItem object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-devicecomplianceactionitem-create?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -88,8 +92,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(DeviceComplianceActionItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceActionItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -111,13 +115,14 @@ public Command BuildCreateCommand() return command; } /// - /// The list of scheduled action configurations for this compliance policy. Compliance policy must have one and only one block scheduled action. + /// List properties and relationships of the deviceComplianceActionItem objects. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "The list of scheduled action configurations for this compliance policy. Compliance policy must have one and only one block scheduled action."; + command.Description = "List properties and relationships of the deviceComplianceActionItem objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-devicecomplianceactionitem-list?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -219,31 +224,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ScheduledActionConfigurationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations{?%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 ScheduledActionConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule/{deviceComplianceScheduledActionForRule%2Did}/scheduledActionConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// The list of scheduled action configurations for this compliance policy. Compliance policy must have one and only one block scheduled action. + /// List properties and relationships of the deviceComplianceActionItem objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -252,18 +257,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to scheduledActionConfigurations for deviceManagement + /// Create a new deviceComplianceActionItem object. /// /// 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 ToPostRequestInformation(DeviceComplianceActionItem body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceComplianceActionItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceComplianceActionItem body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceComplianceActionItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -273,9 +278,10 @@ public RequestInformation ToPostRequestInformation(DeviceComplianceActionItem bo return requestInfo; } /// - /// The list of scheduled action configurations for this compliance policy. Compliance policy must have one and only one block scheduled action. + /// List properties and relationships of the deviceComplianceActionItem objects. /// - public class ScheduledActionConfigurationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScheduledActionConfigurationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +345,4 @@ public class ScheduledActionConfigurationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.cs index 1f908a6675..9dc6290885 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/ScheduledActionsForRule/ScheduledActionsForRuleRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActionsForRule.Count; using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActionsForRule.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.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActions /// /// Provides operations to manage the scheduledActionsForRule property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class ScheduledActionsForRuleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScheduledActionsForRuleRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the scheduledActionsForRule property of the microsoft.graph.deviceCompliancePolicy entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DeviceComplianceScheduledActionForRuleItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActionsForRule.Item.DeviceComplianceScheduledActionForRuleItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceManagement.DeviceCompliancePolicies.Item.ScheduledActionsForRule.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(DeviceComplianceScheduledActionForRule.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceScheduledActionForRule.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 ScheduledActionsForRuleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule{?%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 ScheduledActionsForRuleRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -231,11 +234,11 @@ public ScheduledActionsForRuleRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -251,11 +254,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(DeviceComplianceScheduledActionForRule body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceComplianceScheduledActionForRule body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceComplianceScheduledActionForRule body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceComplianceScheduledActionForRule body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(DeviceComplianceScheduledActi /// /// List properties and relationships of the deviceComplianceScheduledActionForRule objects. /// - public class ScheduledActionsForRuleRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScheduledActionsForRuleRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class ScheduledActionsForRuleRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.cs index ae0c5489e7..a83715ffba 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatusOverview/UserStatusOverviewRequestBuilder.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.DeviceManagement.DeviceCompliancePolicies.Item.UserStatusOvervi /// /// Provides operations to manage the userStatusOverview property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class UserStatusOverviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusOverviewRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userStatusOverview for deviceManagement @@ -140,8 +143,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(DeviceComplianceUserOverview.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceUserOverview.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 UserStatusOverviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatusOverview{?%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 UserStatusOverviewRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatusOverview{?%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(DeviceComplianceUserOverview body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceUserOverview body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceComplianceUserOverview body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceUserOverview body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceUserOverview /// /// Read properties and relationships of the deviceComplianceUserOverview object. /// - public class UserStatusOverviewRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusOverviewRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class UserStatusOverviewRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Count/CountRequestBuilder.cs index 1a870ff8f4..cdaa6a5f27 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/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.DeviceManagement.DeviceCompliancePolicies.Item.UserStatuses.Cou /// /// 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}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses/$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}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.cs index d30fb3d36a..1f7848c645 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/Item/DeviceComplianceUserStatusItemRequestBuilder.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.DeviceManagement.DeviceCompliancePolicies.Item.UserStatuses.Ite /// /// Provides operations to manage the userStatuses property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class DeviceComplianceUserStatusItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceUserStatusItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceComplianceUserStatus. @@ -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(DeviceComplianceUserStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceUserStatus.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 DeviceComplianceUserStatusItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses/{deviceComplianceUserStatus%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 DeviceComplianceUserStatusItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses/{deviceComplianceUserStatus%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(DeviceComplianceUserStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceUserStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceComplianceUserStatus body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceUserStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceUserStatus b /// /// Read properties and relationships of the deviceComplianceUserStatus object. /// - public class DeviceComplianceUserStatusItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceUserStatusItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class DeviceComplianceUserStatusItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.cs index 7f700a337a..a6e0c92916 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/UserStatuses/UserStatusesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.UserStatuses.Count; using ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.UserStatuses.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.DeviceManagement.DeviceCompliancePolicies.Item.UserStatuses /// /// Provides operations to manage the userStatuses property of the microsoft.graph.deviceCompliancePolicy entity. /// - public class UserStatusesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userStatuses property of the microsoft.graph.deviceCompliancePolicy entity. @@ -30,7 +33,7 @@ public class UserStatusesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceComplianceUserStatusItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.Item.UserStatuses.Item.DeviceComplianceUserStatusItemRequestBuilder(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.DeviceManagement.DeviceCompliancePolicies.Item.UserStatuses.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(DeviceComplianceUserStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceUserStatus.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 UserStatusesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses{?%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 UserStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/userStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public UserStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManage /// 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(DeviceComplianceUserStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceComplianceUserStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceComplianceUserStatus body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceComplianceUserStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(DeviceComplianceUserStatus bo /// /// List properties and relationships of the deviceComplianceUserStatus objects. /// - public class UserStatusesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class UserStatusesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.cs index cf7aad2aa9..a1835ef3e4 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicyDeviceStateSummary/DeviceCompliancePolicyDeviceStateSummaryRequestBuilder.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.DeviceManagement.DeviceCompliancePolicyDeviceStateSummary /// /// Provides operations to manage the deviceCompliancePolicyDeviceStateSummary property of the microsoft.graph.deviceManagement entity. /// - public class DeviceCompliancePolicyDeviceStateSummaryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicyDeviceStateSummaryRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deviceCompliancePolicyDeviceStateSummary for deviceManagement @@ -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(ApiSdk.Models.DeviceCompliancePolicyDeviceStateSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCompliancePolicyDeviceStateSummary.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 DeviceCompliancePolicyDeviceStateSummaryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicyDeviceStateSummary{?%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 DeviceCompliancePolicyDeviceStateSummaryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicyDeviceStateSummary{?%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(ApiSdk.Models.DeviceCompliancePolicyDeviceStateSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicyDeviceStateSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DeviceCompliancePolicyDeviceStateSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicyDeviceStateSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -219,7 +222,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DeviceComplian /// /// Read properties and relationships of the deviceCompliancePolicyDeviceStateSummary object. /// - public class DeviceCompliancePolicyDeviceStateSummaryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicyDeviceStateSummaryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -244,3 +248,4 @@ public class DeviceCompliancePolicyDeviceStateSummaryRequestBuilderGetQueryParam } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Count/CountRequestBuilder.cs index c4080c84b3..d538bf3a51 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/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.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.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 @@ -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}/deviceManagement/deviceCompliancePolicySettingStateSummaries/$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}/deviceManagement/deviceCompliancePolicySettingStateSummaries/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.cs index 7a01faf37c..16bd7ffdea 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/DeviceCompliancePolicySettingStateSummariesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.Count; using ApiSdk.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.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.DeviceManagement.DeviceCompliancePolicySettingStateSummaries /// /// Provides operations to manage the deviceCompliancePolicySettingStateSummaries property of the microsoft.graph.deviceManagement entity. /// - public class DeviceCompliancePolicySettingStateSummariesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicySettingStateSummariesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceCompliancePolicySettingStateSummaries property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DeviceCompliancePolicySettingStateSummaryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.Item.DeviceCompliancePolicySettingStateSummaryItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDeviceComplianceSettingStatesNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,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(DeviceCompliancePolicySettingStateSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCompliancePolicySettingStateSummary.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 DeviceCompliancePolicySettingStateSummariesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries{?%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 DeviceCompliancePolicySettingStateSummariesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public DeviceCompliancePolicySettingStateSummariesRequestBuilder(string rawUrl) /// 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); @@ -239,11 +242,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(DeviceCompliancePolicySettingStateSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicySettingStateSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceCompliancePolicySettingStateSummary body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicySettingStateSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(DeviceCompliancePolicySetting /// /// List properties and relationships of the deviceCompliancePolicySettingStateSummary objects. /// - public class DeviceCompliancePolicySettingStateSummariesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicySettingStateSummariesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class DeviceCompliancePolicySettingStateSummariesRequestBuilderGetQueryPa } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.cs index f926a1cee8..a24a45da8d 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceCompliancePolicySettingStateSummaryItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.Item.DeviceComplianceSettingStates; 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.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.It /// /// Provides operations to manage the deviceCompliancePolicySettingStateSummaries property of the microsoft.graph.deviceManagement entity. /// - public class DeviceCompliancePolicySettingStateSummaryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicySettingStateSummaryItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceCompliancePolicySettingStateSummary. @@ -66,7 +69,7 @@ public Command BuildDeviceComplianceSettingStatesNavCommand() { var command = new Command("device-compliance-setting-states"); command.Description = "Provides operations to manage the deviceComplianceSettingStates property of the microsoft.graph.deviceCompliancePolicySettingStateSummary entity."; - var builder = new DeviceComplianceSettingStatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.Item.DeviceComplianceSettingStates.DeviceComplianceSettingStatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -169,8 +172,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(DeviceCompliancePolicySettingStateSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCompliancePolicySettingStateSummary.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -191,14 +194,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 DeviceCompliancePolicySettingStateSummaryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%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 DeviceCompliancePolicySettingStateSummaryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}{?%24expand,%24select}", rawUrl) @@ -230,11 +233,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); @@ -250,11 +253,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(DeviceCompliancePolicySettingStateSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicySettingStateSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicySettingStateSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicySettingStateSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicySettin /// /// Read properties and relationships of the deviceCompliancePolicySettingStateSummary object. /// - public class DeviceCompliancePolicySettingStateSummaryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicySettingStateSummaryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -291,3 +295,4 @@ public class DeviceCompliancePolicySettingStateSummaryItemRequestBuilderGetQuery } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Count/CountRequestBuilder.cs index 870e598e2c..e9b7d2167c 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/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.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.It /// /// 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}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates/$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}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.cs index ab2c1b88ba..a9ae879afb 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/DeviceComplianceSettingStatesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.Item.DeviceComplianceSettingStates.Count; using ApiSdk.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.Item.DeviceComplianceSettingStates.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.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.It /// /// Provides operations to manage the deviceComplianceSettingStates property of the microsoft.graph.deviceCompliancePolicySettingStateSummary entity. /// - public class DeviceComplianceSettingStatesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceSettingStatesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceComplianceSettingStates property of the microsoft.graph.deviceCompliancePolicySettingStateSummary entity. @@ -30,7 +33,7 @@ public class DeviceComplianceSettingStatesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceComplianceSettingStateItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.Item.DeviceComplianceSettingStates.Item.DeviceComplianceSettingStateItemRequestBuilder(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.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.Item.DeviceComplianceSettingStates.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(DeviceComplianceSettingState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceSettingState.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 DeviceComplianceSettingStatesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates{?%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 DeviceComplianceSettingStatesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public DeviceComplianceSettingStatesRequestBuilder(string rawUrl) : base("{+base /// 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(DeviceComplianceSettingState body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceComplianceSettingState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceComplianceSettingState body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceComplianceSettingState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(DeviceComplianceSettingState /// /// List properties and relationships of the deviceComplianceSettingState objects. /// - public class DeviceComplianceSettingStatesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceSettingStatesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class DeviceComplianceSettingStatesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.cs index e357de3402..f1a45dfd28 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicySettingStateSummaries/Item/DeviceComplianceSettingStates/Item/DeviceComplianceSettingStateItemRequestBuilder.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.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.It /// /// Provides operations to manage the deviceComplianceSettingStates property of the microsoft.graph.deviceCompliancePolicySettingStateSummary entity. /// - public class DeviceComplianceSettingStateItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceSettingStateItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceComplianceSettingState. @@ -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(DeviceComplianceSettingState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceComplianceSettingState.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 DeviceComplianceSettingStateItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates/{deviceComplianceSettingState%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 DeviceComplianceSettingStateItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicySettingStateSummaries/{deviceCompliancePolicySettingStateSummary%2Did}/deviceComplianceSettingStates/{deviceComplianceSettingState%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(DeviceComplianceSettingState body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceSettingState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceComplianceSettingState body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceComplianceSettingState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(DeviceComplianceSettingState /// /// Read properties and relationships of the deviceComplianceSettingState object. /// - public class DeviceComplianceSettingStateItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceComplianceSettingStateItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class DeviceComplianceSettingStateItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.cs index b58cb2a134..3766796c28 100644 --- a/src/generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurationDeviceStateSummaries/DeviceConfigurationDeviceStateSummariesRequestBuilder.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.DeviceManagement.DeviceConfigurationDeviceStateSummaries /// /// Provides operations to manage the deviceConfigurationDeviceStateSummaries property of the microsoft.graph.deviceManagement entity. /// - public class DeviceConfigurationDeviceStateSummariesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationDeviceStateSummariesRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deviceConfigurationDeviceStateSummaries for deviceManagement @@ -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(DeviceConfigurationDeviceStateSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfigurationDeviceStateSummary.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 DeviceConfigurationDeviceStateSummariesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurationDeviceStateSummaries{?%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 DeviceConfigurationDeviceStateSummariesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurationDeviceStateSummaries{?%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(DeviceConfigurationDeviceStateSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationDeviceStateSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceConfigurationDeviceStateSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationDeviceStateSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -219,7 +222,8 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationDeviceSta /// /// Read properties and relationships of the deviceConfigurationDeviceStateSummary object. /// - public class DeviceConfigurationDeviceStateSummariesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationDeviceStateSummariesRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -244,3 +248,4 @@ public class DeviceConfigurationDeviceStateSummariesRequestBuilderGetQueryParame } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Count/CountRequestBuilder.cs index ea982ef850..96487ac4dd 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/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.DeviceManagement.DeviceConfigurations.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}/deviceManagement/deviceConfigurations/$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}/deviceManagement/deviceConfigurations/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs index 924a8ab599..fae6fc87af 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceConfigurations.Count; using ApiSdk.DeviceManagement.DeviceConfigurations.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.DeviceManagement.DeviceConfigurations /// /// Provides operations to manage the deviceConfigurations property of the microsoft.graph.deviceManagement entity. /// - public class DeviceConfigurationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceConfigurations property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DeviceConfigurationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.DeviceConfigurationItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentsNavCommand()); commands.Add(builder.BuildAssignNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -53,7 +56,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to count the resources in the collection."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -63,14 +66,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Create a new windowsPhone81GeneralConfiguration object. - /// Find more info here + /// Create a new androidWorkProfileGeneralDeviceConfiguration object. + /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create a new windowsPhone81GeneralConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81generalconfiguration-create?view=graph-rest-1.0"; + command.Description = "Create a new androidWorkProfileGeneralDeviceConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilegeneraldeviceconfiguration-create?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DeviceConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -109,14 +112,14 @@ public Command BuildCreateCommand() return command; } /// - /// List properties and relationships of the macOSDeviceFeaturesConfiguration objects. - /// Find more info here + /// List properties and relationships of the iosUpdateConfiguration objects. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the macOSDeviceFeaturesConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-macosdevicefeaturesconfiguration-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the iosUpdateConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-iosupdateconfiguration-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -206,31 +209,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceConfigurationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations{?%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 DeviceConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List properties and relationships of the macOSDeviceFeaturesConfiguration objects. + /// List properties and relationships of the iosUpdateConfiguration objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -239,18 +242,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new windowsPhone81GeneralConfiguration object. + /// Create a new androidWorkProfileGeneralDeviceConfiguration object. /// /// 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 ToPostRequestInformation(DeviceConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -260,9 +263,10 @@ public RequestInformation ToPostRequestInformation(DeviceConfiguration body, Act return requestInfo; } /// - /// List properties and relationships of the macOSDeviceFeaturesConfiguration objects. + /// List properties and relationships of the iosUpdateConfiguration objects. /// - public class DeviceConfigurationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -326,3 +330,4 @@ public class DeviceConfigurationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostRequestBody.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostRequestBody.cs index a0e8d96165..07a149574d 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostRequestBody.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostRequestBody.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.DeviceManagement.DeviceConfigurations.Item.Assign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AssignPostRequestBody : IAdditionalDataHolder, IParsable /// The assignments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assignments { get; set; } + public List? Assignments { get; set; } #nullable restore #else - public List Assignments { get; set; } + public List Assignments { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignPostRequestBody() { @@ -31,12 +33,12 @@ public AssignPostRequestBody() /// /// 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 AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assign.AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignPostRequestBody(); + return new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assign.AssignPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(DeviceConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DeviceConfigurationAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("assignments", Assignments); + writer.WriteCollectionOfObjectValues("assignments", Assignments); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.cs index c6e4096f29..fdb4bbb184 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignPostResponse.cs @@ -1,33 +1,35 @@ // +#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.DeviceManagement.DeviceConfigurations.Item.Assign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class AssignPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new AssignPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assign.AssignPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignPostResponse(); + return new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assign.AssignPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DeviceConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DeviceConfigurationAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.cs index 3bc1b67d2e..96e9168a1f 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assign/AssignRequestBuilder.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.DeviceManagement.DeviceConfigurations.Item.Assign /// /// Provides operations to call the assign method. /// - public class AssignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -55,8 +58,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(AssignPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assign.AssignPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AssignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assign", 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 AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assign", rawUrl) @@ -107,11 +110,11 @@ public AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/d /// 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(AssignPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assign.AssignPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assign.AssignPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs index f5752886be..2d5c05e096 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assignments.Count; using ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assignments.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.DeviceManagement.DeviceConfigurations.Item.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceConfiguration entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceConfiguration entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceConfigurationAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assignments.Item.DeviceConfigurationAssignmentItemRequestBuilder(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.DeviceManagement.DeviceConfigurations.Item.Assignments.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(DeviceConfigurationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfigurationAssignment.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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagem /// 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(DeviceConfigurationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceConfigurationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceConfigurationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceConfigurationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(DeviceConfigurationAssignment /// /// List properties and relationships of the deviceConfigurationAssignment objects. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Count/CountRequestBuilder.cs index 17ea4d806a..8e562a3632 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assignments/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.DeviceManagement.DeviceConfigurations.Item.Assignments.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}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments/$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}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.cs index d5841078f9..cb3e9c596b 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/Assignments/Item/DeviceConfigurationAssignmentItemRequestBuilder.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.DeviceManagement.DeviceConfigurations.Item.Assignments.Item /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceConfiguration entity. /// - public class DeviceConfigurationAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceConfigurationAssignment. @@ -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(DeviceConfigurationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfigurationAssignment.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 DeviceConfigurationAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments/{deviceConfigurationAssignment%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 DeviceConfigurationAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/assignments/{deviceConfigurationAssignment%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(DeviceConfigurationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceConfigurationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationAssignmen /// /// Read properties and relationships of the deviceConfigurationAssignment object. /// - public class DeviceConfigurationAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class DeviceConfigurationAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs index 939b43723a..1cc39c81e3 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assign; using ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assignments; using ApiSdk.DeviceManagement.DeviceConfigurations.Item.DeviceSettingStateSummaries; @@ -9,6 +10,7 @@ using ApiSdk.DeviceManagement.DeviceConfigurations.Item.UserStatuses; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -27,7 +29,8 @@ namespace ApiSdk.DeviceManagement.DeviceConfigurations.Item /// /// Provides operations to manage the deviceConfigurations property of the microsoft.graph.deviceManagement entity. /// - public class DeviceConfigurationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceConfiguration entity. @@ -37,7 +40,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.deviceConfiguration entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -64,7 +67,7 @@ public Command BuildAssignNavCommand() { var command = new Command("assign"); command.Description = "Provides operations to call the assign method."; - var builder = new AssignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.Assign.AssignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -74,14 +77,14 @@ public Command BuildAssignNavCommand() return command; } /// - /// Deletes a iosCustomConfiguration. - /// Find more info here + /// Deletes a macOSGeneralDeviceConfiguration. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a iosCustomConfiguration.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscustomconfiguration-delete?view=graph-rest-1.0"; + command.Description = "Deletes a macOSGeneralDeviceConfiguration.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-macosgeneraldeviceconfiguration-delete?view=graph-rest-1.0"; var deviceConfigurationIdOption = new Option("--device-configuration-id", description: "The unique identifier of deviceConfiguration") { }; deviceConfigurationIdOption.IsRequired = true; @@ -117,7 +120,7 @@ public Command BuildDeviceSettingStateSummariesNavCommand() { var command = new Command("device-setting-state-summaries"); command.Description = "Provides operations to manage the deviceSettingStateSummaries property of the microsoft.graph.deviceConfiguration entity."; - var builder = new DeviceSettingStateSummariesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.DeviceSettingStateSummaries.DeviceSettingStateSummariesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -144,7 +147,7 @@ public Command BuildDeviceStatusesNavCommand() { var command = new Command("device-statuses"); command.Description = "Provides operations to manage the deviceStatuses property of the microsoft.graph.deviceConfiguration entity."; - var builder = new DeviceStatusesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.DeviceStatuses.DeviceStatusesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -171,7 +174,7 @@ public Command BuildDeviceStatusOverviewNavCommand() { var command = new Command("device-status-overview"); command.Description = "Provides operations to manage the deviceStatusOverview property of the microsoft.graph.deviceConfiguration entity."; - var builder = new DeviceStatusOverviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.DeviceStatusOverview.DeviceStatusOverviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -183,14 +186,14 @@ public Command BuildDeviceStatusOverviewNavCommand() return command; } /// - /// Read properties and relationships of the windows10GeneralConfiguration object. - /// Find more info here + /// Read properties and relationships of the windows10CustomConfiguration object. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the windows10GeneralConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10generalconfiguration-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the windows10CustomConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10customconfiguration-get?view=graph-rest-1.0"; var deviceConfigurationIdOption = new Option("--device-configuration-id", description: "The unique identifier of deviceConfiguration") { }; deviceConfigurationIdOption.IsRequired = true; @@ -243,7 +246,7 @@ public Command BuildGetOmaSettingPlainTextValueWithSecretReferenceValueIdRbComma { var command = new Command("get-oma-setting-plain-text-value-with-secret-reference-value-id"); command.Description = "Provides operations to call the getOmaSettingPlainTextValue method."; - var builder = new GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.GetOmaSettingPlainTextValueWithSecretReferenceValueId.GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -253,14 +256,14 @@ public Command BuildGetOmaSettingPlainTextValueWithSecretReferenceValueIdRbComma return command; } /// - /// Update the properties of a windowsDefenderAdvancedThreatProtectionConfiguration object. - /// Find more info here + /// Update the properties of a windows10TeamGeneralConfiguration object. + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a windowsDefenderAdvancedThreatProtectionConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsdefenderadvancedthreatprotectionconfiguration-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a windows10TeamGeneralConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10teamgeneralconfiguration-update?view=graph-rest-1.0"; var deviceConfigurationIdOption = new Option("--device-configuration-id", description: "The unique identifier of deviceConfiguration") { }; deviceConfigurationIdOption.IsRequired = true; @@ -283,8 +286,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(DeviceConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -312,7 +315,7 @@ public Command BuildUserStatusesNavCommand() { var command = new Command("user-statuses"); command.Description = "Provides operations to manage the userStatuses property of the microsoft.graph.deviceConfiguration entity."; - var builder = new UserStatusesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.UserStatuses.UserStatusesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -339,7 +342,7 @@ public Command BuildUserStatusOverviewNavCommand() { var command = new Command("user-status-overview"); command.Description = "Provides operations to manage the userStatusOverview property of the microsoft.graph.deviceConfiguration entity."; - var builder = new UserStatusOverviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.UserStatusOverview.UserStatusOverviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -351,21 +354,21 @@ public Command BuildUserStatusOverviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceConfigurationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%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 DeviceConfigurationItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Deletes a iosCustomConfiguration. + /// Deletes a macOSGeneralDeviceConfiguration. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -384,17 +387,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windows10GeneralConfiguration object. + /// Read properties and relationships of the windows10CustomConfiguration object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -403,18 +406,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windowsDefenderAdvancedThreatProtectionConfiguration object. + /// Update the properties of a windows10TeamGeneralConfiguration object. /// /// 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(DeviceConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -424,9 +427,10 @@ public RequestInformation ToPatchRequestInformation(DeviceConfiguration body, Ac return requestInfo; } /// - /// Read properties and relationships of the windows10GeneralConfiguration object. + /// Read properties and relationships of the windows10CustomConfiguration object. /// - public class DeviceConfigurationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -451,3 +455,4 @@ public class DeviceConfigurationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs index 5318ecd0a4..28fc979b08 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/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.DeviceManagement.DeviceConfigurations.Item.DeviceSettingStateSu /// /// 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}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries/$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}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs index 62ae77192f..b906a1546d 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/DeviceSettingStateSummariesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceConfigurations.Item.DeviceSettingStateSummaries.Count; using ApiSdk.DeviceManagement.DeviceConfigurations.Item.DeviceSettingStateSummaries.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.DeviceManagement.DeviceConfigurations.Item.DeviceSettingStateSu /// /// Provides operations to manage the deviceSettingStateSummaries property of the microsoft.graph.deviceConfiguration entity. /// - public class DeviceSettingStateSummariesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceSettingStateSummariesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceSettingStateSummaries property of the microsoft.graph.deviceConfiguration entity. @@ -30,7 +33,7 @@ public class DeviceSettingStateSummariesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new SettingStateDeviceSummaryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.DeviceSettingStateSummaries.Item.SettingStateDeviceSummaryItemRequestBuilder(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.DeviceManagement.DeviceConfigurations.Item.DeviceSettingStateSummaries.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(SettingStateDeviceSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SettingStateDeviceSummary.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 DeviceSettingStateSummariesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries{?%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 DeviceSettingStateSummariesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public DeviceSettingStateSummariesRequestBuilder(string rawUrl) : base("{+baseur /// 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(SettingStateDeviceSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SettingStateDeviceSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SettingStateDeviceSummary body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SettingStateDeviceSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(SettingStateDeviceSummary bod /// /// List properties and relationships of the settingStateDeviceSummary objects. /// - public class DeviceSettingStateSummariesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceSettingStateSummariesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class DeviceSettingStateSummariesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs index c62899e2ba..d8e6e80aa8 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceSettingStateSummaries/Item/SettingStateDeviceSummaryItemRequestBuilder.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.DeviceManagement.DeviceConfigurations.Item.DeviceSettingStateSu /// /// Provides operations to manage the deviceSettingStateSummaries property of the microsoft.graph.deviceConfiguration entity. /// - public class SettingStateDeviceSummaryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SettingStateDeviceSummaryItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a settingStateDeviceSummary. @@ -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(SettingStateDeviceSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SettingStateDeviceSummary.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 SettingStateDeviceSummaryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries/{settingStateDeviceSummary%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 SettingStateDeviceSummaryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceSettingStateSummaries/{settingStateDeviceSummary%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(SettingStateDeviceSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SettingStateDeviceSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SettingStateDeviceSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SettingStateDeviceSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(SettingStateDeviceSummary bo /// /// Read properties and relationships of the settingStateDeviceSummary object. /// - public class SettingStateDeviceSummaryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SettingStateDeviceSummaryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class SettingStateDeviceSummaryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs index d4c43a02e8..eb06b2dfd9 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatusOverview/DeviceStatusOverviewRequestBuilder.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.DeviceManagement.DeviceConfigurations.Item.DeviceStatusOverview /// /// Provides operations to manage the deviceStatusOverview property of the microsoft.graph.deviceConfiguration entity. /// - public class DeviceStatusOverviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusOverviewRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deviceStatusOverview for deviceManagement @@ -140,8 +143,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(DeviceConfigurationDeviceOverview.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfigurationDeviceOverview.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 DeviceStatusOverviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatusOverview{?%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 DeviceStatusOverviewRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatusOverview{?%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(DeviceConfigurationDeviceOverview body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationDeviceOverview body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceConfigurationDeviceOverview body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationDeviceOverview body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationDeviceOve /// /// Read properties and relationships of the deviceConfigurationDeviceOverview object. /// - public class DeviceStatusOverviewRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusOverviewRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class DeviceStatusOverviewRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs index 3f53333d41..ef42264bc5 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/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.DeviceManagement.DeviceConfigurations.Item.DeviceStatuses.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}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses/$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}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs index e8714772bd..4d97f54125 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/DeviceStatusesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceConfigurations.Item.DeviceStatuses.Count; using ApiSdk.DeviceManagement.DeviceConfigurations.Item.DeviceStatuses.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.DeviceManagement.DeviceConfigurations.Item.DeviceStatuses /// /// Provides operations to manage the deviceStatuses property of the microsoft.graph.deviceConfiguration entity. /// - public class DeviceStatusesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceStatuses property of the microsoft.graph.deviceConfiguration entity. @@ -30,7 +33,7 @@ public class DeviceStatusesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceConfigurationDeviceStatusItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.DeviceStatuses.Item.DeviceConfigurationDeviceStatusItemRequestBuilder(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.DeviceManagement.DeviceConfigurations.Item.DeviceStatuses.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(DeviceConfigurationDeviceStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfigurationDeviceStatus.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 DeviceStatusesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses{?%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 DeviceStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public DeviceStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMana /// 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(DeviceConfigurationDeviceStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceConfigurationDeviceStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceConfigurationDeviceStatus body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceConfigurationDeviceStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(DeviceConfigurationDeviceStat /// /// List properties and relationships of the deviceConfigurationDeviceStatus objects. /// - public class DeviceStatusesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceStatusesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class DeviceStatusesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.cs index 2302eabc3a..e05d2091d9 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceStatuses/Item/DeviceConfigurationDeviceStatusItemRequestBuilder.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.DeviceManagement.DeviceConfigurations.Item.DeviceStatuses.Item /// /// Provides operations to manage the deviceStatuses property of the microsoft.graph.deviceConfiguration entity. /// - public class DeviceConfigurationDeviceStatusItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationDeviceStatusItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceConfigurationDeviceStatus. @@ -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(DeviceConfigurationDeviceStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfigurationDeviceStatus.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 DeviceConfigurationDeviceStatusItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses/{deviceConfigurationDeviceStatus%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 DeviceConfigurationDeviceStatusItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/deviceStatuses/{deviceConfigurationDeviceStatus%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(DeviceConfigurationDeviceStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationDeviceStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceConfigurationDeviceStatus body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationDeviceStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationDeviceSta /// /// Read properties and relationships of the deviceConfigurationDeviceStatus object. /// - public class DeviceConfigurationDeviceStatusItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationDeviceStatusItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class DeviceConfigurationDeviceStatusItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.cs index dbc3474943..639c6a6783 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.DeviceConfigurations.Item.GetOmaSettingPlainTextValueWithSecretReferenceValueId { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse : IAdditionalDataHolder, IParsable + public partial class GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse : 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. @@ -21,7 +23,7 @@ public class GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse : public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse() { @@ -30,12 +32,12 @@ public GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse() /// /// 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 GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.GetOmaSettingPlainTextValueWithSecretReferenceValueId.GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse(); + return new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.GetOmaSettingPlainTextValueWithSecretReferenceValueId.GetOmaSettingPlainTextValueWithSecretReferenceValueIdGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.cs index 2a612ca199..dfb8bcaea6 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/GetOmaSettingPlainTextValueWithSecretReferenceValueId/GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder.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.DeviceManagement.DeviceConfigurations.Item.GetOmaSettingPlainTe /// /// Provides operations to call the getOmaSettingPlainTextValue method. /// - public class GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function getOmaSettingPlainTextValue @@ -65,14 +68,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 GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/getOmaSettingPlainTextValue(secretReferenceValueId='{secretReferenceValueId}')", 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 GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/getOmaSettingPlainTextValue(secretReferenceValueId='{secretReferenceValueId}')", rawUrl) @@ -99,3 +102,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.DeviceManagement.DeviceConfigurations.Item.UserStatusOverview /// /// Provides operations to manage the userStatusOverview property of the microsoft.graph.deviceConfiguration entity. /// - public class UserStatusOverviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusOverviewRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userStatusOverview for deviceManagement @@ -140,8 +143,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(DeviceConfigurationUserOverview.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfigurationUserOverview.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 UserStatusOverviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatusOverview{?%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 UserStatusOverviewRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatusOverview{?%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(DeviceConfigurationUserOverview body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationUserOverview body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceConfigurationUserOverview body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationUserOverview body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationUserOverv /// /// Read properties and relationships of the deviceConfigurationUserOverview object. /// - public class UserStatusOverviewRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusOverviewRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class UserStatusOverviewRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs index ad63bd894f..0868f1e8a9 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/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.DeviceManagement.DeviceConfigurations.Item.UserStatuses.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}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses/$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}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.cs index ff791d6a6a..c756c36e03 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/Item/DeviceConfigurationUserStatusItemRequestBuilder.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.DeviceManagement.DeviceConfigurations.Item.UserStatuses.Item /// /// Provides operations to manage the userStatuses property of the microsoft.graph.deviceConfiguration entity. /// - public class DeviceConfigurationUserStatusItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationUserStatusItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceConfigurationUserStatus. @@ -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(DeviceConfigurationUserStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfigurationUserStatus.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 DeviceConfigurationUserStatusItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses/{deviceConfigurationUserStatus%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 DeviceConfigurationUserStatusItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses/{deviceConfigurationUserStatus%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(DeviceConfigurationUserStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationUserStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceConfigurationUserStatus body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationUserStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationUserStatu /// /// Read properties and relationships of the deviceConfigurationUserStatus object. /// - public class DeviceConfigurationUserStatusItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationUserStatusItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class DeviceConfigurationUserStatusItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs index eb8bf1cb53..5c4c48501e 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/UserStatuses/UserStatusesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceConfigurations.Item.UserStatuses.Count; using ApiSdk.DeviceManagement.DeviceConfigurations.Item.UserStatuses.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.DeviceManagement.DeviceConfigurations.Item.UserStatuses /// /// Provides operations to manage the userStatuses property of the microsoft.graph.deviceConfiguration entity. /// - public class UserStatusesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userStatuses property of the microsoft.graph.deviceConfiguration entity. @@ -30,7 +33,7 @@ public class UserStatusesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceConfigurationUserStatusItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.Item.UserStatuses.Item.DeviceConfigurationUserStatusItemRequestBuilder(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.DeviceManagement.DeviceConfigurations.Item.UserStatuses.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(DeviceConfigurationUserStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfigurationUserStatus.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 UserStatusesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses{?%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 UserStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}/userStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public UserStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManage /// 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(DeviceConfigurationUserStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceConfigurationUserStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceConfigurationUserStatus body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceConfigurationUserStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(DeviceConfigurationUserStatus /// /// List properties and relationships of the deviceConfigurationUserStatus objects. /// - public class UserStatusesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserStatusesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class UserStatusesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Count/CountRequestBuilder.cs index 3a77aba025..10dc69bdec 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/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.DeviceManagement.DeviceEnrollmentConfigurations.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}/deviceManagement/deviceEnrollmentConfigurations/$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}/deviceManagement/deviceEnrollmentConfigurations/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs index c0a78a84b8..2b09b469bd 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Count; using ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.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.DeviceManagement.DeviceEnrollmentConfigurations /// /// Provides operations to manage the deviceEnrollmentConfigurations property of the microsoft.graph.deviceManagement entity. /// - public class DeviceEnrollmentConfigurationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceEnrollmentConfigurationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceEnrollmentConfigurations property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DeviceEnrollmentConfigurationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.DeviceEnrollmentConfigurationItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentsNavCommand()); commands.Add(builder.BuildAssignNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -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.DeviceManagement.DeviceEnrollmentConfigurations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -58,14 +61,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. - /// Find more info here + /// Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create a new deviceEnrollmentPlatformRestrictionsConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-create?view=graph-rest-1.0"; + command.Description = "Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-create?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -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(DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -104,14 +107,14 @@ public Command BuildCreateCommand() return command; } /// - /// List properties and relationships of the deviceEnrollmentLimitConfiguration objects. - /// Find more info here + /// List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the deviceEnrollmentLimitConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -201,31 +204,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceEnrollmentConfigurationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%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 DeviceEnrollmentConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List properties and relationships of the deviceEnrollmentLimitConfiguration objects. + /// List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -234,18 +237,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. /// /// 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 ToPostRequestInformation(DeviceEnrollmentConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceEnrollmentConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceEnrollmentConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceEnrollmentConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,9 +258,10 @@ public RequestInformation ToPostRequestInformation(DeviceEnrollmentConfiguration return requestInfo; } /// - /// List properties and relationships of the deviceEnrollmentLimitConfiguration objects. + /// List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. /// - public class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -321,3 +325,4 @@ public class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignPostRequestBody.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignPostRequestBody.cs index 71a1e7b62e..471d43177f 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignPostRequestBody.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignPostRequestBody.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.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AssignPostRequestBody : IAdditionalDataHolder, IParsable /// The enrollmentConfigurationAssignments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? EnrollmentConfigurationAssignments { get; set; } + public List? EnrollmentConfigurationAssignments { get; set; } #nullable restore #else - public List EnrollmentConfigurationAssignments { get; set; } + public List EnrollmentConfigurationAssignments { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignPostRequestBody() { @@ -31,12 +33,12 @@ public AssignPostRequestBody() /// /// 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 AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assign.AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignPostRequestBody(); + return new global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assign.AssignPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "enrollmentConfigurationAssignments", n => { EnrollmentConfigurationAssignments = n.GetCollectionOfObjectValues(EnrollmentConfigurationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "enrollmentConfigurationAssignments", n => { EnrollmentConfigurationAssignments = n.GetCollectionOfObjectValues(global::ApiSdk.Models.EnrollmentConfigurationAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("enrollmentConfigurationAssignments", EnrollmentConfigurationAssignments); + writer.WriteCollectionOfObjectValues("enrollmentConfigurationAssignments", EnrollmentConfigurationAssignments); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.cs index 462621586e..1208712442 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assign/AssignRequestBuilder.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.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assign /// /// Provides operations to call the assign method. /// - public class AssignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -43,8 +46,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(AssignPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assign.AssignPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 AssignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assign", 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 AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assign", rawUrl) @@ -84,11 +87,11 @@ public AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/d /// 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(AssignPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assign.AssignPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assign.AssignPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs index cf0b1743f0..70f7a64bed 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assignments.Count; using ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assignments.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.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceEnrollmentConfiguration entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceEnrollmentConfiguration entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EnrollmentConfigurationAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assignments.Item.EnrollmentConfigurationAssignmentItemRequestBuilder(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.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assignments.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(EnrollmentConfigurationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EnrollmentConfigurationAssignment.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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagem /// 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(EnrollmentConfigurationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EnrollmentConfigurationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EnrollmentConfigurationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EnrollmentConfigurationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(EnrollmentConfigurationAssign /// /// List properties and relationships of the enrollmentConfigurationAssignment objects. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Count/CountRequestBuilder.cs index 9e9a34cdaf..214aa26712 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/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.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assignment /// /// 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}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments/$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}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.cs index 5c796b3f33..1862c21133 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/Assignments/Item/EnrollmentConfigurationAssignmentItemRequestBuilder.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.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assignment /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceEnrollmentConfiguration entity. /// - public class EnrollmentConfigurationAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnrollmentConfigurationAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a enrollmentConfigurationAssignment. @@ -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(EnrollmentConfigurationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EnrollmentConfigurationAssignment.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 EnrollmentConfigurationAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments/{enrollmentConfigurationAssignment%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 EnrollmentConfigurationAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/assignments/{enrollmentConfigurationAssignment%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(EnrollmentConfigurationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EnrollmentConfigurationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EnrollmentConfigurationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EnrollmentConfigurationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(EnrollmentConfigurationAssig /// /// Read properties and relationships of the enrollmentConfigurationAssignment object. /// - public class EnrollmentConfigurationAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnrollmentConfigurationAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class EnrollmentConfigurationAssignmentItemRequestBuilderGetQueryParamete } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs index 8eab6a3473..1af5e6390c 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assign; using ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assignments; using ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.SetPriority; 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.DeviceManagement.DeviceEnrollmentConfigurations.Item /// /// Provides operations to manage the deviceEnrollmentConfigurations property of the microsoft.graph.deviceManagement entity. /// - public class DeviceEnrollmentConfigurationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceEnrollmentConfigurationItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.deviceEnrollmentConfiguration entity. @@ -32,7 +35,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.deviceEnrollmentConfiguration entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -59,7 +62,7 @@ public Command BuildAssignNavCommand() { var command = new Command("assign"); command.Description = "Provides operations to call the assign method."; - var builder = new AssignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.Assign.AssignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -158,14 +161,14 @@ public Command BuildGetCommand() return command; } /// - /// Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. - /// Find more info here + /// Update the properties of a deviceEnrollmentLimitConfiguration object. + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a deviceEnrollmentLimitConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-update?view=graph-rest-1.0"; var deviceEnrollmentConfigurationIdOption = new Option("--device-enrollment-configuration-id", description: "The unique identifier of deviceEnrollmentConfiguration") { }; deviceEnrollmentConfigurationIdOption.IsRequired = true; @@ -188,8 +191,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(DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -217,7 +220,7 @@ public Command BuildSetPriorityNavCommand() { var command = new Command("set-priority"); command.Description = "Provides operations to call the setPriority method."; - var builder = new SetPriorityRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.SetPriority.SetPriorityRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -227,14 +230,14 @@ public Command BuildSetPriorityNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceEnrollmentConfigurationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%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 DeviceEnrollmentConfigurationItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}{?%24expand,%24select}", rawUrl) @@ -266,11 +269,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); @@ -279,18 +282,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Update the properties of a deviceEnrollmentLimitConfiguration object. /// /// 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(DeviceEnrollmentConfiguration body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceEnrollmentConfiguration body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceEnrollmentConfiguration body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceEnrollmentConfiguration body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -302,7 +305,8 @@ public RequestInformation ToPatchRequestInformation(DeviceEnrollmentConfiguratio /// /// Read properties and relationships of the deviceEnrollmentLimitConfiguration object. /// - public class DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -327,3 +331,4 @@ public class DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityPostRequestBody.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityPostRequestBody.cs index 8aecb41d14..67bece8c05 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityPostRequestBody.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.SetPriority { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetPriorityPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetPriorityPostRequestBody : 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. @@ -15,7 +17,7 @@ public class SetPriorityPostRequestBody : IAdditionalDataHolder, IParsable /// The priority property public int? Priority { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetPriorityPostRequestBody() { @@ -24,12 +26,12 @@ public SetPriorityPostRequestBody() /// /// 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 SetPriorityPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.SetPriority.SetPriorityPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetPriorityPostRequestBody(); + return new global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.SetPriority.SetPriorityPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.cs index 266cf7ad36..145f4c8d07 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/SetPriority/SetPriorityRequestBuilder.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.DeviceManagement.DeviceEnrollmentConfigurations.Item.SetPriorit /// /// Provides operations to call the setPriority method. /// - public class SetPriorityRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetPriorityRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -43,8 +46,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(SetPriorityPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.SetPriority.SetPriorityPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 SetPriorityRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/setPriority", 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 SetPriorityRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations/{deviceEnrollmentConfiguration%2Did}/setPriority", rawUrl) @@ -84,11 +87,11 @@ public SetPriorityRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagem /// 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(SetPriorityPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.SetPriority.SetPriorityPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetPriorityPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.Item.SetPriority.SetPriorityPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(SetPriorityPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceManagementPartners/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/DeviceManagementPartners/Count/CountRequestBuilder.cs index afb70ac897..9e7c4e58a8 100644 --- a/src/generated/DeviceManagement/DeviceManagementPartners/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceManagementPartners/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.DeviceManagement.DeviceManagementPartners.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}/deviceManagement/deviceManagementPartners/$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}/deviceManagement/deviceManagementPartners/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/de /// 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/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.cs b/src/generated/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.cs index 5693fdaa8d..c8d654e40d 100644 --- a/src/generated/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceManagementPartners/DeviceManagementPartnersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceManagementPartners.Count; using ApiSdk.DeviceManagement.DeviceManagementPartners.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.DeviceManagement.DeviceManagementPartners /// /// Provides operations to manage the deviceManagementPartners property of the microsoft.graph.deviceManagement entity. /// - public class DeviceManagementPartnersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementPartnersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceManagementPartners property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DeviceManagementPartnerItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceManagementPartners.Item.DeviceManagementPartnerItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceManagement.DeviceManagementPartners.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,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(DeviceManagementPartner.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceManagementPartner.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 DeviceManagementPartnersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceManagementPartners{?%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 DeviceManagementPartnersRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceManagementPartners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public DeviceManagementPartnersRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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); @@ -239,11 +242,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(DeviceManagementPartner body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceManagementPartner body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceManagementPartner body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceManagementPartner body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(DeviceManagementPartner body, /// /// List properties and relationships of the deviceManagementPartner objects. /// - public class DeviceManagementPartnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementPartnersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class DeviceManagementPartnersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.cs index fc94addb28..34b7d03669 100644 --- a/src/generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceManagementPartners/Item/DeviceManagementPartnerItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.DeviceManagementPartners.Item.Terminate; 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.DeviceManagement.DeviceManagementPartners.Item /// /// Provides operations to manage the deviceManagementPartners property of the microsoft.graph.deviceManagement entity. /// - public class DeviceManagementPartnerItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementPartnerItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceManagementPartner. @@ -142,8 +145,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(DeviceManagementPartner.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceManagementPartner.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,7 +174,7 @@ public Command BuildTerminateNavCommand() { var command = new Command("terminate"); command.Description = "Provides operations to call the terminate method."; - var builder = new TerminateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceManagementPartners.Item.Terminate.TerminateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -181,14 +184,14 @@ public Command BuildTerminateNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceManagementPartnerItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceManagementPartners/{deviceManagementPartner%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 DeviceManagementPartnerItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceManagementPartners/{deviceManagementPartner%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(DeviceManagementPartner body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagementPartner body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceManagementPartner body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagementPartner body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementPartner body /// /// Read properties and relationships of the deviceManagementPartner object. /// - public class DeviceManagementPartnerItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementPartnerItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class DeviceManagementPartnerItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.cs b/src/generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.cs index 85f474175d..706bef640c 100644 --- a/src/generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceManagementPartners/Item/Terminate/TerminateRequestBuilder.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.DeviceManagement.DeviceManagementPartners.Item.Terminate /// /// Provides operations to call the terminate method. /// - public class TerminateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TerminateRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TerminateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/deviceManagementPartners/{deviceManagementPartner%2Did}/terminate", 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 TerminateRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceManagementPartners/{deviceManagementPartner%2Did}/terminate", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ApplePushNotificationCertificate; using ApiSdk.DeviceManagement.AuditEvents; using ApiSdk.DeviceManagement.ComplianceManagementPartners; @@ -62,6 +63,7 @@ using ApiSdk.DeviceManagement.WindowsMalwareInformation; 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; @@ -80,7 +82,8 @@ namespace ApiSdk.DeviceManagement /// /// Provides operations to manage the deviceManagement singleton. /// - public class DeviceManagementRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the applePushNotificationCertificate property of the microsoft.graph.deviceManagement entity. @@ -90,7 +93,7 @@ public Command BuildApplePushNotificationCertificateNavCommand() { var command = new Command("apple-push-notification-certificate"); command.Description = "Provides operations to manage the applePushNotificationCertificate property of the microsoft.graph.deviceManagement entity."; - var builder = new ApplePushNotificationCertificateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ApplePushNotificationCertificate.ApplePushNotificationCertificateRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -115,7 +118,7 @@ public Command BuildAuditEventsNavCommand() { var command = new Command("audit-events"); command.Description = "Provides operations to manage the auditEvents property of the microsoft.graph.deviceManagement entity."; - var builder = new AuditEventsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.AuditEvents.AuditEventsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -144,7 +147,7 @@ public Command BuildComplianceManagementPartnersNavCommand() { var command = new Command("compliance-management-partners"); command.Description = "Provides operations to manage the complianceManagementPartners property of the microsoft.graph.deviceManagement entity."; - var builder = new ComplianceManagementPartnersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ComplianceManagementPartners.ComplianceManagementPartnersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -171,7 +174,7 @@ public Command BuildConditionalAccessSettingsNavCommand() { var command = new Command("conditional-access-settings"); command.Description = "Provides operations to manage the conditionalAccessSettings property of the microsoft.graph.deviceManagement entity."; - var builder = new ConditionalAccessSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ConditionalAccessSettings.ConditionalAccessSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -190,7 +193,7 @@ public Command BuildDetectedAppsNavCommand() { var command = new Command("detected-apps"); command.Description = "Provides operations to manage the detectedApps property of the microsoft.graph.deviceManagement entity."; - var builder = new DetectedAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DetectedApps.DetectedAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -217,7 +220,7 @@ public Command BuildDeviceCategoriesNavCommand() { var command = new Command("device-categories"); command.Description = "Provides operations to manage the deviceCategories property of the microsoft.graph.deviceManagement entity."; - var builder = new DeviceCategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCategories.DeviceCategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -244,7 +247,7 @@ public Command BuildDeviceCompliancePoliciesNavCommand() { var command = new Command("device-compliance-policies"); command.Description = "Provides operations to manage the deviceCompliancePolicies property of the microsoft.graph.deviceManagement entity."; - var builder = new DeviceCompliancePoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicies.DeviceCompliancePoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -271,7 +274,7 @@ public Command BuildDeviceCompliancePolicyDeviceStateSummaryNavCommand() { var command = new Command("device-compliance-policy-device-state-summary"); command.Description = "Provides operations to manage the deviceCompliancePolicyDeviceStateSummary property of the microsoft.graph.deviceManagement entity."; - var builder = new DeviceCompliancePolicyDeviceStateSummaryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicyDeviceStateSummary.DeviceCompliancePolicyDeviceStateSummaryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -290,7 +293,7 @@ public Command BuildDeviceCompliancePolicySettingStateSummariesNavCommand() { var command = new Command("device-compliance-policy-setting-state-summaries"); command.Description = "Provides operations to manage the deviceCompliancePolicySettingStateSummaries property of the microsoft.graph.deviceManagement entity."; - var builder = new DeviceCompliancePolicySettingStateSummariesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceCompliancePolicySettingStateSummaries.DeviceCompliancePolicySettingStateSummariesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -317,7 +320,7 @@ public Command BuildDeviceConfigurationDeviceStateSummariesNavCommand() { var command = new Command("device-configuration-device-state-summaries"); command.Description = "Provides operations to manage the deviceConfigurationDeviceStateSummaries property of the microsoft.graph.deviceManagement entity."; - var builder = new DeviceConfigurationDeviceStateSummariesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurationDeviceStateSummaries.DeviceConfigurationDeviceStateSummariesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -336,7 +339,7 @@ public Command BuildDeviceConfigurationsNavCommand() { var command = new Command("device-configurations"); command.Description = "Provides operations to manage the deviceConfigurations property of the microsoft.graph.deviceManagement entity."; - var builder = new DeviceConfigurationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceConfigurations.DeviceConfigurationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -363,7 +366,7 @@ public Command BuildDeviceEnrollmentConfigurationsNavCommand() { var command = new Command("device-enrollment-configurations"); command.Description = "Provides operations to manage the deviceEnrollmentConfigurations property of the microsoft.graph.deviceManagement entity."; - var builder = new DeviceEnrollmentConfigurationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceEnrollmentConfigurations.DeviceEnrollmentConfigurationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -390,7 +393,7 @@ public Command BuildDeviceManagementPartnersNavCommand() { var command = new Command("device-management-partners"); command.Description = "Provides operations to manage the deviceManagementPartners property of the microsoft.graph.deviceManagement entity."; - var builder = new DeviceManagementPartnersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceManagementPartners.DeviceManagementPartnersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -417,7 +420,7 @@ public Command BuildExchangeConnectorsNavCommand() { var command = new Command("exchange-connectors"); command.Description = "Provides operations to manage the exchangeConnectors property of the microsoft.graph.deviceManagement entity."; - var builder = new ExchangeConnectorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ExchangeConnectors.ExchangeConnectorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -438,13 +441,13 @@ public Command BuildExchangeConnectorsNavCommand() } /// /// Read properties and relationships of the deviceManagement object. - /// Find more info here + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the deviceManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-gpanalyticsservice-devicemanagement-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the deviceManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-androidforwork-devicemanagement-get?view=graph-rest-1.0"; var selectOption = new Option("--select", description: "Select properties to be returned") { Arity = ArgumentArity.ZeroOrMore }; @@ -491,7 +494,7 @@ public Command BuildGetEffectivePermissionsWithScopeRbCommand() { var command = new Command("get-effective-permissions-with-scope"); command.Description = "Provides operations to call the getEffectivePermissions method."; - var builder = new GetEffectivePermissionsWithScopeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.GetEffectivePermissionsWithScope.GetEffectivePermissionsWithScopeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -508,7 +511,7 @@ public Command BuildImportedWindowsAutopilotDeviceIdentitiesNavCommand() { var command = new Command("imported-windows-autopilot-device-identities"); command.Description = "Provides operations to manage the importedWindowsAutopilotDeviceIdentities property of the microsoft.graph.deviceManagement entity."; - var builder = new ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -536,7 +539,7 @@ public Command BuildIosUpdateStatusesNavCommand() { var command = new Command("ios-update-statuses"); command.Description = "Provides operations to manage the iosUpdateStatuses property of the microsoft.graph.deviceManagement entity."; - var builder = new IosUpdateStatusesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.IosUpdateStatuses.IosUpdateStatusesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -563,7 +566,7 @@ public Command BuildManagedDeviceOverviewNavCommand() { var command = new Command("managed-device-overview"); command.Description = "Provides operations to manage the managedDeviceOverview property of the microsoft.graph.deviceManagement entity."; - var builder = new ManagedDeviceOverviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDeviceOverview.ManagedDeviceOverviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -580,7 +583,7 @@ public Command BuildManagedDevicesNavCommand() { var command = new Command("managed-devices"); command.Description = "Provides operations to manage the managedDevices property of the microsoft.graph.deviceManagement entity."; - var builder = new ManagedDevicesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.ManagedDevicesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -607,7 +610,7 @@ public Command BuildMobileAppTroubleshootingEventsNavCommand() { var command = new Command("mobile-app-troubleshooting-events"); command.Description = "Provides operations to manage the mobileAppTroubleshootingEvents property of the microsoft.graph.deviceManagement entity."; - var builder = new MobileAppTroubleshootingEventsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.MobileAppTroubleshootingEvents.MobileAppTroubleshootingEventsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -634,7 +637,7 @@ public Command BuildMobileThreatDefenseConnectorsNavCommand() { var command = new Command("mobile-threat-defense-connectors"); command.Description = "Provides operations to manage the mobileThreatDefenseConnectors property of the microsoft.graph.deviceManagement entity."; - var builder = new MobileThreatDefenseConnectorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.MobileThreatDefenseConnectors.MobileThreatDefenseConnectorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -661,7 +664,7 @@ public Command BuildNotificationMessageTemplatesNavCommand() { var command = new Command("notification-message-templates"); command.Description = "Provides operations to manage the notificationMessageTemplates property of the microsoft.graph.deviceManagement entity."; - var builder = new NotificationMessageTemplatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.NotificationMessageTemplates.NotificationMessageTemplatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -682,13 +685,13 @@ public Command BuildNotificationMessageTemplatesNavCommand() } /// /// Update the properties of a deviceManagement object. - /// Find more info here + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a deviceManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-devicemanagement-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a deviceManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-auditing-devicemanagement-update?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -706,8 +709,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.DeviceManagement.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceManagement.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -734,7 +737,7 @@ public Command BuildRemoteAssistancePartnersNavCommand() { var command = new Command("remote-assistance-partners"); command.Description = "Provides operations to manage the remoteAssistancePartners property of the microsoft.graph.deviceManagement entity."; - var builder = new RemoteAssistancePartnersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RemoteAssistancePartners.RemoteAssistancePartnersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -761,7 +764,7 @@ public Command BuildReportsNavCommand() { var command = new Command("reports"); command.Description = "Provides operations to manage the reports property of the microsoft.graph.deviceManagement entity."; - var builder = new ReportsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.ReportsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -786,6 +789,7 @@ public Command BuildReportsNavCommand() nonExecCommands.Add(builder.BuildGetReportFiltersNavCommand()); nonExecCommands.Add(builder.BuildGetSettingNonComplianceReportNavCommand()); execCommands.Add(builder.BuildPatchCommand()); + nonExecCommands.Add(builder.BuildRetrieveDeviceAppInstallationStatusReportNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); @@ -804,7 +808,7 @@ public Command BuildResourceOperationsNavCommand() { var command = new Command("resource-operations"); command.Description = "Provides operations to manage the resourceOperations property of the microsoft.graph.deviceManagement entity."; - var builder = new ResourceOperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ResourceOperations.ResourceOperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -831,7 +835,7 @@ public Command BuildRoleAssignmentsNavCommand() { var command = new Command("role-assignments"); command.Description = "Provides operations to manage the roleAssignments property of the microsoft.graph.deviceManagement entity."; - var builder = new RoleAssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RoleAssignments.RoleAssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -858,7 +862,7 @@ public Command BuildRoleDefinitionsNavCommand() { var command = new Command("role-definitions"); command.Description = "Provides operations to manage the roleDefinitions property of the microsoft.graph.deviceManagement entity."; - var builder = new RoleDefinitionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RoleDefinitions.RoleDefinitionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -885,7 +889,7 @@ public Command BuildSoftwareUpdateStatusSummaryNavCommand() { var command = new Command("software-update-status-summary"); command.Description = "Provides operations to manage the softwareUpdateStatusSummary property of the microsoft.graph.deviceManagement entity."; - var builder = new SoftwareUpdateStatusSummaryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.SoftwareUpdateStatusSummary.SoftwareUpdateStatusSummaryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -902,7 +906,7 @@ public Command BuildTelecomExpenseManagementPartnersNavCommand() { var command = new Command("telecom-expense-management-partners"); command.Description = "Provides operations to manage the telecomExpenseManagementPartners property of the microsoft.graph.deviceManagement entity."; - var builder = new TelecomExpenseManagementPartnersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.TelecomExpenseManagementPartners.TelecomExpenseManagementPartnersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -929,7 +933,7 @@ public Command BuildTermsAndConditionsNavCommand() { var command = new Command("terms-and-conditions"); command.Description = "Provides operations to manage the termsAndConditions property of the microsoft.graph.deviceManagement entity."; - var builder = new TermsAndConditionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.TermsAndConditions.TermsAndConditionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -956,7 +960,7 @@ public Command BuildTroubleshootingEventsNavCommand() { var command = new Command("troubleshooting-events"); command.Description = "Provides operations to manage the troubleshootingEvents property of the microsoft.graph.deviceManagement entity."; - var builder = new TroubleshootingEventsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.TroubleshootingEvents.TroubleshootingEventsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -983,7 +987,7 @@ public Command BuildUserExperienceAnalyticsAppHealthApplicationPerformanceByAppV { var command = new Command("user-experience-analytics-app-health-application-performance-by-app-version-details"); command.Description = "Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1010,7 +1014,7 @@ public Command BuildUserExperienceAnalyticsAppHealthApplicationPerformanceByAppV { var command = new Command("user-experience-analytics-app-health-application-performance-by-app-version-device-id"); command.Description = "Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1037,7 +1041,7 @@ public Command BuildUserExperienceAnalyticsAppHealthApplicationPerformanceByOSVe { var command = new Command("user-experience-analytics-app-health-application-performance-by-o-s-version"); command.Description = "Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion.UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1064,7 +1068,7 @@ public Command BuildUserExperienceAnalyticsAppHealthApplicationPerformanceNavCom { var command = new Command("user-experience-analytics-app-health-application-performance"); command.Description = "Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformance property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformance.UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1091,7 +1095,7 @@ public Command BuildUserExperienceAnalyticsAppHealthDeviceModelPerformanceNavCom { var command = new Command("user-experience-analytics-app-health-device-model-performance"); command.Description = "Provides operations to manage the userExperienceAnalyticsAppHealthDeviceModelPerformance property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDeviceModelPerformance.UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1118,7 +1122,7 @@ public Command BuildUserExperienceAnalyticsAppHealthDevicePerformanceDetailsNavC { var command = new Command("user-experience-analytics-app-health-device-performance-details"); command.Description = "Provides operations to manage the userExperienceAnalyticsAppHealthDevicePerformanceDetails property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerformanceDetails.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1145,7 +1149,7 @@ public Command BuildUserExperienceAnalyticsAppHealthDevicePerformanceNavCommand( { var command = new Command("user-experience-analytics-app-health-device-performance"); command.Description = "Provides operations to manage the userExperienceAnalyticsAppHealthDevicePerformance property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerformance.UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1172,7 +1176,7 @@ public Command BuildUserExperienceAnalyticsAppHealthOSVersionPerformanceNavComma { var command = new Command("user-experience-analytics-app-health-o-s-version-performance"); command.Description = "Provides operations to manage the userExperienceAnalyticsAppHealthOSVersionPerformance property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthOSVersionPerformance.UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1199,7 +1203,7 @@ public Command BuildUserExperienceAnalyticsAppHealthOverviewNavCommand() { var command = new Command("user-experience-analytics-app-health-overview"); command.Description = "Provides operations to manage the userExperienceAnalyticsAppHealthOverview property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsAppHealthOverviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthOverview.UserExperienceAnalyticsAppHealthOverviewRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -1224,7 +1228,7 @@ public Command BuildUserExperienceAnalyticsBaselinesNavCommand() { var command = new Command("user-experience-analytics-baselines"); command.Description = "Provides operations to manage the userExperienceAnalyticsBaselines property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsBaselinesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.UserExperienceAnalyticsBaselinesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1251,7 +1255,7 @@ public Command BuildUserExperienceAnalyticsCategoriesNavCommand() { var command = new Command("user-experience-analytics-categories"); command.Description = "Provides operations to manage the userExperienceAnalyticsCategories property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsCategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsCategories.UserExperienceAnalyticsCategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1278,7 +1282,7 @@ public Command BuildUserExperienceAnalyticsDevicePerformanceNavCommand() { var command = new Command("user-experience-analytics-device-performance"); command.Description = "Provides operations to manage the userExperienceAnalyticsDevicePerformance property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsDevicePerformanceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDevicePerformance.UserExperienceAnalyticsDevicePerformanceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1306,7 +1310,7 @@ public Command BuildUserExperienceAnalyticsDeviceScoresNavCommand() { var command = new Command("user-experience-analytics-device-scores"); command.Description = "Provides operations to manage the userExperienceAnalyticsDeviceScores property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsDeviceScoresRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceScores.UserExperienceAnalyticsDeviceScoresRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1333,7 +1337,7 @@ public Command BuildUserExperienceAnalyticsDeviceStartupHistoryNavCommand() { var command = new Command("user-experience-analytics-device-startup-history"); command.Description = "Provides operations to manage the userExperienceAnalyticsDeviceStartupHistory property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupHistory.UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1360,7 +1364,7 @@ public Command BuildUserExperienceAnalyticsDeviceStartupProcessesNavCommand() { var command = new Command("user-experience-analytics-device-startup-processes"); command.Description = "Provides operations to manage the userExperienceAnalyticsDeviceStartupProcesses property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcesses.UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1387,7 +1391,7 @@ public Command BuildUserExperienceAnalyticsDeviceStartupProcessPerformanceNavCom { var command = new Command("user-experience-analytics-device-startup-process-performance"); command.Description = "Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPerformance.UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1414,7 +1418,7 @@ public Command BuildUserExperienceAnalyticsMetricHistoryNavCommand() { var command = new Command("user-experience-analytics-metric-history"); command.Description = "Provides operations to manage the userExperienceAnalyticsMetricHistory property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsMetricHistoryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsMetricHistory.UserExperienceAnalyticsMetricHistoryRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1441,7 +1445,7 @@ public Command BuildUserExperienceAnalyticsModelScoresNavCommand() { var command = new Command("user-experience-analytics-model-scores"); command.Description = "Provides operations to manage the userExperienceAnalyticsModelScores property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsModelScoresRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsModelScores.UserExperienceAnalyticsModelScoresRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1468,7 +1472,7 @@ public Command BuildUserExperienceAnalyticsOverviewNavCommand() { var command = new Command("user-experience-analytics-overview"); command.Description = "Provides operations to manage the userExperienceAnalyticsOverview property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsOverviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsOverview.UserExperienceAnalyticsOverviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -1487,7 +1491,7 @@ public Command BuildUserExperienceAnalyticsScoreHistoryNavCommand() { var command = new Command("user-experience-analytics-score-history"); command.Description = "Provides operations to manage the userExperienceAnalyticsScoreHistory property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsScoreHistoryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsScoreHistory.UserExperienceAnalyticsScoreHistoryRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1514,7 +1518,7 @@ public Command BuildUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesNavCo { var command = new Command("user-experience-analytics-summarize-work-from-anywhere-devices"); command.Description = "Provides operations to call the userExperienceAnalyticsSummarizeWorkFromAnywhereDevices method."; - var builder = new UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices.UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -1531,7 +1535,7 @@ public Command BuildUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetr { var command = new Command("user-experience-analytics-work-from-anywhere-hardware-readiness-metric"); command.Description = "Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -1550,7 +1554,7 @@ public Command BuildUserExperienceAnalyticsWorkFromAnywhereMetricsNavCommand() { var command = new Command("user-experience-analytics-work-from-anywhere-metrics"); command.Description = "Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereMetrics property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics.UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1577,7 +1581,7 @@ public Command BuildUserExperienceAnalyticsWorkFromAnywhereModelPerformanceNavCo { var command = new Command("user-experience-analytics-work-from-anywhere-model-performance"); command.Description = "Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereModelPerformance property of the microsoft.graph.deviceManagement entity."; - var builder = new UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereModelPerformance.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1604,7 +1608,7 @@ public Command BuildVerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRbCommand( { var command = new Command("verify-windows-enrollment-auto-discovery-with-domain-name"); command.Description = "Provides operations to call the verifyWindowsEnrollmentAutoDiscovery method."; - var builder = new VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VerifyWindowsEnrollmentAutoDiscoveryWithDomainName.VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -1621,7 +1625,7 @@ public Command BuildVirtualEndpointNavCommand() { var command = new Command("virtual-endpoint"); command.Description = "Provides operations to manage the virtualEndpoint property of the microsoft.graph.deviceManagement entity."; - var builder = new VirtualEndpointRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.VirtualEndpointRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAuditEventsNavCommand()); @@ -1652,7 +1656,7 @@ public Command BuildWindowsAutopilotDeviceIdentitiesNavCommand() { var command = new Command("windows-autopilot-device-identities"); command.Description = "Provides operations to manage the windowsAutopilotDeviceIdentities property of the microsoft.graph.deviceManagement entity."; - var builder = new WindowsAutopilotDeviceIdentitiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.WindowsAutopilotDeviceIdentitiesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1679,7 +1683,7 @@ public Command BuildWindowsInformationProtectionAppLearningSummariesNavCommand() { var command = new Command("windows-information-protection-app-learning-summaries"); command.Description = "Provides operations to manage the windowsInformationProtectionAppLearningSummaries property of the microsoft.graph.deviceManagement entity."; - var builder = new WindowsInformationProtectionAppLearningSummariesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsInformationProtectionAppLearningSummaries.WindowsInformationProtectionAppLearningSummariesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1706,7 +1710,7 @@ public Command BuildWindowsInformationProtectionNetworkLearningSummariesNavComma { var command = new Command("windows-information-protection-network-learning-summaries"); command.Description = "Provides operations to manage the windowsInformationProtectionNetworkLearningSummaries property of the microsoft.graph.deviceManagement entity."; - var builder = new WindowsInformationProtectionNetworkLearningSummariesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsInformationProtectionNetworkLearningSummaries.WindowsInformationProtectionNetworkLearningSummariesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1733,7 +1737,7 @@ public Command BuildWindowsMalwareInformationNavCommand() { var command = new Command("windows-malware-information"); command.Description = "Provides operations to manage the windowsMalwareInformation property of the microsoft.graph.deviceManagement entity."; - var builder = new WindowsMalwareInformationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsMalwareInformation.WindowsMalwareInformationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1753,14 +1757,14 @@ public Command BuildWindowsMalwareInformationNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceManagementRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement{?%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 DeviceManagementRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement{?%24expand,%24select}", rawUrl) @@ -1773,11 +1777,11 @@ public DeviceManagementRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMa /// 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); @@ -1793,11 +1797,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.DeviceManagement body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagement body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DeviceManagement body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagement body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -1809,7 +1813,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DeviceManageme /// /// Read properties and relationships of the deviceManagement object. /// - public class DeviceManagementRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1834,3 +1839,4 @@ public class DeviceManagementRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ExchangeConnectors/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/ExchangeConnectors/Count/CountRequestBuilder.cs index 7dd305fc79..27712b1c7c 100644 --- a/src/generated/DeviceManagement/ExchangeConnectors/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/ExchangeConnectors/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.DeviceManagement.ExchangeConnectors.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}/deviceManagement/exchangeConnectors/$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}/deviceManagement/exchangeConnectors/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/ex /// 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/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.cs b/src/generated/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.cs index 04280cd516..4be33d7c7f 100644 --- a/src/generated/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.cs +++ b/src/generated/DeviceManagement/ExchangeConnectors/ExchangeConnectorsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ExchangeConnectors.Count; using ApiSdk.DeviceManagement.ExchangeConnectors.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.DeviceManagement.ExchangeConnectors /// /// Provides operations to manage the exchangeConnectors property of the microsoft.graph.deviceManagement entity. /// - public class ExchangeConnectorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExchangeConnectorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the exchangeConnectors property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DeviceManagementExchangeConnectorItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ExchangeConnectors.Item.DeviceManagementExchangeConnectorItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceManagement.ExchangeConnectors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,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(DeviceManagementExchangeConnector.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceManagementExchangeConnector.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 ExchangeConnectorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/exchangeConnectors{?%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 ExchangeConnectorsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/exchangeConnectors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public ExchangeConnectorsRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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); @@ -239,11 +242,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(DeviceManagementExchangeConnector body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceManagementExchangeConnector body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceManagementExchangeConnector body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceManagementExchangeConnector body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(DeviceManagementExchangeConne /// /// List properties and relationships of the deviceManagementExchangeConnector objects. /// - public class ExchangeConnectorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExchangeConnectorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class ExchangeConnectorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.cs b/src/generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.cs index d98cad45ea..262fe4f311 100644 --- a/src/generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/ExchangeConnectors/Item/DeviceManagementExchangeConnectorItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ExchangeConnectors.Item.Sync; 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.DeviceManagement.ExchangeConnectors.Item /// /// Provides operations to manage the exchangeConnectors property of the microsoft.graph.deviceManagement entity. /// - public class DeviceManagementExchangeConnectorItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementExchangeConnectorItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceManagementExchangeConnector. @@ -142,8 +145,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(DeviceManagementExchangeConnector.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceManagementExchangeConnector.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,7 +174,7 @@ public Command BuildSyncNavCommand() { var command = new Command("sync"); command.Description = "Provides operations to call the sync method."; - var builder = new SyncRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ExchangeConnectors.Item.Sync.SyncRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -181,14 +184,14 @@ public Command BuildSyncNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceManagementExchangeConnectorItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/exchangeConnectors/{deviceManagementExchangeConnector%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 DeviceManagementExchangeConnectorItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/exchangeConnectors/{deviceManagementExchangeConnector%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(DeviceManagementExchangeConnector body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagementExchangeConnector body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceManagementExchangeConnector body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagementExchangeConnector body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementExchangeConn /// /// Read properties and relationships of the deviceManagementExchangeConnector object. /// - public class DeviceManagementExchangeConnectorItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementExchangeConnectorItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class DeviceManagementExchangeConnectorItemRequestBuilderGetQueryParamete } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncPostRequestBody.cs b/src/generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncPostRequestBody.cs index 9e4a1322fb..6dd375f955 100644 --- a/src/generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncPostRequestBody.cs +++ b/src/generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncPostRequestBody.cs @@ -1,22 +1,24 @@ // +#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.DeviceManagement.ExchangeConnectors.Item.Sync { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SyncPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SyncPostRequestBody : 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. public IDictionary AdditionalData { get; set; } /// The type of Exchange Connector sync requested. - public DeviceManagementExchangeConnectorSyncType? SyncType { get; set; } + public global::ApiSdk.Models.DeviceManagementExchangeConnectorSyncType? SyncType { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SyncPostRequestBody() { @@ -25,12 +27,12 @@ public SyncPostRequestBody() /// /// 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 SyncPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.ExchangeConnectors.Item.Sync.SyncPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SyncPostRequestBody(); + return new global::ApiSdk.DeviceManagement.ExchangeConnectors.Item.Sync.SyncPostRequestBody(); } /// /// The deserialization information for the current model @@ -40,7 +42,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "syncType", n => { SyncType = n.GetEnumValue(); } }, + { "syncType", n => { SyncType = n.GetEnumValue(); } }, }; } /// @@ -50,8 +52,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("syncType", SyncType); + writer.WriteEnumValue("syncType", SyncType); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.cs b/src/generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.cs index abaaf64348..1911428f92 100644 --- a/src/generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.cs +++ b/src/generated/DeviceManagement/ExchangeConnectors/Item/Sync/SyncRequestBuilder.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.DeviceManagement.ExchangeConnectors.Item.Sync /// /// Provides operations to call the sync method. /// - public class SyncRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SyncRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -43,8 +46,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(SyncPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.ExchangeConnectors.Item.Sync.SyncPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 SyncRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/exchangeConnectors/{deviceManagementExchangeConnector%2Did}/sync", 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 SyncRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/exchangeConnectors/{deviceManagementExchangeConnector%2Did}/sync", rawUrl) @@ -84,11 +87,11 @@ public SyncRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/exc /// 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(SyncPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ExchangeConnectors.Item.Sync.SyncPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SyncPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ExchangeConnectors.Item.Sync.SyncPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(SyncPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.cs b/src/generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.cs index e94cd0ec1d..7fce3a7846 100644 --- a/src/generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.cs +++ b/src/generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeGetResponse.cs @@ -1,33 +1,35 @@ // +#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.DeviceManagement.GetEffectivePermissionsWithScope { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetEffectivePermissionsWithScopeGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetEffectivePermissionsWithScopeGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetEffectivePermissionsWithScopeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DeviceManagement.GetEffectivePermissionsWithScope.GetEffectivePermissionsWithScopeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetEffectivePermissionsWithScopeGetResponse(); + return new global::ApiSdk.DeviceManagement.GetEffectivePermissionsWithScope.GetEffectivePermissionsWithScopeGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(RolePermission.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.RolePermission.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.cs b/src/generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.cs index 2abaafb633..01d5fe26f3 100644 --- a/src/generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.cs +++ b/src/generated/DeviceManagement/GetEffectivePermissionsWithScope/GetEffectivePermissionsWithScopeRequestBuilder.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.DeviceManagement.GetEffectivePermissionsWithScope /// /// Provides operations to call the getEffectivePermissions method. /// - public class GetEffectivePermissionsWithScopeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetEffectivePermissionsWithScopeRequestBuilder : BaseCliRequestBuilder { /// /// Retrieves the effective permissions of the currently authenticated user @@ -103,14 +106,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 GetEffectivePermissionsWithScopeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/getEffectivePermissions(scope='{scope}'){?%24count,%24filter,%24search,%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 GetEffectivePermissionsWithScopeRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/getEffectivePermissions(scope='{scope}'){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) @@ -123,11 +126,11 @@ public GetEffectivePermissionsWithScopeRequestBuilder(string rawUrl) : base("{+b /// 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); @@ -138,7 +141,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieves the effective permissions of the currently authenticated user /// - public class GetEffectivePermissionsWithScopeRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetEffectivePermissionsWithScopeRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -172,3 +176,4 @@ public class GetEffectivePermissionsWithScopeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs index 0a28eff47e..f2ad70c3ae 100644 --- a/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/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.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.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}/deviceManagement/importedWindowsAutopilotDeviceIdentities/$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}/deviceManagement/importedWindowsAutopilotDeviceIdentities/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/im /// 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/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostRequestBody.cs b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostRequestBody.cs index f801a75bdf..eaa8bba551 100644 --- a/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostRequestBody.cs +++ b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostRequestBody.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.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImportPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ImportPostRequestBody : IAdditionalDataHolder, IParsable /// The importedWindowsAutopilotDeviceIdentities property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ImportedWindowsAutopilotDeviceIdentities { get; set; } + public List? ImportedWindowsAutopilotDeviceIdentities { get; set; } #nullable restore #else - public List ImportedWindowsAutopilotDeviceIdentities { get; set; } + public List ImportedWindowsAutopilotDeviceIdentities { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImportPostRequestBody() { @@ -31,12 +33,12 @@ public ImportPostRequestBody() /// /// 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 ImportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import.ImportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import.ImportPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "importedWindowsAutopilotDeviceIdentities", n => { ImportedWindowsAutopilotDeviceIdentities = n.GetCollectionOfObjectValues(ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, + { "importedWindowsAutopilotDeviceIdentities", n => { ImportedWindowsAutopilotDeviceIdentities = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("importedWindowsAutopilotDeviceIdentities", ImportedWindowsAutopilotDeviceIdentities); + writer.WriteCollectionOfObjectValues("importedWindowsAutopilotDeviceIdentities", ImportedWindowsAutopilotDeviceIdentities); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.cs b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.cs index 8f225c98ca..b28093c9d6 100644 --- a/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.cs +++ b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportPostResponse.cs @@ -1,33 +1,35 @@ // +#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.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImportPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class ImportPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new ImportPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import.ImportPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImportPostResponse(); + return new global::ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import.ImportPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.cs b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.cs index 10b2e2811a..f6d658aaef 100644 --- a/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.cs +++ b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Import/ImportRequestBuilder.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.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Impor /// /// Provides operations to call the import method. /// - public class ImportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -50,8 +53,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(ImportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import.ImportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ImportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities/import", 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 ImportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities/import", rawUrl) @@ -101,11 +104,11 @@ public ImportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/i /// 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(ImportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import.ImportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import.ImportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ImportPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.cs b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.cs index 79fb4a9e31..c38693bc52 100644 --- a/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.cs +++ b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Count; using ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import; using ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.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; @@ -22,7 +24,8 @@ namespace ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities /// /// Provides operations to manage the importedWindowsAutopilotDeviceIdentities property of the microsoft.graph.deviceManagement entity. /// - public class ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the importedWindowsAutopilotDeviceIdentities property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public class ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder : BaseCliReq public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Item.ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -45,7 +48,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.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -80,8 +83,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(ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -108,7 +111,7 @@ public Command BuildImportNavCommand() { var command = new Command("import"); command.Description = "Provides operations to call the import method."; - var builder = new ImportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Import.ImportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -215,14 +218,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities{?%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 ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -235,11 +238,11 @@ public ImportedWindowsAutopilotDeviceIdentitiesRequestBuilder(string rawUrl) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ImportedWindowsAutopilotDeviceIdentity body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ImportedWindowsAutopilotDeviceIdentity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImportedWindowsAutopilotDeviceIdentity body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ImportedWindowsAutopilotDeviceIdentity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPostRequestInformation(ImportedWindowsAutopilotDevic /// /// List properties and relationships of the importedWindowsAutopilotDeviceIdentity objects. /// - public class ImportedWindowsAutopilotDeviceIdentitiesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImportedWindowsAutopilotDeviceIdentitiesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -335,3 +339,4 @@ public class ImportedWindowsAutopilotDeviceIdentitiesRequestBuilderGetQueryParam } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.cs b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.cs index 9a62586cbb..4577384410 100644 --- a/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/ImportedWindowsAutopilotDeviceIdentities/Item/ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder.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.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities.Item /// /// Provides operations to manage the importedWindowsAutopilotDeviceIdentities property of the microsoft.graph.deviceManagement entity. /// - public class ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a importedWindowsAutopilotDeviceIdentity. @@ -140,8 +143,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(ImportedWindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ImportedWindowsAutopilotDeviceIdentity.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 ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities/{importedWindowsAutopilotDeviceIdentity%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 ImportedWindowsAutopilotDeviceIdentityItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/importedWindowsAutopilotDeviceIdentities/{importedWindowsAutopilotDeviceIdentity%2Did}{?%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(ImportedWindowsAutopilotDeviceIdentity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ImportedWindowsAutopilotDeviceIdentity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ImportedWindowsAutopilotDeviceIdentity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ImportedWindowsAutopilotDeviceIdentity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(ImportedWindowsAutopilotDevi /// /// Read properties and relationships of the importedWindowsAutopilotDeviceIdentity object. /// - public class ImportedWindowsAutopilotDeviceIdentityItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImportedWindowsAutopilotDeviceIdentityItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class ImportedWindowsAutopilotDeviceIdentityItemRequestBuilderGetQueryPar } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/IosUpdateStatuses/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/IosUpdateStatuses/Count/CountRequestBuilder.cs index 811bbcb458..a0258f0d39 100644 --- a/src/generated/DeviceManagement/IosUpdateStatuses/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/IosUpdateStatuses/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.DeviceManagement.IosUpdateStatuses.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}/deviceManagement/iosUpdateStatuses/$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}/deviceManagement/iosUpdateStatuses/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/io /// 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/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.cs b/src/generated/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.cs index 57a2b915e9..3833ba4927 100644 --- a/src/generated/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.cs +++ b/src/generated/DeviceManagement/IosUpdateStatuses/IosUpdateStatusesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.IosUpdateStatuses.Count; using ApiSdk.DeviceManagement.IosUpdateStatuses.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.DeviceManagement.IosUpdateStatuses /// /// Provides operations to manage the iosUpdateStatuses property of the microsoft.graph.deviceManagement entity. /// - public class IosUpdateStatusesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IosUpdateStatusesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the iosUpdateStatuses property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class IosUpdateStatusesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new IosUpdateDeviceStatusItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.IosUpdateStatuses.Item.IosUpdateDeviceStatusItemRequestBuilder(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.DeviceManagement.IosUpdateStatuses.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(IosUpdateDeviceStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.IosUpdateDeviceStatus.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 IosUpdateStatusesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/iosUpdateStatuses{?%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 IosUpdateStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/iosUpdateStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public IosUpdateStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceM /// 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(IosUpdateDeviceStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.IosUpdateDeviceStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IosUpdateDeviceStatus body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.IosUpdateDeviceStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(IosUpdateDeviceStatus body, A /// /// List properties and relationships of the iosUpdateDeviceStatus objects. /// - public class IosUpdateStatusesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IosUpdateStatusesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class IosUpdateStatusesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.cs b/src/generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.cs index a949594ad3..04c4490069 100644 --- a/src/generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/IosUpdateStatuses/Item/IosUpdateDeviceStatusItemRequestBuilder.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.DeviceManagement.IosUpdateStatuses.Item /// /// Provides operations to manage the iosUpdateStatuses property of the microsoft.graph.deviceManagement entity. /// - public class IosUpdateDeviceStatusItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IosUpdateDeviceStatusItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a iosUpdateDeviceStatus. @@ -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(IosUpdateDeviceStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.IosUpdateDeviceStatus.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 IosUpdateDeviceStatusItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/iosUpdateStatuses/{iosUpdateDeviceStatus%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 IosUpdateDeviceStatusItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/iosUpdateStatuses/{iosUpdateDeviceStatus%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(IosUpdateDeviceStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.IosUpdateDeviceStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(IosUpdateDeviceStatus body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.IosUpdateDeviceStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(IosUpdateDeviceStatus body, /// /// Read properties and relationships of the iosUpdateDeviceStatus object. /// - public class IosUpdateDeviceStatusItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IosUpdateDeviceStatusItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class IosUpdateDeviceStatusItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.cs index b442952abe..60ae156fd4 100644 --- a/src/generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDeviceOverview/ManagedDeviceOverviewRequestBuilder.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.DeviceManagement.ManagedDeviceOverview /// /// Provides operations to manage the managedDeviceOverview property of the microsoft.graph.deviceManagement entity. /// - public class ManagedDeviceOverviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceOverviewRequestBuilder : BaseCliRequestBuilder { /// /// Device overview @@ -68,14 +71,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 ManagedDeviceOverviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDeviceOverview{?%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 ManagedDeviceOverviewRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDeviceOverview{?%24expand,%24select}", rawUrl) @@ -88,11 +91,11 @@ public ManagedDeviceOverviewRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -103,7 +106,8 @@ public RequestInformation ToGetRequestInformation(Action /// Device overview /// - public class ManagedDeviceOverviewRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceOverviewRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -128,3 +132,4 @@ public class ManagedDeviceOverviewRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Count/CountRequestBuilder.cs index 08d3030c8b..fb116ad8c5 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/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.DeviceManagement.ManagedDevices.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}/deviceManagement/managedDevices/$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}/deviceManagement/managedDevices/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/ma /// 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/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs index 39e5ac722b..1bacbddaca 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/BypassActivationLock/BypassActivationLockRequestBuilder.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.DeviceManagement.ManagedDevices.Item.BypassActivationLock /// /// Provides operations to call the bypassActivationLock method. /// - public class BypassActivationLockRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BypassActivationLockRequestBuilder : BaseCliRequestBuilder { /// /// Bypass activation lock @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public BypassActivationLockRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/bypassActivationLock", 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 BypassActivationLockRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/bypassActivationLock", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.ManagedDevices.Item.CleanWindowsDevice { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CleanWindowsDevicePostRequestBody : IAdditionalDataHolder, IParsable + public partial class CleanWindowsDevicePostRequestBody : 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. @@ -15,7 +17,7 @@ public class CleanWindowsDevicePostRequestBody : IAdditionalDataHolder, IParsabl /// The keepUserData property public bool? KeepUserData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CleanWindowsDevicePostRequestBody() { @@ -24,12 +26,12 @@ public CleanWindowsDevicePostRequestBody() /// /// 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 CleanWindowsDevicePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.ManagedDevices.Item.CleanWindowsDevice.CleanWindowsDevicePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CleanWindowsDevicePostRequestBody(); + return new global::ApiSdk.DeviceManagement.ManagedDevices.Item.CleanWindowsDevice.CleanWindowsDevicePostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs index 372fd4517c..550f091e87 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/CleanWindowsDevice/CleanWindowsDeviceRequestBuilder.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.DeviceManagement.ManagedDevices.Item.CleanWindowsDevice /// /// Provides operations to call the cleanWindowsDevice method. /// - public class CleanWindowsDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CleanWindowsDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Clean Windows device @@ -43,8 +46,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(CleanWindowsDevicePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.ManagedDevices.Item.CleanWindowsDevice.CleanWindowsDevicePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 CleanWindowsDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/cleanWindowsDevice", 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 CleanWindowsDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/cleanWindowsDevice", rawUrl) @@ -84,11 +87,11 @@ public CleanWindowsDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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(CleanWindowsDevicePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ManagedDevices.Item.CleanWindowsDevice.CleanWindowsDevicePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CleanWindowsDevicePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ManagedDevices.Item.CleanWindowsDevice.CleanWindowsDevicePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(CleanWindowsDevicePostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs b/src/generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs index 803756b1d0..359e8b1f87 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDevicePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.ManagedDevices.Item.DeleteUserFromSharedAppleDevice { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeleteUserFromSharedAppleDevicePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DeleteUserFromSharedAppleDevicePostRequestBody : 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. @@ -21,7 +23,7 @@ public class DeleteUserFromSharedAppleDevicePostRequestBody : IAdditionalDataHol public string UserPrincipalName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeleteUserFromSharedAppleDevicePostRequestBody() { @@ -30,12 +32,12 @@ public DeleteUserFromSharedAppleDevicePostRequestBody() /// /// 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 DeleteUserFromSharedAppleDevicePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeleteUserFromSharedAppleDevice.DeleteUserFromSharedAppleDevicePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeleteUserFromSharedAppleDevicePostRequestBody(); + return new global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeleteUserFromSharedAppleDevice.DeleteUserFromSharedAppleDevicePostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs index 42790b0267..d1809ac52a 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/DeleteUserFromSharedAppleDevice/DeleteUserFromSharedAppleDeviceRequestBuilder.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.DeviceManagement.ManagedDevices.Item.DeleteUserFromSharedAppleD /// /// Provides operations to call the deleteUserFromSharedAppleDevice method. /// - public class DeleteUserFromSharedAppleDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteUserFromSharedAppleDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Delete user from shared Apple device @@ -43,8 +46,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(DeleteUserFromSharedAppleDevicePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeleteUserFromSharedAppleDevice.DeleteUserFromSharedAppleDevicePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 DeleteUserFromSharedAppleDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deleteUserFromSharedAppleDevice", 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 DeleteUserFromSharedAppleDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deleteUserFromSharedAppleDevice", rawUrl) @@ -84,11 +87,11 @@ public DeleteUserFromSharedAppleDeviceRequestBuilder(string rawUrl) : base("{+ba /// 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(DeleteUserFromSharedAppleDevicePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeleteUserFromSharedAppleDevice.DeleteUserFromSharedAppleDevicePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeleteUserFromSharedAppleDevicePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeleteUserFromSharedAppleDevice.DeleteUserFromSharedAppleDevicePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(DeleteUserFromSharedAppleDevi } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs index 8811646f9c..bdd609dbd0 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/DeviceCategoryRequestBuilder.cs @@ -1,6 +1,9 @@ // +#pragma warning disable CS0618 +using ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceCategory.Ref; 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 +22,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceCategory /// /// Provides operations to manage the deviceCategory property of the microsoft.graph.managedDevice entity. /// - public class DeviceCategoryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCategoryRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deviceCategory for deviceManagement @@ -138,8 +142,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.DeviceCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCategory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +164,33 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to manage the collection of deviceManagement entities. + /// + /// A + public Command BuildRefNavCommand() + { + var command = new Command("ref"); + command.Description = "Provides operations to manage the collection of deviceManagement entities."; + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceCategory.Ref.RefRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildDeleteCommand()); + execCommands.Add(builder.BuildGetCommand()); + execCommands.Add(builder.BuildPutCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceCategoryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCategory{?%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 DeviceCategoryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCategory{?%24expand,%24select}", rawUrl) @@ -199,11 +222,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +242,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.DeviceCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DeviceCategory body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DeviceCategory /// /// Device category /// - public class DeviceCategoryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCategoryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +284,4 @@ public class DeviceCategoryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/Ref/RefRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/Ref/RefRequestBuilder.cs new file mode 100644 index 0000000000..527b38ab74 --- /dev/null +++ b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCategory/Ref/RefRequestBuilder.cs @@ -0,0 +1,208 @@ +// +#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.DeviceManagement.ManagedDevices.Item.DeviceCategory.Ref +{ + /// + /// Provides operations to manage the collection of deviceManagement entities. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete ref of navigation property deviceCategory for deviceManagement + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete ref of navigation property deviceCategory for deviceManagement"; + var managedDeviceIdOption = new Option("--managed-device-id", description: "The unique identifier of managedDevice") { + }; + managedDeviceIdOption.IsRequired = true; + command.AddOption(managedDeviceIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var managedDeviceId = invocationContext.ParseResult.GetValueForOption(managedDeviceIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (managedDeviceId is not null) requestInfo.PathParameters.Add("managedDevice%2Did", managedDeviceId); + 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; + } + /// + /// Device category + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Device category"; + var managedDeviceIdOption = new Option("--managed-device-id", description: "The unique identifier of managedDevice") { + }; + managedDeviceIdOption.IsRequired = true; + command.AddOption(managedDeviceIdOption); + command.SetHandler(async (invocationContext) => { + var managedDeviceId = invocationContext.ParseResult.GetValueForOption(managedDeviceIdOption); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + }); + if (managedDeviceId is not null) requestInfo.PathParameters.Add("managedDevice%2Did", managedDeviceId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + var formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Update the ref of navigation property deviceCategory in deviceManagement + /// + /// A + public Command BuildPutCommand() + { + var command = new Command("put"); + command.Description = "Update the ref of navigation property deviceCategory in deviceManagement"; + var managedDeviceIdOption = new Option("--managed-device-id", description: "The unique identifier of managedDevice") { + }; + managedDeviceIdOption.IsRequired = true; + command.AddOption(managedDeviceIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var managedDeviceId = invocationContext.ParseResult.GetValueForOption(managedDeviceIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.ReferenceUpdate.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPutRequestInformation(model, q => { + }); + if (managedDeviceId is not null) requestInfo.PathParameters.Add("managedDevice%2Did", managedDeviceId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCategory/$ref", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RefRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCategory/$ref", rawUrl) + { + } + /// + /// Delete ref of navigation property deviceCategory for deviceManagement + /// + /// 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; + } + /// + /// Device category + /// + /// 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 the ref of navigation property deviceCategory in deviceManagement + /// + /// 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 ToPutRequestInformation(global::ApiSdk.Models.ReferenceUpdate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.ReferenceUpdate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs index c4a1fd62bf..e896a9e09d 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/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.DeviceManagement.ManagedDevices.Item.DeviceCompliancePolicyStat /// /// 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}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates/$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}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/ma /// 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/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs index ce066b50da..0ee4d49e1f 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/DeviceCompliancePolicyStatesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceCompliancePolicyStates.Count; using ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceCompliancePolicyStates.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.DeviceManagement.ManagedDevices.Item.DeviceCompliancePolicyStat /// /// Provides operations to manage the deviceCompliancePolicyStates property of the microsoft.graph.managedDevice entity. /// - public class DeviceCompliancePolicyStatesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicyStatesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceCompliancePolicyStates property of the microsoft.graph.managedDevice entity. @@ -30,7 +33,7 @@ public class DeviceCompliancePolicyStatesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceCompliancePolicyStateItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceCompliancePolicyStates.Item.DeviceCompliancePolicyStateItemRequestBuilder(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.DeviceManagement.ManagedDevices.Item.DeviceCompliancePolicyStates.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(DeviceCompliancePolicyState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCompliancePolicyState.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 DeviceCompliancePolicyStatesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates{?%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 DeviceCompliancePolicyStatesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public DeviceCompliancePolicyStatesRequestBuilder(string rawUrl) : base("{+baseu /// 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); @@ -247,11 +250,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(DeviceCompliancePolicyState body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicyState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceCompliancePolicyState body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicyState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(DeviceCompliancePolicyState b /// /// Device compliance policy states for this device. /// - public class DeviceCompliancePolicyStatesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicyStatesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class DeviceCompliancePolicyStatesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs index 57a45b162f..3ce714e192 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceCompliancePolicyStates/Item/DeviceCompliancePolicyStateItemRequestBuilder.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.DeviceManagement.ManagedDevices.Item.DeviceCompliancePolicyStat /// /// Provides operations to manage the deviceCompliancePolicyStates property of the microsoft.graph.managedDevice entity. /// - public class DeviceCompliancePolicyStateItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicyStateItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deviceCompliancePolicyStates for deviceManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DeviceCompliancePolicyState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceCompliancePolicyState.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceCompliancePolicyStateItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates/{deviceCompliancePolicyState%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 DeviceCompliancePolicyStateItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceCompliancePolicyStates/{deviceCompliancePolicyState%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicyState body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicyState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicyState body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceCompliancePolicyState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicyState /// /// Device compliance policy states for this device. /// - public class DeviceCompliancePolicyStateItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceCompliancePolicyStateItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class DeviceCompliancePolicyStateItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs index 655d302ba1..456709e41f 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/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.DeviceManagement.ManagedDevices.Item.DeviceConfigurationStates. /// /// 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}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates/$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}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/ma /// 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/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs index 24d270fe06..0d52f786d6 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/DeviceConfigurationStatesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceConfigurationStates.Count; using ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceConfigurationStates.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.DeviceManagement.ManagedDevices.Item.DeviceConfigurationStates /// /// Provides operations to manage the deviceConfigurationStates property of the microsoft.graph.managedDevice entity. /// - public class DeviceConfigurationStatesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationStatesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceConfigurationStates property of the microsoft.graph.managedDevice entity. @@ -30,7 +33,7 @@ public class DeviceConfigurationStatesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceConfigurationStateItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceConfigurationStates.Item.DeviceConfigurationStateItemRequestBuilder(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.DeviceManagement.ManagedDevices.Item.DeviceConfigurationStates.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(DeviceConfigurationState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfigurationState.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 DeviceConfigurationStatesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates{?%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 DeviceConfigurationStatesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public DeviceConfigurationStatesRequestBuilder(string rawUrl) : base("{+baseurl} /// 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); @@ -247,11 +250,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(DeviceConfigurationState body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceConfigurationState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceConfigurationState body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceConfigurationState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(DeviceConfigurationState body /// /// Device configuration states for this device. /// - public class DeviceConfigurationStatesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationStatesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class DeviceConfigurationStatesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs index b7d46ece82..7759e7e539 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/DeviceConfigurationStates/Item/DeviceConfigurationStateItemRequestBuilder.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.DeviceManagement.ManagedDevices.Item.DeviceConfigurationStates. /// /// Provides operations to manage the deviceConfigurationStates property of the microsoft.graph.managedDevice entity. /// - public class DeviceConfigurationStateItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationStateItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deviceConfigurationStates for deviceManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DeviceConfigurationState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceConfigurationState.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceConfigurationStateItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates/{deviceConfigurationState%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 DeviceConfigurationStateItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/deviceConfigurationStates/{deviceConfigurationState%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(DeviceConfigurationState body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceConfigurationState body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceConfigurationState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(DeviceConfigurationState bod /// /// Device configuration states for this device. /// - public class DeviceConfigurationStateItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceConfigurationStateItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class DeviceConfigurationStateItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs index 6ea01fac08..c970946ad1 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/DisableLostMode/DisableLostModeRequestBuilder.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.DeviceManagement.ManagedDevices.Item.DisableLostMode /// /// Provides operations to call the disableLostMode method. /// - public class DisableLostModeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DisableLostModeRequestBuilder : BaseCliRequestBuilder { /// /// Disable lost mode @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DisableLostModeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/disableLostMode", 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 DisableLostModeRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/disableLostMode", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item.LocateDevice /// /// Provides operations to call the locateDevice method. /// - public class LocateDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LocateDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Locate a device @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LocateDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/locateDevice", 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 LocateDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/locateDevice", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Coun /// /// 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}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests/$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}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/ma /// 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/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs b/src/generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs index 4c5803c109..505edf7ac7 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlPostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Item.CreateDownloadUrl { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateDownloadUrlPostResponse : IAdditionalDataHolder, IParsable + public partial class CreateDownloadUrlPostResponse : 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. @@ -21,7 +23,7 @@ public class CreateDownloadUrlPostResponse : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateDownloadUrlPostResponse() { @@ -30,12 +32,12 @@ public CreateDownloadUrlPostResponse() /// /// 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 CreateDownloadUrlPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Item.CreateDownloadUrl.CreateDownloadUrlPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateDownloadUrlPostResponse(); + return new global::ApiSdk.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Item.CreateDownloadUrl.CreateDownloadUrlPostResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs index 087c60d1f9..4ce8c1012a 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.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.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Item /// /// Provides operations to call the createDownloadUrl method. /// - public class CreateDownloadUrlRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateDownloadUrlRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action createDownloadUrl @@ -65,14 +68,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 CreateDownloadUrlRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests/{deviceLogCollectionResponse%2Did}/createDownloadUrl", 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 CreateDownloadUrlRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests/{deviceLogCollectionResponse%2Did}/createDownloadUrl", rawUrl) @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Item.CreateDownloadUrl; 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.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Item /// /// Provides operations to manage the logCollectionRequests property of the microsoft.graph.managedDevice entity. /// - public class DeviceLogCollectionResponseItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceLogCollectionResponseItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the createDownloadUrl method. @@ -30,7 +33,7 @@ public Command BuildCreateDownloadUrlNavCommand() { var command = new Command("create-download-url"); command.Description = "Provides operations to call the createDownloadUrl method."; - var builder = new CreateDownloadUrlRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Item.CreateDownloadUrl.CreateDownloadUrlRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -173,8 +176,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(DeviceLogCollectionResponse.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceLogCollectionResponse.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceLogCollectionResponseItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests/{deviceLogCollectionResponse%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 DeviceLogCollectionResponseItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests/{deviceLogCollectionResponse%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(DeviceLogCollectionResponse body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceLogCollectionResponse body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceLogCollectionResponse body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceLogCollectionResponse body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(DeviceLogCollectionResponse /// /// List of log collection requests /// - public class DeviceLogCollectionResponseItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceLogCollectionResponseItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class DeviceLogCollectionResponseItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs index 35558b02cc..d74f1319de 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/LogCollectionRequests/LogCollectionRequestsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Count; using ApiSdk.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.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.DeviceManagement.ManagedDevices.Item.LogCollectionRequests /// /// Provides operations to manage the logCollectionRequests property of the microsoft.graph.managedDevice entity. /// - public class LogCollectionRequestsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LogCollectionRequestsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the logCollectionRequests property of the microsoft.graph.managedDevice entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DeviceLogCollectionResponseItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Item.DeviceLogCollectionResponseItemRequestBuilder(PathParameters); commands.Add(builder.BuildCreateDownloadUrlNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(DeviceLogCollectionResponse.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceLogCollectionResponse.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 LogCollectionRequestsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests{?%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 LogCollectionRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logCollectionRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public LogCollectionRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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(DeviceLogCollectionResponse body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceLogCollectionResponse body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceLogCollectionResponse body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceLogCollectionResponse body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(DeviceLogCollectionResponse b /// /// List of log collection requests /// - public class LogCollectionRequestsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LogCollectionRequestsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class LogCollectionRequestsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs index 6bde5e802e..a263c312ac 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/LogoutSharedAppleDeviceActiveUser/LogoutSharedAppleDeviceActiveUserRequestBuilder.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.DeviceManagement.ManagedDevices.Item.LogoutSharedAppleDeviceAct /// /// Provides operations to call the logoutSharedAppleDeviceActiveUser method. /// - public class LogoutSharedAppleDeviceActiveUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LogoutSharedAppleDeviceActiveUserRequestBuilder : BaseCliRequestBuilder { /// /// Logout shared Apple device active user @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LogoutSharedAppleDeviceActiveUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logoutSharedAppleDeviceActiveUser", 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 LogoutSharedAppleDeviceActiveUserRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/logoutSharedAppleDeviceActiveUser", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ManagedDevices.Item.BypassActivationLock; using ApiSdk.DeviceManagement.ManagedDevices.Item.CleanWindowsDevice; using ApiSdk.DeviceManagement.ManagedDevices.Item.DeleteUserFromSharedAppleDevice; @@ -25,6 +26,7 @@ using ApiSdk.DeviceManagement.ManagedDevices.Item.Wipe; 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; @@ -43,7 +45,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item /// /// Provides operations to manage the managedDevices property of the microsoft.graph.deviceManagement entity. /// - public class ManagedDeviceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the bypassActivationLock method. @@ -53,7 +56,7 @@ public Command BuildBypassActivationLockNavCommand() { var command = new Command("bypass-activation-lock"); command.Description = "Provides operations to call the bypassActivationLock method."; - var builder = new BypassActivationLockRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.BypassActivationLock.BypassActivationLockRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -70,7 +73,7 @@ public Command BuildCleanWindowsDeviceNavCommand() { var command = new Command("clean-windows-device"); command.Description = "Provides operations to call the cleanWindowsDevice method."; - var builder = new CleanWindowsDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.CleanWindowsDevice.CleanWindowsDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -123,7 +126,7 @@ public Command BuildDeleteUserFromSharedAppleDeviceNavCommand() { var command = new Command("delete-user-from-shared-apple-device"); command.Description = "Provides operations to call the deleteUserFromSharedAppleDevice method."; - var builder = new DeleteUserFromSharedAppleDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeleteUserFromSharedAppleDevice.DeleteUserFromSharedAppleDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -140,15 +143,21 @@ public Command BuildDeviceCategoryNavCommand() { var command = new Command("device-category"); command.Description = "Provides operations to manage the deviceCategory property of the microsoft.graph.managedDevice entity."; - var builder = new DeviceCategoryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceCategory.DeviceCategoryRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); + nonExecCommands.Add(builder.BuildRefNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -159,7 +168,7 @@ public Command BuildDeviceCompliancePolicyStatesNavCommand() { var command = new Command("device-compliance-policy-states"); command.Description = "Provides operations to manage the deviceCompliancePolicyStates property of the microsoft.graph.managedDevice entity."; - var builder = new DeviceCompliancePolicyStatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceCompliancePolicyStates.DeviceCompliancePolicyStatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -186,7 +195,7 @@ public Command BuildDeviceConfigurationStatesNavCommand() { var command = new Command("device-configuration-states"); command.Description = "Provides operations to manage the deviceConfigurationStates property of the microsoft.graph.managedDevice entity."; - var builder = new DeviceConfigurationStatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.DeviceConfigurationStates.DeviceConfigurationStatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -213,7 +222,7 @@ public Command BuildDisableLostModeNavCommand() { var command = new Command("disable-lost-mode"); command.Description = "Provides operations to call the disableLostMode method."; - var builder = new DisableLostModeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.DisableLostMode.DisableLostModeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -282,7 +291,7 @@ public Command BuildLocateDeviceNavCommand() { var command = new Command("locate-device"); command.Description = "Provides operations to call the locateDevice method."; - var builder = new LocateDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.LocateDevice.LocateDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -299,7 +308,7 @@ public Command BuildLogCollectionRequestsNavCommand() { var command = new Command("log-collection-requests"); command.Description = "Provides operations to manage the logCollectionRequests property of the microsoft.graph.managedDevice entity."; - var builder = new LogCollectionRequestsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.LogCollectionRequests.LogCollectionRequestsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -326,7 +335,7 @@ public Command BuildLogoutSharedAppleDeviceActiveUserNavCommand() { var command = new Command("logout-shared-apple-device-active-user"); command.Description = "Provides operations to call the logoutSharedAppleDeviceActiveUser method."; - var builder = new LogoutSharedAppleDeviceActiveUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.LogoutSharedAppleDeviceActiveUser.LogoutSharedAppleDeviceActiveUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -365,8 +374,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(ManagedDevice.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDevice.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -394,7 +403,7 @@ public Command BuildRebootNowNavCommand() { var command = new Command("reboot-now"); command.Description = "Provides operations to call the rebootNow method."; - var builder = new RebootNowRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.RebootNow.RebootNowRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -411,7 +420,7 @@ public Command BuildRecoverPasscodeNavCommand() { var command = new Command("recover-passcode"); command.Description = "Provides operations to call the recoverPasscode method."; - var builder = new RecoverPasscodeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.RecoverPasscode.RecoverPasscodeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -428,7 +437,7 @@ public Command BuildRemoteLockNavCommand() { var command = new Command("remote-lock"); command.Description = "Provides operations to call the remoteLock method."; - var builder = new RemoteLockRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.RemoteLock.RemoteLockRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -445,7 +454,7 @@ public Command BuildRequestRemoteAssistanceNavCommand() { var command = new Command("request-remote-assistance"); command.Description = "Provides operations to call the requestRemoteAssistance method."; - var builder = new RequestRemoteAssistanceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.RequestRemoteAssistance.RequestRemoteAssistanceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -462,7 +471,7 @@ public Command BuildResetPasscodeNavCommand() { var command = new Command("reset-passcode"); command.Description = "Provides operations to call the resetPasscode method."; - var builder = new ResetPasscodeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.ResetPasscode.ResetPasscodeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -479,7 +488,7 @@ public Command BuildRetireNavCommand() { var command = new Command("retire"); command.Description = "Provides operations to call the retire method."; - var builder = new RetireRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.Retire.RetireRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -496,7 +505,7 @@ public Command BuildShutDownNavCommand() { var command = new Command("shut-down"); command.Description = "Provides operations to call the shutDown method."; - var builder = new ShutDownRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.ShutDown.ShutDownRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -513,7 +522,7 @@ public Command BuildSyncDeviceNavCommand() { var command = new Command("sync-device"); command.Description = "Provides operations to call the syncDevice method."; - var builder = new SyncDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.SyncDevice.SyncDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -530,7 +539,7 @@ public Command BuildUpdateWindowsDeviceAccountNavCommand() { var command = new Command("update-windows-device-account"); command.Description = "Provides operations to call the updateWindowsDeviceAccount method."; - var builder = new UpdateWindowsDeviceAccountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.UpdateWindowsDeviceAccount.UpdateWindowsDeviceAccountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -547,7 +556,7 @@ public Command BuildUsersNavCommand() { var command = new Command("users"); command.Description = "Provides operations to manage the users property of the microsoft.graph.managedDevice entity."; - var builder = new UsersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.Users.UsersRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -564,7 +573,7 @@ public Command BuildWindowsDefenderScanNavCommand() { var command = new Command("windows-defender-scan"); command.Description = "Provides operations to call the windowsDefenderScan method."; - var builder = new WindowsDefenderScanRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsDefenderScan.WindowsDefenderScanRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -581,7 +590,7 @@ public Command BuildWindowsDefenderUpdateSignaturesNavCommand() { var command = new Command("windows-defender-update-signatures"); command.Description = "Provides operations to call the windowsDefenderUpdateSignatures method."; - var builder = new WindowsDefenderUpdateSignaturesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsDefenderUpdateSignatures.WindowsDefenderUpdateSignaturesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -598,7 +607,7 @@ public Command BuildWindowsProtectionStateNavCommand() { var command = new Command("windows-protection-state"); command.Description = "Provides operations to manage the windowsProtectionState property of the microsoft.graph.managedDevice entity."; - var builder = new WindowsProtectionStateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsProtectionState.WindowsProtectionStateRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -623,7 +632,7 @@ public Command BuildWipeNavCommand() { var command = new Command("wipe"); command.Description = "Provides operations to call the wipe method."; - var builder = new WipeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.Wipe.WipeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -633,14 +642,14 @@ public Command BuildWipeNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ManagedDeviceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%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 ManagedDeviceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}{?%24expand,%24select}", rawUrl) @@ -672,11 +681,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); @@ -692,11 +701,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(ManagedDevice body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDevice body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ManagedDevice body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ManagedDevice body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -708,7 +717,8 @@ public RequestInformation ToPatchRequestInformation(ManagedDevice body, Action /// The list of managed devices. /// - public class ManagedDeviceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDeviceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -733,3 +743,4 @@ public class ManagedDeviceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs index 365330be8e..bcbda3f837 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/RebootNow/RebootNowRequestBuilder.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.DeviceManagement.ManagedDevices.Item.RebootNow /// /// Provides operations to call the rebootNow method. /// - public class RebootNowRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RebootNowRequestBuilder : BaseCliRequestBuilder { /// /// Reboot device @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RebootNowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/rebootNow", 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 RebootNowRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/rebootNow", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item.RecoverPasscode /// /// Provides operations to call the recoverPasscode method. /// - public class RecoverPasscodeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RecoverPasscodeRequestBuilder : BaseCliRequestBuilder { /// /// Recover passcode @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RecoverPasscodeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/recoverPasscode", 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 RecoverPasscodeRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/recoverPasscode", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item.RemoteLock /// /// Provides operations to call the remoteLock method. /// - public class RemoteLockRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteLockRequestBuilder : BaseCliRequestBuilder { /// /// Remote lock @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RemoteLockRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/remoteLock", 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 RemoteLockRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/remoteLock", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item.RequestRemoteAssistance /// /// Provides operations to call the requestRemoteAssistance method. /// - public class RequestRemoteAssistanceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RequestRemoteAssistanceRequestBuilder : BaseCliRequestBuilder { /// /// Request remote assistance @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RequestRemoteAssistanceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/requestRemoteAssistance", 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 RequestRemoteAssistanceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/requestRemoteAssistance", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item.ResetPasscode /// /// Provides operations to call the resetPasscode method. /// - public class ResetPasscodeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResetPasscodeRequestBuilder : BaseCliRequestBuilder { /// /// Reset passcode @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ResetPasscodeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/resetPasscode", 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 ResetPasscodeRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/resetPasscode", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item.Retire /// /// Provides operations to call the retire method. /// - public class RetireRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RetireRequestBuilder : BaseCliRequestBuilder { /// /// Retire a device @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RetireRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/retire", 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 RetireRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/retire", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item.ShutDown /// /// Provides operations to call the shutDown method. /// - public class ShutDownRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ShutDownRequestBuilder : BaseCliRequestBuilder { /// /// Shut down device @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ShutDownRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/shutDown", 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 ShutDownRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/shutDown", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item.SyncDevice /// /// Provides operations to call the syncDevice method. /// - public class SyncDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SyncDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SyncDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/syncDevice", 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 SyncDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/syncDevice", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.DeviceManagement.ManagedDevices.Item.UpdateWindowsDeviceAccount { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UpdateWindowsDeviceAccountPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UpdateWindowsDeviceAccountPostRequestBody : 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. @@ -16,13 +18,13 @@ public class UpdateWindowsDeviceAccountPostRequestBody : IAdditionalDataHolder, /// The updateWindowsDeviceAccountActionParameter property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.UpdateWindowsDeviceAccountActionParameter? UpdateWindowsDeviceAccountActionParameter { get; set; } + public global::ApiSdk.Models.UpdateWindowsDeviceAccountActionParameter? UpdateWindowsDeviceAccountActionParameter { get; set; } #nullable restore #else - public ApiSdk.Models.UpdateWindowsDeviceAccountActionParameter UpdateWindowsDeviceAccountActionParameter { get; set; } + public global::ApiSdk.Models.UpdateWindowsDeviceAccountActionParameter UpdateWindowsDeviceAccountActionParameter { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UpdateWindowsDeviceAccountPostRequestBody() { @@ -31,12 +33,12 @@ public UpdateWindowsDeviceAccountPostRequestBody() /// /// 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 UpdateWindowsDeviceAccountPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.ManagedDevices.Item.UpdateWindowsDeviceAccount.UpdateWindowsDeviceAccountPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UpdateWindowsDeviceAccountPostRequestBody(); + return new global::ApiSdk.DeviceManagement.ManagedDevices.Item.UpdateWindowsDeviceAccount.UpdateWindowsDeviceAccountPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "updateWindowsDeviceAccountActionParameter", n => { UpdateWindowsDeviceAccountActionParameter = n.GetObjectValue(ApiSdk.Models.UpdateWindowsDeviceAccountActionParameter.CreateFromDiscriminatorValue); } }, + { "updateWindowsDeviceAccountActionParameter", n => { UpdateWindowsDeviceAccountActionParameter = n.GetObjectValue(global::ApiSdk.Models.UpdateWindowsDeviceAccountActionParameter.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("updateWindowsDeviceAccountActionParameter", UpdateWindowsDeviceAccountActionParameter); + writer.WriteObjectValue("updateWindowsDeviceAccountActionParameter", UpdateWindowsDeviceAccountActionParameter); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs index d57889aa86..9f8ca249e9 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/UpdateWindowsDeviceAccount/UpdateWindowsDeviceAccountRequestBuilder.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.DeviceManagement.ManagedDevices.Item.UpdateWindowsDeviceAccount /// /// Provides operations to call the updateWindowsDeviceAccount method. /// - public class UpdateWindowsDeviceAccountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UpdateWindowsDeviceAccountRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -43,8 +46,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(UpdateWindowsDeviceAccountPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.ManagedDevices.Item.UpdateWindowsDeviceAccount.UpdateWindowsDeviceAccountPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 UpdateWindowsDeviceAccountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/updateWindowsDeviceAccount", 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 UpdateWindowsDeviceAccountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/updateWindowsDeviceAccount", rawUrl) @@ -84,11 +87,11 @@ public UpdateWindowsDeviceAccountRequestBuilder(string rawUrl) : base("{+baseurl /// 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(UpdateWindowsDeviceAccountPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ManagedDevices.Item.UpdateWindowsDeviceAccount.UpdateWindowsDeviceAccountPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UpdateWindowsDeviceAccountPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ManagedDevices.Item.UpdateWindowsDeviceAccount.UpdateWindowsDeviceAccountPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(UpdateWindowsDeviceAccountPos } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.cs index 202975092c..f046253afe 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/Users/UsersRequestBuilder.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.DeviceManagement.ManagedDevices.Item.Users /// /// Provides operations to manage the users property of the microsoft.graph.managedDevice entity. /// - public class UsersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsersRequestBuilder : BaseCliRequestBuilder { /// /// The primary users associated with the managed device. @@ -124,14 +127,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 UsersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/users{?%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 UsersRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/users{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -144,11 +147,11 @@ public UsersRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/ma /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// The primary users associated with the managed device. /// - public class UsersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class UsersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs index cfcf9182c8..cf17ed6464 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsDefenderScan { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class WindowsDefenderScanPostRequestBody : IAdditionalDataHolder, IParsable + public partial class WindowsDefenderScanPostRequestBody : 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. @@ -15,7 +17,7 @@ public class WindowsDefenderScanPostRequestBody : IAdditionalDataHolder, IParsab /// The quickScan property public bool? QuickScan { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WindowsDefenderScanPostRequestBody() { @@ -24,12 +26,12 @@ public WindowsDefenderScanPostRequestBody() /// /// 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 WindowsDefenderScanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsDefenderScan.WindowsDefenderScanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WindowsDefenderScanPostRequestBody(); + return new global::ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsDefenderScan.WindowsDefenderScanPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs index 4a0000ee96..6e452d1198 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderScan/WindowsDefenderScanRequestBuilder.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.DeviceManagement.ManagedDevices.Item.WindowsDefenderScan /// /// Provides operations to call the windowsDefenderScan method. /// - public class WindowsDefenderScanRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsDefenderScanRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -43,8 +46,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(WindowsDefenderScanPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsDefenderScan.WindowsDefenderScanPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 WindowsDefenderScanRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsDefenderScan", 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 WindowsDefenderScanRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsDefenderScan", rawUrl) @@ -84,11 +87,11 @@ public WindowsDefenderScanRequestBuilder(string rawUrl) : base("{+baseurl}/devic /// 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(WindowsDefenderScanPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsDefenderScan.WindowsDefenderScanPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WindowsDefenderScanPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsDefenderScan.WindowsDefenderScanPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(WindowsDefenderScanPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs index 3f10e6c7f6..a62b775408 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsDefenderUpdateSignatures/WindowsDefenderUpdateSignaturesRequestBuilder.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.DeviceManagement.ManagedDevices.Item.WindowsDefenderUpdateSigna /// /// Provides operations to call the windowsDefenderUpdateSignatures method. /// - public class WindowsDefenderUpdateSignaturesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsDefenderUpdateSignaturesRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WindowsDefenderUpdateSignaturesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsDefenderUpdateSignatures", 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 WindowsDefenderUpdateSignaturesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsDefenderUpdateSignatures", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsProtectionState.Det /// /// 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}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState/$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}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/ma /// 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/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs index 00b97658ca..e572ef3cf1 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/DetectedMalwareStateRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsProtectionState.DetectedMalwareState.Count; using ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsProtectionState.DetectedMalwareState.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.DeviceManagement.ManagedDevices.Item.WindowsProtectionState.Det /// /// Provides operations to manage the detectedMalwareState property of the microsoft.graph.windowsProtectionState entity. /// - public class DetectedMalwareStateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetectedMalwareStateRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the detectedMalwareState property of the microsoft.graph.windowsProtectionState entity. @@ -30,7 +33,7 @@ public class DetectedMalwareStateRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new WindowsDeviceMalwareStateItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsProtectionState.DetectedMalwareState.Item.WindowsDeviceMalwareStateItemRequestBuilder(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.DeviceManagement.ManagedDevices.Item.WindowsProtectionState.DetectedMalwareState.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(WindowsDeviceMalwareState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsDeviceMalwareState.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 DetectedMalwareStateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState{?%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 DetectedMalwareStateRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public DetectedMalwareStateRequestBuilder(string rawUrl) : base("{+baseurl}/devi /// 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); @@ -247,11 +250,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(WindowsDeviceMalwareState body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsDeviceMalwareState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WindowsDeviceMalwareState body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsDeviceMalwareState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(WindowsDeviceMalwareState bod /// /// Device malware list /// - public class DetectedMalwareStateRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetectedMalwareStateRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class DetectedMalwareStateRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs index e4d514fdd9..b44189d2a3 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/DetectedMalwareState/Item/WindowsDeviceMalwareStateItemRequestBuilder.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.DeviceManagement.ManagedDevices.Item.WindowsProtectionState.Det /// /// Provides operations to manage the detectedMalwareState property of the microsoft.graph.windowsProtectionState entity. /// - public class WindowsDeviceMalwareStateItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsDeviceMalwareStateItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property detectedMalwareState for deviceManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(WindowsDeviceMalwareState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsDeviceMalwareState.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WindowsDeviceMalwareStateItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState/{windowsDeviceMalwareState%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 WindowsDeviceMalwareStateItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState/detectedMalwareState/{windowsDeviceMalwareState%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WindowsDeviceMalwareState body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsDeviceMalwareState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WindowsDeviceMalwareState body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsDeviceMalwareState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(WindowsDeviceMalwareState bo /// /// Device malware list /// - public class WindowsDeviceMalwareStateItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsDeviceMalwareStateItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class WindowsDeviceMalwareStateItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs index c5062ff750..11aff165ae 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/WindowsProtectionState/WindowsProtectionStateRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsProtectionState.DetectedMalwareState; 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.DeviceManagement.ManagedDevices.Item.WindowsProtectionState /// /// Provides operations to manage the windowsProtectionState property of the microsoft.graph.managedDevice entity. /// - public class WindowsProtectionStateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsProtectionStateRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property windowsProtectionState for deviceManagement @@ -65,7 +68,7 @@ public Command BuildDetectedMalwareStateNavCommand() { var command = new Command("detected-malware-state"); command.Description = "Provides operations to manage the detectedMalwareState property of the microsoft.graph.windowsProtectionState entity."; - var builder = new DetectedMalwareStateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.WindowsProtectionState.DetectedMalwareState.DetectedMalwareStateRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -166,8 +169,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.WindowsProtectionState.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsProtectionState.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -188,14 +191,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 WindowsProtectionStateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState{?%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 WindowsProtectionStateRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/windowsProtectionState{?%24expand,%24select}", rawUrl) @@ -227,11 +230,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); @@ -247,11 +250,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.WindowsProtectionState body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsProtectionState body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.WindowsProtectionState body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsProtectionState body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.WindowsProtect /// /// The device protection status. This property is read-only. /// - public class WindowsProtectionStateRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsProtectionStateRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -288,3 +292,4 @@ public class WindowsProtectionStateRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/Wipe/WipePostRequestBody.cs b/src/generated/DeviceManagement/ManagedDevices/Item/Wipe/WipePostRequestBody.cs index cafac7e952..0a7c0c744e 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/Wipe/WipePostRequestBody.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/Wipe/WipePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.ManagedDevices.Item.Wipe { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class WipePostRequestBody : IAdditionalDataHolder, IParsable + public partial class WipePostRequestBody : 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. @@ -27,7 +29,7 @@ public class WipePostRequestBody : IAdditionalDataHolder, IParsable /// The persistEsimDataPlan property public bool? PersistEsimDataPlan { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WipePostRequestBody() { @@ -36,12 +38,12 @@ public WipePostRequestBody() /// /// 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 WipePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.ManagedDevices.Item.Wipe.WipePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WipePostRequestBody(); + return new global::ApiSdk.DeviceManagement.ManagedDevices.Item.Wipe.WipePostRequestBody(); } /// /// The deserialization information for the current model @@ -72,3 +74,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs index 945590e381..bc3a1a9bcb 100644 --- a/src/generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/Item/Wipe/WipeRequestBuilder.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.DeviceManagement.ManagedDevices.Item.Wipe /// /// Provides operations to call the wipe method. /// - public class WipeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WipeRequestBuilder : BaseCliRequestBuilder { /// /// Wipe a device @@ -43,8 +46,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(WipePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.ManagedDevices.Item.Wipe.WipePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 WipeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/wipe", 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 WipeRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/wipe", rawUrl) @@ -84,11 +87,11 @@ public WipeRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/man /// 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(WipePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ManagedDevices.Item.Wipe.WipePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WipePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.ManagedDevices.Item.Wipe.WipePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(WipePostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.cs b/src/generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.cs index a082a2f242..62df69e78b 100644 --- a/src/generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.cs +++ b/src/generated/DeviceManagement/ManagedDevices/ManagedDevicesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ManagedDevices.Count; using ApiSdk.DeviceManagement.ManagedDevices.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.DeviceManagement.ManagedDevices /// /// Provides operations to manage the managedDevices property of the microsoft.graph.deviceManagement entity. /// - public class ManagedDevicesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDevicesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the managedDevices property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ManagedDeviceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ManagedDevices.Item.ManagedDeviceItemRequestBuilder(PathParameters); commands.Add(builder.BuildBypassActivationLockNavCommand()); commands.Add(builder.BuildCleanWindowsDeviceNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -69,7 +72,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.DeviceManagement.ManagedDevices.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -104,8 +107,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(ManagedDevice.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ManagedDevice.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 ManagedDevicesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/managedDevices{?%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 ManagedDevicesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/managedDevices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public ManagedDevicesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMana /// 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); @@ -261,11 +264,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(ManagedDevice body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedDevice body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ManagedDevice body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ManagedDevice body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ManagedDevice body, Action /// The list of managed devices. /// - public class ManagedDevicesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagedDevicesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class ManagedDevicesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Count/CountRequestBuilder.cs index de4bf13344..21417e64a6 100644 --- a/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/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.DeviceManagement.MobileAppTroubleshootingEvents.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}/deviceManagement/mobileAppTroubleshootingEvents/$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}/deviceManagement/mobileAppTroubleshootingEvents/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/mo /// 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/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.cs b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.cs index 9c6afe95f0..cbbb865ecc 100644 --- a/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.cs +++ b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/AppLogCollectionRequestsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogCollectionRequests.Count; using ApiSdk.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogCollectionRequests.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.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogColl /// /// Provides operations to manage the appLogCollectionRequests property of the microsoft.graph.mobileAppTroubleshootingEvent entity. /// - public class AppLogCollectionRequestsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppLogCollectionRequestsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the appLogCollectionRequests property of the microsoft.graph.mobileAppTroubleshootingEvent entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new AppLogCollectionRequestItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogCollectionRequests.Item.AppLogCollectionRequestItemRequestBuilder(PathParameters); commands.Add(builder.BuildCreateDownloadUrlNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogCollectionRequests.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(AppLogCollectionRequest.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AppLogCollectionRequest.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 AppLogCollectionRequestsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests{?%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 AppLogCollectionRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -231,11 +234,11 @@ public AppLogCollectionRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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); @@ -251,11 +254,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(AppLogCollectionRequest body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AppLogCollectionRequest body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AppLogCollectionRequest body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AppLogCollectionRequest body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(AppLogCollectionRequest body, /// /// List properties and relationships of the appLogCollectionRequest objects. /// - public class AppLogCollectionRequestsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppLogCollectionRequestsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class AppLogCollectionRequestsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Count/CountRequestBuilder.cs index 222c8fee6e..1e85e50c5b 100644 --- a/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/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.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogColl /// /// 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}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests/$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}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/mo /// 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/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.cs b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.cs index 177b209e63..e2269e794f 100644 --- a/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/AppLogCollectionRequestItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogCollectionRequests.Item.CreateDownloadUrl; 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.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogColl /// /// Provides operations to manage the appLogCollectionRequests property of the microsoft.graph.mobileAppTroubleshootingEvent entity. /// - public class AppLogCollectionRequestItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppLogCollectionRequestItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the createDownloadUrl method. @@ -30,7 +33,7 @@ public Command BuildCreateDownloadUrlNavCommand() { var command = new Command("create-download-url"); command.Description = "Provides operations to call the createDownloadUrl method."; - var builder = new CreateDownloadUrlRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogCollectionRequests.Item.CreateDownloadUrl.CreateDownloadUrlRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -176,8 +179,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(AppLogCollectionRequest.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AppLogCollectionRequest.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 AppLogCollectionRequestItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests/{appLogCollectionRequest%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 AppLogCollectionRequestItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests/{appLogCollectionRequest%2Did}{?%24expand,%24select}", rawUrl) @@ -238,11 +241,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); @@ -258,11 +261,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(AppLogCollectionRequest body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AppLogCollectionRequest body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AppLogCollectionRequest body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AppLogCollectionRequest body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -274,7 +277,8 @@ public RequestInformation ToPatchRequestInformation(AppLogCollectionRequest body /// /// Read properties and relationships of the appLogCollectionRequest object. /// - public class AppLogCollectionRequestItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppLogCollectionRequestItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -299,3 +303,4 @@ public class AppLogCollectionRequestItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs index aa351d25ac..1ba10c9f69 100644 --- a/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.cs +++ b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/Item/AppLogCollectionRequests/Item/CreateDownloadUrl/CreateDownloadUrlRequestBuilder.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.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogColl /// /// Provides operations to call the createDownloadUrl method. /// - public class CreateDownloadUrlRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateDownloadUrlRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -67,14 +70,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 CreateDownloadUrlRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests/{appLogCollectionRequest%2Did}/createDownloadUrl", 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 CreateDownloadUrlRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests/{appLogCollectionRequest%2Did}/createDownloadUrl", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogCollectionRequests; 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.DeviceManagement.MobileAppTroubleshootingEvents.Item /// /// Provides operations to manage the mobileAppTroubleshootingEvents property of the microsoft.graph.deviceManagement entity. /// - public class MobileAppTroubleshootingEventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppTroubleshootingEventItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the appLogCollectionRequests property of the microsoft.graph.mobileAppTroubleshootingEvent entity. @@ -30,7 +33,7 @@ public Command BuildAppLogCollectionRequestsNavCommand() { var command = new Command("app-log-collection-requests"); command.Description = "Provides operations to manage the appLogCollectionRequests property of the microsoft.graph.mobileAppTroubleshootingEvent entity."; - var builder = new AppLogCollectionRequestsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.MobileAppTroubleshootingEvents.Item.AppLogCollectionRequests.AppLogCollectionRequestsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -169,8 +172,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(MobileAppTroubleshootingEvent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppTroubleshootingEvent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -191,14 +194,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 MobileAppTroubleshootingEventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%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 MobileAppTroubleshootingEventItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}{?%24expand,%24select}", rawUrl) @@ -230,11 +233,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); @@ -250,11 +253,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(MobileAppTroubleshootingEvent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppTroubleshootingEvent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileAppTroubleshootingEvent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileAppTroubleshootingEvent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPatchRequestInformation(MobileAppTroubleshootingEven /// /// Read properties and relationships of the mobileAppTroubleshootingEvent object. /// - public class MobileAppTroubleshootingEventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppTroubleshootingEventItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -291,3 +295,4 @@ public class MobileAppTroubleshootingEventItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.cs b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.cs index 884914095a..e56219e0a9 100644 --- a/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.cs +++ b/src/generated/DeviceManagement/MobileAppTroubleshootingEvents/MobileAppTroubleshootingEventsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.MobileAppTroubleshootingEvents.Count; using ApiSdk.DeviceManagement.MobileAppTroubleshootingEvents.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.DeviceManagement.MobileAppTroubleshootingEvents /// /// Provides operations to manage the mobileAppTroubleshootingEvents property of the microsoft.graph.deviceManagement entity. /// - public class MobileAppTroubleshootingEventsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppTroubleshootingEventsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the mobileAppTroubleshootingEvents property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new MobileAppTroubleshootingEventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.MobileAppTroubleshootingEvents.Item.MobileAppTroubleshootingEventItemRequestBuilder(PathParameters); commands.Add(builder.BuildAppLogCollectionRequestsNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.DeviceManagement.MobileAppTroubleshootingEvents.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,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(MobileAppTroubleshootingEvent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileAppTroubleshootingEvent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 MobileAppTroubleshootingEventsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents{?%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 MobileAppTroubleshootingEventsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public MobileAppTroubleshootingEventsRequestBuilder(string rawUrl) : base("{+bas /// 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); @@ -239,11 +242,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(MobileAppTroubleshootingEvent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppTroubleshootingEvent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileAppTroubleshootingEvent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileAppTroubleshootingEvent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(MobileAppTroubleshootingEvent /// /// List properties and relationships of the mobileAppTroubleshootingEvent objects. /// - public class MobileAppTroubleshootingEventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileAppTroubleshootingEventsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class MobileAppTroubleshootingEventsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/MobileThreatDefenseConnectors/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/MobileThreatDefenseConnectors/Count/CountRequestBuilder.cs index 42884d99cd..434a65af13 100644 --- a/src/generated/DeviceManagement/MobileThreatDefenseConnectors/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/MobileThreatDefenseConnectors/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.DeviceManagement.MobileThreatDefenseConnectors.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}/deviceManagement/mobileThreatDefenseConnectors/$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}/deviceManagement/mobileThreatDefenseConnectors/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/mo /// 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/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.cs b/src/generated/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.cs index 5de43aaab3..079bb53ecb 100644 --- a/src/generated/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/MobileThreatDefenseConnectors/Item/MobileThreatDefenseConnectorItemRequestBuilder.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.DeviceManagement.MobileThreatDefenseConnectors.Item /// /// Provides operations to manage the mobileThreatDefenseConnectors property of the microsoft.graph.deviceManagement entity. /// - public class MobileThreatDefenseConnectorItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileThreatDefenseConnectorItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a mobileThreatDefenseConnector. @@ -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(MobileThreatDefenseConnector.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileThreatDefenseConnector.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 MobileThreatDefenseConnectorItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/mobileThreatDefenseConnectors/{mobileThreatDefenseConnector%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 MobileThreatDefenseConnectorItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/mobileThreatDefenseConnectors/{mobileThreatDefenseConnector%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(MobileThreatDefenseConnector body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileThreatDefenseConnector body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MobileThreatDefenseConnector body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MobileThreatDefenseConnector body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(MobileThreatDefenseConnector /// /// Read properties and relationships of the mobileThreatDefenseConnector object. /// - public class MobileThreatDefenseConnectorItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileThreatDefenseConnectorItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class MobileThreatDefenseConnectorItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.cs b/src/generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.cs index 6ca7e4809d..13d6ca6cb6 100644 --- a/src/generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.cs +++ b/src/generated/DeviceManagement/MobileThreatDefenseConnectors/MobileThreatDefenseConnectorsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.MobileThreatDefenseConnectors.Count; using ApiSdk.DeviceManagement.MobileThreatDefenseConnectors.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.DeviceManagement.MobileThreatDefenseConnectors /// /// Provides operations to manage the mobileThreatDefenseConnectors property of the microsoft.graph.deviceManagement entity. /// - public class MobileThreatDefenseConnectorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileThreatDefenseConnectorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the mobileThreatDefenseConnectors property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class MobileThreatDefenseConnectorsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MobileThreatDefenseConnectorItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.MobileThreatDefenseConnectors.Item.MobileThreatDefenseConnectorItemRequestBuilder(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.DeviceManagement.MobileThreatDefenseConnectors.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(MobileThreatDefenseConnector.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MobileThreatDefenseConnector.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 MobileThreatDefenseConnectorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/mobileThreatDefenseConnectors{?%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 MobileThreatDefenseConnectorsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/mobileThreatDefenseConnectors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public MobileThreatDefenseConnectorsRequestBuilder(string rawUrl) : base("{+base /// 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(MobileThreatDefenseConnector body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileThreatDefenseConnector body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MobileThreatDefenseConnector body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MobileThreatDefenseConnector body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(MobileThreatDefenseConnector /// /// List properties and relationships of the mobileThreatDefenseConnector objects. /// - public class MobileThreatDefenseConnectorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MobileThreatDefenseConnectorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class MobileThreatDefenseConnectorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/NotificationMessageTemplates/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/NotificationMessageTemplates/Count/CountRequestBuilder.cs index fd4945b961..2b9ec34670 100644 --- a/src/generated/DeviceManagement/NotificationMessageTemplates/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/NotificationMessageTemplates/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.DeviceManagement.NotificationMessageTemplates.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}/deviceManagement/notificationMessageTemplates/$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}/deviceManagement/notificationMessageTemplates/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/no /// 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/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Count/CountRequestBuilder.cs index 958d1306a6..8f9a275b4a 100644 --- a/src/generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/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.DeviceManagement.NotificationMessageTemplates.Item.LocalizedNot /// /// 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}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages/$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}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/no /// 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/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.cs b/src/generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.cs index 1af65cacc0..ec599bd801 100644 --- a/src/generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/Item/LocalizedNotificationMessageItemRequestBuilder.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.DeviceManagement.NotificationMessageTemplates.Item.LocalizedNot /// /// Provides operations to manage the localizedNotificationMessages property of the microsoft.graph.notificationMessageTemplate entity. /// - public class LocalizedNotificationMessageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LocalizedNotificationMessageItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a localizedNotificationMessage. @@ -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(LocalizedNotificationMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LocalizedNotificationMessage.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 LocalizedNotificationMessageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages/{localizedNotificationMessage%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 LocalizedNotificationMessageItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages/{localizedNotificationMessage%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(LocalizedNotificationMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LocalizedNotificationMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(LocalizedNotificationMessage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LocalizedNotificationMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(LocalizedNotificationMessage /// /// Read properties and relationships of the localizedNotificationMessage object. /// - public class LocalizedNotificationMessageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LocalizedNotificationMessageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class LocalizedNotificationMessageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.cs b/src/generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.cs index f82b6b1534..8f2adb6f4f 100644 --- a/src/generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.cs +++ b/src/generated/DeviceManagement/NotificationMessageTemplates/Item/LocalizedNotificationMessages/LocalizedNotificationMessagesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.NotificationMessageTemplates.Item.LocalizedNotificationMessages.Count; using ApiSdk.DeviceManagement.NotificationMessageTemplates.Item.LocalizedNotificationMessages.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.DeviceManagement.NotificationMessageTemplates.Item.LocalizedNot /// /// Provides operations to manage the localizedNotificationMessages property of the microsoft.graph.notificationMessageTemplate entity. /// - public class LocalizedNotificationMessagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LocalizedNotificationMessagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the localizedNotificationMessages property of the microsoft.graph.notificationMessageTemplate entity. @@ -30,7 +33,7 @@ public class LocalizedNotificationMessagesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new LocalizedNotificationMessageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.NotificationMessageTemplates.Item.LocalizedNotificationMessages.Item.LocalizedNotificationMessageItemRequestBuilder(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.DeviceManagement.NotificationMessageTemplates.Item.LocalizedNotificationMessages.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(LocalizedNotificationMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LocalizedNotificationMessage.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 LocalizedNotificationMessagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages{?%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 LocalizedNotificationMessagesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/localizedNotificationMessages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public LocalizedNotificationMessagesRequestBuilder(string rawUrl) : base("{+base /// 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(LocalizedNotificationMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.LocalizedNotificationMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LocalizedNotificationMessage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.LocalizedNotificationMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(LocalizedNotificationMessage /// /// List properties and relationships of the localizedNotificationMessage objects. /// - public class LocalizedNotificationMessagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LocalizedNotificationMessagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class LocalizedNotificationMessagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.cs b/src/generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.cs index 66501f9a97..cbaeb3e101 100644 --- a/src/generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/NotificationMessageTemplates/Item/NotificationMessageTemplateItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.NotificationMessageTemplates.Item.LocalizedNotificationMessages; using ApiSdk.DeviceManagement.NotificationMessageTemplates.Item.SendTestMessage; 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.DeviceManagement.NotificationMessageTemplates.Item /// /// Provides operations to manage the notificationMessageTemplates property of the microsoft.graph.deviceManagement entity. /// - public class NotificationMessageTemplateItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotificationMessageTemplateItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a notificationMessageTemplate. @@ -120,7 +123,7 @@ public Command BuildLocalizedNotificationMessagesNavCommand() { var command = new Command("localized-notification-messages"); command.Description = "Provides operations to manage the localizedNotificationMessages property of the microsoft.graph.notificationMessageTemplate entity."; - var builder = new LocalizedNotificationMessagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.NotificationMessageTemplates.Item.LocalizedNotificationMessages.LocalizedNotificationMessagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -170,8 +173,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(NotificationMessageTemplate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.NotificationMessageTemplate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,7 +202,7 @@ public Command BuildSendTestMessageNavCommand() { var command = new Command("send-test-message"); command.Description = "Provides operations to call the sendTestMessage method."; - var builder = new SendTestMessageRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.NotificationMessageTemplates.Item.SendTestMessage.SendTestMessageRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -209,14 +212,14 @@ public Command BuildSendTestMessageNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public NotificationMessageTemplateItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%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 NotificationMessageTemplateItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}{?%24expand,%24select}", rawUrl) @@ -248,11 +251,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); @@ -268,11 +271,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(NotificationMessageTemplate body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.NotificationMessageTemplate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(NotificationMessageTemplate body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.NotificationMessageTemplate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -284,7 +287,8 @@ public RequestInformation ToPatchRequestInformation(NotificationMessageTemplate /// /// Read properties and relationships of the notificationMessageTemplate object. /// - public class NotificationMessageTemplateItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotificationMessageTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -309,3 +313,4 @@ public class NotificationMessageTemplateItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.cs b/src/generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.cs index 892fe15690..8c41ea9e7a 100644 --- a/src/generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.cs +++ b/src/generated/DeviceManagement/NotificationMessageTemplates/Item/SendTestMessage/SendTestMessageRequestBuilder.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.DeviceManagement.NotificationMessageTemplates.Item.SendTestMess /// /// Provides operations to call the sendTestMessage method. /// - public class SendTestMessageRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SendTestMessageRequestBuilder : BaseCliRequestBuilder { /// /// Sends test message using the specified notificationMessageTemplate in the default locale @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SendTestMessageRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/sendTestMessage", 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 SendTestMessageRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/notificationMessageTemplates/{notificationMessageTemplate%2Did}/sendTestMessage", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.NotificationMessageTemplates.Count; using ApiSdk.DeviceManagement.NotificationMessageTemplates.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.DeviceManagement.NotificationMessageTemplates /// /// Provides operations to manage the notificationMessageTemplates property of the microsoft.graph.deviceManagement entity. /// - public class NotificationMessageTemplatesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotificationMessageTemplatesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the notificationMessageTemplates property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new NotificationMessageTemplateItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.NotificationMessageTemplates.Item.NotificationMessageTemplateItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildLocalizedNotificationMessagesNavCommand()); @@ -47,7 +50,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.DeviceManagement.NotificationMessageTemplates.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -82,8 +85,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(NotificationMessageTemplate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.NotificationMessageTemplate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -200,14 +203,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 NotificationMessageTemplatesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/notificationMessageTemplates{?%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 NotificationMessageTemplatesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/notificationMessageTemplates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -220,11 +223,11 @@ public NotificationMessageTemplatesRequestBuilder(string rawUrl) : base("{+baseu /// 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); @@ -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 ToPostRequestInformation(NotificationMessageTemplate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.NotificationMessageTemplate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(NotificationMessageTemplate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.NotificationMessageTemplate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPostRequestInformation(NotificationMessageTemplate b /// /// List properties and relationships of the notificationMessageTemplate objects. /// - public class NotificationMessageTemplatesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotificationMessageTemplatesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -320,3 +324,4 @@ public class NotificationMessageTemplatesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/RemoteAssistancePartners/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/RemoteAssistancePartners/Count/CountRequestBuilder.cs index 20c6c46e03..3effc9f1bf 100644 --- a/src/generated/DeviceManagement/RemoteAssistancePartners/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/RemoteAssistancePartners/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.DeviceManagement.RemoteAssistancePartners.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}/deviceManagement/remoteAssistancePartners/$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}/deviceManagement/remoteAssistancePartners/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/re /// 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/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.cs b/src/generated/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.cs index d0ce3f65d9..27ddae3214 100644 --- a/src/generated/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.cs +++ b/src/generated/DeviceManagement/RemoteAssistancePartners/Item/BeginOnboarding/BeginOnboardingRequestBuilder.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.DeviceManagement.RemoteAssistancePartners.Item.BeginOnboarding /// /// Provides operations to call the beginOnboarding method. /// - public class BeginOnboardingRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BeginOnboardingRequestBuilder : BaseCliRequestBuilder { /// /// A request to start onboarding. Must be coupled with the appropriate TeamViewer account information @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public BeginOnboardingRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/remoteAssistancePartners/{remoteAssistancePartner%2Did}/beginOnboarding", 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 BeginOnboardingRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/remoteAssistancePartners/{remoteAssistancePartner%2Did}/beginOnboarding", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.RemoteAssistancePartners.Item.Disconnect /// /// Provides operations to call the disconnect method. /// - public class DisconnectRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DisconnectRequestBuilder : BaseCliRequestBuilder { /// /// A request to remove the active TeamViewer connector @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DisconnectRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/remoteAssistancePartners/{remoteAssistancePartner%2Did}/disconnect", 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 DisconnectRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/remoteAssistancePartners/{remoteAssistancePartner%2Did}/disconnect", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.RemoteAssistancePartners.Item.BeginOnboarding; using ApiSdk.DeviceManagement.RemoteAssistancePartners.Item.Disconnect; 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.DeviceManagement.RemoteAssistancePartners.Item /// /// Provides operations to manage the remoteAssistancePartners property of the microsoft.graph.deviceManagement entity. /// - public class RemoteAssistancePartnerItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteAssistancePartnerItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the beginOnboarding method. @@ -31,7 +34,7 @@ public Command BuildBeginOnboardingNavCommand() { var command = new Command("begin-onboarding"); command.Description = "Provides operations to call the beginOnboarding method."; - var builder = new BeginOnboardingRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RemoteAssistancePartners.Item.BeginOnboarding.BeginOnboardingRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -84,7 +87,7 @@ public Command BuildDisconnectNavCommand() { var command = new Command("disconnect"); command.Description = "Provides operations to call the disconnect method."; - var builder = new DisconnectRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RemoteAssistancePartners.Item.Disconnect.DisconnectRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -177,8 +180,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(RemoteAssistancePartner.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RemoteAssistancePartner.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 RemoteAssistancePartnerItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/remoteAssistancePartners/{remoteAssistancePartner%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 RemoteAssistancePartnerItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/remoteAssistancePartners/{remoteAssistancePartner%2Did}{?%24expand,%24select}", rawUrl) @@ -238,11 +241,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); @@ -258,11 +261,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(RemoteAssistancePartner body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RemoteAssistancePartner body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(RemoteAssistancePartner body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RemoteAssistancePartner body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -274,7 +277,8 @@ public RequestInformation ToPatchRequestInformation(RemoteAssistancePartner body /// /// Read properties and relationships of the remoteAssistancePartner object. /// - public class RemoteAssistancePartnerItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteAssistancePartnerItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -299,3 +303,4 @@ public class RemoteAssistancePartnerItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.cs b/src/generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.cs index 3041400c3e..9b1c05df9a 100644 --- a/src/generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.cs +++ b/src/generated/DeviceManagement/RemoteAssistancePartners/RemoteAssistancePartnersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.RemoteAssistancePartners.Count; using ApiSdk.DeviceManagement.RemoteAssistancePartners.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.DeviceManagement.RemoteAssistancePartners /// /// Provides operations to manage the remoteAssistancePartners property of the microsoft.graph.deviceManagement entity. /// - public class RemoteAssistancePartnersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteAssistancePartnersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the remoteAssistancePartners property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RemoteAssistancePartnerItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RemoteAssistancePartners.Item.RemoteAssistancePartnerItemRequestBuilder(PathParameters); commands.Add(builder.BuildBeginOnboardingNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDisconnectNavCommand()); @@ -47,7 +50,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.DeviceManagement.RemoteAssistancePartners.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -82,8 +85,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(RemoteAssistancePartner.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RemoteAssistancePartner.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -200,14 +203,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 RemoteAssistancePartnersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/remoteAssistancePartners{?%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 RemoteAssistancePartnersRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/remoteAssistancePartners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -220,11 +223,11 @@ public RemoteAssistancePartnersRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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); @@ -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 ToPostRequestInformation(RemoteAssistancePartner body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RemoteAssistancePartner body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RemoteAssistancePartner body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RemoteAssistancePartner body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPostRequestInformation(RemoteAssistancePartner body, /// /// List properties and relationships of the remoteAssistancePartner objects. /// - public class RemoteAssistancePartnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteAssistancePartnersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -320,3 +324,4 @@ public class RemoteAssistancePartnersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/ExportJobs/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/Reports/ExportJobs/Count/CountRequestBuilder.cs index 4f5f44a1bc..46767034d6 100644 --- a/src/generated/DeviceManagement/Reports/ExportJobs/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/ExportJobs/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.DeviceManagement.Reports.ExportJobs.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}/deviceManagement/reports/exportJobs/$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}/deviceManagement/reports/exportJobs/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/re /// 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/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.cs b/src/generated/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.cs index b3161bf3a8..53e486d0bb 100644 --- a/src/generated/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/ExportJobs/ExportJobsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.Reports.ExportJobs.Count; using ApiSdk.DeviceManagement.Reports.ExportJobs.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.DeviceManagement.Reports.ExportJobs /// /// Provides operations to manage the exportJobs property of the microsoft.graph.deviceManagementReports entity. /// - public class ExportJobsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExportJobsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the exportJobs property of the microsoft.graph.deviceManagementReports entity. @@ -30,7 +33,7 @@ public class ExportJobsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceManagementExportJobItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.ExportJobs.Item.DeviceManagementExportJobItemRequestBuilder(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.DeviceManagement.Reports.ExportJobs.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(DeviceManagementExportJob.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceManagementExportJob.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 ExportJobsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/exportJobs{?%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 ExportJobsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/exportJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public ExportJobsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManageme /// 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(DeviceManagementExportJob body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceManagementExportJob body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceManagementExportJob body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceManagementExportJob body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(DeviceManagementExportJob bod /// /// List properties and relationships of the deviceManagementExportJob objects. /// - public class ExportJobsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExportJobsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class ExportJobsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.cs b/src/generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.cs index ee41bd49c9..44af7574cf 100644 --- a/src/generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/ExportJobs/Item/DeviceManagementExportJobItemRequestBuilder.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.DeviceManagement.Reports.ExportJobs.Item /// /// Provides operations to manage the exportJobs property of the microsoft.graph.deviceManagementReports entity. /// - public class DeviceManagementExportJobItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementExportJobItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceManagementExportJob. @@ -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(DeviceManagementExportJob.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceManagementExportJob.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 DeviceManagementExportJobItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/exportJobs/{deviceManagementExportJob%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 DeviceManagementExportJobItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/exportJobs/{deviceManagementExportJob%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(DeviceManagementExportJob body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagementExportJob body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceManagementExportJob body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagementExportJob body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementExportJob bo /// /// Read properties and relationships of the deviceManagementExportJob object. /// - public class DeviceManagementExportJobItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementExportJobItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class DeviceManagementExportJobItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportPostRequestBody.cs index 658b54f528..999d49bb4c 100644 --- a/src/generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetCachedReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetCachedReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetCachedReportPostRequestBody : 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. @@ -57,7 +59,7 @@ public class GetCachedReportPostRequestBody : IAdditionalDataHolder, IParsable /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetCachedReportPostRequestBody() { @@ -66,12 +68,12 @@ public GetCachedReportPostRequestBody() /// /// 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 GetCachedReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetCachedReport.GetCachedReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetCachedReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetCachedReport.GetCachedReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -81,11 +83,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "id", n => { Id = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, }; @@ -108,3 +110,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.cs index 2c6b621546..d3a54efe84 100644 --- a/src/generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetCachedReport/GetCachedReportRequestBuilder.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.DeviceManagement.Reports.GetCachedReport /// /// Provides operations to call the getCachedReport method. /// - public class GetCachedReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetCachedReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetCachedReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetCachedReport.GetCachedReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetCachedReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getCachedReport", 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 GetCachedReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getCachedReport", rawUrl) @@ -90,11 +93,11 @@ public GetCachedReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMan /// 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(GetCachedReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetCachedReport.GetCachedReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetCachedReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetCachedReport.GetCachedReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetCachedReportPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportPostRequestBody.cs index 68d23a10b4..19e2c855a8 100644 --- a/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetCompliancePolicyNonComplianceReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetCompliancePolicyNonComplianceReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetCompliancePolicyNonComplianceReportPostRequestBody : IAdditional /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetCompliancePolicyNonComplianceReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetCompliancePolicyNonComplianceReportPostRequestBody() /// /// 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 GetCompliancePolicyNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceReport.GetCompliancePolicyNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetCompliancePolicyNonComplianceReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceReport.GetCompliancePolicyNonComplianceReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.cs index 8be8882124..3f85758208 100644 --- a/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceReport/GetCompliancePolicyNonComplianceReportRequestBuilder.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.DeviceManagement.Reports.GetCompliancePolicyNonComplianceReport /// /// Provides operations to call the getCompliancePolicyNonComplianceReport method. /// - public class GetCompliancePolicyNonComplianceReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetCompliancePolicyNonComplianceReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetCompliancePolicyNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceReport.GetCompliancePolicyNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetCompliancePolicyNonComplianceReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getCompliancePolicyNonComplianceReport", 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 GetCompliancePolicyNonComplianceReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getCompliancePolicyNonComplianceReport", rawUrl) @@ -90,11 +93,11 @@ public GetCompliancePolicyNonComplianceReportRequestBuilder(string rawUrl) : bas /// 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(GetCompliancePolicyNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceReport.GetCompliancePolicyNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetCompliancePolicyNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceReport.GetCompliancePolicyNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetCompliancePolicyNonComplia } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportPostRequestBody.cs index ccfa74a0ee..52484c5d0c 100644 --- a/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceSummaryReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetCompliancePolicyNonComplianceSummaryReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetCompliancePolicyNonComplianceSummaryReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetCompliancePolicyNonComplianceSummaryReportPostRequestBody : IAdd /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetCompliancePolicyNonComplianceSummaryReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetCompliancePolicyNonComplianceSummaryReportPostRequestBody() /// /// 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 GetCompliancePolicyNonComplianceSummaryReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceSummaryReport.GetCompliancePolicyNonComplianceSummaryReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetCompliancePolicyNonComplianceSummaryReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceSummaryReport.GetCompliancePolicyNonComplianceSummaryReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.cs index 7bb39c21c7..83a62adbd7 100644 --- a/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetCompliancePolicyNonComplianceSummaryReport/GetCompliancePolicyNonComplianceSummaryReportRequestBuilder.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.DeviceManagement.Reports.GetCompliancePolicyNonComplianceSummar /// /// Provides operations to call the getCompliancePolicyNonComplianceSummaryReport method. /// - public class GetCompliancePolicyNonComplianceSummaryReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetCompliancePolicyNonComplianceSummaryReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetCompliancePolicyNonComplianceSummaryReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceSummaryReport.GetCompliancePolicyNonComplianceSummaryReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetCompliancePolicyNonComplianceSummaryReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getCompliancePolicyNonComplianceSummaryReport", 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 GetCompliancePolicyNonComplianceSummaryReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getCompliancePolicyNonComplianceSummaryReport", rawUrl) @@ -90,11 +93,11 @@ public GetCompliancePolicyNonComplianceSummaryReportRequestBuilder(string rawUrl /// 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(GetCompliancePolicyNonComplianceSummaryReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceSummaryReport.GetCompliancePolicyNonComplianceSummaryReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetCompliancePolicyNonComplianceSummaryReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceSummaryReport.GetCompliancePolicyNonComplianceSummaryReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetCompliancePolicyNonComplia } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportPostRequestBody.cs index 06b731f24b..2da4daeb1c 100644 --- a/src/generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetComplianceSettingNonComplianceReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetComplianceSettingNonComplianceReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetComplianceSettingNonComplianceReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetComplianceSettingNonComplianceReportPostRequestBody : IAdditiona /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetComplianceSettingNonComplianceReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetComplianceSettingNonComplianceReportPostRequestBody() /// /// 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 GetComplianceSettingNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetComplianceSettingNonComplianceReport.GetComplianceSettingNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetComplianceSettingNonComplianceReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetComplianceSettingNonComplianceReport.GetComplianceSettingNonComplianceReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.cs index 3ce63bbe73..b4ecd3ee29 100644 --- a/src/generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetComplianceSettingNonComplianceReport/GetComplianceSettingNonComplianceReportRequestBuilder.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.DeviceManagement.Reports.GetComplianceSettingNonComplianceRepor /// /// Provides operations to call the getComplianceSettingNonComplianceReport method. /// - public class GetComplianceSettingNonComplianceReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetComplianceSettingNonComplianceReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetComplianceSettingNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetComplianceSettingNonComplianceReport.GetComplianceSettingNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetComplianceSettingNonComplianceReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getComplianceSettingNonComplianceReport", 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 GetComplianceSettingNonComplianceReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getComplianceSettingNonComplianceReport", rawUrl) @@ -90,11 +93,11 @@ public GetComplianceSettingNonComplianceReportRequestBuilder(string rawUrl) : ba /// 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(GetComplianceSettingNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetComplianceSettingNonComplianceReport.GetComplianceSettingNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetComplianceSettingNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetComplianceSettingNonComplianceReport.GetComplianceSettingNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetComplianceSettingNonCompli } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportPostRequestBody.cs index 07d91486e6..098be2ad51 100644 --- a/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetConfigurationPolicyNonComplianceReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetConfigurationPolicyNonComplianceReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetConfigurationPolicyNonComplianceReportPostRequestBody : IAdditio /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetConfigurationPolicyNonComplianceReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetConfigurationPolicyNonComplianceReportPostRequestBody() /// /// 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 GetConfigurationPolicyNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceReport.GetConfigurationPolicyNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetConfigurationPolicyNonComplianceReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceReport.GetConfigurationPolicyNonComplianceReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.cs index 5b1bf6913c..d6ced9594d 100644 --- a/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceReport/GetConfigurationPolicyNonComplianceReportRequestBuilder.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.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceRep /// /// Provides operations to call the getConfigurationPolicyNonComplianceReport method. /// - public class GetConfigurationPolicyNonComplianceReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetConfigurationPolicyNonComplianceReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetConfigurationPolicyNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceReport.GetConfigurationPolicyNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetConfigurationPolicyNonComplianceReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getConfigurationPolicyNonComplianceReport", 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 GetConfigurationPolicyNonComplianceReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getConfigurationPolicyNonComplianceReport", rawUrl) @@ -90,11 +93,11 @@ public GetConfigurationPolicyNonComplianceReportRequestBuilder(string rawUrl) : /// 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(GetConfigurationPolicyNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceReport.GetConfigurationPolicyNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetConfigurationPolicyNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceReport.GetConfigurationPolicyNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetConfigurationPolicyNonComp } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody.cs index b1d10822dc..6207536744 100644 --- a/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceSummaryReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody : I /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody() /// /// 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 GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceSummaryReport.GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceSummaryReport.GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.cs index 7f6379e862..40779f3f90 100644 --- a/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetConfigurationPolicyNonComplianceSummaryReport/GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder.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.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceSum /// /// Provides operations to call the getConfigurationPolicyNonComplianceSummaryReport method. /// - public class GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceSummaryReport.GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getConfigurationPolicyNonComplianceSummaryReport", 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 GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getConfigurationPolicyNonComplianceSummaryReport", rawUrl) @@ -90,11 +93,11 @@ public GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder(string raw /// 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(GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceSummaryReport.GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceSummaryReport.GetConfigurationPolicyNonComplianceSummaryReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetConfigurationPolicyNonComp } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportPostRequestBody.cs index 9823694903..e55952328f 100644 --- a/src/generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetConfigurationSettingNonComplianceReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetConfigurationSettingNonComplianceReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetConfigurationSettingNonComplianceReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetConfigurationSettingNonComplianceReportPostRequestBody : IAdditi /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetConfigurationSettingNonComplianceReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetConfigurationSettingNonComplianceReportPostRequestBody() /// /// 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 GetConfigurationSettingNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetConfigurationSettingNonComplianceReport.GetConfigurationSettingNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetConfigurationSettingNonComplianceReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetConfigurationSettingNonComplianceReport.GetConfigurationSettingNonComplianceReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.cs index 879989a4ad..0a5f68ffb2 100644 --- a/src/generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetConfigurationSettingNonComplianceReport/GetConfigurationSettingNonComplianceReportRequestBuilder.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.DeviceManagement.Reports.GetConfigurationSettingNonComplianceRe /// /// Provides operations to call the getConfigurationSettingNonComplianceReport method. /// - public class GetConfigurationSettingNonComplianceReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetConfigurationSettingNonComplianceReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetConfigurationSettingNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetConfigurationSettingNonComplianceReport.GetConfigurationSettingNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetConfigurationSettingNonComplianceReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getConfigurationSettingNonComplianceReport", 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 GetConfigurationSettingNonComplianceReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getConfigurationSettingNonComplianceReport", rawUrl) @@ -90,11 +93,11 @@ public GetConfigurationSettingNonComplianceReportRequestBuilder(string rawUrl) : /// 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(GetConfigurationSettingNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetConfigurationSettingNonComplianceReport.GetConfigurationSettingNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetConfigurationSettingNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetConfigurationSettingNonComplianceReport.GetConfigurationSettingNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetConfigurationSettingNonCom } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.cs index d473c1c718..515da9d31f 100644 --- a/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentPerSettingContributingProfiles { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetDeviceManagementIntentPerSettingContributingProfilesPostRequestB /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody() { @@ -82,12 +84,12 @@ public GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody() /// /// 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 GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentPerSettingContributingProfiles.GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentPerSettingContributingProfiles.GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.cs index ea461c5738..7a9516fb2d 100644 --- a/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentPerSettingContributingProfiles/GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder.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.DeviceManagement.Reports.GetDeviceManagementIntentPerSettingCon /// /// Provides operations to call the getDeviceManagementIntentPerSettingContributingProfiles method. /// - public class GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentPerSettingContributingProfiles.GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getDeviceManagementIntentPerSettingContributingProfiles", 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 GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getDeviceManagementIntentPerSettingContributingProfiles", rawUrl) @@ -90,11 +93,11 @@ public GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder(str /// 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(GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentPerSettingContributingProfiles.GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentPerSettingContributingProfiles.GetDeviceManagementIntentPerSettingContributingProfilesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetDeviceManagementIntentPerS } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportPostRequestBody.cs index 8f04d4550b..ab96f1da43 100644 --- a/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentSettingsReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetDeviceManagementIntentSettingsReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetDeviceManagementIntentSettingsReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetDeviceManagementIntentSettingsReportPostRequestBody : IAdditiona /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetDeviceManagementIntentSettingsReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetDeviceManagementIntentSettingsReportPostRequestBody() /// /// 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 GetDeviceManagementIntentSettingsReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentSettingsReport.GetDeviceManagementIntentSettingsReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetDeviceManagementIntentSettingsReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentSettingsReport.GetDeviceManagementIntentSettingsReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.cs index 17ad879fc5..bef4f9aabb 100644 --- a/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetDeviceManagementIntentSettingsReport/GetDeviceManagementIntentSettingsReportRequestBuilder.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.DeviceManagement.Reports.GetDeviceManagementIntentSettingsRepor /// /// Provides operations to call the getDeviceManagementIntentSettingsReport method. /// - public class GetDeviceManagementIntentSettingsReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetDeviceManagementIntentSettingsReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetDeviceManagementIntentSettingsReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentSettingsReport.GetDeviceManagementIntentSettingsReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetDeviceManagementIntentSettingsReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getDeviceManagementIntentSettingsReport", 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 GetDeviceManagementIntentSettingsReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getDeviceManagementIntentSettingsReport", rawUrl) @@ -90,11 +93,11 @@ public GetDeviceManagementIntentSettingsReportRequestBuilder(string rawUrl) : ba /// 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(GetDeviceManagementIntentSettingsReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentSettingsReport.GetDeviceManagementIntentSettingsReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetDeviceManagementIntentSettingsReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentSettingsReport.GetDeviceManagementIntentSettingsReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetDeviceManagementIntentSett } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportPostRequestBody.cs index d1880b4396..47032148f0 100644 --- a/src/generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetDeviceNonComplianceReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetDeviceNonComplianceReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetDeviceNonComplianceReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetDeviceNonComplianceReportPostRequestBody : IAdditionalDataHolder /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetDeviceNonComplianceReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetDeviceNonComplianceReportPostRequestBody() /// /// 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 GetDeviceNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetDeviceNonComplianceReport.GetDeviceNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetDeviceNonComplianceReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetDeviceNonComplianceReport.GetDeviceNonComplianceReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.cs index 00a85fe9d1..5561356b36 100644 --- a/src/generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetDeviceNonComplianceReport/GetDeviceNonComplianceReportRequestBuilder.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.DeviceManagement.Reports.GetDeviceNonComplianceReport /// /// Provides operations to call the getDeviceNonComplianceReport method. /// - public class GetDeviceNonComplianceReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetDeviceNonComplianceReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetDeviceNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetDeviceNonComplianceReport.GetDeviceNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetDeviceNonComplianceReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getDeviceNonComplianceReport", 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 GetDeviceNonComplianceReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getDeviceNonComplianceReport", rawUrl) @@ -90,11 +93,11 @@ public GetDeviceNonComplianceReportRequestBuilder(string rawUrl) : base("{+baseu /// 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(GetDeviceNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetDeviceNonComplianceReport.GetDeviceNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetDeviceNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetDeviceNonComplianceReport.GetDeviceNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetDeviceNonComplianceReportP } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs index bad435845d..5dd8bf1947 100644 --- a/src/generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetDevicesWithoutCompliancePolicyReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetDevicesWithoutCompliancePolicyReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetDevicesWithoutCompliancePolicyReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetDevicesWithoutCompliancePolicyReportPostRequestBody : IAdditiona /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetDevicesWithoutCompliancePolicyReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetDevicesWithoutCompliancePolicyReportPostRequestBody() /// /// 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 GetDevicesWithoutCompliancePolicyReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetDevicesWithoutCompliancePolicyReport.GetDevicesWithoutCompliancePolicyReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetDevicesWithoutCompliancePolicyReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetDevicesWithoutCompliancePolicyReport.GetDevicesWithoutCompliancePolicyReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.cs index 5ae296f978..e6a29bd721 100644 --- a/src/generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetDevicesWithoutCompliancePolicyReport/GetDevicesWithoutCompliancePolicyReportRequestBuilder.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.DeviceManagement.Reports.GetDevicesWithoutCompliancePolicyRepor /// /// Provides operations to call the getDevicesWithoutCompliancePolicyReport method. /// - public class GetDevicesWithoutCompliancePolicyReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetDevicesWithoutCompliancePolicyReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetDevicesWithoutCompliancePolicyReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetDevicesWithoutCompliancePolicyReport.GetDevicesWithoutCompliancePolicyReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetDevicesWithoutCompliancePolicyReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getDevicesWithoutCompliancePolicyReport", 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 GetDevicesWithoutCompliancePolicyReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getDevicesWithoutCompliancePolicyReport", rawUrl) @@ -90,11 +93,11 @@ public GetDevicesWithoutCompliancePolicyReportRequestBuilder(string rawUrl) : ba /// 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(GetDevicesWithoutCompliancePolicyReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetDevicesWithoutCompliancePolicyReport.GetDevicesWithoutCompliancePolicyReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetDevicesWithoutCompliancePolicyReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetDevicesWithoutCompliancePolicyReport.GetDevicesWithoutCompliancePolicyReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetDevicesWithoutCompliancePo } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportPostRequestBody.cs index 7597b0ed90..ec840c362d 100644 --- a/src/generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetHistoricalReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetHistoricalReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetHistoricalReportPostRequestBody : 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. @@ -65,7 +67,7 @@ public class GetHistoricalReportPostRequestBody : IAdditionalDataHolder, IParsab /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetHistoricalReportPostRequestBody() { @@ -74,12 +76,12 @@ public GetHistoricalReportPostRequestBody() /// /// 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 GetHistoricalReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetHistoricalReport.GetHistoricalReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetHistoricalReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetHistoricalReport.GetHistoricalReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,11 +92,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, }; @@ -118,3 +120,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.cs index 7e364ac734..ca7e960bb8 100644 --- a/src/generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetHistoricalReport/GetHistoricalReportRequestBuilder.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.DeviceManagement.Reports.GetHistoricalReport /// /// Provides operations to call the getHistoricalReport method. /// - public class GetHistoricalReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetHistoricalReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetHistoricalReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetHistoricalReport.GetHistoricalReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetHistoricalReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getHistoricalReport", 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 GetHistoricalReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getHistoricalReport", rawUrl) @@ -90,11 +93,11 @@ public GetHistoricalReportRequestBuilder(string rawUrl) : base("{+baseurl}/devic /// 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(GetHistoricalReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetHistoricalReport.GetHistoricalReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetHistoricalReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetHistoricalReport.GetHistoricalReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetHistoricalReportPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportPostRequestBody.cs index 91eea99237..33de40718a 100644 --- a/src/generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetNoncompliantDevicesAndSettingsReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetNoncompliantDevicesAndSettingsReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetNoncompliantDevicesAndSettingsReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetNoncompliantDevicesAndSettingsReportPostRequestBody : IAdditiona /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetNoncompliantDevicesAndSettingsReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetNoncompliantDevicesAndSettingsReportPostRequestBody() /// /// 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 GetNoncompliantDevicesAndSettingsReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetNoncompliantDevicesAndSettingsReport.GetNoncompliantDevicesAndSettingsReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetNoncompliantDevicesAndSettingsReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetNoncompliantDevicesAndSettingsReport.GetNoncompliantDevicesAndSettingsReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.cs index dd0ec83a0b..18dfc3ba9b 100644 --- a/src/generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetNoncompliantDevicesAndSettingsReport/GetNoncompliantDevicesAndSettingsReportRequestBuilder.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.DeviceManagement.Reports.GetNoncompliantDevicesAndSettingsRepor /// /// Provides operations to call the getNoncompliantDevicesAndSettingsReport method. /// - public class GetNoncompliantDevicesAndSettingsReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetNoncompliantDevicesAndSettingsReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetNoncompliantDevicesAndSettingsReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetNoncompliantDevicesAndSettingsReport.GetNoncompliantDevicesAndSettingsReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetNoncompliantDevicesAndSettingsReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getNoncompliantDevicesAndSettingsReport", 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 GetNoncompliantDevicesAndSettingsReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getNoncompliantDevicesAndSettingsReport", rawUrl) @@ -90,11 +93,11 @@ public GetNoncompliantDevicesAndSettingsReportRequestBuilder(string rawUrl) : ba /// 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(GetNoncompliantDevicesAndSettingsReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetNoncompliantDevicesAndSettingsReport.GetNoncompliantDevicesAndSettingsReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetNoncompliantDevicesAndSettingsReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetNoncompliantDevicesAndSettingsReport.GetNoncompliantDevicesAndSettingsReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetNoncompliantDevicesAndSett } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataPostRequestBody.cs index 19eb39502d..73a7c4cdec 100644 --- a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceMetadata { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetPolicyNonComplianceMetadataPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetPolicyNonComplianceMetadataPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetPolicyNonComplianceMetadataPostRequestBody : IAdditionalDataHold /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetPolicyNonComplianceMetadataPostRequestBody() { @@ -82,12 +84,12 @@ public GetPolicyNonComplianceMetadataPostRequestBody() /// /// 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 GetPolicyNonComplianceMetadataPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceMetadata.GetPolicyNonComplianceMetadataPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetPolicyNonComplianceMetadataPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceMetadata.GetPolicyNonComplianceMetadataPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.cs index 847fbbfd9b..f5ff49c405 100644 --- a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceMetadata/GetPolicyNonComplianceMetadataRequestBuilder.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.DeviceManagement.Reports.GetPolicyNonComplianceMetadata /// /// Provides operations to call the getPolicyNonComplianceMetadata method. /// - public class GetPolicyNonComplianceMetadataRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetPolicyNonComplianceMetadataRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetPolicyNonComplianceMetadataPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceMetadata.GetPolicyNonComplianceMetadataPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetPolicyNonComplianceMetadataRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getPolicyNonComplianceMetadata", 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 GetPolicyNonComplianceMetadataRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getPolicyNonComplianceMetadata", rawUrl) @@ -90,11 +93,11 @@ public GetPolicyNonComplianceMetadataRequestBuilder(string rawUrl) : base("{+bas /// 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(GetPolicyNonComplianceMetadataPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceMetadata.GetPolicyNonComplianceMetadataPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetPolicyNonComplianceMetadataPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceMetadata.GetPolicyNonComplianceMetadataPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetPolicyNonComplianceMetadat } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportPostRequestBody.cs index fb46b98885..b3cda3ffe3 100644 --- a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetPolicyNonComplianceReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetPolicyNonComplianceReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetPolicyNonComplianceReportPostRequestBody : IAdditionalDataHolder /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetPolicyNonComplianceReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetPolicyNonComplianceReportPostRequestBody() /// /// 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 GetPolicyNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceReport.GetPolicyNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetPolicyNonComplianceReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceReport.GetPolicyNonComplianceReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.cs index 76df09ecc6..93565a2c30 100644 --- a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceReport/GetPolicyNonComplianceReportRequestBuilder.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.DeviceManagement.Reports.GetPolicyNonComplianceReport /// /// Provides operations to call the getPolicyNonComplianceReport method. /// - public class GetPolicyNonComplianceReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetPolicyNonComplianceReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetPolicyNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceReport.GetPolicyNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetPolicyNonComplianceReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getPolicyNonComplianceReport", 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 GetPolicyNonComplianceReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getPolicyNonComplianceReport", rawUrl) @@ -90,11 +93,11 @@ public GetPolicyNonComplianceReportRequestBuilder(string rawUrl) : base("{+baseu /// 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(GetPolicyNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceReport.GetPolicyNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetPolicyNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceReport.GetPolicyNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetPolicyNonComplianceReportP } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportPostRequestBody.cs index 1e6ef05681..0da23da01f 100644 --- a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceSummaryReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetPolicyNonComplianceSummaryReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetPolicyNonComplianceSummaryReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetPolicyNonComplianceSummaryReportPostRequestBody : IAdditionalDat /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetPolicyNonComplianceSummaryReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetPolicyNonComplianceSummaryReportPostRequestBody() /// /// 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 GetPolicyNonComplianceSummaryReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceSummaryReport.GetPolicyNonComplianceSummaryReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetPolicyNonComplianceSummaryReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceSummaryReport.GetPolicyNonComplianceSummaryReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.cs index 2d4654b331..1a486ddc5c 100644 --- a/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetPolicyNonComplianceSummaryReport/GetPolicyNonComplianceSummaryReportRequestBuilder.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.DeviceManagement.Reports.GetPolicyNonComplianceSummaryReport /// /// Provides operations to call the getPolicyNonComplianceSummaryReport method. /// - public class GetPolicyNonComplianceSummaryReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetPolicyNonComplianceSummaryReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetPolicyNonComplianceSummaryReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceSummaryReport.GetPolicyNonComplianceSummaryReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetPolicyNonComplianceSummaryReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getPolicyNonComplianceSummaryReport", 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 GetPolicyNonComplianceSummaryReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getPolicyNonComplianceSummaryReport", rawUrl) @@ -90,11 +93,11 @@ public GetPolicyNonComplianceSummaryReportRequestBuilder(string rawUrl) : base(" /// 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(GetPolicyNonComplianceSummaryReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceSummaryReport.GetPolicyNonComplianceSummaryReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetPolicyNonComplianceSummaryReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceSummaryReport.GetPolicyNonComplianceSummaryReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetPolicyNonComplianceSummary } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersPostRequestBody.cs index 0b4fbe943f..802bba52fc 100644 --- a/src/generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetReportFilters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetReportFiltersPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetReportFiltersPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetReportFiltersPostRequestBody : IAdditionalDataHolder, IParsable /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetReportFiltersPostRequestBody() { @@ -82,12 +84,12 @@ public GetReportFiltersPostRequestBody() /// /// 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 GetReportFiltersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetReportFilters.GetReportFiltersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetReportFiltersPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetReportFilters.GetReportFiltersPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.cs index df221f4dd8..56eed73319 100644 --- a/src/generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetReportFilters/GetReportFiltersRequestBuilder.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.DeviceManagement.Reports.GetReportFilters /// /// Provides operations to call the getReportFilters method. /// - public class GetReportFiltersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetReportFiltersRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetReportFiltersPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetReportFilters.GetReportFiltersPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetReportFiltersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getReportFilters", 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 GetReportFiltersRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getReportFilters", rawUrl) @@ -90,11 +93,11 @@ public GetReportFiltersRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMa /// 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(GetReportFiltersPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetReportFilters.GetReportFiltersPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetReportFiltersPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetReportFilters.GetReportFiltersPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetReportFiltersPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportPostRequestBody.cs index 6945285332..2ec2eaadd4 100644 --- a/src/generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportPostRequestBody.cs +++ b/src/generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.Reports.GetSettingNonComplianceReport { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetSettingNonComplianceReportPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetSettingNonComplianceReportPostRequestBody : 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. @@ -73,7 +75,7 @@ public class GetSettingNonComplianceReportPostRequestBody : IAdditionalDataHolde /// The top property public int? Top { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetSettingNonComplianceReportPostRequestBody() { @@ -82,12 +84,12 @@ public GetSettingNonComplianceReportPostRequestBody() /// /// 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 GetSettingNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.Reports.GetSettingNonComplianceReport.GetSettingNonComplianceReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetSettingNonComplianceReportPostRequestBody(); + return new global::ApiSdk.DeviceManagement.Reports.GetSettingNonComplianceReport.GetSettingNonComplianceReportPostRequestBody(); } /// /// The deserialization information for the current model @@ -98,11 +100,11 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "filter", n => { Filter = n.GetStringValue(); } }, - { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "search", n => { Search = n.GetStringValue(); } }, - { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sessionId", n => { SessionId = n.GetStringValue(); } }, { "skip", n => { Skip = n.GetIntValue(); } }, { "top", n => { Top = n.GetIntValue(); } }, @@ -128,3 +130,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.cs index 97721651fe..fa4779c407 100644 --- a/src/generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/GetSettingNonComplianceReport/GetSettingNonComplianceReportRequestBuilder.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.DeviceManagement.Reports.GetSettingNonComplianceReport /// /// Provides operations to call the getSettingNonComplianceReport method. /// - public class GetSettingNonComplianceReportRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetSettingNonComplianceReportRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented @@ -41,8 +44,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(GetSettingNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.Reports.GetSettingNonComplianceReport.GetSettingNonComplianceReportPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 GetSettingNonComplianceReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/getSettingNonComplianceReport", 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 GetSettingNonComplianceReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/getSettingNonComplianceReport", rawUrl) @@ -90,11 +93,11 @@ public GetSettingNonComplianceReportRequestBuilder(string rawUrl) : base("{+base /// 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(GetSettingNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetSettingNonComplianceReport.GetSettingNonComplianceReportPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetSettingNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.GetSettingNonComplianceReport.GetSettingNonComplianceReportPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(GetSettingNonComplianceReport } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/ReportsRequestBuilder.cs b/src/generated/DeviceManagement/Reports/ReportsRequestBuilder.cs index 163755ae3d..401dda3c94 100644 --- a/src/generated/DeviceManagement/Reports/ReportsRequestBuilder.cs +++ b/src/generated/DeviceManagement/Reports/ReportsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.Reports.ExportJobs; using ApiSdk.DeviceManagement.Reports.GetCachedReport; using ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceReport; @@ -18,8 +19,10 @@ using ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceSummaryReport; using ApiSdk.DeviceManagement.Reports.GetReportFilters; using ApiSdk.DeviceManagement.Reports.GetSettingNonComplianceReport; +using ApiSdk.DeviceManagement.Reports.RetrieveDeviceAppInstallationStatusReport; 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; @@ -38,7 +41,8 @@ namespace ApiSdk.DeviceManagement.Reports /// /// Provides operations to manage the reports property of the microsoft.graph.deviceManagement entity. /// - public class ReportsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReportsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property reports for deviceManagement @@ -77,7 +81,7 @@ public Command BuildExportJobsNavCommand() { var command = new Command("export-jobs"); command.Description = "Provides operations to manage the exportJobs property of the microsoft.graph.deviceManagementReports entity."; - var builder = new ExportJobsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.ExportJobs.ExportJobsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -104,7 +108,7 @@ public Command BuildGetCachedReportNavCommand() { var command = new Command("get-cached-report"); command.Description = "Provides operations to call the getCachedReport method."; - var builder = new GetCachedReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetCachedReport.GetCachedReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -168,7 +172,7 @@ public Command BuildGetCompliancePolicyNonComplianceReportNavCommand() { var command = new Command("get-compliance-policy-non-compliance-report"); command.Description = "Provides operations to call the getCompliancePolicyNonComplianceReport method."; - var builder = new GetCompliancePolicyNonComplianceReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceReport.GetCompliancePolicyNonComplianceReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -185,7 +189,7 @@ public Command BuildGetCompliancePolicyNonComplianceSummaryReportNavCommand() { var command = new Command("get-compliance-policy-non-compliance-summary-report"); command.Description = "Provides operations to call the getCompliancePolicyNonComplianceSummaryReport method."; - var builder = new GetCompliancePolicyNonComplianceSummaryReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetCompliancePolicyNonComplianceSummaryReport.GetCompliancePolicyNonComplianceSummaryReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -202,7 +206,7 @@ public Command BuildGetComplianceSettingNonComplianceReportNavCommand() { var command = new Command("get-compliance-setting-non-compliance-report"); command.Description = "Provides operations to call the getComplianceSettingNonComplianceReport method."; - var builder = new GetComplianceSettingNonComplianceReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetComplianceSettingNonComplianceReport.GetComplianceSettingNonComplianceReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -219,7 +223,7 @@ public Command BuildGetConfigurationPolicyNonComplianceReportNavCommand() { var command = new Command("get-configuration-policy-non-compliance-report"); command.Description = "Provides operations to call the getConfigurationPolicyNonComplianceReport method."; - var builder = new GetConfigurationPolicyNonComplianceReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceReport.GetConfigurationPolicyNonComplianceReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -236,7 +240,7 @@ public Command BuildGetConfigurationPolicyNonComplianceSummaryReportNavCommand() { var command = new Command("get-configuration-policy-non-compliance-summary-report"); command.Description = "Provides operations to call the getConfigurationPolicyNonComplianceSummaryReport method."; - var builder = new GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetConfigurationPolicyNonComplianceSummaryReport.GetConfigurationPolicyNonComplianceSummaryReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -253,7 +257,7 @@ public Command BuildGetConfigurationSettingNonComplianceReportNavCommand() { var command = new Command("get-configuration-setting-non-compliance-report"); command.Description = "Provides operations to call the getConfigurationSettingNonComplianceReport method."; - var builder = new GetConfigurationSettingNonComplianceReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetConfigurationSettingNonComplianceReport.GetConfigurationSettingNonComplianceReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -270,7 +274,7 @@ public Command BuildGetDeviceManagementIntentPerSettingContributingProfilesNavCo { var command = new Command("get-device-management-intent-per-setting-contributing-profiles"); command.Description = "Provides operations to call the getDeviceManagementIntentPerSettingContributingProfiles method."; - var builder = new GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentPerSettingContributingProfiles.GetDeviceManagementIntentPerSettingContributingProfilesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -287,7 +291,7 @@ public Command BuildGetDeviceManagementIntentSettingsReportNavCommand() { var command = new Command("get-device-management-intent-settings-report"); command.Description = "Provides operations to call the getDeviceManagementIntentSettingsReport method."; - var builder = new GetDeviceManagementIntentSettingsReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetDeviceManagementIntentSettingsReport.GetDeviceManagementIntentSettingsReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -304,7 +308,7 @@ public Command BuildGetDeviceNonComplianceReportNavCommand() { var command = new Command("get-device-non-compliance-report"); command.Description = "Provides operations to call the getDeviceNonComplianceReport method."; - var builder = new GetDeviceNonComplianceReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetDeviceNonComplianceReport.GetDeviceNonComplianceReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -321,7 +325,7 @@ public Command BuildGetDevicesWithoutCompliancePolicyReportNavCommand() { var command = new Command("get-devices-without-compliance-policy-report"); command.Description = "Provides operations to call the getDevicesWithoutCompliancePolicyReport method."; - var builder = new GetDevicesWithoutCompliancePolicyReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetDevicesWithoutCompliancePolicyReport.GetDevicesWithoutCompliancePolicyReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -338,7 +342,7 @@ public Command BuildGetHistoricalReportNavCommand() { var command = new Command("get-historical-report"); command.Description = "Provides operations to call the getHistoricalReport method."; - var builder = new GetHistoricalReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetHistoricalReport.GetHistoricalReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -355,7 +359,7 @@ public Command BuildGetNoncompliantDevicesAndSettingsReportNavCommand() { var command = new Command("get-noncompliant-devices-and-settings-report"); command.Description = "Provides operations to call the getNoncompliantDevicesAndSettingsReport method."; - var builder = new GetNoncompliantDevicesAndSettingsReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetNoncompliantDevicesAndSettingsReport.GetNoncompliantDevicesAndSettingsReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -372,7 +376,7 @@ public Command BuildGetPolicyNonComplianceMetadataNavCommand() { var command = new Command("get-policy-non-compliance-metadata"); command.Description = "Provides operations to call the getPolicyNonComplianceMetadata method."; - var builder = new GetPolicyNonComplianceMetadataRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceMetadata.GetPolicyNonComplianceMetadataRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -389,7 +393,7 @@ public Command BuildGetPolicyNonComplianceReportNavCommand() { var command = new Command("get-policy-non-compliance-report"); command.Description = "Provides operations to call the getPolicyNonComplianceReport method."; - var builder = new GetPolicyNonComplianceReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceReport.GetPolicyNonComplianceReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -406,7 +410,7 @@ public Command BuildGetPolicyNonComplianceSummaryReportNavCommand() { var command = new Command("get-policy-non-compliance-summary-report"); command.Description = "Provides operations to call the getPolicyNonComplianceSummaryReport method."; - var builder = new GetPolicyNonComplianceSummaryReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetPolicyNonComplianceSummaryReport.GetPolicyNonComplianceSummaryReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -423,7 +427,7 @@ public Command BuildGetReportFiltersNavCommand() { var command = new Command("get-report-filters"); command.Description = "Provides operations to call the getReportFilters method."; - var builder = new GetReportFiltersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetReportFilters.GetReportFiltersRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -440,7 +444,7 @@ public Command BuildGetSettingNonComplianceReportNavCommand() { var command = new Command("get-setting-non-compliance-report"); command.Description = "Provides operations to call the getSettingNonComplianceReport method."; - var builder = new GetSettingNonComplianceReportRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.Reports.GetSettingNonComplianceReport.GetSettingNonComplianceReportRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -475,8 +479,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(DeviceManagementReports.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceManagementReports.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -496,14 +500,31 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the retrieveDeviceAppInstallationStatusReport method. + /// + /// A + public Command BuildRetrieveDeviceAppInstallationStatusReportNavCommand() + { + var command = new Command("retrieve-device-app-installation-status-report"); + command.Description = "Provides operations to call the retrieveDeviceAppInstallationStatusReport method."; + var builder = new global::ApiSdk.DeviceManagement.Reports.RetrieveDeviceAppInstallationStatusReport.RetrieveDeviceAppInstallationStatusReportRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ReportsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports{?%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 ReportsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports{?%24expand,%24select}", rawUrl) @@ -535,11 +556,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); @@ -555,11 +576,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(DeviceManagementReports body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagementReports body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceManagementReports body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagementReports body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -571,7 +592,8 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementReports body /// /// Read properties and relationships of the deviceManagementReports object. /// - public class ReportsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReportsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -596,3 +618,4 @@ public class ReportsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/RetrieveDeviceAppInstallationStatusReport/RetrieveDeviceAppInstallationStatusReportPostRequestBody.cs b/src/generated/DeviceManagement/Reports/RetrieveDeviceAppInstallationStatusReport/RetrieveDeviceAppInstallationStatusReportPostRequestBody.cs new file mode 100644 index 0000000000..5b34b639d8 --- /dev/null +++ b/src/generated/DeviceManagement/Reports/RetrieveDeviceAppInstallationStatusReport/RetrieveDeviceAppInstallationStatusReportPostRequestBody.cs @@ -0,0 +1,133 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.DeviceManagement.Reports.RetrieveDeviceAppInstallationStatusReport +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RetrieveDeviceAppInstallationStatusReportPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The filter property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Filter { get; set; } +#nullable restore +#else + public string Filter { get; set; } +#endif + /// The groupBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? GroupBy { get; set; } +#nullable restore +#else + public List GroupBy { get; set; } +#endif + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { get; set; } +#nullable restore +#else + public string Name { get; set; } +#endif + /// The orderBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? OrderBy { get; set; } +#nullable restore +#else + public List OrderBy { get; set; } +#endif + /// The search property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Search { get; set; } +#nullable restore +#else + public string Search { get; set; } +#endif + /// The select property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Select { get; set; } +#nullable restore +#else + public List Select { get; set; } +#endif + /// The sessionId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SessionId { get; set; } +#nullable restore +#else + public string SessionId { get; set; } +#endif + /// The skip property + public int? Skip { get; set; } + /// The top property + public int? Top { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public RetrieveDeviceAppInstallationStatusReportPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.DeviceManagement.Reports.RetrieveDeviceAppInstallationStatusReport.RetrieveDeviceAppInstallationStatusReportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.DeviceManagement.Reports.RetrieveDeviceAppInstallationStatusReport.RetrieveDeviceAppInstallationStatusReportPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "filter", n => { Filter = n.GetStringValue(); } }, + { "groupBy", n => { GroupBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "orderBy", n => { OrderBy = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "search", n => { Search = n.GetStringValue(); } }, + { "select", n => { Select = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "sessionId", n => { SessionId = n.GetStringValue(); } }, + { "skip", n => { Skip = n.GetIntValue(); } }, + { "top", n => { Top = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("filter", Filter); + writer.WriteCollectionOfPrimitiveValues("groupBy", GroupBy); + writer.WriteStringValue("name", Name); + writer.WriteCollectionOfPrimitiveValues("orderBy", OrderBy); + writer.WriteStringValue("search", Search); + writer.WriteCollectionOfPrimitiveValues("select", Select); + writer.WriteStringValue("sessionId", SessionId); + writer.WriteIntValue("skip", Skip); + writer.WriteIntValue("top", Top); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/Reports/RetrieveDeviceAppInstallationStatusReport/RetrieveDeviceAppInstallationStatusReportRequestBuilder.cs b/src/generated/DeviceManagement/Reports/RetrieveDeviceAppInstallationStatusReport/RetrieveDeviceAppInstallationStatusReportRequestBuilder.cs new file mode 100644 index 0000000000..c0f0c9dc15 --- /dev/null +++ b/src/generated/DeviceManagement/Reports/RetrieveDeviceAppInstallationStatusReport/RetrieveDeviceAppInstallationStatusReportRequestBuilder.cs @@ -0,0 +1,110 @@ +// +#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; +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.DeviceManagement.Reports.RetrieveDeviceAppInstallationStatusReport +{ + /// + /// Provides operations to call the retrieveDeviceAppInstallationStatusReport method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RetrieveDeviceAppInstallationStatusReportRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action retrieveDeviceAppInstallationStatusReport + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action retrieveDeviceAppInstallationStatusReport"; + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + var outputFileOption = new Option("--output-file"); + command.AddOption(outputFileOption); + command.SetHandler(async (invocationContext) => { + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var outputFile = invocationContext.ParseResult.GetValueForOption(outputFileOption); + 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.DeviceManagement.Reports.RetrieveDeviceAppInstallationStatusReport.RetrieveDeviceAppInstallationStatusReportPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(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; + if (outputFile == null) { + using var reader = new StreamReader(response); + var strContent = reader.ReadToEnd(); + Console.Write(strContent); + } + else { + using var writeStream = outputFile.OpenWrite(); + await response.CopyToAsync(writeStream); + Console.WriteLine($"Content written to {outputFile.FullName}."); + } + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public RetrieveDeviceAppInstallationStatusReportRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/reports/retrieveDeviceAppInstallationStatusReport", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RetrieveDeviceAppInstallationStatusReportRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/reports/retrieveDeviceAppInstallationStatusReport", rawUrl) + { + } + /// + /// Invoke action retrieveDeviceAppInstallationStatusReport + /// + /// 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 ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.RetrieveDeviceAppInstallationStatusReport.RetrieveDeviceAppInstallationStatusReportPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.Reports.RetrieveDeviceAppInstallationStatusReport.RetrieveDeviceAppInstallationStatusReportPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ResourceOperations/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/ResourceOperations/Count/CountRequestBuilder.cs index 390266a7b7..4c2d72b06a 100644 --- a/src/generated/DeviceManagement/ResourceOperations/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/ResourceOperations/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.DeviceManagement.ResourceOperations.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}/deviceManagement/resourceOperations/$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}/deviceManagement/resourceOperations/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/re /// 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/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.cs b/src/generated/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.cs index d855c5a8f3..0a4e5ae4b3 100644 --- a/src/generated/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/ResourceOperations/Item/ResourceOperationItemRequestBuilder.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.DeviceManagement.ResourceOperations.Item /// /// Provides operations to manage the resourceOperations property of the microsoft.graph.deviceManagement entity. /// - public class ResourceOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a resourceOperation. @@ -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(ResourceOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ResourceOperation.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 ResourceOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/resourceOperations/{resourceOperation%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 ResourceOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/resourceOperations/{resourceOperation%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(ResourceOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ResourceOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ResourceOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ResourceOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(ResourceOperation body, Acti /// /// Read properties and relationships of the resourceOperation object. /// - public class ResourceOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class ResourceOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.cs b/src/generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.cs index 961c321bc7..55c20c454e 100644 --- a/src/generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.cs +++ b/src/generated/DeviceManagement/ResourceOperations/ResourceOperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.ResourceOperations.Count; using ApiSdk.DeviceManagement.ResourceOperations.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.DeviceManagement.ResourceOperations /// /// Provides operations to manage the resourceOperations property of the microsoft.graph.deviceManagement entity. /// - public class ResourceOperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceOperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the resourceOperations property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class ResourceOperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ResourceOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.ResourceOperations.Item.ResourceOperationItemRequestBuilder(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.DeviceManagement.ResourceOperations.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(ResourceOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ResourceOperation.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 ResourceOperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/resourceOperations{?%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 ResourceOperationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/resourceOperations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public ResourceOperationsRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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(ResourceOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ResourceOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ResourceOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ResourceOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(ResourceOperation body, Actio /// /// List properties and relationships of the resourceOperation objects. /// - public class ResourceOperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceOperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class ResourceOperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/RoleAssignments/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/RoleAssignments/Count/CountRequestBuilder.cs index ed7352edb8..93d10852bf 100644 --- a/src/generated/DeviceManagement/RoleAssignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleAssignments/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.DeviceManagement.RoleAssignments.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}/deviceManagement/roleAssignments/$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}/deviceManagement/roleAssignments/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/ro /// 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/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.cs b/src/generated/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.cs index fe2dee1adc..9c38c0fcbc 100644 --- a/src/generated/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleAssignments/Item/DeviceAndAppManagementRoleAssignmentItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.RoleAssignments.Item.RoleDefinition; 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.DeviceManagement.RoleAssignments.Item /// /// Provides operations to manage the roleAssignments property of the microsoft.graph.deviceManagement entity. /// - public class DeviceAndAppManagementRoleAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceAndAppManagementRoleAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a deviceAndAppManagementRoleAssignment. @@ -142,8 +145,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(DeviceAndAppManagementRoleAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceAndAppManagementRoleAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,7 +174,7 @@ public Command BuildRoleDefinitionNavCommand() { var command = new Command("role-definition"); command.Description = "Provides operations to manage the roleDefinition property of the microsoft.graph.roleAssignment entity."; - var builder = new RoleDefinitionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RoleAssignments.Item.RoleDefinition.RoleDefinitionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -181,14 +184,14 @@ public Command BuildRoleDefinitionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceAndAppManagementRoleAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/roleAssignments/{deviceAndAppManagementRoleAssignment%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 DeviceAndAppManagementRoleAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/roleAssignments/{deviceAndAppManagementRoleAssignment%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(DeviceAndAppManagementRoleAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceAndAppManagementRoleAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceAndAppManagementRoleAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceAndAppManagementRoleAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(DeviceAndAppManagementRoleAs /// /// Read properties and relationships of the deviceAndAppManagementRoleAssignment object. /// - public class DeviceAndAppManagementRoleAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceAndAppManagementRoleAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class DeviceAndAppManagementRoleAssignmentItemRequestBuilderGetQueryParam } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index eea33adbc1..91404f3da8 100644 --- a/src/generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.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.DeviceManagement.RoleAssignments.Item.RoleDefinition /// /// Provides operations to manage the roleDefinition property of the microsoft.graph.roleAssignment entity. /// - public class RoleDefinitionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleDefinitionRequestBuilder : BaseCliRequestBuilder { /// /// Role definition this assignment is part of. @@ -74,14 +77,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 RoleDefinitionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/roleAssignments/{deviceAndAppManagementRoleAssignment%2Did}/roleDefinition{?%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 RoleDefinitionRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/roleAssignments/{deviceAndAppManagementRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public RoleDefinitionRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMana /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// Role definition this assignment is part of. /// - public class RoleDefinitionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleDefinitionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class RoleDefinitionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs index 2d1a6995be..9d708d0bd4 100644 --- a/src/generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.RoleAssignments.Count; using ApiSdk.DeviceManagement.RoleAssignments.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.DeviceManagement.RoleAssignments /// /// Provides operations to manage the roleAssignments property of the microsoft.graph.deviceManagement entity. /// - public class RoleAssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleAssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the roleAssignments property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DeviceAndAppManagementRoleAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RoleAssignments.Item.DeviceAndAppManagementRoleAssignmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceManagement.RoleAssignments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,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(DeviceAndAppManagementRoleAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceAndAppManagementRoleAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 RoleAssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/roleAssignments{?%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 RoleAssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/roleAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public RoleAssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMan /// 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); @@ -239,11 +242,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(DeviceAndAppManagementRoleAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceAndAppManagementRoleAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceAndAppManagementRoleAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceAndAppManagementRoleAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(DeviceAndAppManagementRoleAss /// /// List properties and relationships of the deviceAndAppManagementRoleAssignment objects. /// - public class RoleAssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleAssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class RoleAssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/RoleDefinitions/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/RoleDefinitions/Count/CountRequestBuilder.cs index 60d80a4751..a5f63810e1 100644 --- a/src/generated/DeviceManagement/RoleDefinitions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleDefinitions/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.DeviceManagement.RoleDefinitions.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}/deviceManagement/roleDefinitions/$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}/deviceManagement/roleDefinitions/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/ro /// 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/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Count/CountRequestBuilder.cs index d64ad44a18..56992c1e50 100644 --- a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/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.DeviceManagement.RoleDefinitions.Item.RoleAssignments.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}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/$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}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/ro /// 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/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.cs b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.cs index e7528bd5e2..444e4b5b2c 100644 --- a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleAssignmentItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.RoleDefinitions.Item.RoleAssignments.Item.RoleDefinition; 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.DeviceManagement.RoleDefinitions.Item.RoleAssignments.Item /// /// Provides operations to manage the roleAssignments property of the microsoft.graph.roleDefinition entity. /// - public class RoleAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a roleAssignment. @@ -159,8 +162,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(RoleAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RoleAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,7 +192,7 @@ public Command BuildRoleDefinitionNavCommand() { var command = new Command("role-definition"); command.Description = "Provides operations to manage the roleDefinition property of the microsoft.graph.roleAssignment entity."; - var builder = new RoleDefinitionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RoleDefinitions.Item.RoleAssignments.Item.RoleDefinition.RoleDefinitionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -199,14 +202,14 @@ public Command BuildRoleDefinitionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RoleAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/{roleAssignment%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 RoleAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/{roleAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -238,11 +241,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); @@ -258,11 +261,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(RoleAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RoleAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(RoleAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RoleAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -274,7 +277,8 @@ public RequestInformation ToPatchRequestInformation(RoleAssignment body, Action< /// /// Read properties and relationships of the roleAssignment object. /// - public class RoleAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -299,3 +303,4 @@ public class RoleAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 99888670ea..6f9ba4fb5a 100644 --- a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.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.DeviceManagement.RoleDefinitions.Item.RoleAssignments.Item.Role /// /// Provides operations to manage the roleDefinition property of the microsoft.graph.roleAssignment entity. /// - public class RoleDefinitionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleDefinitionRequestBuilder : BaseCliRequestBuilder { /// /// Role definition this assignment is part of. @@ -80,14 +83,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 RoleDefinitionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/{roleAssignment%2Did}/roleDefinition{?%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 RoleDefinitionRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments/{roleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public RoleDefinitionRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMana /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Role definition this assignment is part of. /// - public class RoleDefinitionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleDefinitionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class RoleDefinitionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.cs index a841a12b87..1715bc83a3 100644 --- a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.RoleDefinitions.Item.RoleAssignments.Count; using ApiSdk.DeviceManagement.RoleDefinitions.Item.RoleAssignments.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.DeviceManagement.RoleDefinitions.Item.RoleAssignments /// /// Provides operations to manage the roleAssignments property of the microsoft.graph.roleDefinition entity. /// - public class RoleAssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleAssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the roleAssignments property of the microsoft.graph.roleDefinition entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RoleAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RoleDefinitions.Item.RoleAssignments.Item.RoleAssignmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceManagement.RoleDefinitions.Item.RoleAssignments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(RoleAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RoleAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 RoleAssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments{?%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 RoleAssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}/roleAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -231,11 +234,11 @@ public RoleAssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMan /// 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); @@ -251,11 +254,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(RoleAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RoleAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RoleAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RoleAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(RoleAssignment body, Action /// List properties and relationships of the roleAssignment objects. /// - public class RoleAssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleAssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class RoleAssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs index 2830bf6c92..148fc64897 100644 --- a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.RoleDefinitions.Item.RoleAssignments; 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,17 +22,18 @@ namespace ApiSdk.DeviceManagement.RoleDefinitions.Item /// /// Provides operations to manage the roleDefinitions property of the microsoft.graph.deviceManagement entity. /// - public class RoleDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// - /// Deletes a roleDefinition. - /// Find more info here + /// Deletes a deviceAndAppManagementRoleDefinition. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a roleDefinition.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-delete?view=graph-rest-1.0"; + command.Description = "Deletes a deviceAndAppManagementRoleDefinition.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-delete?view=graph-rest-1.0"; var roleDefinitionIdOption = new Option("--role-definition-id", description: "The unique identifier of roleDefinition") { }; roleDefinitionIdOption.IsRequired = true; @@ -59,14 +62,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Read properties and relationships of the roleDefinition object. - /// Find more info here + /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the roleDefinition object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the deviceAndAppManagementRoleDefinition object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-get?view=graph-rest-1.0"; var roleDefinitionIdOption = new Option("--role-definition-id", description: "The unique identifier of roleDefinition") { }; roleDefinitionIdOption.IsRequired = true; @@ -142,8 +145,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.RoleDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RoleDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,7 +174,7 @@ public Command BuildRoleAssignmentsNavCommand() { var command = new Command("role-assignments"); command.Description = "Provides operations to manage the roleAssignments property of the microsoft.graph.roleDefinition entity."; - var builder = new RoleAssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RoleDefinitions.Item.RoleAssignments.RoleAssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -191,21 +194,21 @@ public Command BuildRoleAssignmentsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RoleDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%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 RoleDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Deletes a roleDefinition. + /// Deletes a deviceAndAppManagementRoleDefinition. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -224,17 +227,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the roleDefinition object. + /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -250,11 +253,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.RoleDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RoleDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.RoleDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RoleDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,9 +267,10 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.RoleDefinition return requestInfo; } /// - /// Read properties and relationships of the roleDefinition object. + /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. /// - public class RoleDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -291,3 +295,4 @@ public class RoleDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs b/src/generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs index 7ac24bd916..45344f3f24 100644 --- a/src/generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.RoleDefinitions.Count; using ApiSdk.DeviceManagement.RoleDefinitions.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.DeviceManagement.RoleDefinitions /// /// Provides operations to manage the roleDefinitions property of the microsoft.graph.deviceManagement entity. /// - public class RoleDefinitionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleDefinitionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the roleDefinitions property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RoleDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.RoleDefinitions.Item.RoleDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceManagement.RoleDefinitions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.RoleDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RoleDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -102,14 +105,14 @@ public Command BuildCreateCommand() return command; } /// - /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. - /// Find more info here + /// List properties and relationships of the roleDefinition objects. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the deviceAndAppManagementRoleDefinition objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the roleDefinition objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -199,31 +202,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RoleDefinitionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/roleDefinitions{?%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 RoleDefinitionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/roleDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + /// List properties and relationships of the roleDefinition objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -239,11 +242,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(ApiSdk.Models.RoleDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RoleDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.RoleDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RoleDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,9 +256,10 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.RoleDefinition return requestInfo; } /// - /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + /// List properties and relationships of the roleDefinition objects. /// - public class RoleDefinitionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoleDefinitionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class RoleDefinitionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.cs b/src/generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.cs index f018c1df7f..42e126e7c5 100644 --- a/src/generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.cs +++ b/src/generated/DeviceManagement/SoftwareUpdateStatusSummary/SoftwareUpdateStatusSummaryRequestBuilder.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.DeviceManagement.SoftwareUpdateStatusSummary /// /// Provides operations to manage the softwareUpdateStatusSummary property of the microsoft.graph.deviceManagement entity. /// - public class SoftwareUpdateStatusSummaryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SoftwareUpdateStatusSummaryRequestBuilder : BaseCliRequestBuilder { /// /// Read properties and relationships of the softwareUpdateStatusSummary object. @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SoftwareUpdateStatusSummaryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/softwareUpdateStatusSummary{?%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 SoftwareUpdateStatusSummaryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/softwareUpdateStatusSummary{?%24expand,%24select}", rawUrl) @@ -89,11 +92,11 @@ public SoftwareUpdateStatusSummaryRequestBuilder(string rawUrl) : base("{+baseur /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Read properties and relationships of the softwareUpdateStatusSummary object. /// - public class SoftwareUpdateStatusSummaryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SoftwareUpdateStatusSummaryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class SoftwareUpdateStatusSummaryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/TelecomExpenseManagementPartners/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/TelecomExpenseManagementPartners/Count/CountRequestBuilder.cs index d40246056f..9153215b1b 100644 --- a/src/generated/DeviceManagement/TelecomExpenseManagementPartners/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/TelecomExpenseManagementPartners/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.DeviceManagement.TelecomExpenseManagementPartners.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}/deviceManagement/telecomExpenseManagementPartners/$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}/deviceManagement/telecomExpenseManagementPartners/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/te /// 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/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.cs b/src/generated/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.cs index 1ae2f95f09..459efe9178 100644 --- a/src/generated/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/TelecomExpenseManagementPartners/Item/TelecomExpenseManagementPartnerItemRequestBuilder.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.DeviceManagement.TelecomExpenseManagementPartners.Item /// /// Provides operations to manage the telecomExpenseManagementPartners property of the microsoft.graph.deviceManagement entity. /// - public class TelecomExpenseManagementPartnerItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TelecomExpenseManagementPartnerItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a telecomExpenseManagementPartner. @@ -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(TelecomExpenseManagementPartner.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TelecomExpenseManagementPartner.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 TelecomExpenseManagementPartnerItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/telecomExpenseManagementPartners/{telecomExpenseManagementPartner%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 TelecomExpenseManagementPartnerItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/telecomExpenseManagementPartners/{telecomExpenseManagementPartner%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(TelecomExpenseManagementPartner body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TelecomExpenseManagementPartner body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TelecomExpenseManagementPartner body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TelecomExpenseManagementPartner body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(TelecomExpenseManagementPart /// /// Read properties and relationships of the telecomExpenseManagementPartner object. /// - public class TelecomExpenseManagementPartnerItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TelecomExpenseManagementPartnerItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class TelecomExpenseManagementPartnerItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.cs b/src/generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.cs index 73489a596b..59c1b942a5 100644 --- a/src/generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.cs +++ b/src/generated/DeviceManagement/TelecomExpenseManagementPartners/TelecomExpenseManagementPartnersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.TelecomExpenseManagementPartners.Count; using ApiSdk.DeviceManagement.TelecomExpenseManagementPartners.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.DeviceManagement.TelecomExpenseManagementPartners /// /// Provides operations to manage the telecomExpenseManagementPartners property of the microsoft.graph.deviceManagement entity. /// - public class TelecomExpenseManagementPartnersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TelecomExpenseManagementPartnersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the telecomExpenseManagementPartners property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class TelecomExpenseManagementPartnersRequestBuilder : BaseCliRequestBuil public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TelecomExpenseManagementPartnerItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.TelecomExpenseManagementPartners.Item.TelecomExpenseManagementPartnerItemRequestBuilder(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.DeviceManagement.TelecomExpenseManagementPartners.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(TelecomExpenseManagementPartner.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TelecomExpenseManagementPartner.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 TelecomExpenseManagementPartnersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/telecomExpenseManagementPartners{?%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 TelecomExpenseManagementPartnersRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/telecomExpenseManagementPartners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public TelecomExpenseManagementPartnersRequestBuilder(string rawUrl) : base("{+b /// 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(TelecomExpenseManagementPartner body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TelecomExpenseManagementPartner body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TelecomExpenseManagementPartner body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TelecomExpenseManagementPartner body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(TelecomExpenseManagementPartn /// /// List properties and relationships of the telecomExpenseManagementPartner objects. /// - public class TelecomExpenseManagementPartnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TelecomExpenseManagementPartnersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class TelecomExpenseManagementPartnersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/TermsAndConditions/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/TermsAndConditions/Count/CountRequestBuilder.cs index b6d55ea54d..3cd536fe54 100644 --- a/src/generated/DeviceManagement/TermsAndConditions/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/TermsAndConditions/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.DeviceManagement.TermsAndConditions.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}/deviceManagement/termsAndConditions/$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}/deviceManagement/termsAndConditions/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/te /// 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/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.cs b/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.cs index cdd381e790..aa5c50310d 100644 --- a/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.cs +++ b/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/AcceptanceStatusesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses.Count; using ApiSdk.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses.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.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses /// /// Provides operations to manage the acceptanceStatuses property of the microsoft.graph.termsAndConditions entity. /// - public class AcceptanceStatusesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptanceStatusesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the acceptanceStatuses property of the microsoft.graph.termsAndConditions entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermsAndConditionsAcceptanceStatusItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses.Item.TermsAndConditionsAcceptanceStatusItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(TermsAndConditionsAcceptanceStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermsAndConditionsAcceptanceStatus.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 AcceptanceStatusesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses{?%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 AcceptanceStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -231,11 +234,11 @@ public AcceptanceStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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); @@ -251,11 +254,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(TermsAndConditionsAcceptanceStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermsAndConditionsAcceptanceStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TermsAndConditionsAcceptanceStatus body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermsAndConditionsAcceptanceStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(TermsAndConditionsAcceptanceS /// /// List properties and relationships of the termsAndConditionsAcceptanceStatus objects. /// - public class AcceptanceStatusesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptanceStatusesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class AcceptanceStatusesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Count/CountRequestBuilder.cs index b164081ab4..f472ac89ee 100644 --- a/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/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.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses.Cou /// /// 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}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/$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}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/te /// 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/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.cs b/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.cs index 29f8053d2a..388bd2ee6b 100644 --- a/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.cs +++ b/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditions/TermsAndConditionsRequestBuilder.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.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses.Ite /// /// Provides operations to manage the termsAndConditions property of the microsoft.graph.termsAndConditionsAcceptanceStatus entity. /// - public class TermsAndConditionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsAndConditionsRequestBuilder : BaseCliRequestBuilder { /// /// Navigation link to the terms and conditions that are assigned. @@ -80,14 +83,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 TermsAndConditionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/{termsAndConditionsAcceptanceStatus%2Did}/termsAndConditions{?%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 TermsAndConditionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/{termsAndConditionsAcceptanceStatus%2Did}/termsAndConditions{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public TermsAndConditionsRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Navigation link to the terms and conditions that are assigned. /// - public class TermsAndConditionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsAndConditionsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class TermsAndConditionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.cs b/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.cs index f34b4edcf5..9de3b6970e 100644 --- a/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/TermsAndConditions/Item/AcceptanceStatuses/Item/TermsAndConditionsAcceptanceStatusItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses.Item.TermsAndConditions; 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.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses.Ite /// /// Provides operations to manage the acceptanceStatuses property of the microsoft.graph.termsAndConditions entity. /// - public class TermsAndConditionsAcceptanceStatusItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsAndConditionsAcceptanceStatusItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a termsAndConditionsAcceptanceStatus. @@ -159,8 +162,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(TermsAndConditionsAcceptanceStatus.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermsAndConditionsAcceptanceStatus.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,7 +192,7 @@ public Command BuildTermsAndConditionsNavCommand() { var command = new Command("terms-and-conditions"); command.Description = "Provides operations to manage the termsAndConditions property of the microsoft.graph.termsAndConditionsAcceptanceStatus entity."; - var builder = new ApiSdk.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses.Item.TermsAndConditions.TermsAndConditionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses.Item.TermsAndConditions.TermsAndConditionsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -199,14 +202,14 @@ public Command BuildTermsAndConditionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermsAndConditionsAcceptanceStatusItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/{termsAndConditionsAcceptanceStatus%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 TermsAndConditionsAcceptanceStatusItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/acceptanceStatuses/{termsAndConditionsAcceptanceStatus%2Did}{?%24expand,%24select}", rawUrl) @@ -238,11 +241,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); @@ -258,11 +261,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(TermsAndConditionsAcceptanceStatus body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermsAndConditionsAcceptanceStatus body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TermsAndConditionsAcceptanceStatus body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermsAndConditionsAcceptanceStatus body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -274,7 +277,8 @@ public RequestInformation ToPatchRequestInformation(TermsAndConditionsAcceptance /// /// Read properties and relationships of the termsAndConditionsAcceptanceStatus object. /// - public class TermsAndConditionsAcceptanceStatusItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsAndConditionsAcceptanceStatusItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -299,3 +303,4 @@ public class TermsAndConditionsAcceptanceStatusItemRequestBuilderGetQueryParamet } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.cs index 673c347d10..b718aa1f60 100644 --- a/src/generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceManagement/TermsAndConditions/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.TermsAndConditions.Item.Assignments.Count; using ApiSdk.DeviceManagement.TermsAndConditions.Item.Assignments.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.DeviceManagement.TermsAndConditions.Item.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.termsAndConditions entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.termsAndConditions entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TermsAndConditionsAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.TermsAndConditions.Item.Assignments.Item.TermsAndConditionsAssignmentItemRequestBuilder(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.DeviceManagement.TermsAndConditions.Item.Assignments.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(TermsAndConditionsAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermsAndConditionsAssignment.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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagem /// 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(TermsAndConditionsAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermsAndConditionsAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TermsAndConditionsAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermsAndConditionsAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(TermsAndConditionsAssignment /// /// List properties and relationships of the termsAndConditionsAssignment objects. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/TermsAndConditions/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/TermsAndConditions/Item/Assignments/Count/CountRequestBuilder.cs index 3ec46d66a5..64afa43d3a 100644 --- a/src/generated/DeviceManagement/TermsAndConditions/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/TermsAndConditions/Item/Assignments/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.DeviceManagement.TermsAndConditions.Item.Assignments.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}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments/$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}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/te /// 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/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.cs b/src/generated/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.cs index 17cf45ac4d..eb24bf8e2d 100644 --- a/src/generated/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/TermsAndConditions/Item/Assignments/Item/TermsAndConditionsAssignmentItemRequestBuilder.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.DeviceManagement.TermsAndConditions.Item.Assignments.Item /// /// Provides operations to manage the assignments property of the microsoft.graph.termsAndConditions entity. /// - public class TermsAndConditionsAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsAndConditionsAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a termsAndConditionsAssignment. @@ -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(TermsAndConditionsAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermsAndConditionsAssignment.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 TermsAndConditionsAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments/{termsAndConditionsAssignment%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 TermsAndConditionsAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}/assignments/{termsAndConditionsAssignment%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(TermsAndConditionsAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermsAndConditionsAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TermsAndConditionsAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermsAndConditionsAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(TermsAndConditionsAssignment /// /// Read properties and relationships of the termsAndConditionsAssignment object. /// - public class TermsAndConditionsAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsAndConditionsAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class TermsAndConditionsAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.cs b/src/generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.cs index d89f1017ad..40ebaa4cfe 100644 --- a/src/generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/TermsAndConditions/Item/TermsAndConditionsItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses; using ApiSdk.DeviceManagement.TermsAndConditions.Item.Assignments; 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.DeviceManagement.TermsAndConditions.Item /// /// Provides operations to manage the termsAndConditions property of the microsoft.graph.deviceManagement entity. /// - public class TermsAndConditionsItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsAndConditionsItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the acceptanceStatuses property of the microsoft.graph.termsAndConditions entity. @@ -31,7 +34,7 @@ public Command BuildAcceptanceStatusesNavCommand() { var command = new Command("acceptance-statuses"); command.Description = "Provides operations to manage the acceptanceStatuses property of the microsoft.graph.termsAndConditions entity."; - var builder = new AcceptanceStatusesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.TermsAndConditions.Item.AcceptanceStatuses.AcceptanceStatusesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -58,7 +61,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.termsAndConditions entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.TermsAndConditions.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -197,8 +200,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.TermsAndConditions.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermsAndConditions.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,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 TermsAndConditionsItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%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 TermsAndConditionsItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/termsAndConditions/{termsAndConditions%2Did}{?%24expand,%24select}", rawUrl) @@ -258,11 +261,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); @@ -278,11 +281,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.TermsAndConditions body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermsAndConditions body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermsAndConditions body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermsAndConditions body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -294,7 +297,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermsAndCondit /// /// Read properties and relationships of the termsAndConditions object. /// - public class TermsAndConditionsItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsAndConditionsItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -319,3 +323,4 @@ public class TermsAndConditionsItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.cs b/src/generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.cs index 3c6794401c..acdbe0cd7e 100644 --- a/src/generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.cs +++ b/src/generated/DeviceManagement/TermsAndConditions/TermsAndConditionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.TermsAndConditions.Count; using ApiSdk.DeviceManagement.TermsAndConditions.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.DeviceManagement.TermsAndConditions /// /// Provides operations to manage the termsAndConditions property of the microsoft.graph.deviceManagement entity. /// - public class TermsAndConditionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsAndConditionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the termsAndConditions property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermsAndConditionsItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.TermsAndConditions.Item.TermsAndConditionsItemRequestBuilder(PathParameters); commands.Add(builder.BuildAcceptanceStatusesNavCommand()); commands.Add(builder.BuildAssignmentsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -47,7 +50,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.DeviceManagement.TermsAndConditions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -82,8 +85,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.TermsAndConditions.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermsAndConditions.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -200,14 +203,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 TermsAndConditionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/termsAndConditions{?%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 TermsAndConditionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/termsAndConditions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -220,11 +223,11 @@ public TermsAndConditionsRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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); @@ -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 ToPostRequestInformation(ApiSdk.Models.TermsAndConditions body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermsAndConditions body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermsAndConditions body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermsAndConditions body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermsAndConditi /// /// List properties and relationships of the termsAndConditions objects. /// - public class TermsAndConditionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsAndConditionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -320,3 +324,4 @@ public class TermsAndConditionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/TroubleshootingEvents/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/TroubleshootingEvents/Count/CountRequestBuilder.cs index bae2bde54a..3f1cc7d740 100644 --- a/src/generated/DeviceManagement/TroubleshootingEvents/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/TroubleshootingEvents/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.DeviceManagement.TroubleshootingEvents.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}/deviceManagement/troubleshootingEvents/$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}/deviceManagement/troubleshootingEvents/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/tr /// 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/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs b/src/generated/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs index ad0b76abce..8be25d4812 100644 --- a/src/generated/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/TroubleshootingEvents/Item/DeviceManagementTroubleshootingEventItemRequestBuilder.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.DeviceManagement.TroubleshootingEvents.Item /// /// Provides operations to manage the troubleshootingEvents property of the microsoft.graph.deviceManagement entity. /// - public class DeviceManagementTroubleshootingEventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementTroubleshootingEventItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property troubleshootingEvents for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DeviceManagementTroubleshootingEvent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceManagementTroubleshootingEvent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceManagementTroubleshootingEventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/troubleshootingEvents/{deviceManagementTroubleshootingEvent%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 DeviceManagementTroubleshootingEventItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/troubleshootingEvents/{deviceManagementTroubleshootingEvent%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(DeviceManagementTroubleshootingEvent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagementTroubleshootingEvent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceManagementTroubleshootingEvent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceManagementTroubleshootingEvent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(DeviceManagementTroubleshoot /// /// The list of troubleshooting events for the tenant. /// - public class DeviceManagementTroubleshootingEventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceManagementTroubleshootingEventItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class DeviceManagementTroubleshootingEventItemRequestBuilderGetQueryParam } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.cs b/src/generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.cs index 844df1ecf0..d46d3386b0 100644 --- a/src/generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.cs +++ b/src/generated/DeviceManagement/TroubleshootingEvents/TroubleshootingEventsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.TroubleshootingEvents.Count; using ApiSdk.DeviceManagement.TroubleshootingEvents.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.DeviceManagement.TroubleshootingEvents /// /// Provides operations to manage the troubleshootingEvents property of the microsoft.graph.deviceManagement entity. /// - public class TroubleshootingEventsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TroubleshootingEventsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the troubleshootingEvents property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class TroubleshootingEventsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceManagementTroubleshootingEventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.TroubleshootingEvents.Item.DeviceManagementTroubleshootingEventItemRequestBuilder(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.DeviceManagement.TroubleshootingEvents.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DeviceManagementTroubleshootingEvent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceManagementTroubleshootingEvent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 TroubleshootingEventsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/troubleshootingEvents{?%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 TroubleshootingEventsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/troubleshootingEvents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public TroubleshootingEventsRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(DeviceManagementTroubleshootingEvent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceManagementTroubleshootingEvent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceManagementTroubleshootingEvent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceManagementTroubleshootingEvent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(DeviceManagementTroubleshooti /// /// The list of troubleshooting events for the tenant. /// - public class TroubleshootingEventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TroubleshootingEventsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class TroubleshootingEventsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Count/CountRequestBuilder.cs index dd98ac68bd..828a94abf7 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// 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}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/$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}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.cs index d969b5265b..690d6d8038 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/Item/UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsAppHealthApplicationPerformance for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/{userExperienceAnalyticsAppHealthApplicationPerformance%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 UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance/{userExperienceAnalyticsAppHealthApplicationPerformance%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics appHealth Application Performance /// - public class UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBu } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.cs index c9ca0aa131..0157b327af 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformance/UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformance.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformance.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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformance property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilde public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformance.Item.UserExperienceAnalyticsAppHealthApplicationPerformanceItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformance.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance{?%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 UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilder(stri /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthApplicationPerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics appHealth Application Performance /// - public class UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsAppHealthApplicationPerformanceRequestBuilde } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Count/CountRequestBuilder.cs index 00d07bb789..608b490a0e 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// 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}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/$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}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.cs index 24d633ec27..7379975dff 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/{userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails%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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/{userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHe /// /// User experience analytics appHealth Application Performance by App Version details /// - public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsIt } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.cs index e9700291e2..8bd0d16c84 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails.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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionD public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails.Item.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails{?%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 UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetails /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsAppHea /// /// User experience analytics appHealth Application Performance by App Version details /// - public class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionD } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Count/CountRequestBuilder.cs index aa86c8390c..bc0fd68c8d 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// 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}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/$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}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.cs index e9142393d7..726fa4bd36 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/Item/UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/{userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId%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 UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/{userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHe /// /// User experience analytics appHealth Application Performance by App Version Device Id /// - public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdI } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.cs index 77c8d84062..d2b7852a1a 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId/UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId.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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionD public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId.Item.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId{?%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 UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceId{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceI /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsAppHea /// /// User experience analytics appHealth Application Performance by App Version Device Id /// - public class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionD } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Count/CountRequestBuilder.cs index dee37c4189..c4988051cd 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// 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}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/$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}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.cs index 1fd159fbf4..80b49bec86 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/Item/UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/{userExperienceAnalyticsAppHealthAppPerformanceByOSVersion%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 UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/{userExperienceAnalyticsAppHealthAppPerformanceByOSVersion%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsAppHe /// /// User experience analytics appHealth Application Performance by OS Version /// - public class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.cs index 22ae5ae713..19c3ca3633 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion/UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion.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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPer /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRe public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion.Item.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion{?%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 UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthApplicationPerformanceByOSVersion{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestB /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsAppHea /// /// User experience analytics appHealth Application Performance by OS Version /// - public class UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionRe } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Count/CountRequestBuilder.cs index 5dcc93e9ee..cb77eef6ac 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/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.DeviceManagement.UserExperienceAnalyticsAppHealthDeviceModelPer /// /// 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}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/$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}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.cs index 56c92e437c..78d2a654f0 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/Item/UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsAppHealthDeviceModelPer /// /// Provides operations to manage the userExperienceAnalyticsAppHealthDeviceModelPerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsAppHealthDeviceModelPerformance for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/{userExperienceAnalyticsAppHealthDeviceModelPerformance%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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance/{userExperienceAnalyticsAppHealthDeviceModelPerformance%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics appHealth Model Performance /// - public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBu } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.cs index 1aab681e2b..1e85bd26ea 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDeviceModelPerformance/UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDeviceModelPerformance.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDeviceModelPerformance.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.DeviceManagement.UserExperienceAnalyticsAppHealthDeviceModelPer /// /// Provides operations to manage the userExperienceAnalyticsAppHealthDeviceModelPerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsAppHealthDeviceModelPerformance property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilde public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDeviceModelPerformance.Item.UserExperienceAnalyticsAppHealthDeviceModelPerformanceItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsAppHealthDeviceModelPerformance.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance{?%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 UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDeviceModelPerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilder(stri /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDeviceModelPerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics appHealth Model Performance /// - public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsAppHealthDeviceModelPerformanceRequestBuilde } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Count/CountRequestBuilder.cs index 553c330ad9..7ed5bdc6a6 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/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.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerforma /// /// 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}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/$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}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.cs index b9a3475385..91fc2c723a 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/Item/UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerforma /// /// Provides operations to manage the userExperienceAnalyticsAppHealthDevicePerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsAppHealthDevicePerformance for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/{userExperienceAnalyticsAppHealthDevicePerformance%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 UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance/{userExperienceAnalyticsAppHealthDevicePerformance%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics appHealth Device Performance /// - public class UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.cs index a4d34c18a7..82e19aaf02 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformance/UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerformance.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerformance.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.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerforma /// /// Provides operations to manage the userExperienceAnalyticsAppHealthDevicePerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsAppHealthDevicePerformance property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder : B public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerformance.Item.UserExperienceAnalyticsAppHealthDevicePerformanceItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerformance.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance{?%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 UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilder(string ra /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics appHealth Device Performance /// - public class UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsAppHealthDevicePerformanceRequestBuilderGetQ } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Count/CountRequestBuilder.cs index de39504d1b..c22fd35695 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/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.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerforma /// /// 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}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/$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}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.cs index d6c53cc8bf..c7b2fabd2a 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/Item/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerforma /// /// Provides operations to manage the userExperienceAnalyticsAppHealthDevicePerformanceDetails property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsAppHealthDevicePerformanceDetails for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/{userExperienceAnalyticsAppHealthDevicePerformanceDetails%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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails/{userExperienceAnalyticsAppHealthDevicePerformanceDetails%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics device performance details /// - public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.cs index 5d1a746b20..784e003435 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthDevicePerformanceDetails/UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerformanceDetails.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerformanceDetails.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.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerforma /// /// Provides operations to manage the userExperienceAnalyticsAppHealthDevicePerformanceDetails property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsAppHealthDevicePerformanceDetails property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuil public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerformanceDetails.Item.UserExperienceAnalyticsAppHealthDevicePerformanceDetailsItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsAppHealthDevicePerformanceDetails.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails{?%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 UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthDevicePerformanceDetails{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilder(st /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthDevicePerformanceDetails body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics device performance details /// - public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsAppHealthDevicePerformanceDetailsRequestBuil } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Count/CountRequestBuilder.cs index 017089358b..6310b97a4a 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/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.DeviceManagement.UserExperienceAnalyticsAppHealthOSVersionPerfo /// /// 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}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/$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}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.cs index 49f175df99..1110a14988 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/Item/UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsAppHealthOSVersionPerfo /// /// Provides operations to manage the userExperienceAnalyticsAppHealthOSVersionPerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsAppHealthOSVersionPerformance for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/{userExperienceAnalyticsAppHealthOSVersionPerformance%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 UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance/{userExperienceAnalyticsAppHealthOSVersionPerformance%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics appHealth OS version Performance /// - public class UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuil } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.cs index 57412c2852..15d8783553 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOSVersionPerformance/UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthOSVersionPerformance.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthOSVersionPerformance.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.DeviceManagement.UserExperienceAnalyticsAppHealthOSVersionPerfo /// /// Provides operations to manage the userExperienceAnalyticsAppHealthOSVersionPerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsAppHealthOSVersionPerformance property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthOSVersionPerformance.Item.UserExperienceAnalyticsAppHealthOSVersionPerformanceItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsAppHealthOSVersionPerformance.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance{?%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 UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOSVersionPerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilder(string /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsAppHealthOSVersionPerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics appHealth OS version Performance /// - public class UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsAppHealthOSVersionPerformanceRequestBuilderG } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Count/CountRequestBuilder.cs index 5421b209be..2d523c90be 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/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.DeviceManagement.UserExperienceAnalyticsAppHealthOverview.Metri /// /// 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}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/$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}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs index 0268c225b7..8d7638f582 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsAppHealthOverview.Metri /// /// Provides operations to manage the metricValues property of the microsoft.graph.userExperienceAnalyticsCategory entity. /// - public class UserExperienceAnalyticsMetricItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsMetricItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property metricValues for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsMetric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsMetric.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsMetricItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/{userExperienceAnalyticsMetric%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 UserExperienceAnalyticsMetricItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues/{userExperienceAnalyticsMetric%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsMetric body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsMetric body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsMetri /// /// The metric values for the user experience analytics category. Read-only. /// - public class UserExperienceAnalyticsMetricItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsMetricItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsMetricItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.cs index 2cf7dd4dbe..7f8e206338 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/MetricValues/MetricValuesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthOverview.MetricValues.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthOverview.MetricValues.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.DeviceManagement.UserExperienceAnalyticsAppHealthOverview.Metri /// /// Provides operations to manage the metricValues property of the microsoft.graph.userExperienceAnalyticsCategory entity. /// - public class MetricValuesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MetricValuesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the metricValues property of the microsoft.graph.userExperienceAnalyticsCategory entity. @@ -30,7 +33,7 @@ public class MetricValuesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsMetricItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthOverview.MetricValues.Item.UserExperienceAnalyticsMetricItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsAppHealthOverview.MetricValues.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsMetric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsMetric.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 MetricValuesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues{?%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 MetricValuesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview/metricValues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public MetricValuesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManage /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(UserExperienceAnalyticsMetric body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsMetric body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsMetric /// /// The metric values for the user experience analytics category. Read-only. /// - public class MetricValuesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MetricValuesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class MetricValuesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.cs index a92fe37bc7..6523496faa 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsAppHealthOverview/UserExperienceAnalyticsAppHealthOverviewRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthOverview.MetricValues; 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.DeviceManagement.UserExperienceAnalyticsAppHealthOverview /// /// Provides operations to manage the userExperienceAnalyticsAppHealthOverview property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsAppHealthOverviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthOverviewRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsAppHealthOverview for deviceManagement @@ -105,7 +108,7 @@ public Command BuildMetricValuesNavCommand() { var command = new Command("metric-values"); command.Description = "Provides operations to manage the metricValues property of the microsoft.graph.userExperienceAnalyticsCategory entity."; - var builder = new MetricValuesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsAppHealthOverview.MetricValues.MetricValuesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -149,8 +152,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(UserExperienceAnalyticsCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsCategory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -170,14 +173,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 UserExperienceAnalyticsAppHealthOverviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview{?%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 UserExperienceAnalyticsAppHealthOverviewRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsAppHealthOverview{?%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(UserExperienceAnalyticsCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsCategory body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -245,7 +248,8 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsCateg /// /// User experience analytics appHealth overview /// - public class UserExperienceAnalyticsAppHealthOverviewRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsAppHealthOverviewRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -270,3 +274,4 @@ public class UserExperienceAnalyticsAppHealthOverviewRequestBuilderGetQueryParam } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Count/CountRequestBuilder.cs index 3009df4b06..14c7ff36cb 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/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.DeviceManagement.UserExperienceAnalyticsBaselines.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}/deviceManagement/userExperienceAnalyticsBaselines/$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}/deviceManagement/userExperienceAnalyticsBaselines/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.cs index 9d6c5e1627..5d37558c8c 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/AppHealthMetrics/AppHealthMetricsRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsBaselines.Item.AppHealt /// /// Provides operations to manage the appHealthMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity. /// - public class AppHealthMetricsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppHealthMetricsRequestBuilder : BaseCliRequestBuilder { /// /// The scores and insights for the application health metrics. @@ -74,14 +77,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 AppHealthMetricsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/appHealthMetrics{?%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 AppHealthMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/appHealthMetrics{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public AppHealthMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMa /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// The scores and insights for the application health metrics. /// - public class AppHealthMetricsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppHealthMetricsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class AppHealthMetricsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.cs index e31284ca5a..b40545305d 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BatteryHealthMetrics/BatteryHealthMetricsRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsBaselines.Item.BatteryH /// /// Provides operations to manage the batteryHealthMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity. /// - public class BatteryHealthMetricsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatteryHealthMetricsRequestBuilder : BaseCliRequestBuilder { /// /// The scores and insights for the battery health metrics. @@ -74,14 +77,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 BatteryHealthMetricsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/batteryHealthMetrics{?%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 BatteryHealthMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/batteryHealthMetrics{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public BatteryHealthMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/devi /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// The scores and insights for the battery health metrics. /// - public class BatteryHealthMetricsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatteryHealthMetricsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class BatteryHealthMetricsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.cs index 10ffc14cf1..2bc42f3607 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/BestPracticesMetrics/BestPracticesMetricsRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsBaselines.Item.BestPrac /// /// Provides operations to manage the bestPracticesMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity. /// - public class BestPracticesMetricsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BestPracticesMetricsRequestBuilder : BaseCliRequestBuilder { /// /// The scores and insights for the best practices metrics. @@ -74,14 +77,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 BestPracticesMetricsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/bestPracticesMetrics{?%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 BestPracticesMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/bestPracticesMetrics{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public BestPracticesMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/devi /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// The scores and insights for the best practices metrics. /// - public class BestPracticesMetricsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BestPracticesMetricsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class BestPracticesMetricsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.cs index d6530f1e47..1389cd5e63 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/DeviceBootPerformanceMetrics/DeviceBootPerformanceMetricsRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsBaselines.Item.DeviceBo /// /// Provides operations to manage the deviceBootPerformanceMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity. /// - public class DeviceBootPerformanceMetricsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceBootPerformanceMetricsRequestBuilder : BaseCliRequestBuilder { /// /// The scores and insights for the device boot performance metrics. @@ -74,14 +77,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 DeviceBootPerformanceMetricsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/deviceBootPerformanceMetrics{?%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 DeviceBootPerformanceMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/deviceBootPerformanceMetrics{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public DeviceBootPerformanceMetricsRequestBuilder(string rawUrl) : base("{+baseu /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// The scores and insights for the device boot performance metrics. /// - public class DeviceBootPerformanceMetricsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceBootPerformanceMetricsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class DeviceBootPerformanceMetricsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.cs index c521e0a1cb..62c73e163f 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/RebootAnalyticsMetrics/RebootAnalyticsMetricsRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsBaselines.Item.RebootAn /// /// Provides operations to manage the rebootAnalyticsMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity. /// - public class RebootAnalyticsMetricsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RebootAnalyticsMetricsRequestBuilder : BaseCliRequestBuilder { /// /// The scores and insights for the reboot analytics metrics. @@ -74,14 +77,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 RebootAnalyticsMetricsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/rebootAnalyticsMetrics{?%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 RebootAnalyticsMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/rebootAnalyticsMetrics{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public RebootAnalyticsMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/de /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// The scores and insights for the reboot analytics metrics. /// - public class RebootAnalyticsMetricsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RebootAnalyticsMetricsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class RebootAnalyticsMetricsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.cs index 20cf4b4dd1..e82b49c69a 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/ResourcePerformanceMetrics/ResourcePerformanceMetricsRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsBaselines.Item.Resource /// /// Provides operations to manage the resourcePerformanceMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity. /// - public class ResourcePerformanceMetricsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcePerformanceMetricsRequestBuilder : BaseCliRequestBuilder { /// /// The scores and insights for the resource performance metrics. @@ -74,14 +77,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 ResourcePerformanceMetricsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/resourcePerformanceMetrics{?%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 ResourcePerformanceMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/resourcePerformanceMetrics{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public ResourcePerformanceMetricsRequestBuilder(string rawUrl) : base("{+baseurl /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// The scores and insights for the resource performance metrics. /// - public class ResourcePerformanceMetricsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcePerformanceMetricsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class ResourcePerformanceMetricsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.cs index 01d76f29b6..41739933c9 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/UserExperienceAnalyticsBaselineItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.AppHealthMetrics; using ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.BatteryHealthMetrics; using ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.BestPracticesMetrics; @@ -8,6 +9,7 @@ using ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.WorkFromAnywhereMetrics; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -26,7 +28,8 @@ namespace ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item /// /// Provides operations to manage the userExperienceAnalyticsBaselines property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsBaselineItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsBaselineItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the appHealthMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity. @@ -36,7 +39,7 @@ public Command BuildAppHealthMetricsNavCommand() { var command = new Command("app-health-metrics"); command.Description = "Provides operations to manage the appHealthMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity."; - var builder = new AppHealthMetricsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.AppHealthMetrics.AppHealthMetricsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -53,7 +56,7 @@ public Command BuildBatteryHealthMetricsNavCommand() { var command = new Command("battery-health-metrics"); command.Description = "Provides operations to manage the batteryHealthMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity."; - var builder = new BatteryHealthMetricsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.BatteryHealthMetrics.BatteryHealthMetricsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -70,7 +73,7 @@ public Command BuildBestPracticesMetricsNavCommand() { var command = new Command("best-practices-metrics"); command.Description = "Provides operations to manage the bestPracticesMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity."; - var builder = new BestPracticesMetricsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.BestPracticesMetrics.BestPracticesMetricsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -122,7 +125,7 @@ public Command BuildDeviceBootPerformanceMetricsNavCommand() { var command = new Command("device-boot-performance-metrics"); command.Description = "Provides operations to manage the deviceBootPerformanceMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity."; - var builder = new DeviceBootPerformanceMetricsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.DeviceBootPerformanceMetrics.DeviceBootPerformanceMetricsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -213,8 +216,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(UserExperienceAnalyticsBaseline.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsBaseline.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -242,7 +245,7 @@ public Command BuildRebootAnalyticsMetricsNavCommand() { var command = new Command("reboot-analytics-metrics"); command.Description = "Provides operations to manage the rebootAnalyticsMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity."; - var builder = new RebootAnalyticsMetricsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.RebootAnalyticsMetrics.RebootAnalyticsMetricsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -259,7 +262,7 @@ public Command BuildResourcePerformanceMetricsNavCommand() { var command = new Command("resource-performance-metrics"); command.Description = "Provides operations to manage the resourcePerformanceMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity."; - var builder = new ResourcePerformanceMetricsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.ResourcePerformanceMetrics.ResourcePerformanceMetricsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -276,7 +279,7 @@ public Command BuildWorkFromAnywhereMetricsNavCommand() { var command = new Command("work-from-anywhere-metrics"); command.Description = "Provides operations to manage the workFromAnywhereMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity."; - var builder = new WorkFromAnywhereMetricsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.WorkFromAnywhereMetrics.WorkFromAnywhereMetricsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -286,14 +289,14 @@ public Command BuildWorkFromAnywhereMetricsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsBaselineItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%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 UserExperienceAnalyticsBaselineItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}{?%24expand,%24select}", rawUrl) @@ -325,11 +328,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); @@ -345,11 +348,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(UserExperienceAnalyticsBaseline body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsBaseline body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsBaseline body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsBaseline body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -361,7 +364,8 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsBasel /// /// User experience analytics baselines /// - public class UserExperienceAnalyticsBaselineItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsBaselineItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -386,3 +390,4 @@ public class UserExperienceAnalyticsBaselineItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.cs index 670e5180f0..1158075109 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/Item/WorkFromAnywhereMetrics/WorkFromAnywhereMetricsRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsBaselines.Item.WorkFrom /// /// Provides operations to manage the workFromAnywhereMetrics property of the microsoft.graph.userExperienceAnalyticsBaseline entity. /// - public class WorkFromAnywhereMetricsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkFromAnywhereMetricsRequestBuilder : BaseCliRequestBuilder { /// /// The scores and insights for the work from anywhere metrics. @@ -74,14 +77,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 WorkFromAnywhereMetricsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/workFromAnywhereMetrics{?%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 WorkFromAnywhereMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines/{userExperienceAnalyticsBaseline%2Did}/workFromAnywhereMetrics{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public WorkFromAnywhereMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// The scores and insights for the work from anywhere metrics. /// - public class WorkFromAnywhereMetricsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkFromAnywhereMetricsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class WorkFromAnywhereMetricsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.cs index acd55a5eb1..09edef512c 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsBaselines/UserExperienceAnalyticsBaselinesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.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.DeviceManagement.UserExperienceAnalyticsBaselines /// /// Provides operations to manage the userExperienceAnalyticsBaselines property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsBaselinesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsBaselinesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsBaselines property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new UserExperienceAnalyticsBaselineItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Item.UserExperienceAnalyticsBaselineItemRequestBuilder(PathParameters); commands.Add(builder.BuildAppHealthMetricsNavCommand()); commands.Add(builder.BuildBatteryHealthMetricsNavCommand()); commands.Add(builder.BuildBestPracticesMetricsNavCommand()); @@ -52,7 +55,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to count the resources in the collection."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsBaselines.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(UserExperienceAnalyticsBaseline.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsBaseline.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -203,14 +206,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 UserExperienceAnalyticsBaselinesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines{?%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 UserExperienceAnalyticsBaselinesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsBaselines{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -223,11 +226,11 @@ public UserExperienceAnalyticsBaselinesRequestBuilder(string rawUrl) : base("{+b /// 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); @@ -243,11 +246,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(UserExperienceAnalyticsBaseline body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsBaseline body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsBaseline body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsBaseline body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -259,7 +262,8 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsBaseli /// /// User experience analytics baselines /// - public class UserExperienceAnalyticsBaselinesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsBaselinesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -323,3 +327,4 @@ public class UserExperienceAnalyticsBaselinesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Count/CountRequestBuilder.cs index 51573883bf..86d883da61 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/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.DeviceManagement.UserExperienceAnalyticsCategories.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}/deviceManagement/userExperienceAnalyticsCategories/$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}/deviceManagement/userExperienceAnalyticsCategories/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Count/CountRequestBuilder.cs index 7fe4badf25..16fd34238c 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/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.DeviceManagement.UserExperienceAnalyticsCategories.Item.MetricV /// /// 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}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues/$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}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs index 54a1e3adc2..5f300c1022 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/Item/UserExperienceAnalyticsMetricItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsCategories.Item.MetricV /// /// Provides operations to manage the metricValues property of the microsoft.graph.userExperienceAnalyticsCategory entity. /// - public class UserExperienceAnalyticsMetricItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsMetricItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property metricValues for deviceManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsMetric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsMetric.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsMetricItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues/{userExperienceAnalyticsMetric%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 UserExperienceAnalyticsMetricItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues/{userExperienceAnalyticsMetric%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsMetric body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsMetric body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsMetri /// /// The metric values for the user experience analytics category. Read-only. /// - public class UserExperienceAnalyticsMetricItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsMetricItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class UserExperienceAnalyticsMetricItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.cs index 9c96618120..32edd021d0 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/MetricValues/MetricValuesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsCategories.Item.MetricValues.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsCategories.Item.MetricValues.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.DeviceManagement.UserExperienceAnalyticsCategories.Item.MetricV /// /// Provides operations to manage the metricValues property of the microsoft.graph.userExperienceAnalyticsCategory entity. /// - public class MetricValuesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MetricValuesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the metricValues property of the microsoft.graph.userExperienceAnalyticsCategory entity. @@ -30,7 +33,7 @@ public class MetricValuesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsMetricItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsCategories.Item.MetricValues.Item.UserExperienceAnalyticsMetricItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsCategories.Item.MetricValues.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(UserExperienceAnalyticsMetric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsMetric.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 MetricValuesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues{?%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 MetricValuesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}/metricValues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public MetricValuesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManage /// 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); @@ -247,11 +250,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(UserExperienceAnalyticsMetric body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsMetric body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsMetric /// /// The metric values for the user experience analytics category. Read-only. /// - public class MetricValuesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MetricValuesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class MetricValuesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.cs index 637ebb4959..7facd2f3e3 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/Item/UserExperienceAnalyticsCategoryItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsCategories.Item.MetricValues; 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.DeviceManagement.UserExperienceAnalyticsCategories.Item /// /// Provides operations to manage the userExperienceAnalyticsCategories property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsCategories for deviceManagement @@ -117,7 +120,7 @@ public Command BuildMetricValuesNavCommand() { var command = new Command("metric-values"); command.Description = "Provides operations to manage the metricValues property of the microsoft.graph.userExperienceAnalyticsCategory entity."; - var builder = new MetricValuesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsCategories.Item.MetricValues.MetricValuesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -166,8 +169,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(UserExperienceAnalyticsCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsCategory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -188,14 +191,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 UserExperienceAnalyticsCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%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 UserExperienceAnalyticsCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsCategories/{userExperienceAnalyticsCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -227,11 +230,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); @@ -247,11 +250,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(UserExperienceAnalyticsCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsCategory body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsCateg /// /// User experience analytics categories /// - public class UserExperienceAnalyticsCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -288,3 +292,4 @@ public class UserExperienceAnalyticsCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.cs index 6ad2921459..913566917a 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsCategories/UserExperienceAnalyticsCategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsCategories.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsCategories.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.DeviceManagement.UserExperienceAnalyticsCategories /// /// Provides operations to manage the userExperienceAnalyticsCategories property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsCategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsCategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsCategories property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new UserExperienceAnalyticsCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsCategories.Item.UserExperienceAnalyticsCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildMetricValuesNavCommand()); @@ -46,7 +49,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.DeviceManagement.UserExperienceAnalyticsCategories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -80,8 +83,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(UserExperienceAnalyticsCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsCategory.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 UserExperienceAnalyticsCategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsCategories{?%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 UserExperienceAnalyticsCategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsCategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public UserExperienceAnalyticsCategoriesRequestBuilder(string rawUrl) : base("{+ /// 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(UserExperienceAnalyticsCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsCategory body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsCatego /// /// User experience analytics categories /// - public class UserExperienceAnalyticsCategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsCategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class UserExperienceAnalyticsCategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Count/CountRequestBuilder.cs index a08a6146d9..31fd7e6b98 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/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.DeviceManagement.UserExperienceAnalyticsDevicePerformance.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}/deviceManagement/userExperienceAnalyticsDevicePerformance/$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}/deviceManagement/userExperienceAnalyticsDevicePerformance/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.cs index 308143db93..fb2e03fe8f 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/Item/UserExperienceAnalyticsDevicePerformanceItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsDevicePerformance.Item /// /// Provides operations to manage the userExperienceAnalyticsDevicePerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsDevicePerformanceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDevicePerformanceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsDevicePerformance for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsDevicePerformanceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance/{userExperienceAnalyticsDevicePerformance%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 UserExperienceAnalyticsDevicePerformanceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance/{userExperienceAnalyticsDevicePerformance%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDevicePerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDevicePerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDevicePerformance body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDevicePerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics device performance /// - public class UserExperienceAnalyticsDevicePerformanceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDevicePerformanceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsDevicePerformanceItemRequestBuilderGetQueryP } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.cs index ef2a9af8da..0a851d6821 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse.cs @@ -1,33 +1,35 @@ // +#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.DeviceManagement.UserExperienceAnalyticsDevicePerformance.SummarizeDevicePerformanceDevicesWithSummarizeBy { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDevicePerformance.SummarizeDevicePerformanceDevicesWithSummarizeBy.SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse(); + return new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDevicePerformance.SummarizeDevicePerformanceDevicesWithSummarizeBy.SummarizeDevicePerformanceDevicesWithSummarizeByGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.cs index 24b13d51ce..1e4f424f37 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/SummarizeDevicePerformanceDevicesWithSummarizeBy/SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsDevicePerformance.Summa /// /// Provides operations to call the summarizeDevicePerformanceDevices method. /// - public class SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function summarizeDevicePerformanceDevices @@ -123,14 +126,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 SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevices(summarizeBy='{summarizeBy}'){?%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 SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance/summarizeDevicePerformanceDevices(summarizeBy='{summarizeBy}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -143,11 +146,11 @@ public SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder(string raw /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function summarizeDevicePerformanceDevices /// - public class SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -222,3 +226,4 @@ public class SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilderGetQu } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.cs index dc64ca4185..acbb225341 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDevicePerformance/UserExperienceAnalyticsDevicePerformanceRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsDevicePerformance.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsDevicePerformance.Item; using ApiSdk.DeviceManagement.UserExperienceAnalyticsDevicePerformance.SummarizeDevicePerformanceDevicesWithSummarizeBy; 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.DeviceManagement.UserExperienceAnalyticsDevicePerformance /// /// Provides operations to manage the userExperienceAnalyticsDevicePerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsDevicePerformanceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDevicePerformanceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsDevicePerformance property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public class UserExperienceAnalyticsDevicePerformanceRequestBuilder : BaseCliReq public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsDevicePerformanceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDevicePerformance.Item.UserExperienceAnalyticsDevicePerformanceItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -45,7 +48,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.DeviceManagement.UserExperienceAnalyticsDevicePerformance.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(ApiSdk.Models.UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -203,7 +206,7 @@ public Command BuildSummarizeDevicePerformanceDevicesWithSummarizeByRbCommand() { var command = new Command("summarize-device-performance-devices-with-summarize-by"); command.Description = "Provides operations to call the summarizeDevicePerformanceDevices method."; - var builder = new SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDevicePerformance.SummarizeDevicePerformanceDevicesWithSummarizeBy.SummarizeDevicePerformanceDevicesWithSummarizeByRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -213,14 +216,14 @@ public Command BuildSummarizeDevicePerformanceDevicesWithSummarizeByRbCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsDevicePerformanceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance{?%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 UserExperienceAnalyticsDevicePerformanceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDevicePerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -233,11 +236,11 @@ public UserExperienceAnalyticsDevicePerformanceRequestBuilder(string rawUrl) : b /// 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); @@ -253,11 +256,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(ApiSdk.Models.UserExperienceAnalyticsDevicePerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDevicePerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDevicePerformance body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDevicePerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -269,7 +272,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics device performance /// - public class UserExperienceAnalyticsDevicePerformanceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDevicePerformanceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -333,3 +337,4 @@ public class UserExperienceAnalyticsDevicePerformanceRequestBuilderGetQueryParam } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Count/CountRequestBuilder.cs index eddf70c433..bbcaedeffe 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/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.DeviceManagement.UserExperienceAnalyticsDeviceScores.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}/deviceManagement/userExperienceAnalyticsDeviceScores/$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}/deviceManagement/userExperienceAnalyticsDeviceScores/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.cs index bf012ef0d8..407729b88f 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/Item/UserExperienceAnalyticsDeviceScoresItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsDeviceScores.Item /// /// Provides operations to manage the userExperienceAnalyticsDeviceScores property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsDeviceScoresItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceScoresItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsDeviceScores for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsDeviceScores.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsDeviceScores.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsDeviceScoresItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceScores/{userExperienceAnalyticsDeviceScores%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 UserExperienceAnalyticsDeviceScoresItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceScores/{userExperienceAnalyticsDeviceScores%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDeviceScores body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceScores body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDeviceScores body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceScores body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics device scores /// - public class UserExperienceAnalyticsDeviceScoresItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceScoresItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsDeviceScoresItemRequestBuilderGetQueryParame } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.cs index 87b4f4678f..532efe5f33 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceScores/UserExperienceAnalyticsDeviceScoresRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceScores.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceScores.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.DeviceManagement.UserExperienceAnalyticsDeviceScores /// /// Provides operations to manage the userExperienceAnalyticsDeviceScores property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsDeviceScoresRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceScoresRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsDeviceScores property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsDeviceScoresRequestBuilder : BaseCliRequestB public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsDeviceScoresItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceScores.Item.UserExperienceAnalyticsDeviceScoresItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsDeviceScores.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsDeviceScores.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsDeviceScores.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsDeviceScoresRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceScores{?%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 UserExperienceAnalyticsDeviceScoresRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceScores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsDeviceScoresRequestBuilder(string rawUrl) : base(" /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsDeviceScores body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceScores body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDeviceScores body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceScores body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics device scores /// - public class UserExperienceAnalyticsDeviceScoresRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceScoresRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsDeviceScoresRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Count/CountRequestBuilder.cs index f43102e4e8..97d89b2eb4 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/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.DeviceManagement.UserExperienceAnalyticsDeviceStartupHistory.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 @@ -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}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/$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}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.cs index 0b2378cf5e..cc9bba3723 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/Item/UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsDeviceStartupHistory.It /// /// Provides operations to manage the userExperienceAnalyticsDeviceStartupHistory property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsDeviceStartupHistory for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/{userExperienceAnalyticsDeviceStartupHistory%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 UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory/{userExperienceAnalyticsDeviceStartupHistory%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics device Startup History /// - public class UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilderGetQue } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.cs index 3c49ab99a7..5b83640dfd 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupHistory/UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupHistory.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupHistory.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.DeviceManagement.UserExperienceAnalyticsDeviceStartupHistory /// /// Provides operations to manage the userExperienceAnalyticsDeviceStartupHistory property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsDeviceStartupHistory property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder : BaseCli public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupHistory.Item.UserExperienceAnalyticsDeviceStartupHistoryItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsDeviceStartupHistory.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory{?%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 UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupHistory{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder(string rawUrl) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics device Startup History /// - public class UserExperienceAnalyticsDeviceStartupHistoryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupHistoryRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsDeviceStartupHistoryRequestBuilderGetQueryPa } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.cs index 51df184858..18a1ac8163 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/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.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPer /// /// 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}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/$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}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.cs index 388095aa3e..e2af8f868e 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPer /// /// Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsDeviceStartupProcessPerformance for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/{userExperienceAnalyticsDeviceStartupProcessPerformance%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 UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/{userExperienceAnalyticsDeviceStartupProcessPerformance%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics device Startup Process Performance /// - public class UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBu } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.cs index 290a85ccce..fdd50f1e94 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPerformance.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPerformance.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.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPer /// /// Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilde public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPerformance.Item.UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPerformance.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance{?%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 UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder(stri /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics device Startup Process Performance /// - public class UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilde } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Count/CountRequestBuilder.cs index a362a4eb02..2706433b36 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/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.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcesses. /// /// 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}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/$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}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.cs index fec8ae4a9a..e7c69312e3 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/Item/UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcesses. /// /// Provides operations to manage the userExperienceAnalyticsDeviceStartupProcesses property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsDeviceStartupProcesses for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsDeviceStartupProcess.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcess.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/{userExperienceAnalyticsDeviceStartupProcess%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 UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses/{userExperienceAnalyticsDeviceStartupProcess%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsDeviceStartupProcess body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcess body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsDeviceStartupProcess body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcess body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsDevic /// /// User experience analytics device Startup Processes /// - public class UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilderGetQue } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.cs index a5ffeaaf7a..287064f6e5 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcesses/UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcesses.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcesses.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.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcesses /// /// Provides operations to manage the userExperienceAnalyticsDeviceStartupProcesses property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsDeviceStartupProcesses property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder : BaseC public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcesses.Item.UserExperienceAnalyticsDeviceStartupProcessItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcesses.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsDeviceStartupProcess.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcess.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses{?%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 UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcesses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsDeviceStartupProcessesRequestBuilder(string rawUrl /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(UserExperienceAnalyticsDeviceStartupProcess body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcess body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsDeviceStartupProcess body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcess body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsDevice /// /// User experience analytics device Startup Processes /// - public class UserExperienceAnalyticsDeviceStartupProcessesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsDeviceStartupProcessesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsDeviceStartupProcessesRequestBuilderGetQuery } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Count/CountRequestBuilder.cs index c4b12da26b..a21598cb18 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/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.DeviceManagement.UserExperienceAnalyticsMetricHistory.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}/deviceManagement/userExperienceAnalyticsMetricHistory/$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}/deviceManagement/userExperienceAnalyticsMetricHistory/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.cs index a43f0ee7fa..0ee5f8b7d4 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/Item/UserExperienceAnalyticsMetricHistoryItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsMetricHistory.Item /// /// Provides operations to manage the userExperienceAnalyticsMetricHistory property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsMetricHistoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsMetricHistoryItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsMetricHistory for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsMetricHistory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsMetricHistory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsMetricHistoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsMetricHistory/{userExperienceAnalyticsMetricHistory%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 UserExperienceAnalyticsMetricHistoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsMetricHistory/{userExperienceAnalyticsMetricHistory%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsMetricHistory body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetricHistory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsMetricHistory body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetricHistory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics metric history /// - public class UserExperienceAnalyticsMetricHistoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsMetricHistoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsMetricHistoryItemRequestBuilderGetQueryParam } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.cs index 1d48112021..ed4ba585f6 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsMetricHistory/UserExperienceAnalyticsMetricHistoryRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsMetricHistory.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsMetricHistory.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.DeviceManagement.UserExperienceAnalyticsMetricHistory /// /// Provides operations to manage the userExperienceAnalyticsMetricHistory property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsMetricHistoryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsMetricHistoryRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsMetricHistory property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsMetricHistoryRequestBuilder : BaseCliRequest public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsMetricHistoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsMetricHistory.Item.UserExperienceAnalyticsMetricHistoryItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsMetricHistory.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsMetricHistory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsMetricHistory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsMetricHistoryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsMetricHistory{?%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 UserExperienceAnalyticsMetricHistoryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsMetricHistory{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsMetricHistoryRequestBuilder(string rawUrl) : base( /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsMetricHistory body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetricHistory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsMetricHistory body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsMetricHistory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics metric history /// - public class UserExperienceAnalyticsMetricHistoryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsMetricHistoryRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsMetricHistoryRequestBuilderGetQueryParameter } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsModelScores/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsModelScores/Count/CountRequestBuilder.cs index 1a2f51e805..873da0cbac 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsModelScores/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsModelScores/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.DeviceManagement.UserExperienceAnalyticsModelScores.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}/deviceManagement/userExperienceAnalyticsModelScores/$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}/deviceManagement/userExperienceAnalyticsModelScores/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.cs index 945c7371bd..7a17b40da7 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsModelScores/Item/UserExperienceAnalyticsModelScoresItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsModelScores.Item /// /// Provides operations to manage the userExperienceAnalyticsModelScores property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsModelScoresItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsModelScoresItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsModelScores for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsModelScores.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsModelScores.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsModelScoresItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsModelScores/{userExperienceAnalyticsModelScores%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 UserExperienceAnalyticsModelScoresItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsModelScores/{userExperienceAnalyticsModelScores%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsModelScores body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsModelScores body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsModelScores body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsModelScores body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics model scores /// - public class UserExperienceAnalyticsModelScoresItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsModelScoresItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsModelScoresItemRequestBuilderGetQueryParamet } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.cs index 259a627aa2..325eed38fd 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsModelScores/UserExperienceAnalyticsModelScoresRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsModelScores.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsModelScores.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.DeviceManagement.UserExperienceAnalyticsModelScores /// /// Provides operations to manage the userExperienceAnalyticsModelScores property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsModelScoresRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsModelScoresRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsModelScores property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsModelScoresRequestBuilder : BaseCliRequestBu public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsModelScoresItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsModelScores.Item.UserExperienceAnalyticsModelScoresItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsModelScores.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsModelScores.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsModelScores.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsModelScoresRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsModelScores{?%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 UserExperienceAnalyticsModelScoresRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsModelScores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsModelScoresRequestBuilder(string rawUrl) : base("{ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsModelScores body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsModelScores body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsModelScores body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsModelScores body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics model scores /// - public class UserExperienceAnalyticsModelScoresRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsModelScoresRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsModelScoresRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.cs index 469d76662f..f7df8bf1e8 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsOverview/UserExperienceAnalyticsOverviewRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsOverview /// /// Provides operations to manage the userExperienceAnalyticsOverview property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsOverviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsOverviewRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsOverview for deviceManagement @@ -121,8 +124,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.UserExperienceAnalyticsOverview.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsOverview.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -142,14 +145,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 UserExperienceAnalyticsOverviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsOverview{?%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 UserExperienceAnalyticsOverviewRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsOverview{?%24expand,%24select}", rawUrl) @@ -181,11 +184,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); @@ -201,11 +204,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.UserExperienceAnalyticsOverview body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsOverview body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsOverview body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsOverview body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -217,7 +220,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics overview /// - public class UserExperienceAnalyticsOverviewRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsOverviewRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -242,3 +246,4 @@ public class UserExperienceAnalyticsOverviewRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Count/CountRequestBuilder.cs index 0c53febb59..e7283b387e 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/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.DeviceManagement.UserExperienceAnalyticsScoreHistory.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}/deviceManagement/userExperienceAnalyticsScoreHistory/$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}/deviceManagement/userExperienceAnalyticsScoreHistory/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.cs index 4a72d516ac..3c8ae9af44 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/Item/UserExperienceAnalyticsScoreHistoryItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsScoreHistory.Item /// /// Provides operations to manage the userExperienceAnalyticsScoreHistory property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsScoreHistoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsScoreHistoryItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsScoreHistory for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsScoreHistory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsScoreHistory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsScoreHistoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsScoreHistory/{userExperienceAnalyticsScoreHistory%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 UserExperienceAnalyticsScoreHistoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsScoreHistory/{userExperienceAnalyticsScoreHistory%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsScoreHistory body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsScoreHistory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsScoreHistory body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsScoreHistory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics device Startup Score History /// - public class UserExperienceAnalyticsScoreHistoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsScoreHistoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsScoreHistoryItemRequestBuilderGetQueryParame } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.cs index 907119d1d6..5caf40472f 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsScoreHistory/UserExperienceAnalyticsScoreHistoryRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsScoreHistory.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsScoreHistory.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.DeviceManagement.UserExperienceAnalyticsScoreHistory /// /// Provides operations to manage the userExperienceAnalyticsScoreHistory property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsScoreHistoryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsScoreHistoryRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsScoreHistory property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsScoreHistoryRequestBuilder : BaseCliRequestB public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsScoreHistoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsScoreHistory.Item.UserExperienceAnalyticsScoreHistoryItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsScoreHistory.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsScoreHistory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsScoreHistory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsScoreHistoryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsScoreHistory{?%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 UserExperienceAnalyticsScoreHistoryRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsScoreHistory{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsScoreHistoryRequestBuilder(string rawUrl) : base(" /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsScoreHistory body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsScoreHistory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsScoreHistory body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsScoreHistory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// User experience analytics device Startup Score History /// - public class UserExperienceAnalyticsScoreHistoryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsScoreHistoryRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsScoreHistoryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.cs index 3f42ed87a7..93eb23d592 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevices/UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsSummarizeWorkFromAnywhe /// /// Provides operations to call the userExperienceAnalyticsSummarizeWorkFromAnywhereDevices method. /// - public class UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function userExperienceAnalyticsSummarizeWorkFromAnywhereDevices @@ -54,14 +57,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 UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsSummarizeWorkFromAnywhereDevices()", 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 UserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsSummarizeWorkFromAnywhereDevices()", rawUrl) @@ -88,3 +91,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereHardwar /// /// Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric for deviceManagement @@ -121,8 +124,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.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -142,14 +145,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 UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric{?%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 UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric{?%24expand,%24select}", rawUrl) @@ -181,11 +184,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); @@ -201,11 +204,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.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -217,7 +220,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// User experience analytics work from anywhere hardware readiness metrics. /// - public class UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -242,3 +246,4 @@ public class UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricReque } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Count/CountRequestBuilder.cs index 73e7c9dae5..bd4b9ef938 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics /// /// 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}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/$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}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Count/CountRequestBuilder.cs index 97f39ca825..bfb2452a94 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics /// /// 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}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices/$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}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.cs index a36946c30a..a4451301cd 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/Item/UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics /// /// Provides operations to manage the metricDevices property of the microsoft.graph.userExperienceAnalyticsWorkFromAnywhereMetric entity. /// - public class UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property metricDevices for deviceManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(UserExperienceAnalyticsWorkFromAnywhereDevice.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereDevice.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices/{userExperienceAnalyticsWorkFromAnywhereDevice%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 UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices/{userExperienceAnalyticsWorkFromAnywhereDevice%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsWorkFromAnywhereDevice body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereDevice body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsWorkFromAnywhereDevice body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereDevice body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsWorkF /// /// The work from anywhere metric devices. Read-only. /// - public class UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilderGetQ } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.cs index 13abb0258d..8155b87425 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/MetricDevices/MetricDevicesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics.Item.MetricDevices.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics.Item.MetricDevices.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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics /// /// Provides operations to manage the metricDevices property of the microsoft.graph.userExperienceAnalyticsWorkFromAnywhereMetric entity. /// - public class MetricDevicesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MetricDevicesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the metricDevices property of the microsoft.graph.userExperienceAnalyticsWorkFromAnywhereMetric entity. @@ -30,7 +33,7 @@ public class MetricDevicesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics.Item.MetricDevices.Item.UserExperienceAnalyticsWorkFromAnywhereDeviceItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics.Item.MetricDevices.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(UserExperienceAnalyticsWorkFromAnywhereDevice.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereDevice.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 MetricDevicesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices{?%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 MetricDevicesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}/metricDevices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public MetricDevicesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManag /// 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); @@ -247,11 +250,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(UserExperienceAnalyticsWorkFromAnywhereDevice body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereDevice body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsWorkFromAnywhereDevice body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereDevice body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsWorkFr /// /// The work from anywhere metric devices. Read-only. /// - public class MetricDevicesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MetricDevicesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class MetricDevicesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.cs index 41f54b7c25..c097a7b0c7 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/Item/UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics.Item.MetricDevices; 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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics /// /// Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereMetrics property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsWorkFromAnywhereMetrics for deviceManagement @@ -117,7 +120,7 @@ public Command BuildMetricDevicesNavCommand() { var command = new Command("metric-devices"); command.Description = "Provides operations to manage the metricDevices property of the microsoft.graph.userExperienceAnalyticsWorkFromAnywhereMetric entity."; - var builder = new MetricDevicesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics.Item.MetricDevices.MetricDevicesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -166,8 +169,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(UserExperienceAnalyticsWorkFromAnywhereMetric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereMetric.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -188,14 +191,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 UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%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 UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics/{userExperienceAnalyticsWorkFromAnywhereMetric%2Did}{?%24expand,%24select}", rawUrl) @@ -227,11 +230,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); @@ -247,11 +250,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(UserExperienceAnalyticsWorkFromAnywhereMetric body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereMetric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsWorkFromAnywhereMetric body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereMetric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPatchRequestInformation(UserExperienceAnalyticsWorkF /// /// User experience analytics work from anywhere metrics. /// - public class UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -288,3 +292,4 @@ public class UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilderGetQ } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.cs index 86b22aad61..273e71bf4d 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereMetrics/UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics.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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics /// /// Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereMetrics property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereMetrics property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics.Item.UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildMetricDevicesNavCommand()); @@ -46,7 +49,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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -80,8 +83,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(UserExperienceAnalyticsWorkFromAnywhereMetric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereMetric.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 UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics{?%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 UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereMetrics{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder(string rawUr /// 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(UserExperienceAnalyticsWorkFromAnywhereMetric body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereMetric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsWorkFromAnywhereMetric body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereMetric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(UserExperienceAnalyticsWorkFr /// /// User experience analytics work from anywhere metrics. /// - public class UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilderGetQuer } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Count/CountRequestBuilder.cs index bcc0dab4ec..8f990f3510 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereModelPe /// /// 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}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/$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}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/us /// 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/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.cs index 84d99e5dfd..21ee42b841 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/Item/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder.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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereModelPe /// /// Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereModelPerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property userExperienceAnalyticsWorkFromAnywhereModelPerformance for deviceManagement @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/{userExperienceAnalyticsWorkFromAnywhereModelPerformance%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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance/{userExperienceAnalyticsWorkFromAnywhereModelPerformance%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperience /// /// The user experience analytics work from anywhere model performance /// - public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.cs index 7983f79b7d..8f225af35c 100644 --- a/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.cs +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsWorkFromAnywhereModelPerformance/UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereModelPerformance.Count; using ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereModelPerformance.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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereModelPe /// /// Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereModelPerformance property of the microsoft.graph.deviceManagement entity. /// - public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereModelPerformance property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuild public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereModelPerformance.Item.UserExperienceAnalyticsWorkFromAnywhereModelPerformanceItemRequestBuilder(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.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereModelPerformance.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance{?%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 UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsWorkFromAnywhereModelPerformance{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder(str /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceA /// /// The user experience analytics work from anywhere model performance /// - public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuild } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.cs b/src/generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.cs index 9421d0acee..d28426cede 100644 --- a/src/generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.cs +++ b/src/generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.VerifyWindowsEnrollmentAutoDiscoveryWithDomainName { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse : IAdditionalDataHolder, IParsable + public partial class VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse : 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. @@ -15,7 +17,7 @@ public class VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse : IAd /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse() { @@ -24,12 +26,12 @@ public VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse() /// /// 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 VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.VerifyWindowsEnrollmentAutoDiscoveryWithDomainName.VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse(); + return new global::ApiSdk.DeviceManagement.VerifyWindowsEnrollmentAutoDiscoveryWithDomainName.VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.cs b/src/generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.cs index 1c19ffc6d1..2a2be0f7b8 100644 --- a/src/generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.cs +++ b/src/generated/DeviceManagement/VerifyWindowsEnrollmentAutoDiscoveryWithDomainName/VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder.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.DeviceManagement.VerifyWindowsEnrollmentAutoDiscoveryWithDomain /// /// Provides operations to call the verifyWindowsEnrollmentAutoDiscovery method. /// - public class VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function verifyWindowsEnrollmentAutoDiscovery @@ -59,14 +62,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 VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/verifyWindowsEnrollmentAutoDiscovery(domainName='{domainName}')", 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 VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/verifyWindowsEnrollmentAutoDiscovery(domainName='{domainName}')", rawUrl) @@ -93,3 +96,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.AuditEvents.Count; using ApiSdk.DeviceManagement.VirtualEndpoint.AuditEvents.GetAuditActivityTypes; using ApiSdk.DeviceManagement.VirtualEndpoint.AuditEvents.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; @@ -22,7 +24,8 @@ namespace ApiSdk.DeviceManagement.VirtualEndpoint.AuditEvents /// /// Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. /// - public class AuditEventsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuditEventsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. @@ -31,7 +34,7 @@ public class AuditEventsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new CloudPcAuditEventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.AuditEvents.Item.CloudPcAuditEventItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -45,7 +48,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.DeviceManagement.VirtualEndpoint.AuditEvents.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(CloudPcAuditEvent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcAuditEvent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -107,7 +110,7 @@ public Command BuildGetAuditActivityTypesNavCommand() { var command = new Command("get-audit-activity-types"); command.Description = "Provides operations to call the getAuditActivityTypes method."; - var builder = new GetAuditActivityTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.AuditEvents.GetAuditActivityTypes.GetAuditActivityTypesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -214,14 +217,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 AuditEventsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/auditEvents{?%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 AuditEventsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/auditEvents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -234,11 +237,11 @@ public AuditEventsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagem /// 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); @@ -254,11 +257,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(CloudPcAuditEvent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcAuditEvent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CloudPcAuditEvent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcAuditEvent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -270,7 +273,8 @@ public RequestInformation ToPostRequestInformation(CloudPcAuditEvent body, Actio /// /// List all the cloudPcAuditEvent objects for the tenant. /// - public class AuditEventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AuditEventsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -334,3 +338,4 @@ public class AuditEventsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/Count/CountRequestBuilder.cs index ab3329d840..0cc21cf74e 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/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.DeviceManagement.VirtualEndpoint.AuditEvents.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}/deviceManagement/virtualEndpoint/auditEvents/$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}/deviceManagement/virtualEndpoint/auditEvents/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/vi /// 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/DeviceManagement/VirtualEndpoint/AuditEvents/GetAuditActivityTypes/GetAuditActivityTypesGetResponse.cs b/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/GetAuditActivityTypes/GetAuditActivityTypesGetResponse.cs index 40344945f3..2f061bede3 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/GetAuditActivityTypes/GetAuditActivityTypesGetResponse.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/GetAuditActivityTypes/GetAuditActivityTypesGetResponse.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.DeviceManagement.VirtualEndpoint.AuditEvents.GetAuditActivityTypes { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAuditActivityTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAuditActivityTypesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetAuditActivityTypesGetResponse : BaseCollectionPaginationCountRes /// /// 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 new GetAuditActivityTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DeviceManagement.VirtualEndpoint.AuditEvents.GetAuditActivityTypes.GetAuditActivityTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAuditActivityTypesGetResponse(); + return new global::ApiSdk.DeviceManagement.VirtualEndpoint.AuditEvents.GetAuditActivityTypes.GetAuditActivityTypesGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/GetAuditActivityTypes/GetAuditActivityTypesRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/GetAuditActivityTypes/GetAuditActivityTypesRequestBuilder.cs index 391ba94c8d..c5d1a6c417 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/GetAuditActivityTypes/GetAuditActivityTypesRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/GetAuditActivityTypes/GetAuditActivityTypesRequestBuilder.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.DeviceManagement.VirtualEndpoint.AuditEvents.GetAuditActivityTy /// /// Provides operations to call the getAuditActivityTypes method. /// - public class GetAuditActivityTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAuditActivityTypesRequestBuilder : BaseCliRequestBuilder { /// /// Get audit activity types by tenant ID. @@ -97,14 +100,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 GetAuditActivityTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/getAuditActivityTypes(){?%24count,%24filter,%24search,%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 GetAuditActivityTypesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/getAuditActivityTypes(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) @@ -117,11 +120,11 @@ public GetAuditActivityTypesRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -132,7 +135,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get audit activity types by tenant ID. /// - public class GetAuditActivityTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAuditActivityTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -166,3 +170,4 @@ public class GetAuditActivityTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/Item/CloudPcAuditEventItemRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/Item/CloudPcAuditEventItemRequestBuilder.cs index e9f4599cc7..0e4509974e 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/Item/CloudPcAuditEventItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/AuditEvents/Item/CloudPcAuditEventItemRequestBuilder.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.DeviceManagement.VirtualEndpoint.AuditEvents.Item /// /// Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. /// - public class CloudPcAuditEventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcAuditEventItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property auditEvents for deviceManagement @@ -139,8 +142,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(CloudPcAuditEvent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcAuditEvent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 CloudPcAuditEventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/{cloudPcAuditEvent%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 CloudPcAuditEventItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/auditEvents/{cloudPcAuditEvent%2Did}{?%24expand,%24select}", rawUrl) @@ -200,11 +203,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); @@ -220,11 +223,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(CloudPcAuditEvent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcAuditEvent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CloudPcAuditEvent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcAuditEvent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -236,7 +239,8 @@ public RequestInformation ToPatchRequestInformation(CloudPcAuditEvent body, Acti /// /// Read the properties and relationships of a cloudPcAuditEvent object. /// - public class CloudPcAuditEventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcAuditEventItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -261,3 +265,4 @@ public class CloudPcAuditEventItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/CloudPCsRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/CloudPCsRequestBuilder.cs index cdb1ef7484..2af3751c6e 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/CloudPCsRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/CloudPCsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Count; using ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.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.DeviceManagement.VirtualEndpoint.CloudPCs /// /// Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity. /// - public class CloudPCsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPCsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new CloudPCItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.CloudPCItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildEndGracePeriodNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -50,7 +53,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.DeviceManagement.VirtualEndpoint.CloudPCs.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(CloudPC.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPC.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -202,14 +205,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 CloudPCsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs{?%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 CloudPCsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -222,11 +225,11 @@ public CloudPCsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement /// 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); @@ -242,11 +245,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(CloudPC body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPC body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CloudPC body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPC body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -258,7 +261,8 @@ public RequestInformation ToPostRequestInformation(CloudPC body, Action /// List the cloudPC devices in a tenant. /// - public class CloudPCsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPCsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -322,3 +326,4 @@ public class CloudPCsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Count/CountRequestBuilder.cs index bf14f52e89..16de964919 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/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.DeviceManagement.VirtualEndpoint.CloudPCs.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}/deviceManagement/virtualEndpoint/cloudPCs/$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}/deviceManagement/virtualEndpoint/cloudPCs/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/vi /// 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/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs index e9bbb84fea..ffe8a95c45 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.EndGracePeriod; using ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Reboot; using ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Rename; @@ -6,6 +7,7 @@ using ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Troubleshoot; 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 +26,8 @@ namespace ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item /// /// Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity. /// - public class CloudPCItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPCItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property cloudPCs for deviceManagement @@ -69,7 +72,7 @@ public Command BuildEndGracePeriodNavCommand() { var command = new Command("end-grace-period"); command.Description = "Provides operations to call the endGracePeriod method."; - var builder = new EndGracePeriodRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.EndGracePeriod.EndGracePeriodRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -161,8 +164,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(CloudPC.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPC.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -190,7 +193,7 @@ public Command BuildRebootNavCommand() { var command = new Command("reboot"); command.Description = "Provides operations to call the reboot method."; - var builder = new RebootRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Reboot.RebootRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,7 +210,7 @@ public Command BuildRenameNavCommand() { var command = new Command("rename"); command.Description = "Provides operations to call the rename method."; - var builder = new RenameRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Rename.RenameRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -224,7 +227,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -241,7 +244,7 @@ public Command BuildTroubleshootNavCommand() { var command = new Command("troubleshoot"); command.Description = "Provides operations to call the troubleshoot method."; - var builder = new TroubleshootRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Troubleshoot.TroubleshootRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -251,14 +254,14 @@ public Command BuildTroubleshootNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CloudPCItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%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 CloudPCItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}{?%24expand,%24select}", rawUrl) @@ -290,11 +293,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); @@ -310,11 +313,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(CloudPC body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPC body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CloudPC body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPC body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -326,7 +329,8 @@ public RequestInformation ToPatchRequestInformation(CloudPC body, Action /// Read the properties and relationships of a specific cloudPC object. /// - public class CloudPCItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPCItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -351,3 +355,4 @@ public class CloudPCItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/EndGracePeriod/EndGracePeriodRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/EndGracePeriod/EndGracePeriodRequestBuilder.cs index 09b9393268..15ebbc00b8 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/EndGracePeriod/EndGracePeriodRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/EndGracePeriod/EndGracePeriodRequestBuilder.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.DeviceManagement.VirtualEndpoint.CloudPCs.Item.EndGracePeriod /// /// Provides operations to call the endGracePeriod method. /// - public class EndGracePeriodRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EndGracePeriodRequestBuilder : BaseCliRequestBuilder { /// /// End the grace period for a specific cloudPC object. The grace period is triggered when the Cloud PC license is removed or the provisioning policy is unassigned. It allows users to access Cloud PCs for up to seven days before deprovisioning occurs. Ending the grace period immediately deprovisions the Cloud PC without waiting the seven days. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EndGracePeriodRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/endGracePeriod", 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 EndGracePeriodRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/endGracePeriod", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Reboot /// /// Provides operations to call the reboot method. /// - public class RebootRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RebootRequestBuilder : BaseCliRequestBuilder { /// /// Reboot a specific cloudPC object. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RebootRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/reboot", 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 RebootRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/reboot", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Rename { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RenamePostRequestBody : IAdditionalDataHolder, IParsable + public partial class RenamePostRequestBody : 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. @@ -21,7 +23,7 @@ public class RenamePostRequestBody : IAdditionalDataHolder, IParsable public string DisplayName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RenamePostRequestBody() { @@ -30,12 +32,12 @@ public RenamePostRequestBody() /// /// 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 RenamePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Rename.RenamePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RenamePostRequestBody(); + return new global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Rename.RenamePostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Rename/RenameRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Rename/RenameRequestBuilder.cs index 6e1d3b95fc..342fd45a13 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Rename/RenameRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Rename/RenameRequestBuilder.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.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Rename /// /// Provides operations to call the rename method. /// - public class RenameRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenameRequestBuilder : BaseCliRequestBuilder { /// /// Rename a specific cloudPC object. Use this API to update the displayName of a Cloud PC entity. @@ -43,8 +46,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(RenamePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Rename.RenamePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 RenameRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/rename", 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 RenameRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/rename", rawUrl) @@ -84,11 +87,11 @@ public RenameRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/v /// 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(RenamePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Rename.RenamePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RenamePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Rename.RenamePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(RenamePostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Restore/RestorePostRequestBody.cs b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Restore/RestorePostRequestBody.cs index 69f88ebc24..a24e525612 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Restore/RestorePostRequestBody.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Restore/RestorePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Restore { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RestorePostRequestBody : IAdditionalDataHolder, IParsable + public partial class RestorePostRequestBody : 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. @@ -21,7 +23,7 @@ public class RestorePostRequestBody : IAdditionalDataHolder, IParsable public string CloudPcSnapshotId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RestorePostRequestBody() { @@ -30,12 +32,12 @@ public RestorePostRequestBody() /// /// 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 RestorePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Restore.RestorePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RestorePostRequestBody(); + return new global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Restore.RestorePostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Restore/RestoreRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Restore/RestoreRequestBuilder.cs index 548902f8ef..c0c4c1b96c 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Restore/RestoreRequestBuilder.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.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// /// Restore a specific cloudPC object to a previous state from a snapshot. Use this API to trigger a remote action that restores a Cloud PC device to a previous state. @@ -43,8 +46,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(RestorePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Restore.RestorePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/restore", rawUrl) @@ -84,11 +87,11 @@ public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/ /// 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(RestorePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Restore.RestorePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RestorePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Restore.RestorePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(RestorePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Troubleshoot/TroubleshootRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Troubleshoot/TroubleshootRequestBuilder.cs index 4e806d517f..69c95252cc 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Troubleshoot/TroubleshootRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Troubleshoot/TroubleshootRequestBuilder.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.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Troubleshoot /// /// Provides operations to call the troubleshoot method. /// - public class TroubleshootRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TroubleshootRequestBuilder : BaseCliRequestBuilder { /// /// Troubleshoot a specific cloudPC object. Use this API to check the health status of the Cloud PC and the session host. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TroubleshootRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/troubleshoot", 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 TroubleshootRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/troubleshoot", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DeviceManagement.VirtualEndpoint.DeviceImages.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}/deviceManagement/virtualEndpoint/deviceImages/$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}/deviceManagement/virtualEndpoint/deviceImages/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/vi /// 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/DeviceManagement/VirtualEndpoint/DeviceImages/DeviceImagesRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/DeviceImagesRequestBuilder.cs index 4ebd37ce2a..f9c8583a15 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/DeviceImagesRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/DeviceImagesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.DeviceImages.Count; using ApiSdk.DeviceManagement.VirtualEndpoint.DeviceImages.GetSourceImages; using ApiSdk.DeviceManagement.VirtualEndpoint.DeviceImages.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; @@ -22,7 +24,8 @@ namespace ApiSdk.DeviceManagement.VirtualEndpoint.DeviceImages /// /// Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity. /// - public class DeviceImagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceImagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity. @@ -31,7 +34,7 @@ public class DeviceImagesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new CloudPcDeviceImageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.DeviceImages.Item.CloudPcDeviceImageItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -45,7 +48,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.DeviceManagement.VirtualEndpoint.DeviceImages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -80,8 +83,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(CloudPcDeviceImage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcDeviceImage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -108,7 +111,7 @@ public Command BuildGetSourceImagesNavCommand() { var command = new Command("get-source-images"); command.Description = "Provides operations to call the getSourceImages method."; - var builder = new GetSourceImagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.DeviceImages.GetSourceImages.GetSourceImagesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -215,14 +218,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceImagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/deviceImages{?%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 DeviceImagesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/deviceImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -235,11 +238,11 @@ public DeviceImagesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManage /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CloudPcDeviceImage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcDeviceImage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CloudPcDeviceImage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcDeviceImage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPostRequestInformation(CloudPcDeviceImage body, Acti /// /// List the properties and relationships of cloudPcDeviceImage objects (operating system images) uploaded to Cloud PC. /// - public class DeviceImagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceImagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -335,3 +339,4 @@ public class DeviceImagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/GetSourceImages/GetSourceImagesGetResponse.cs b/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/GetSourceImages/GetSourceImagesGetResponse.cs index 753f86e05c..b61a185a16 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/GetSourceImages/GetSourceImagesGetResponse.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/GetSourceImages/GetSourceImagesGetResponse.cs @@ -1,33 +1,35 @@ // +#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.DeviceManagement.VirtualEndpoint.DeviceImages.GetSourceImages { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetSourceImagesGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetSourceImagesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetSourceImagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DeviceManagement.VirtualEndpoint.DeviceImages.GetSourceImages.GetSourceImagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetSourceImagesGetResponse(); + return new global::ApiSdk.DeviceManagement.VirtualEndpoint.DeviceImages.GetSourceImages.GetSourceImagesGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(CloudPcSourceDeviceImage.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.CloudPcSourceDeviceImage.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/GetSourceImages/GetSourceImagesRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/GetSourceImages/GetSourceImagesRequestBuilder.cs index 567ef7d2a4..32908c23d6 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/GetSourceImages/GetSourceImagesRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/GetSourceImages/GetSourceImagesRequestBuilder.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.DeviceManagement.VirtualEndpoint.DeviceImages.GetSourceImages /// /// Provides operations to call the getSourceImages method. /// - public class GetSourceImagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetSourceImagesRequestBuilder : BaseCliRequestBuilder { /// /// Get cloudPcSourceDeviceImage objects that can be uploaded and used on Cloud PCs. View a list of all the managed image resources from your Microsoft Entra subscriptions. @@ -97,14 +100,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 GetSourceImagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/getSourceImages(){?%24count,%24filter,%24search,%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 GetSourceImagesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/getSourceImages(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) @@ -117,11 +120,11 @@ public GetSourceImagesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMan /// 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); @@ -132,7 +135,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get cloudPcSourceDeviceImage objects that can be uploaded and used on Cloud PCs. View a list of all the managed image resources from your Microsoft Entra subscriptions. /// - public class GetSourceImagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetSourceImagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -166,3 +170,4 @@ public class GetSourceImagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/Item/CloudPcDeviceImageItemRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/Item/CloudPcDeviceImageItemRequestBuilder.cs index 18726447a3..e2eab202d4 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/Item/CloudPcDeviceImageItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/DeviceImages/Item/CloudPcDeviceImageItemRequestBuilder.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.DeviceManagement.VirtualEndpoint.DeviceImages.Item /// /// Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity. /// - public class CloudPcDeviceImageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcDeviceImageItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete a cloudPcDeviceImage object. @@ -140,8 +143,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(CloudPcDeviceImage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcDeviceImage.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 CloudPcDeviceImageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/{cloudPcDeviceImage%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 CloudPcDeviceImageItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/deviceImages/{cloudPcDeviceImage%2Did}{?%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(CloudPcDeviceImage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcDeviceImage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CloudPcDeviceImage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcDeviceImage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(CloudPcDeviceImage body, Act /// /// Read the properties and relationships of a specific cloudPcDeviceImage object. /// - public class CloudPcDeviceImageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcDeviceImageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class CloudPcDeviceImageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/GalleryImages/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/GalleryImages/Count/CountRequestBuilder.cs index de92016050..3b5c785363 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/GalleryImages/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/GalleryImages/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.DeviceManagement.VirtualEndpoint.GalleryImages.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}/deviceManagement/virtualEndpoint/galleryImages/$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}/deviceManagement/virtualEndpoint/galleryImages/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/vi /// 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/DeviceManagement/VirtualEndpoint/GalleryImages/GalleryImagesRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/GalleryImages/GalleryImagesRequestBuilder.cs index d062274b4a..9d4aaccaf2 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/GalleryImages/GalleryImagesRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/GalleryImages/GalleryImagesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.GalleryImages.Count; using ApiSdk.DeviceManagement.VirtualEndpoint.GalleryImages.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.DeviceManagement.VirtualEndpoint.GalleryImages /// /// Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity. /// - public class GalleryImagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GalleryImagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity. @@ -30,7 +33,7 @@ public class GalleryImagesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new CloudPcGalleryImageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.GalleryImages.Item.CloudPcGalleryImageItemRequestBuilder(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.DeviceManagement.VirtualEndpoint.GalleryImages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(CloudPcGalleryImage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcGalleryImage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,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 GalleryImagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/galleryImages{?%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 GalleryImagesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/galleryImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -216,11 +219,11 @@ public GalleryImagesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManag /// 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); @@ -236,11 +239,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(CloudPcGalleryImage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcGalleryImage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CloudPcGalleryImage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcGalleryImage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -252,7 +255,8 @@ public RequestInformation ToPostRequestInformation(CloudPcGalleryImage body, Act /// /// List the properties and relationships of cloudPcGalleryImage objects. /// - public class GalleryImagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GalleryImagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -316,3 +320,4 @@ public class GalleryImagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/GalleryImages/Item/CloudPcGalleryImageItemRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/GalleryImages/Item/CloudPcGalleryImageItemRequestBuilder.cs index a6cb630826..8dbed47037 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/GalleryImages/Item/CloudPcGalleryImageItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/GalleryImages/Item/CloudPcGalleryImageItemRequestBuilder.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.DeviceManagement.VirtualEndpoint.GalleryImages.Item /// /// Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity. /// - public class CloudPcGalleryImageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcGalleryImageItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property galleryImages for deviceManagement @@ -139,8 +142,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(CloudPcGalleryImage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcGalleryImage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 CloudPcGalleryImageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/galleryImages/{cloudPcGalleryImage%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 CloudPcGalleryImageItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/galleryImages/{cloudPcGalleryImage%2Did}{?%24expand,%24select}", rawUrl) @@ -200,11 +203,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); @@ -220,11 +223,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(CloudPcGalleryImage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcGalleryImage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CloudPcGalleryImage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcGalleryImage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -236,7 +239,8 @@ public RequestInformation ToPatchRequestInformation(CloudPcGalleryImage body, Ac /// /// Read the properties and relationships of a specific cloudPcGalleryImage object. /// - public class CloudPcGalleryImageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcGalleryImageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -261,3 +265,4 @@ public class CloudPcGalleryImageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/OnPremisesConnections/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/OnPremisesConnections/Count/CountRequestBuilder.cs index 50c812c985..bbea01c1ec 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/OnPremisesConnections/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/OnPremisesConnections/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.DeviceManagement.VirtualEndpoint.OnPremisesConnections.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}/deviceManagement/virtualEndpoint/onPremisesConnections/$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}/deviceManagement/virtualEndpoint/onPremisesConnections/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/vi /// 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/DeviceManagement/VirtualEndpoint/OnPremisesConnections/Item/CloudPcOnPremisesConnectionItemRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/OnPremisesConnections/Item/CloudPcOnPremisesConnectionItemRequestBuilder.cs index 2ea95ada4f..669c7019d9 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/OnPremisesConnections/Item/CloudPcOnPremisesConnectionItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/OnPremisesConnections/Item/CloudPcOnPremisesConnectionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.OnPremisesConnections.Item.RunHealthChecks; 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.DeviceManagement.VirtualEndpoint.OnPremisesConnections.Item /// /// Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity. /// - public class CloudPcOnPremisesConnectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcOnPremisesConnectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property. @@ -142,8 +145,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(CloudPcOnPremisesConnection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcOnPremisesConnection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,7 +174,7 @@ public Command BuildRunHealthChecksNavCommand() { var command = new Command("run-health-checks"); command.Description = "Provides operations to call the runHealthChecks method."; - var builder = new RunHealthChecksRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.OnPremisesConnections.Item.RunHealthChecks.RunHealthChecksRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -181,14 +184,14 @@ public Command BuildRunHealthChecksNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CloudPcOnPremisesConnectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%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 CloudPcOnPremisesConnectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%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(CloudPcOnPremisesConnection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcOnPremisesConnection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CloudPcOnPremisesConnection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcOnPremisesConnection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(CloudPcOnPremisesConnection /// /// Read the properties and relationships of the cloudPcOnPremisesConnection object. /// - public class CloudPcOnPremisesConnectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcOnPremisesConnectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class CloudPcOnPremisesConnectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/OnPremisesConnections/Item/RunHealthChecks/RunHealthChecksRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/OnPremisesConnections/Item/RunHealthChecks/RunHealthChecksRequestBuilder.cs index f835408d45..1df9b791b6 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/OnPremisesConnections/Item/RunHealthChecks/RunHealthChecksRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/OnPremisesConnections/Item/RunHealthChecks/RunHealthChecksRequestBuilder.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.DeviceManagement.VirtualEndpoint.OnPremisesConnections.Item.Run /// /// Provides operations to call the runHealthChecks method. /// - public class RunHealthChecksRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunHealthChecksRequestBuilder : BaseCliRequestBuilder { /// /// Run health checks on the cloudPcOnPremisesConnection object. It triggers a new health check for the cloudPcOnPremisesConnection (../resources/cloudpconpremisesconnection.md) object and changes the healthCheckStatus and [healthCheckStatusDetail properties when check finished. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RunHealthChecksRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%2Did}/runHealthChecks", 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 RunHealthChecksRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections/{cloudPcOnPremisesConnection%2Did}/runHealthChecks", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.OnPremisesConnections.Count; using ApiSdk.DeviceManagement.VirtualEndpoint.OnPremisesConnections.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.DeviceManagement.VirtualEndpoint.OnPremisesConnections /// /// Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity. /// - public class OnPremisesConnectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnPremisesConnectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new CloudPcOnPremisesConnectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.OnPremisesConnections.Item.CloudPcOnPremisesConnectionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.DeviceManagement.VirtualEndpoint.OnPremisesConnections.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,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(CloudPcOnPremisesConnection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcOnPremisesConnection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 OnPremisesConnectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections{?%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 OnPremisesConnectionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/onPremisesConnections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public OnPremisesConnectionsRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -239,11 +242,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(CloudPcOnPremisesConnection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcOnPremisesConnection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CloudPcOnPremisesConnection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcOnPremisesConnection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(CloudPcOnPremisesConnection b /// /// List properties and relationships of the cloudPcOnPremisesConnection objects. /// - public class OnPremisesConnectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnPremisesConnectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class OnPremisesConnectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Count/CountRequestBuilder.cs index 4cfd34585c..fd5aa06483 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.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}/deviceManagement/virtualEndpoint/provisioningPolicies/$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}/deviceManagement/virtualEndpoint/provisioningPolicies/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/vi /// 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/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assign/AssignPostRequestBody.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assign/AssignPostRequestBody.cs index 0a8982b22f..a96a8d5b72 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assign/AssignPostRequestBody.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assign/AssignPostRequestBody.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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AssignPostRequestBody : IAdditionalDataHolder, IParsable /// The assignments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assignments { get; set; } + public List? Assignments { get; set; } #nullable restore #else - public List Assignments { get; set; } + public List Assignments { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignPostRequestBody() { @@ -31,12 +33,12 @@ public AssignPostRequestBody() /// /// 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 AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assign.AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignPostRequestBody(); + return new global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assign.AssignPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(CloudPcProvisioningPolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(global::ApiSdk.Models.CloudPcProvisioningPolicyAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("assignments", Assignments); + writer.WriteCollectionOfObjectValues("assignments", Assignments); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assign/AssignRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assign/AssignRequestBuilder.cs index 0567ce8d7d..d24445c564 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assign/AssignRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assign/AssignRequestBuilder.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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assi /// /// Provides operations to call the assign method. /// - public class AssignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignRequestBuilder : BaseCliRequestBuilder { /// /// Assign a cloudPcProvisioningPolicy to user groups. @@ -43,8 +46,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(AssignPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assign.AssignPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 AssignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assign", 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 AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assign", rawUrl) @@ -84,11 +87,11 @@ public AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/v /// 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(AssignPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assign.AssignPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assign.AssignPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/AssignmentsRequestBuilder.cs index a3f67c24a0..2ae2f8541d 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Count; using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assi /// /// Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. @@ -31,8 +34,9 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new CloudPcProvisioningPolicyAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.CloudPcProvisioningPolicyAssignmentItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignedUsersNavCommand()); + commands.Add(builder.BuildAssignedUsersWithUserPrincipalNameRbCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +50,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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +89,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(CloudPcProvisioningPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcProvisioningPolicyAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -209,14 +213,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +233,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagem /// 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 +253,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(CloudPcProvisioningPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcProvisioningPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CloudPcProvisioningPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcProvisioningPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +269,8 @@ public RequestInformation ToPostRequestInformation(CloudPcProvisioningPolicyAssi /// /// A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +334,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Count/CountRequestBuilder.cs index c573b46aff..726e7ce14f 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assi /// /// 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}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/$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}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/vi /// 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/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/AssignedUsersRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/AssignedUsersRequestBuilder.cs index a52c12bc4d..61a032989f 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/AssignedUsersRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/AssignedUsersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Count; using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assi /// /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. /// - public class AssignedUsersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignedUsersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new UserItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Item.UserItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildMailboxSettingsNavCommand()); commands.Add(builder.BuildServiceProvisioningErrorsNavCommand()); @@ -45,7 +48,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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -163,14 +166,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 AssignedUsersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers{?%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 AssignedUsersRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -183,11 +186,11 @@ public AssignedUsersRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManag /// 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); @@ -198,7 +201,8 @@ public RequestInformation ToGetRequestInformation(Action /// The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. /// - public class AssignedUsersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignedUsersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -262,3 +266,4 @@ public class AssignedUsersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Count/CountRequestBuilder.cs index ced1c5eefe..73be6eca8a 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assi /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/$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}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/vi /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs index c3a08ce735..bd463c0d93 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assi /// /// Builds and executes requests for operations under \deviceManagement\virtualEndpoint\provisioningPolicies\{cloudPcProvisioningPolicy-id}\assignments\{cloudPcProvisioningPolicyAssignment-id}\assignedUsers\{user-id}\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -125,8 +128,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -149,14 +152,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -169,11 +172,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceMan /// 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); @@ -189,11 +192,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -205,7 +208,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,3 +234,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 00f1a83f60..74ea3db4fa 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/ServiceProvisioningErrors/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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assi /// /// 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 @@ -75,14 +78,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}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/serviceProvisioningErrors/$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}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/vi /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index dac049cbe2..516134d488 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Item.ServiceProvisioningErrors.Count; 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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assi /// /// Builds and executes requests for operations under \deviceManagement\virtualEndpoint\provisioningPolicies\{cloudPcProvisioningPolicy-id}\assignments\{cloudPcProvisioningPolicyAssignment-id}\assignedUsers\{user-id}\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Item.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var cloudPcProvisioningPolicyIdOption = new Option("--cloud-pc-provisioning-policy-id", description: "The unique identifier of cloudPcProvisioningPolicy") { }; cloudPcProvisioningPolicyIdOption.IsRequired = true; @@ -154,31 +157,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -187,9 +190,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/UserItemRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/UserItemRequestBuilder.cs index e9a3d52b58..f50e73c509 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/UserItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/UserItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Item.MailboxSettings; using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Item.ServiceProvisioningErrors; 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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assi /// /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. /// - public class UserItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserItemRequestBuilder : BaseCliRequestBuilder { /// /// The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. @@ -95,7 +98,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Item.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -113,7 +116,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Item.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%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 UserItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public UserItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. /// - public class UserItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class UserItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsersWithUserPrincipalName/AssignedUsersWithUserPrincipalNameRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsersWithUserPrincipalName/AssignedUsersWithUserPrincipalNameRequestBuilder.cs new file mode 100644 index 0000000000..bd7f6cb4ba --- /dev/null +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsersWithUserPrincipalName/AssignedUsersWithUserPrincipalNameRequestBuilder.cs @@ -0,0 +1,153 @@ +// +#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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsersWithUserPrincipalName +{ + /// + /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignedUsersWithUserPrincipalNameRequestBuilder : BaseCliRequestBuilder + { + /// + /// The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand."; + var cloudPcProvisioningPolicyIdOption = new Option("--cloud-pc-provisioning-policy-id", description: "The unique identifier of cloudPcProvisioningPolicy") { + }; + cloudPcProvisioningPolicyIdOption.IsRequired = true; + command.AddOption(cloudPcProvisioningPolicyIdOption); + var cloudPcProvisioningPolicyAssignmentIdOption = new Option("--cloud-pc-provisioning-policy-assignment-id", description: "The unique identifier of cloudPcProvisioningPolicyAssignment") { + }; + cloudPcProvisioningPolicyAssignmentIdOption.IsRequired = true; + command.AddOption(cloudPcProvisioningPolicyAssignmentIdOption); + var userPrincipalNameOption = new Option("--user-principal-name", description: "Alternate key of user") { + }; + userPrincipalNameOption.IsRequired = true; + command.AddOption(userPrincipalNameOption); + 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 cloudPcProvisioningPolicyId = invocationContext.ParseResult.GetValueForOption(cloudPcProvisioningPolicyIdOption); + var cloudPcProvisioningPolicyAssignmentId = invocationContext.ParseResult.GetValueForOption(cloudPcProvisioningPolicyAssignmentIdOption); + var userPrincipalName = invocationContext.ParseResult.GetValueForOption(userPrincipalNameOption); + 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; + }); + if (cloudPcProvisioningPolicyId is not null) requestInfo.PathParameters.Add("cloudPcProvisioningPolicy%2Did", cloudPcProvisioningPolicyId); + if (cloudPcProvisioningPolicyAssignmentId is not null) requestInfo.PathParameters.Add("cloudPcProvisioningPolicyAssignment%2Did", cloudPcProvisioningPolicyAssignmentId); + if (userPrincipalName is not null) requestInfo.PathParameters.Add("userPrincipalName", userPrincipalName); + 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 AssignedUsersWithUserPrincipalNameRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers(userPrincipalName='{userPrincipalName}'){?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public AssignedUsersWithUserPrincipalNameRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers(userPrincipalName='{userPrincipalName}'){?%24expand,%24select}", rawUrl) + { + } + /// + /// The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + /// + /// 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; + } + /// + /// The assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. Read-only. Supports$expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignedUsersWithUserPrincipalNameRequestBuilderGetQueryParameters + { + /// 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/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs index 2199372dfa..c12ea34752 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs @@ -1,7 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers; +using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsersWithUserPrincipalName; 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 +23,8 @@ namespace ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assi /// /// Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. /// - public class CloudPcProvisioningPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcProvisioningPolicyAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. @@ -30,7 +34,7 @@ public Command BuildAssignedUsersNavCommand() { var command = new Command("assigned-users"); command.Description = "Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity."; - var builder = new AssignedUsersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.AssignedUsersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -49,6 +53,23 @@ public Command BuildAssignedUsersNavCommand() return command; } /// + /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + /// + /// A + public Command BuildAssignedUsersWithUserPrincipalNameRbCommand() + { + var command = new Command("assigned-users-with-user-principal-name"); + command.Description = "Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity."; + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsersWithUserPrincipalName.AssignedUsersWithUserPrincipalNameRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Delete navigation property assignments for deviceManagement /// /// A @@ -182,8 +203,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(CloudPcProvisioningPolicyAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcProvisioningPolicyAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -205,14 +226,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 CloudPcProvisioningPolicyAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%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 CloudPcProvisioningPolicyAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -244,11 +265,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); @@ -264,11 +285,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(CloudPcProvisioningPolicyAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcProvisioningPolicyAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CloudPcProvisioningPolicyAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcProvisioningPolicyAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -280,7 +301,8 @@ public RequestInformation ToPatchRequestInformation(CloudPcProvisioningPolicyAss /// /// A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. /// - public class CloudPcProvisioningPolicyAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcProvisioningPolicyAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -305,3 +327,4 @@ public class CloudPcProvisioningPolicyAssignmentItemRequestBuilderGetQueryParame } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs index cbd16684a7..aedf14177e 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assign; using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments; 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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item /// /// Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. /// - public class CloudPcProvisioningPolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcProvisioningPolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. @@ -31,7 +34,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -58,7 +61,7 @@ public Command BuildAssignNavCommand() { var command = new Command("assign"); command.Description = "Provides operations to call the assign method."; - var builder = new AssignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assign.AssignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -187,8 +190,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(CloudPcProvisioningPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcProvisioningPolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -209,14 +212,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 CloudPcProvisioningPolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%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 CloudPcProvisioningPolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}{?%24expand,%24select}", rawUrl) @@ -248,11 +251,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); @@ -268,11 +271,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(CloudPcProvisioningPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcProvisioningPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CloudPcProvisioningPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcProvisioningPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -284,7 +287,8 @@ public RequestInformation ToPatchRequestInformation(CloudPcProvisioningPolicy bo /// /// Read the properties and relationships of a cloudPcProvisioningPolicy object. /// - public class CloudPcProvisioningPolicyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcProvisioningPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -309,3 +313,4 @@ public class CloudPcProvisioningPolicyItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs index f44403473e..feeaab2b42 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Count; using ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies /// /// Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. /// - public class ProvisioningPoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProvisioningPoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new CloudPcProvisioningPolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.CloudPcProvisioningPolicyItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentsNavCommand()); commands.Add(builder.BuildAssignNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -47,7 +50,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.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -82,8 +85,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(CloudPcProvisioningPolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcProvisioningPolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -200,14 +203,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 ProvisioningPoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies{?%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 ProvisioningPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -220,11 +223,11 @@ public ProvisioningPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/devi /// 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); @@ -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 ToPostRequestInformation(CloudPcProvisioningPolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcProvisioningPolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CloudPcProvisioningPolicy body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcProvisioningPolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPostRequestInformation(CloudPcProvisioningPolicy bod /// /// List properties and relationships of the cloudPcProvisioningPolicy objects. /// - public class ProvisioningPoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProvisioningPoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -320,3 +324,4 @@ public class ProvisioningPoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Count/CountRequestBuilder.cs index 561bb0be45..c2943958ff 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/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.DeviceManagement.VirtualEndpoint.UserSettings.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}/deviceManagement/virtualEndpoint/userSettings/$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}/deviceManagement/virtualEndpoint/userSettings/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/vi /// 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/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assign/AssignPostRequestBody.cs b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assign/AssignPostRequestBody.cs index d7d3a6adf2..77f0fec8d4 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assign/AssignPostRequestBody.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assign/AssignPostRequestBody.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.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AssignPostRequestBody : IAdditionalDataHolder, IParsable /// The assignments property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Assignments { get; set; } + public List? Assignments { get; set; } #nullable restore #else - public List Assignments { get; set; } + public List Assignments { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignPostRequestBody() { @@ -31,12 +33,12 @@ public AssignPostRequestBody() /// /// 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 AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assign.AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignPostRequestBody(); + return new global::ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assign.AssignPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(CloudPcUserSettingAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "assignments", n => { Assignments = n.GetCollectionOfObjectValues(global::ApiSdk.Models.CloudPcUserSettingAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("assignments", Assignments); + writer.WriteCollectionOfObjectValues("assignments", Assignments); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assign/AssignRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assign/AssignRequestBuilder.cs index a82a7d1e12..8c7d8cacac 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assign/AssignRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assign/AssignRequestBuilder.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.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assign /// /// Provides operations to call the assign method. /// - public class AssignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignRequestBuilder : BaseCliRequestBuilder { /// /// Assign a cloudPcUserSetting to user groups. @@ -43,8 +46,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(AssignPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assign.AssignPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 AssignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assign", 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 AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assign", rawUrl) @@ -84,11 +87,11 @@ public AssignRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/v /// 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(AssignPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assign.AssignPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assign.AssignPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(AssignPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/AssignmentsRequestBuilder.cs index fe014955c8..61eecdd399 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assignments.Count; using ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assignments.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.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. @@ -30,7 +33,7 @@ public class AssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new CloudPcUserSettingAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assignments.Item.CloudPcUserSettingAssignmentItemRequestBuilder(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.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assignments.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(CloudPcUserSettingAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcUserSettingAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagem /// 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); @@ -247,11 +250,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(CloudPcUserSettingAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcUserSettingAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CloudPcUserSettingAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcUserSettingAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(CloudPcUserSettingAssignment /// /// Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/Count/CountRequestBuilder.cs index b8ec78d1f3..bcfa19d571 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/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.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assignments. /// /// 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}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/$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}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/vi /// 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/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/Item/CloudPcUserSettingAssignmentItemRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/Item/CloudPcUserSettingAssignmentItemRequestBuilder.cs index 63deb8b3aa..a3057feda5 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/Item/CloudPcUserSettingAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/Assignments/Item/CloudPcUserSettingAssignmentItemRequestBuilder.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.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assignments. /// /// Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. /// - public class CloudPcUserSettingAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcUserSettingAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignments for deviceManagement @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(CloudPcUserSettingAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcUserSettingAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CloudPcUserSettingAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/{cloudPcUserSettingAssignment%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 CloudPcUserSettingAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}/assignments/{cloudPcUserSettingAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(CloudPcUserSettingAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcUserSettingAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CloudPcUserSettingAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcUserSettingAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(CloudPcUserSettingAssignment /// /// Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have cloudPCUserSetting assigned. Returned only on $expand. For an example, see Get cloudPcUserSetting. /// - public class CloudPcUserSettingAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcUserSettingAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class CloudPcUserSettingAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/CloudPcUserSettingItemRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/CloudPcUserSettingItemRequestBuilder.cs index a50e84e80d..a1d3f6fd40 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/CloudPcUserSettingItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/Item/CloudPcUserSettingItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assign; using ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assignments; 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.DeviceManagement.VirtualEndpoint.UserSettings.Item /// /// Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity. /// - public class CloudPcUserSettingItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcUserSettingItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity. @@ -31,7 +34,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.cloudPcUserSetting entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -58,7 +61,7 @@ public Command BuildAssignNavCommand() { var command = new Command("assign"); command.Description = "Provides operations to call the assign method."; - var builder = new AssignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.Assign.AssignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -187,8 +190,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(CloudPcUserSetting.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcUserSetting.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -209,14 +212,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 CloudPcUserSettingItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%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 CloudPcUserSettingItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/userSettings/{cloudPcUserSetting%2Did}{?%24expand,%24select}", rawUrl) @@ -248,11 +251,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); @@ -268,11 +271,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(CloudPcUserSetting body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcUserSetting body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CloudPcUserSetting body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CloudPcUserSetting body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -284,7 +287,8 @@ public RequestInformation ToPatchRequestInformation(CloudPcUserSetting body, Act /// /// Read the properties and relationships of a cloudPcUserSetting object. /// - public class CloudPcUserSettingItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloudPcUserSettingItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -309,3 +313,4 @@ public class CloudPcUserSettingItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/UserSettingsRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/UserSettingsRequestBuilder.cs index e5e3abb6d0..78ca151c0a 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/UserSettingsRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/UserSettings/UserSettingsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Count; using ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.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.DeviceManagement.VirtualEndpoint.UserSettings /// /// Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity. /// - public class UserSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new CloudPcUserSettingItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.Item.CloudPcUserSettingItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentsNavCommand()); commands.Add(builder.BuildAssignNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -47,7 +50,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.DeviceManagement.VirtualEndpoint.UserSettings.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -82,8 +85,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(CloudPcUserSetting.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CloudPcUserSetting.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -200,14 +203,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 UserSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint/userSettings{?%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 UserSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint/userSettings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -220,11 +223,11 @@ public UserSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManage /// 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); @@ -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 ToPostRequestInformation(CloudPcUserSetting body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcUserSetting body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CloudPcUserSetting body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CloudPcUserSetting body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPostRequestInformation(CloudPcUserSetting body, Acti /// /// Get a list of cloudPcUserSetting objects and their properties. /// - public class UserSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserSettingsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -320,3 +324,4 @@ public class UserSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/VirtualEndpoint/VirtualEndpointRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/VirtualEndpointRequestBuilder.cs index 3b934a21af..232c5de299 100644 --- a/src/generated/DeviceManagement/VirtualEndpoint/VirtualEndpointRequestBuilder.cs +++ b/src/generated/DeviceManagement/VirtualEndpoint/VirtualEndpointRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.VirtualEndpoint.AuditEvents; using ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs; using ApiSdk.DeviceManagement.VirtualEndpoint.DeviceImages; @@ -8,6 +9,7 @@ using ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -26,7 +28,8 @@ namespace ApiSdk.DeviceManagement.VirtualEndpoint /// /// Provides operations to manage the virtualEndpoint property of the microsoft.graph.deviceManagement entity. /// - public class VirtualEndpointRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEndpointRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity. @@ -36,7 +39,7 @@ public Command BuildAuditEventsNavCommand() { var command = new Command("audit-events"); command.Description = "Provides operations to manage the auditEvents property of the microsoft.graph.virtualEndpoint entity."; - var builder = new AuditEventsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.AuditEvents.AuditEventsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -64,7 +67,7 @@ public Command BuildCloudPCsNavCommand() { var command = new Command("cloud-p-cs"); command.Description = "Provides operations to manage the cloudPCs property of the microsoft.graph.virtualEndpoint entity."; - var builder = new CloudPCsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.CloudPCs.CloudPCsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -120,7 +123,7 @@ public Command BuildDeviceImagesNavCommand() { var command = new Command("device-images"); command.Description = "Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity."; - var builder = new DeviceImagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.DeviceImages.DeviceImagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -148,7 +151,7 @@ public Command BuildGalleryImagesNavCommand() { var command = new Command("gallery-images"); command.Description = "Provides operations to manage the galleryImages property of the microsoft.graph.virtualEndpoint entity."; - var builder = new GalleryImagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.GalleryImages.GalleryImagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -221,7 +224,7 @@ public Command BuildOnPremisesConnectionsNavCommand() { var command = new Command("on-premises-connections"); command.Description = "Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity."; - var builder = new OnPremisesConnectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.OnPremisesConnections.OnPremisesConnectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -265,8 +268,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.VirtualEndpoint.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.VirtualEndpoint.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -293,7 +296,7 @@ public Command BuildProvisioningPoliciesNavCommand() { var command = new Command("provisioning-policies"); command.Description = "Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity."; - var builder = new ProvisioningPoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.ProvisioningPoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -320,7 +323,7 @@ public Command BuildUserSettingsNavCommand() { var command = new Command("user-settings"); command.Description = "Provides operations to manage the userSettings property of the microsoft.graph.virtualEndpoint entity."; - var builder = new UserSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.VirtualEndpoint.UserSettings.UserSettingsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -340,14 +343,14 @@ public Command BuildUserSettingsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public VirtualEndpointRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint{?%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 VirtualEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint{?%24expand,%24select}", rawUrl) @@ -379,11 +382,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); @@ -399,11 +402,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.VirtualEndpoint body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.VirtualEndpoint body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.VirtualEndpoint body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.VirtualEndpoint body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -415,7 +418,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.VirtualEndpoin /// /// Virtual endpoint /// - public class VirtualEndpointRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEndpointRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -440,3 +444,4 @@ public class VirtualEndpointRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs index 1b4c40f857..e2ee1a5f4b 100644 --- a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/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.DeviceManagement.WindowsAutopilotDeviceIdentities.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}/deviceManagement/windowsAutopilotDeviceIdentities/$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}/deviceManagement/windowsAutopilotDeviceIdentities/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/wi /// 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/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDevicePostRequestBody.cs b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDevicePostRequestBody.cs index 13ffa49f3b..ce1b97a87f 100644 --- a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDevicePostRequestBody.cs +++ b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDevicePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.AssignUserToDevice { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignUserToDevicePostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignUserToDevicePostRequestBody : 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. @@ -29,7 +31,7 @@ public class AssignUserToDevicePostRequestBody : IAdditionalDataHolder, IParsabl public string UserPrincipalName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignUserToDevicePostRequestBody() { @@ -38,12 +40,12 @@ public AssignUserToDevicePostRequestBody() /// /// 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 AssignUserToDevicePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.AssignUserToDevice.AssignUserToDevicePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignUserToDevicePostRequestBody(); + return new global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.AssignUserToDevice.AssignUserToDevicePostRequestBody(); } /// /// The deserialization information for the current model @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.cs b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.cs index 1fbdc2ede4..0a3c6d1dbe 100644 --- a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/AssignUserToDevice/AssignUserToDeviceRequestBuilder.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.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.AssignUs /// /// Provides operations to call the assignUserToDevice method. /// - public class AssignUserToDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignUserToDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Assigns user to Autopilot devices. @@ -43,8 +46,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(AssignUserToDevicePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.AssignUserToDevice.AssignUserToDevicePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 AssignUserToDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/{windowsAutopilotDeviceIdentity%2Did}/assignUserToDevice", 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 AssignUserToDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/{windowsAutopilotDeviceIdentity%2Did}/assignUserToDevice", rawUrl) @@ -84,11 +87,11 @@ public AssignUserToDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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(AssignUserToDevicePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.AssignUserToDevice.AssignUserToDevicePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignUserToDevicePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.AssignUserToDevice.AssignUserToDevicePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(AssignUserToDevicePostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.cs b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.cs index 6d64b1df09..94da00d326 100644 --- a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UnassignUserFromDevice/UnassignUserFromDeviceRequestBuilder.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.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.Unassign /// /// Provides operations to call the unassignUserFromDevice method. /// - public class UnassignUserFromDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnassignUserFromDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Unassigns the user from an Autopilot device. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UnassignUserFromDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/{windowsAutopilotDeviceIdentity%2Did}/unassignUserFromDevice", 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 UnassignUserFromDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/{windowsAutopilotDeviceIdentity%2Did}/unassignUserFromDevice", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.UpdateDeviceProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UpdateDevicePropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UpdateDevicePropertiesPostRequestBody : 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. @@ -45,7 +47,7 @@ public class UpdateDevicePropertiesPostRequestBody : IAdditionalDataHolder, IPar public string UserPrincipalName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UpdateDevicePropertiesPostRequestBody() { @@ -54,12 +56,12 @@ public UpdateDevicePropertiesPostRequestBody() /// /// 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 UpdateDevicePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.UpdateDeviceProperties.UpdateDevicePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UpdateDevicePropertiesPostRequestBody(); + return new global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.UpdateDeviceProperties.UpdateDevicePropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.cs b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.cs index 4fa3206005..e3cb36a43e 100644 --- a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/UpdateDeviceProperties/UpdateDevicePropertiesRequestBuilder.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.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.UpdateDe /// /// Provides operations to call the updateDeviceProperties method. /// - public class UpdateDevicePropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UpdateDevicePropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Updates properties on Autopilot devices. @@ -43,8 +46,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(UpdateDevicePropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.UpdateDeviceProperties.UpdateDevicePropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 UpdateDevicePropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/{windowsAutopilotDeviceIdentity%2Did}/updateDeviceProperties", 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 UpdateDevicePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/{windowsAutopilotDeviceIdentity%2Did}/updateDeviceProperties", rawUrl) @@ -84,11 +87,11 @@ public UpdateDevicePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/de /// 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(UpdateDevicePropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.UpdateDeviceProperties.UpdateDevicePropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UpdateDevicePropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.UpdateDeviceProperties.UpdateDevicePropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(UpdateDevicePropertiesPostReq } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.cs b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.cs index 2dfb3e53cc..b15e2c4cb1 100644 --- a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/Item/WindowsAutopilotDeviceIdentityItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.AssignUserToDevice; using ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.UnassignUserFromDevice; using ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.UpdateDeviceProperties; 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.DeviceManagement.WindowsAutopilotDeviceIdentities.Item /// /// Provides operations to manage the windowsAutopilotDeviceIdentities property of the microsoft.graph.deviceManagement entity. /// - public class WindowsAutopilotDeviceIdentityItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsAutopilotDeviceIdentityItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the assignUserToDevice method. @@ -32,7 +35,7 @@ public Command BuildAssignUserToDeviceNavCommand() { var command = new Command("assign-user-to-device"); command.Description = "Provides operations to call the assignUserToDevice method."; - var builder = new AssignUserToDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.AssignUserToDevice.AssignUserToDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -160,8 +163,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(WindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,7 +192,7 @@ public Command BuildUnassignUserFromDeviceNavCommand() { var command = new Command("unassign-user-from-device"); command.Description = "Provides operations to call the unassignUserFromDevice method."; - var builder = new UnassignUserFromDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.UnassignUserFromDevice.UnassignUserFromDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -206,7 +209,7 @@ public Command BuildUpdateDevicePropertiesNavCommand() { var command = new Command("update-device-properties"); command.Description = "Provides operations to call the updateDeviceProperties method."; - var builder = new UpdateDevicePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.UpdateDeviceProperties.UpdateDevicePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -216,14 +219,14 @@ public Command BuildUpdateDevicePropertiesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WindowsAutopilotDeviceIdentityItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/{windowsAutopilotDeviceIdentity%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 WindowsAutopilotDeviceIdentityItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities/{windowsAutopilotDeviceIdentity%2Did}{?%24expand,%24select}", rawUrl) @@ -255,11 +258,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); @@ -275,11 +278,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(WindowsAutopilotDeviceIdentity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsAutopilotDeviceIdentity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WindowsAutopilotDeviceIdentity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsAutopilotDeviceIdentity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -291,7 +294,8 @@ public RequestInformation ToPatchRequestInformation(WindowsAutopilotDeviceIdenti /// /// Read properties and relationships of the windowsAutopilotDeviceIdentity object. /// - public class WindowsAutopilotDeviceIdentityItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsAutopilotDeviceIdentityItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -316,3 +320,4 @@ public class WindowsAutopilotDeviceIdentityItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.cs b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.cs index 5b090a189c..9e13645fd2 100644 --- a/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsAutopilotDeviceIdentities/WindowsAutopilotDeviceIdentitiesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Count; using ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.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.DeviceManagement.WindowsAutopilotDeviceIdentities /// /// Provides operations to manage the windowsAutopilotDeviceIdentities property of the microsoft.graph.deviceManagement entity. /// - public class WindowsAutopilotDeviceIdentitiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsAutopilotDeviceIdentitiesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the windowsAutopilotDeviceIdentities property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WindowsAutopilotDeviceIdentityItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities.Item.WindowsAutopilotDeviceIdentityItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignUserToDeviceNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.DeviceManagement.WindowsAutopilotDeviceIdentities.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(WindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsAutopilotDeviceIdentity.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 WindowsAutopilotDeviceIdentitiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities{?%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 WindowsAutopilotDeviceIdentitiesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsAutopilotDeviceIdentities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -221,11 +224,11 @@ public WindowsAutopilotDeviceIdentitiesRequestBuilder(string rawUrl) : base("{+b /// 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(WindowsAutopilotDeviceIdentity body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsAutopilotDeviceIdentity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WindowsAutopilotDeviceIdentity body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsAutopilotDeviceIdentity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -257,7 +260,8 @@ public RequestInformation ToPostRequestInformation(WindowsAutopilotDeviceIdentit /// /// List properties and relationships of the windowsAutopilotDeviceIdentity objects. /// - public class WindowsAutopilotDeviceIdentitiesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsAutopilotDeviceIdentitiesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -321,3 +325,4 @@ public class WindowsAutopilotDeviceIdentitiesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Count/CountRequestBuilder.cs index bab63db5cf..6effb7e996 100644 --- a/src/generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/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.DeviceManagement.WindowsInformationProtectionAppLearningSummari /// /// 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}/deviceManagement/windowsInformationProtectionAppLearningSummaries/$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}/deviceManagement/windowsInformationProtectionAppLearningSummaries/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/wi /// 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/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.cs b/src/generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.cs index 192a6bc931..bda699b361 100644 --- a/src/generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/Item/WindowsInformationProtectionAppLearningSummaryItemRequestBuilder.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.DeviceManagement.WindowsInformationProtectionAppLearningSummari /// /// Provides operations to manage the windowsInformationProtectionAppLearningSummaries property of the microsoft.graph.deviceManagement entity. /// - public class WindowsInformationProtectionAppLearningSummaryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLearningSummaryItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a windowsInformationProtectionAppLearningSummary. @@ -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(WindowsInformationProtectionAppLearningSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionAppLearningSummary.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 WindowsInformationProtectionAppLearningSummaryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsInformationProtectionAppLearningSummaries/{windowsInformationProtectionAppLearningSummary%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 WindowsInformationProtectionAppLearningSummaryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsInformationProtectionAppLearningSummaries/{windowsInformationProtectionAppLearningSummary%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(WindowsInformationProtectionAppLearningSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLearningSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WindowsInformationProtectionAppLearningSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLearningSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection /// /// Read properties and relationships of the windowsInformationProtectionAppLearningSummary object. /// - public class WindowsInformationProtectionAppLearningSummaryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLearningSummaryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class WindowsInformationProtectionAppLearningSummaryItemRequestBuilderGet } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.cs b/src/generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.cs index 88b2bf4a7e..cce426f775 100644 --- a/src/generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsInformationProtectionAppLearningSummaries/WindowsInformationProtectionAppLearningSummariesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.WindowsInformationProtectionAppLearningSummaries.Count; using ApiSdk.DeviceManagement.WindowsInformationProtectionAppLearningSummaries.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.DeviceManagement.WindowsInformationProtectionAppLearningSummari /// /// Provides operations to manage the windowsInformationProtectionAppLearningSummaries property of the microsoft.graph.deviceManagement entity. /// - public class WindowsInformationProtectionAppLearningSummariesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLearningSummariesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the windowsInformationProtectionAppLearningSummaries property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class WindowsInformationProtectionAppLearningSummariesRequestBuilder : Ba public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new WindowsInformationProtectionAppLearningSummaryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsInformationProtectionAppLearningSummaries.Item.WindowsInformationProtectionAppLearningSummaryItemRequestBuilder(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.DeviceManagement.WindowsInformationProtectionAppLearningSummaries.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(WindowsInformationProtectionAppLearningSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionAppLearningSummary.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 WindowsInformationProtectionAppLearningSummariesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsInformationProtectionAppLearningSummaries{?%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 WindowsInformationProtectionAppLearningSummariesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsInformationProtectionAppLearningSummaries{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public WindowsInformationProtectionAppLearningSummariesRequestBuilder(string raw /// 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(WindowsInformationProtectionAppLearningSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLearningSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WindowsInformationProtectionAppLearningSummary body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionAppLearningSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionA /// /// List properties and relationships of the windowsInformationProtectionAppLearningSummary objects. /// - public class WindowsInformationProtectionAppLearningSummariesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionAppLearningSummariesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class WindowsInformationProtectionAppLearningSummariesRequestBuilderGetQu } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Count/CountRequestBuilder.cs index ed5c51b4f1..944a40df3b 100644 --- a/src/generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/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.DeviceManagement.WindowsInformationProtectionNetworkLearningSum /// /// 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}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/$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}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/wi /// 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/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.cs b/src/generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.cs index 9bdee329af..a2ae3465c8 100644 --- a/src/generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/Item/WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder.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.DeviceManagement.WindowsInformationProtectionNetworkLearningSum /// /// Provides operations to manage the windowsInformationProtectionNetworkLearningSummaries property of the microsoft.graph.deviceManagement entity. /// - public class WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a windowsInformationProtectionNetworkLearningSummary. @@ -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(WindowsInformationProtectionNetworkLearningSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionNetworkLearningSummary.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 WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/{windowsInformationProtectionNetworkLearningSummary%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 WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries/{windowsInformationProtectionNetworkLearningSummary%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(WindowsInformationProtectionNetworkLearningSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionNetworkLearningSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WindowsInformationProtectionNetworkLearningSummary body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionNetworkLearningSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(WindowsInformationProtection /// /// Read properties and relationships of the windowsInformationProtectionNetworkLearningSummary object. /// - public class WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilde } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.cs b/src/generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.cs index b551bcf5d6..fd71656b2f 100644 --- a/src/generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsInformationProtectionNetworkLearningSummaries/WindowsInformationProtectionNetworkLearningSummariesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.WindowsInformationProtectionNetworkLearningSummaries.Count; using ApiSdk.DeviceManagement.WindowsInformationProtectionNetworkLearningSummaries.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.DeviceManagement.WindowsInformationProtectionNetworkLearningSum /// /// Provides operations to manage the windowsInformationProtectionNetworkLearningSummaries property of the microsoft.graph.deviceManagement entity. /// - public class WindowsInformationProtectionNetworkLearningSummariesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionNetworkLearningSummariesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the windowsInformationProtectionNetworkLearningSummaries property of the microsoft.graph.deviceManagement entity. @@ -30,7 +33,7 @@ public class WindowsInformationProtectionNetworkLearningSummariesRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsInformationProtectionNetworkLearningSummaries.Item.WindowsInformationProtectionNetworkLearningSummaryItemRequestBuilder(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.DeviceManagement.WindowsInformationProtectionNetworkLearningSummaries.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(WindowsInformationProtectionNetworkLearningSummary.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsInformationProtectionNetworkLearningSummary.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 WindowsInformationProtectionNetworkLearningSummariesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries{?%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 WindowsInformationProtectionNetworkLearningSummariesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsInformationProtectionNetworkLearningSummaries{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public WindowsInformationProtectionNetworkLearningSummariesRequestBuilder(string /// 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(WindowsInformationProtectionNetworkLearningSummary body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionNetworkLearningSummary body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WindowsInformationProtectionNetworkLearningSummary body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsInformationProtectionNetworkLearningSummary body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(WindowsInformationProtectionN /// /// List properties and relationships of the windowsInformationProtectionNetworkLearningSummary objects. /// - public class WindowsInformationProtectionNetworkLearningSummariesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsInformationProtectionNetworkLearningSummariesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class WindowsInformationProtectionNetworkLearningSummariesRequestBuilderG } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsMalwareInformation/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/WindowsMalwareInformation/Count/CountRequestBuilder.cs index 2461eba82f..1f09d3e551 100644 --- a/src/generated/DeviceManagement/WindowsMalwareInformation/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsMalwareInformation/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.DeviceManagement.WindowsMalwareInformation.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}/deviceManagement/windowsMalwareInformation/$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}/deviceManagement/windowsMalwareInformation/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/wi /// 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/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Count/CountRequestBuilder.cs index 4663a24a63..688e2b4826 100644 --- a/src/generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/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.DeviceManagement.WindowsMalwareInformation.Item.DeviceMalwareSt /// /// 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}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates/$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}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/wi /// 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/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.cs b/src/generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.cs index b342e597cc..8f869224ca 100644 --- a/src/generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/DeviceMalwareStatesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.WindowsMalwareInformation.Item.DeviceMalwareStates.Count; using ApiSdk.DeviceManagement.WindowsMalwareInformation.Item.DeviceMalwareStates.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.DeviceManagement.WindowsMalwareInformation.Item.DeviceMalwareSt /// /// Provides operations to manage the deviceMalwareStates property of the microsoft.graph.windowsMalwareInformation entity. /// - public class DeviceMalwareStatesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceMalwareStatesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceMalwareStates property of the microsoft.graph.windowsMalwareInformation entity. @@ -30,7 +33,7 @@ public class DeviceMalwareStatesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new MalwareStateForWindowsDeviceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsMalwareInformation.Item.DeviceMalwareStates.Item.MalwareStateForWindowsDeviceItemRequestBuilder(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.DeviceManagement.WindowsMalwareInformation.Item.DeviceMalwareStates.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(MalwareStateForWindowsDevice.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MalwareStateForWindowsDevice.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 DeviceMalwareStatesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates{?%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 DeviceMalwareStatesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public DeviceMalwareStatesRequestBuilder(string rawUrl) : base("{+baseurl}/devic /// 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(MalwareStateForWindowsDevice body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MalwareStateForWindowsDevice body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MalwareStateForWindowsDevice body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.MalwareStateForWindowsDevice body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(MalwareStateForWindowsDevice /// /// List properties and relationships of the malwareStateForWindowsDevice objects. /// - public class DeviceMalwareStatesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceMalwareStatesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class DeviceMalwareStatesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.cs b/src/generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.cs index 0b96cf5537..3c6805a1ba 100644 --- a/src/generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsMalwareInformation/Item/DeviceMalwareStates/Item/MalwareStateForWindowsDeviceItemRequestBuilder.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.DeviceManagement.WindowsMalwareInformation.Item.DeviceMalwareSt /// /// Provides operations to manage the deviceMalwareStates property of the microsoft.graph.windowsMalwareInformation entity. /// - public class MalwareStateForWindowsDeviceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MalwareStateForWindowsDeviceItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a malwareStateForWindowsDevice. @@ -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(MalwareStateForWindowsDevice.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MalwareStateForWindowsDevice.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 MalwareStateForWindowsDeviceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates/{malwareStateForWindowsDevice%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 MalwareStateForWindowsDeviceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}/deviceMalwareStates/{malwareStateForWindowsDevice%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(MalwareStateForWindowsDevice body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MalwareStateForWindowsDevice body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MalwareStateForWindowsDevice body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MalwareStateForWindowsDevice body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(MalwareStateForWindowsDevice /// /// Read properties and relationships of the malwareStateForWindowsDevice object. /// - public class MalwareStateForWindowsDeviceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MalwareStateForWindowsDeviceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class MalwareStateForWindowsDeviceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.cs b/src/generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.cs index fe8a7e5dea..ed6dd51553 100644 --- a/src/generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsMalwareInformation/Item/WindowsMalwareInformationItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.WindowsMalwareInformation.Item.DeviceMalwareStates; 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.DeviceManagement.WindowsMalwareInformation.Item /// /// Provides operations to manage the windowsMalwareInformation property of the microsoft.graph.deviceManagement entity. /// - public class WindowsMalwareInformationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsMalwareInformationItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes a windowsMalwareInformation. @@ -66,7 +69,7 @@ public Command BuildDeviceMalwareStatesNavCommand() { var command = new Command("device-malware-states"); command.Description = "Provides operations to manage the deviceMalwareStates property of the microsoft.graph.windowsMalwareInformation entity."; - var builder = new DeviceMalwareStatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsMalwareInformation.Item.DeviceMalwareStates.DeviceMalwareStatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -169,8 +172,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.WindowsMalwareInformation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsMalwareInformation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -191,14 +194,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 WindowsMalwareInformationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%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 WindowsMalwareInformationItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsMalwareInformation/{windowsMalwareInformation%2Did}{?%24expand,%24select}", rawUrl) @@ -230,11 +233,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); @@ -250,11 +253,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.WindowsMalwareInformation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsMalwareInformation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.WindowsMalwareInformation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WindowsMalwareInformation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.WindowsMalware /// /// Read properties and relationships of the windowsMalwareInformation object. /// - public class WindowsMalwareInformationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsMalwareInformationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -291,3 +295,4 @@ public class WindowsMalwareInformationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.cs b/src/generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.cs index d015cb1c29..62dffac524 100644 --- a/src/generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.cs +++ b/src/generated/DeviceManagement/WindowsMalwareInformation/WindowsMalwareInformationRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DeviceManagement.WindowsMalwareInformation.Count; using ApiSdk.DeviceManagement.WindowsMalwareInformation.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.DeviceManagement.WindowsMalwareInformation /// /// Provides operations to manage the windowsMalwareInformation property of the microsoft.graph.deviceManagement entity. /// - public class WindowsMalwareInformationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsMalwareInformationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the windowsMalwareInformation property of the microsoft.graph.deviceManagement entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WindowsMalwareInformationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.WindowsMalwareInformation.Item.WindowsMalwareInformationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDeviceMalwareStatesNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.DeviceManagement.WindowsMalwareInformation.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.WindowsMalwareInformation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WindowsMalwareInformation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 WindowsMalwareInformationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/windowsMalwareInformation{?%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 WindowsMalwareInformationRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/windowsMalwareInformation{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public WindowsMalwareInformationRequestBuilder(string rawUrl) : base("{+baseurl} /// 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); @@ -239,11 +242,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(ApiSdk.Models.WindowsMalwareInformation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsMalwareInformation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.WindowsMalwareInformation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WindowsMalwareInformation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.WindowsMalwareI /// /// List properties and relationships of the windowsMalwareInformation objects. /// - public class WindowsMalwareInformationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WindowsMalwareInformationRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class WindowsMalwareInformationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Count/CountRequestBuilder.cs b/src/generated/Devices/Count/CountRequestBuilder.cs index ad33a0d0bd..a5ba936d60 100644 --- a/src/generated/Devices/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/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.Devices.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 @@ -64,14 +67,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}/devices/$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}/devices/$count{?%24filter,%24search}", rawUrl) @@ -84,11 +87,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/$count{?%24 /// 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); @@ -99,7 +102,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 @@ -124,3 +128,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Delta/DeltaGetResponse.cs b/src/generated/Devices/Delta/DeltaGetResponse.cs index 2c153ac9b7..f1d06a352b 100644 --- a/src/generated/Devices/Delta/DeltaGetResponse.cs +++ b/src/generated/Devices/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Devices.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Devices.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Devices.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Device.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Device.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Delta/DeltaRequestBuilder.cs b/src/generated/Devices/Delta/DeltaRequestBuilder.cs index 678bf4026e..bd4715e644 100644 --- a/src/generated/Devices/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Devices/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Devices.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Get newly created, updated, or deleted devices without performing a full read of the entire resource collection. For more information, see Using delta query. + /// Get newly created, updated, or deleted devices without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get newly created, updated, or deleted devices without performing a full read of the entire resource collection. For more information, see Using delta query.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/device-delta?view=graph-rest-1.0"; + command.Description = "Get newly created, updated, or deleted devices without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/device-delta?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -118,31 +121,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/devices/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get newly created, updated, or deleted devices without performing a full read of the entire resource collection. For more information, see Using delta query. + /// Get newly created, updated, or deleted devices without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -151,9 +154,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get newly created, updated, or deleted devices without performing a full read of the entire resource collection. For more information, see Using delta query. + /// Get newly created, updated, or deleted devices without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/DevicesRequestBuilder.cs b/src/generated/Devices/DevicesRequestBuilder.cs index f5259d50b4..7ac6a81f69 100644 --- a/src/generated/Devices/DevicesRequestBuilder.cs +++ b/src/generated/Devices/DevicesRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Count; using ApiSdk.Devices.Delta; using ApiSdk.Devices.GetAvailableExtensionProperties; @@ -7,6 +8,7 @@ using ApiSdk.Devices.ValidateProperties; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Devices /// /// Provides operations to manage the collection of device entities. /// - public class DevicesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DevicesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of device entities. @@ -35,7 +38,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DeviceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.DeviceItemRequestBuilder(PathParameters); commands.Add(builder.BuildCheckMemberGroupsNavCommand()); commands.Add(builder.BuildCheckMemberObjectsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -59,7 +62,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.Devices.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -94,8 +97,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.Device.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Device.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -122,7 +125,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -139,7 +142,7 @@ public Command BuildGetAvailableExtensionPropertiesNavCommand() { var command = new Command("get-available-extension-properties"); command.Description = "Provides operations to call the getAvailableExtensionProperties method."; - var builder = new GetAvailableExtensionPropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -156,7 +159,7 @@ public Command BuildGetByIdsNavCommand() { var command = new Command("get-by-ids"); command.Description = "Provides operations to call the getByIds method."; - var builder = new GetByIdsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.GetByIds.GetByIdsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -277,7 +280,7 @@ public Command BuildValidatePropertiesNavCommand() { var command = new Command("validate-properties"); command.Description = "Provides operations to call the validateProperties method."; - var builder = new ValidatePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.ValidateProperties.ValidatePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -287,14 +290,14 @@ public Command BuildValidatePropertiesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DevicesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices{?%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 DevicesRequestBuilder(string rawUrl) : base("{+baseurl}/devices{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -307,11 +310,11 @@ public DevicesRequestBuilder(string rawUrl) : base("{+baseurl}/devices{?%24count /// 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); @@ -327,11 +330,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(ApiSdk.Models.Device body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Device body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.Device body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Device body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -343,7 +346,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.Device body, Ac /// /// Retrieve a list of device objects registered in the organization. /// - public class DevicesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DevicesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -407,3 +411,4 @@ public class DevicesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index ffa4768866..d725ee05b5 100644 --- a/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Devices.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetAvailableExtensionPropertiesPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHol /// The isSyncedFromOnPremises property public bool? IsSyncedFromOnPremises { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAvailableExtensionPropertiesPostRequestBody() { @@ -24,12 +26,12 @@ public GetAvailableExtensionPropertiesPostRequestBody() /// /// 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 GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Devices.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostRequestBody(); + return new global::ApiSdk.Devices.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 9c3289b14f..3ddd2be4f2 100644 --- a/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Devices.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAvailableExtensionPropertiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Devices.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostResponse(); + return new global::ApiSdk.Devices.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExtensionProperty.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 2b5d4a9f4e..6510022bf2 100644 --- a/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/generated/Devices/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.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.Devices.GetAvailableExtensionProperties /// /// Provides operations to call the getAvailableExtensionProperties method. /// - public class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: @@ -50,8 +53,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(GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Devices.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetAvailableExtensionPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/getAvailableExtensionProperties", 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 GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/devices/getAvailableExtensionProperties", rawUrl) @@ -101,11 +104,11 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+ba /// 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(GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/GetByIds/GetByIdsPostRequestBody.cs b/src/generated/Devices/GetByIds/GetByIdsPostRequestBody.cs index e396604544..dcdb1311af 100644 --- a/src/generated/Devices/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/generated/Devices/GetByIds/GetByIdsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Devices.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetByIdsPostRequestBody : 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. @@ -29,7 +31,7 @@ public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable public List Types { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetByIdsPostRequestBody() { @@ -38,12 +40,12 @@ public GetByIdsPostRequestBody() /// /// 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 GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Devices.GetByIds.GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostRequestBody(); + return new global::ApiSdk.Devices.GetByIds.GetByIdsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/GetByIds/GetByIdsPostResponse.cs b/src/generated/Devices/GetByIds/GetByIdsPostResponse.cs index b0787584fe..8d3978d8bb 100644 --- a/src/generated/Devices/GetByIds/GetByIdsPostResponse.cs +++ b/src/generated/Devices/GetByIds/GetByIdsPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Devices.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetByIdsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Devices.GetByIds.GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostResponse(); + return new global::ApiSdk.Devices.GetByIds.GetByIdsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/GetByIds/GetByIdsRequestBuilder.cs b/src/generated/Devices/GetByIds/GetByIdsRequestBuilder.cs index 2f4bc2d3ff..c01253de0d 100644 --- a/src/generated/Devices/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/generated/Devices/GetByIds/GetByIdsRequestBuilder.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.Devices.GetByIds /// /// Provides operations to call the getByIds method. /// - public class GetByIdsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetByIdsRequestBuilder : BaseCliRequestBuilder { /// /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -50,8 +53,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(GetByIdsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Devices.GetByIds.GetByIdsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetByIdsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/getByIds", 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 GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/devices/getByIds", rawUrl) @@ -101,11 +104,11 @@ public GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/devices/getByIds /// 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(GetByIdsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index a63313ef3f..ccc44c5b05 100644 --- a/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Devices.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberGroupsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List GroupIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberGroupsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberGroupsPostRequestBody() /// /// 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 CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Devices.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostRequestBody(); + return new global::ApiSdk.Devices.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 8bb0ccfeec..637197ce52 100644 --- a/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.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.Devices.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountRespon /// /// 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 new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Devices.Item.CheckMemberGroups.CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostResponse(); + return new global::ApiSdk.Devices.Item.CheckMemberGroups.CheckMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index ce6e03f722..a7129e56a4 100644 --- a/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/generated/Devices/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Devices.Item.CheckMemberGroups /// /// Provides operations to call the checkMemberGroups method. /// - public class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; + command.Description = "Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; var deviceIdOption = new Option("--device-id", description: "The unique identifier of device") { }; deviceIdOption.IsRequired = true; @@ -55,8 +58,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(CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Devices.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 CheckMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/checkMemberGroups", 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 CheckMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// /// 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 ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index ab07c57fb6..70cea5b08f 100644 --- a/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Devices.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberObjectsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsabl public List Ids { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberObjectsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberObjectsPostRequestBody() /// /// 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 CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Devices.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostRequestBody(); + return new global::ApiSdk.Devices.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 5120a514d3..85b0d1dc15 100644 --- a/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.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.Devices.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountRespo /// /// 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 new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Devices.Item.CheckMemberObjects.CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostResponse(); + return new global::ApiSdk.Devices.Item.CheckMemberObjects.CheckMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index d3edb4d470..0d8851448e 100644 --- a/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/generated/Devices/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.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.Devices.Item.CheckMemberObjects /// /// Provides operations to call the checkMemberObjects method. /// - public class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action checkMemberObjects @@ -54,8 +57,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(CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Devices.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -85,14 +88,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 CheckMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/checkMemberObjects", 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 CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/checkMemberObjects", rawUrl) @@ -106,11 +109,11 @@ public CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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(CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -121,3 +124,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/DeviceItemRequestBuilder.cs b/src/generated/Devices/Item/DeviceItemRequestBuilder.cs index fff691ad23..f88121315f 100644 --- a/src/generated/Devices/Item/DeviceItemRequestBuilder.cs +++ b/src/generated/Devices/Item/DeviceItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.CheckMemberGroups; using ApiSdk.Devices.Item.CheckMemberObjects; using ApiSdk.Devices.Item.Extensions; @@ -11,6 +12,7 @@ using ApiSdk.Devices.Item.TransitiveMemberOf; 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; @@ -29,7 +31,8 @@ namespace ApiSdk.Devices.Item /// /// Provides operations to manage the collection of device entities. /// - public class DeviceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the checkMemberGroups method. @@ -39,7 +42,7 @@ public Command BuildCheckMemberGroupsNavCommand() { var command = new Command("check-member-groups"); command.Description = "Provides operations to call the checkMemberGroups method."; - var builder = new CheckMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.CheckMemberGroups.CheckMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -56,7 +59,7 @@ public Command BuildCheckMemberObjectsNavCommand() { var command = new Command("check-member-objects"); command.Description = "Provides operations to call the checkMemberObjects method."; - var builder = new CheckMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.CheckMemberObjects.CheckMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -109,7 +112,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.device entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -189,7 +192,7 @@ public Command BuildGetMemberGroupsNavCommand() { var command = new Command("get-member-groups"); command.Description = "Provides operations to call the getMemberGroups method."; - var builder = new GetMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.GetMemberGroups.GetMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -206,7 +209,7 @@ public Command BuildGetMemberObjectsNavCommand() { var command = new Command("get-member-objects"); command.Description = "Provides operations to call the getMemberObjects method."; - var builder = new GetMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.GetMemberObjects.GetMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -223,7 +226,7 @@ public Command BuildMemberOfNavCommand() { var command = new Command("member-of"); command.Description = "Provides operations to manage the memberOf property of the microsoft.graph.device entity."; - var builder = new MemberOfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.MemberOf.MemberOfRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -274,8 +277,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.Device.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Device.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -303,7 +306,7 @@ public Command BuildRegisteredOwnersNavCommand() { var command = new Command("registered-owners"); command.Description = "Provides operations to manage the registeredOwners property of the microsoft.graph.device entity."; - var builder = new RegisteredOwnersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.RegisteredOwnersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -334,7 +337,7 @@ public Command BuildRegisteredUsersNavCommand() { var command = new Command("registered-users"); command.Description = "Provides operations to manage the registeredUsers property of the microsoft.graph.device entity."; - var builder = new RegisteredUsersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.RegisteredUsersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -365,7 +368,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -382,7 +385,7 @@ public Command BuildTransitiveMemberOfNavCommand() { var command = new Command("transitive-member-of"); command.Description = "Provides operations to manage the transitiveMemberOf property of the microsoft.graph.device entity."; - var builder = new TransitiveMemberOfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.TransitiveMemberOf.TransitiveMemberOfRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -403,14 +406,14 @@ public Command BuildTransitiveMemberOfNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeviceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%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 DeviceItemRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}{?%24expand,%24select}", rawUrl) @@ -442,11 +445,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); @@ -462,11 +465,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.Device body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Device body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Device body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Device body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -478,7 +481,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Device body, A /// /// Get the properties and relationships of a device object. /// - public class DeviceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -503,3 +507,4 @@ public class DeviceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/Extensions/Count/CountRequestBuilder.cs index 92eddaac32..9ae292ab05 100644 --- a/src/generated/Devices/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/Extensions/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.Devices.Item.Extensions.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}/devices/{device%2Did}/extensions/$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}/devices/{device%2Did}/extensions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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/Devices/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Devices/Item/Extensions/ExtensionsRequestBuilder.cs index e44370f48d..d057693db5 100644 --- a/src/generated/Devices/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Devices/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.Extensions.Count; using ApiSdk.Devices.Item.Extensions.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.Devices.Item.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.device entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.device entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Devices.Item.Extensions.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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{devic /// 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); @@ -247,11 +250,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the device. Read-only. Nullable. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index b5079429e4..05f8b2544b 100644 --- a/src/generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Devices/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Devices.Item.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.device entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for devices @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the device. Read-only. Nullable. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 02f9d7d074..45f81c4b0e 100644 --- a/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Devices.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberGroupsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberGroupsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberGroupsPostRequestBody() /// /// 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 GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Devices.Item.GetMemberGroups.GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostRequestBody(); + return new global::ApiSdk.Devices.Item.GetMemberGroups.GetMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 43433f68d4..59ef6f805b 100644 --- a/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsPostResponse.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.Devices.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse /// /// 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 new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Devices.Item.GetMemberGroups.GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostResponse(); + return new global::ApiSdk.Devices.Item.GetMemberGroups.GetMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index e9bdd8b00b..7e5c814f52 100644 --- a/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/generated/Devices/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Devices.Item.GetMemberGroups /// /// Provides operations to call the getMemberGroups method. /// - public class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; + command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; var deviceIdOption = new Option("--device-id", description: "The unique identifier of device") { }; deviceIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Devices.Item.GetMemberGroups.GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/getMemberGroups", 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 GetMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// /// 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 ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 38fe1b9d9a..aeb03b791c 100644 --- a/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Devices.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberObjectsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberObjectsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberObjectsPostRequestBody() /// /// 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 GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Devices.Item.GetMemberObjects.GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostRequestBody(); + return new global::ApiSdk.Devices.Item.GetMemberObjects.GetMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 6eb5599bd3..251af8fc3d 100644 --- a/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsPostResponse.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.Devices.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountRespons /// /// 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 new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Devices.Item.GetMemberObjects.GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostResponse(); + return new global::ApiSdk.Devices.Item.GetMemberObjects.GetMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 0a88af18c3..3e191c7969 100644 --- a/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/generated/Devices/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Devices.Item.GetMemberObjects /// /// Provides operations to call the getMemberObjects method. /// - public class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; + command.Description = "Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; var deviceIdOption = new Option("--device-id", description: "The unique identifier of device") { }; deviceIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Devices.Item.GetMemberObjects.GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/getMemberObjects", 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 GetMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// /// 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 ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/MemberOf/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/MemberOf/Count/CountRequestBuilder.cs index 438ce3fd0b..6d3273edc4 100644 --- a/src/generated/Devices/Item/MemberOf/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/MemberOf/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.Devices.Item.MemberOf.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 @@ -70,14 +73,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}/devices/{device%2Did}/memberOf/$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}/devices/{device%2Did}/memberOf/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index c4cae431b2..0c6ddd4ae3 100644 --- a/src/generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/MemberOf/GraphAdministrativeUnit/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.Devices.Item.MemberOf.GraphAdministrativeUnit.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 @@ -70,14 +73,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}/devices/{device%2Did}/memberOf/graph.administrativeUnit/$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}/devices/{device%2Did}/memberOf/graph.administrativeUnit/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 826e687cc6..7b1ac1811d 100644 --- a/src/generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.MemberOf.GraphAdministrativeUnit.Count; 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.Devices.Item.MemberOf.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.MemberOf.GraphAdministrativeUnit.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs index e567ec756f..69b87c83e5 100644 --- a/src/generated/Devices/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/MemberOf/GraphGroup/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.Devices.Item.MemberOf.GraphGroup.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 @@ -70,14 +73,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}/devices/{device%2Did}/memberOf/graph.group/$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}/devices/{device%2Did}/memberOf/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs index 89ab2ed33c..1556022e42 100644 --- a/src/generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Devices/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.MemberOf.GraphGroup.Count; 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.Devices.Item.MemberOf.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.MemberOf.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -150,14 +153,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/memberOf/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/memberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -170,11 +173,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{devic /// 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); @@ -185,7 +188,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get groups and administrative units that this device is a direct member of. This operation is not transitive. /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -249,3 +253,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 6a1cf66973..7d754beb50 100644 --- a/src/generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.MemberOf.Item.GraphAdministrativeUnit; using ApiSdk.Devices.Item.MemberOf.Item.GraphGroup; 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.Devices.Item.MemberOf.Item /// /// Provides operations to manage the memberOf property of the microsoft.graph.device entity. /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand. @@ -96,7 +99,7 @@ public Command BuildGraphAdministrativeUnitByIdNavCommand() { var command = new Command("graph-administrative-unit-by-id"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.MemberOf.Item.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -113,7 +116,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.MemberOf.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -123,14 +126,14 @@ public Command BuildGraphGroupByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/devic /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand. /// - public class DirectoryObjectItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class DirectoryObjectItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 928773c65b..43509e1802 100644 --- a/src/generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.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.Devices.Item.MemberOf.Item.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -87,14 +90,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index 6f5bb5b6cf..410223e3f8 100644 --- a/src/generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Devices/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.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.Devices.Item.MemberOf.Item.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Get groups and administrative units that this device is a direct member of. This operation is not transitive. @@ -88,14 +91,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -108,11 +111,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{devic /// 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); @@ -123,7 +126,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get groups and administrative units that this device is a direct member of. This operation is not transitive. /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -148,3 +152,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs b/src/generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs index 98d2527c2e..80f435d0ff 100644 --- a/src/generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs +++ b/src/generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.MemberOf.Count; using ApiSdk.Devices.Item.MemberOf.GraphAdministrativeUnit; using ApiSdk.Devices.Item.MemberOf.GraphGroup; using ApiSdk.Devices.Item.MemberOf.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; @@ -23,7 +25,8 @@ namespace ApiSdk.Devices.Item.MemberOf /// /// Provides operations to manage the memberOf property of the microsoft.graph.device entity. /// - public class MemberOfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MemberOfRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the memberOf property of the microsoft.graph.device entity. @@ -33,7 +36,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.MemberOf.Item.DirectoryObjectItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGraphAdministrativeUnitByIdNavCommand()); commands.Add(builder.BuildGraphGroupByIdNavCommand()); @@ -47,7 +50,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.Devices.Item.MemberOf.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -64,7 +67,7 @@ public Command BuildGraphAdministrativeUnitNavCommand() { var command = new Command("graph-administrative-unit"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.MemberOf.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -87,7 +90,7 @@ public Command BuildGraphGroupNavCommand() { var command = new Command("graph-group"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.MemberOf.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -213,14 +216,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 MemberOfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/memberOf{?%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 MemberOfRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/memberOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -233,11 +236,11 @@ public MemberOfRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device% /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,7 +251,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get groups and administrative units that this device is a direct member of. This operation is not transitive. /// - public class MemberOfRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MemberOfRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -312,3 +316,4 @@ public class MemberOfRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/Count/CountRequestBuilder.cs index a4ac626b33..83486c9621 100644 --- a/src/generated/Devices/Item/RegisteredOwners/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/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.Devices.Item.RegisteredOwners.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 @@ -70,14 +73,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}/devices/{device%2Did}/registeredOwners/$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}/devices/{device%2Did}/registeredOwners/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index f5cdd372c0..c93709aa7b 100644 --- a/src/generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/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.Devices.Item.RegisteredOwners.GraphAppRoleAssignment.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 @@ -70,14 +73,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}/devices/{device%2Did}/registeredOwners/graph.appRoleAssignment/$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}/devices/{device%2Did}/registeredOwners/graph.appRoleAssignment/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index a14baa32e1..7fda4599bc 100644 --- a/src/generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredOwners.GraphAppRoleAssignment.Count; 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.Devices.Item.RegisteredOwners.GraphAppRoleAssignment /// /// Casts the previous resource to appRoleAssignment. /// - public class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.RegisteredOwners.GraphAppRoleAssignment.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphAppRoleAssignmentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/graph.appRoleAssignment{?%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 GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/graph.appRoleAssignment{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/de /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.appRoleAssignment in the microsoft.graph.directoryObject collection /// - public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/GraphEndpoint/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/GraphEndpoint/Count/CountRequestBuilder.cs index 789bceeab2..33f0570985 100644 --- a/src/generated/Devices/Item/RegisteredOwners/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/GraphEndpoint/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.Devices.Item.RegisteredOwners.GraphEndpoint.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 @@ -70,14 +73,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}/devices/{device%2Did}/registeredOwners/graph.endpoint/$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}/devices/{device%2Did}/registeredOwners/graph.endpoint/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.cs index 42f13b2383..ddd0001e6e 100644 --- a/src/generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredOwners.GraphEndpoint.Count; 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.Devices.Item.RegisteredOwners.GraphEndpoint /// /// Casts the previous resource to endpoint. /// - public class GraphEndpointRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.RegisteredOwners.GraphEndpoint.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphEndpointRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/graph.endpoint{?%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 GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/graph.endpoint{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{de /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection /// - public class GraphEndpointRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphEndpointRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/Count/CountRequestBuilder.cs index 8107d6fdc9..14ee85062a 100644 --- a/src/generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/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.Devices.Item.RegisteredOwners.GraphServicePrincipal.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 @@ -70,14 +73,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}/devices/{device%2Did}/registeredOwners/graph.servicePrincipal/$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}/devices/{device%2Did}/registeredOwners/graph.servicePrincipal/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 086bc34998..d2e1460ce4 100644 --- a/src/generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredOwners.GraphServicePrincipal.Count; 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.Devices.Item.RegisteredOwners.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.RegisteredOwners.GraphServicePrincipal.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/GraphUser/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/GraphUser/Count/CountRequestBuilder.cs index 548b1db99e..daade838d6 100644 --- a/src/generated/Devices/Item/RegisteredOwners/GraphUser/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/GraphUser/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.Devices.Item.RegisteredOwners.GraphUser.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 @@ -70,14 +73,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}/devices/{device%2Did}/registeredOwners/graph.user/$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}/devices/{device%2Did}/registeredOwners/graph.user/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.cs index 8b6a41de99..881ce275ca 100644 --- a/src/generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/GraphUser/GraphUserRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredOwners.GraphUser.Count; 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.Devices.Item.RegisteredOwners.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.RegisteredOwners.GraphUser.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/Item/DirectoryObjectItemRequestBuilder.cs index 2f6ee8dd9d..b982c58847 100644 --- a/src/generated/Devices/Item/RegisteredOwners/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredOwners.Item.GraphAppRoleAssignment; using ApiSdk.Devices.Item.RegisteredOwners.Item.GraphEndpoint; using ApiSdk.Devices.Item.RegisteredOwners.Item.GraphServicePrincipal; using ApiSdk.Devices.Item.RegisteredOwners.Item.GraphUser; using ApiSdk.Devices.Item.RegisteredOwners.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -19,7 +21,8 @@ namespace ApiSdk.Devices.Item.RegisteredOwners.Item /// /// Builds and executes requests for operations under \devices\{device-id}\registeredOwners\{directoryObject-id} /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Casts the previous resource to appRoleAssignment. @@ -29,7 +32,7 @@ public Command BuildGraphAppRoleAssignmentByIdNavCommand() { var command = new Command("graph-app-role-assignment-by-id"); command.Description = "Casts the previous resource to appRoleAssignment."; - var builder = new GraphAppRoleAssignmentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.Item.GraphAppRoleAssignment.GraphAppRoleAssignmentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -46,7 +49,7 @@ public Command BuildGraphEndpointByIdNavCommand() { var command = new Command("graph-endpoint-by-id"); command.Description = "Casts the previous resource to endpoint."; - var builder = new GraphEndpointRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.Item.GraphEndpoint.GraphEndpointRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -63,7 +66,7 @@ public Command BuildGraphServicePrincipalByIdNavCommand() { var command = new Command("graph-service-principal-by-id"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.Item.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -80,7 +83,7 @@ public Command BuildGraphUserByIdNavCommand() { var command = new Command("graph-user-by-id"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.Item.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -97,7 +100,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of device entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -107,14 +110,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}", 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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}", rawUrl) @@ -122,3 +125,4 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/devic } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 8a4b3d98f5..32efb24d58 100644 --- a/src/generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.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.Devices.Item.RegisteredOwners.Item.GraphAppRoleAssignment /// /// Casts the previous resource to appRoleAssignment. /// - public class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment @@ -87,14 +90,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 GraphAppRoleAssignmentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.appRoleAssignment{?%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 GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.appRoleAssignment{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/de /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment /// - public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index 76e0174fe2..7366b5dc36 100644 --- a/src/generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/Item/GraphEndpoint/GraphEndpointRequestBuilder.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.Devices.Item.RegisteredOwners.Item.GraphEndpoint /// /// Casts the previous resource to endpoint. /// - public class GraphEndpointRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint @@ -87,14 +90,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 GraphEndpointRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.endpoint{?%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 GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.endpoint{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{de /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint /// - public class GraphEndpointRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphEndpointRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 9f0d4e8329..6b03d1bb27 100644 --- a/src/generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.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.Devices.Item.RegisteredOwners.Item.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -87,14 +90,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.cs index 16894766ea..e6e5d310e7 100644 --- a/src/generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/Item/GraphUser/GraphUserRequestBuilder.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.Devices.Item.RegisteredOwners.Item.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -87,14 +90,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/graph.user{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs index 932c7ec21f..e9332c2be7 100644 --- a/src/generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.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.Devices.Item.RegisteredOwners.Item.Ref /// /// Provides operations to manage the collection of device entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a user as a registered owner of the device. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#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.Devices.Item.RegisteredOwners.Ref /// /// Provides operations to manage the collection of device entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a user as a registered owner of the device. @@ -182,8 +185,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -202,14 +205,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -222,11 +225,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did} /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref?@id={%40id}", PathParameters); @@ -241,11 +244,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, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -261,11 +264,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove a user as a registered owner of the device. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -293,7 +297,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// Retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -337,3 +342,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.cs b/src/generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.cs index a2e03c06ba..2fec00d46a 100644 --- a/src/generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredOwners/RegisteredOwnersRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredOwners.Count; using ApiSdk.Devices.Item.RegisteredOwners.GraphAppRoleAssignment; using ApiSdk.Devices.Item.RegisteredOwners.GraphEndpoint; @@ -8,6 +9,7 @@ using ApiSdk.Devices.Item.RegisteredOwners.Ref; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -26,7 +28,8 @@ namespace ApiSdk.Devices.Item.RegisteredOwners /// /// Provides operations to manage the registeredOwners property of the microsoft.graph.device entity. /// - public class RegisteredOwnersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegisteredOwnersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.devices.item.registeredOwners.item collection @@ -35,7 +38,7 @@ public class RegisteredOwnersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.Item.DirectoryObjectItemRequestBuilder(PathParameters); commands.Add(builder.BuildGraphAppRoleAssignmentByIdNavCommand()); commands.Add(builder.BuildGraphEndpointByIdNavCommand()); commands.Add(builder.BuildGraphServicePrincipalByIdNavCommand()); @@ -51,7 +54,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.Devices.Item.RegisteredOwners.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -68,7 +71,7 @@ public Command BuildGraphAppRoleAssignmentNavCommand() { var command = new Command("graph-app-role-assignment"); command.Description = "Casts the previous resource to appRoleAssignment."; - var builder = new GraphAppRoleAssignmentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.GraphAppRoleAssignment.GraphAppRoleAssignmentRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -91,7 +94,7 @@ public Command BuildGraphEndpointNavCommand() { var command = new Command("graph-endpoint"); command.Description = "Casts the previous resource to endpoint."; - var builder = new GraphEndpointRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.GraphEndpoint.GraphEndpointRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -114,7 +117,7 @@ public Command BuildGraphServicePrincipalNavCommand() { var command = new Command("graph-service-principal"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -137,7 +140,7 @@ public Command BuildGraphUserNavCommand() { var command = new Command("graph-user"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -270,7 +273,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of device entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredOwners.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -282,14 +285,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RegisteredOwnersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredOwners{?%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 RegisteredOwnersRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredOwners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -302,11 +305,11 @@ public RegisteredOwnersRequestBuilder(string rawUrl) : base("{+baseurl}/devices/ /// 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); @@ -317,7 +320,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. /// - public class RegisteredOwnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegisteredOwnersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -381,3 +385,4 @@ public class RegisteredOwnersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/Count/CountRequestBuilder.cs index dc4ecb9803..22431dd99b 100644 --- a/src/generated/Devices/Item/RegisteredUsers/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/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.Devices.Item.RegisteredUsers.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 @@ -70,14 +73,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}/devices/{device%2Did}/registeredUsers/$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}/devices/{device%2Did}/registeredUsers/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/Count/CountRequestBuilder.cs index db4b56cab1..41442c6bbe 100644 --- a/src/generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/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.Devices.Item.RegisteredUsers.GraphAppRoleAssignment.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 @@ -70,14 +73,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}/devices/{device%2Did}/registeredUsers/graph.appRoleAssignment/$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}/devices/{device%2Did}/registeredUsers/graph.appRoleAssignment/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 629d447652..bdc704b369 100644 --- a/src/generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredUsers.GraphAppRoleAssignment.Count; 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.Devices.Item.RegisteredUsers.GraphAppRoleAssignment /// /// Casts the previous resource to appRoleAssignment. /// - public class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.RegisteredUsers.GraphAppRoleAssignment.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphAppRoleAssignmentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/graph.appRoleAssignment{?%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 GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/graph.appRoleAssignment{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/de /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.appRoleAssignment in the microsoft.graph.directoryObject collection /// - public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/GraphEndpoint/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/GraphEndpoint/Count/CountRequestBuilder.cs index a277203145..1c62f13bdf 100644 --- a/src/generated/Devices/Item/RegisteredUsers/GraphEndpoint/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/GraphEndpoint/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.Devices.Item.RegisteredUsers.GraphEndpoint.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 @@ -70,14 +73,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}/devices/{device%2Did}/registeredUsers/graph.endpoint/$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}/devices/{device%2Did}/registeredUsers/graph.endpoint/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.cs index 4e96fc013f..21268c58dd 100644 --- a/src/generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/GraphEndpoint/GraphEndpointRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredUsers.GraphEndpoint.Count; 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.Devices.Item.RegisteredUsers.GraphEndpoint /// /// Casts the previous resource to endpoint. /// - public class GraphEndpointRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.RegisteredUsers.GraphEndpoint.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphEndpointRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/graph.endpoint{?%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 GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/graph.endpoint{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{de /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection /// - public class GraphEndpointRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphEndpointRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/Count/CountRequestBuilder.cs index 940bc1e59b..9dfb064112 100644 --- a/src/generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/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.Devices.Item.RegisteredUsers.GraphServicePrincipal.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 @@ -70,14 +73,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}/devices/{device%2Did}/registeredUsers/graph.servicePrincipal/$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}/devices/{device%2Did}/registeredUsers/graph.servicePrincipal/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 33ac852d8a..9f4adee028 100644 --- a/src/generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredUsers.GraphServicePrincipal.Count; 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.Devices.Item.RegisteredUsers.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.RegisteredUsers.GraphServicePrincipal.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/GraphUser/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/GraphUser/Count/CountRequestBuilder.cs index a20807affa..a593aea909 100644 --- a/src/generated/Devices/Item/RegisteredUsers/GraphUser/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/GraphUser/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.Devices.Item.RegisteredUsers.GraphUser.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 @@ -70,14 +73,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}/devices/{device%2Did}/registeredUsers/graph.user/$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}/devices/{device%2Did}/registeredUsers/graph.user/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.cs index cdf1476881..0c346f16f3 100644 --- a/src/generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/GraphUser/GraphUserRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredUsers.GraphUser.Count; 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.Devices.Item.RegisteredUsers.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.RegisteredUsers.GraphUser.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/Item/DirectoryObjectItemRequestBuilder.cs index 314577a559..f60faee8af 100644 --- a/src/generated/Devices/Item/RegisteredUsers/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredUsers.Item.GraphAppRoleAssignment; using ApiSdk.Devices.Item.RegisteredUsers.Item.GraphEndpoint; using ApiSdk.Devices.Item.RegisteredUsers.Item.GraphServicePrincipal; using ApiSdk.Devices.Item.RegisteredUsers.Item.GraphUser; using ApiSdk.Devices.Item.RegisteredUsers.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -19,7 +21,8 @@ namespace ApiSdk.Devices.Item.RegisteredUsers.Item /// /// Builds and executes requests for operations under \devices\{device-id}\registeredUsers\{directoryObject-id} /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Casts the previous resource to appRoleAssignment. @@ -29,7 +32,7 @@ public Command BuildGraphAppRoleAssignmentByIdNavCommand() { var command = new Command("graph-app-role-assignment-by-id"); command.Description = "Casts the previous resource to appRoleAssignment."; - var builder = new GraphAppRoleAssignmentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.Item.GraphAppRoleAssignment.GraphAppRoleAssignmentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -46,7 +49,7 @@ public Command BuildGraphEndpointByIdNavCommand() { var command = new Command("graph-endpoint-by-id"); command.Description = "Casts the previous resource to endpoint."; - var builder = new GraphEndpointRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.Item.GraphEndpoint.GraphEndpointRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -63,7 +66,7 @@ public Command BuildGraphServicePrincipalByIdNavCommand() { var command = new Command("graph-service-principal-by-id"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.Item.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -80,7 +83,7 @@ public Command BuildGraphUserByIdNavCommand() { var command = new Command("graph-user-by-id"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.Item.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -97,7 +100,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of device entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -107,14 +110,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}", 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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}", rawUrl) @@ -122,3 +125,4 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/devic } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs index 35e4f32197..e3920a4279 100644 --- a/src/generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/Item/GraphAppRoleAssignment/GraphAppRoleAssignmentRequestBuilder.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.Devices.Item.RegisteredUsers.Item.GraphAppRoleAssignment /// /// Casts the previous resource to appRoleAssignment. /// - public class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment @@ -87,14 +90,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 GraphAppRoleAssignmentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.appRoleAssignment{?%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 GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.appRoleAssignment{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphAppRoleAssignmentRequestBuilder(string rawUrl) : base("{+baseurl}/de /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment /// - public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAppRoleAssignmentRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphAppRoleAssignmentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs index 50d46ac856..dd742bf8a9 100644 --- a/src/generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/Item/GraphEndpoint/GraphEndpointRequestBuilder.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.Devices.Item.RegisteredUsers.Item.GraphEndpoint /// /// Casts the previous resource to endpoint. /// - public class GraphEndpointRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint @@ -87,14 +90,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 GraphEndpointRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.endpoint{?%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 GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.endpoint{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{de /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint /// - public class GraphEndpointRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphEndpointRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphEndpointRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 8af510aff5..2881be8f56 100644 --- a/src/generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.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.Devices.Item.RegisteredUsers.Item.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -87,14 +90,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/dev /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.cs index 192f488947..b4c62a40cf 100644 --- a/src/generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/Item/GraphUser/GraphUserRequestBuilder.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.Devices.Item.RegisteredUsers.Item.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -87,14 +90,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/graph.user{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs index 727a04f3c2..f4964df032 100644 --- a/src/generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.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.Devices.Item.RegisteredUsers.Item.Ref /// /// Provides operations to manage the collection of device entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a user as a registered user of the device. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#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.Devices.Item.RegisteredUsers.Ref /// /// Provides operations to manage the collection of device entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a user as a registered user of the device. @@ -182,8 +185,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -202,14 +205,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -222,11 +225,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did} /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref?@id={%40id}", PathParameters); @@ -241,11 +244,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, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -261,11 +264,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove a user as a registered user of the device. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -293,7 +297,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// Retrieve a list of users that are registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -337,3 +342,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.cs b/src/generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.cs index 88784ca75a..397f7ad626 100644 --- a/src/generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.cs +++ b/src/generated/Devices/Item/RegisteredUsers/RegisteredUsersRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.RegisteredUsers.Count; using ApiSdk.Devices.Item.RegisteredUsers.GraphAppRoleAssignment; using ApiSdk.Devices.Item.RegisteredUsers.GraphEndpoint; @@ -8,6 +9,7 @@ using ApiSdk.Devices.Item.RegisteredUsers.Ref; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -26,7 +28,8 @@ namespace ApiSdk.Devices.Item.RegisteredUsers /// /// Provides operations to manage the registeredUsers property of the microsoft.graph.device entity. /// - public class RegisteredUsersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegisteredUsersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.devices.item.registeredUsers.item collection @@ -35,7 +38,7 @@ public class RegisteredUsersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.Item.DirectoryObjectItemRequestBuilder(PathParameters); commands.Add(builder.BuildGraphAppRoleAssignmentByIdNavCommand()); commands.Add(builder.BuildGraphEndpointByIdNavCommand()); commands.Add(builder.BuildGraphServicePrincipalByIdNavCommand()); @@ -51,7 +54,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.Devices.Item.RegisteredUsers.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -68,7 +71,7 @@ public Command BuildGraphAppRoleAssignmentNavCommand() { var command = new Command("graph-app-role-assignment"); command.Description = "Casts the previous resource to appRoleAssignment."; - var builder = new GraphAppRoleAssignmentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.GraphAppRoleAssignment.GraphAppRoleAssignmentRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -91,7 +94,7 @@ public Command BuildGraphEndpointNavCommand() { var command = new Command("graph-endpoint"); command.Description = "Casts the previous resource to endpoint."; - var builder = new GraphEndpointRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.GraphEndpoint.GraphEndpointRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -114,7 +117,7 @@ public Command BuildGraphServicePrincipalNavCommand() { var command = new Command("graph-service-principal"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -137,7 +140,7 @@ public Command BuildGraphUserNavCommand() { var command = new Command("graph-user"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -270,7 +273,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of device entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.RegisteredUsers.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -282,14 +285,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RegisteredUsersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/registeredUsers{?%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 RegisteredUsersRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/registeredUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -302,11 +305,11 @@ public RegisteredUsersRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{ /// 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); @@ -317,7 +320,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve a list of users that are registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. /// - public class RegisteredUsersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegisteredUsersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -381,3 +385,4 @@ public class RegisteredUsersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Devices/Item/Restore/RestoreRequestBuilder.cs index 9b6911e0ae..4f834310f5 100644 --- a/src/generated/Devices/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Devices/Item/Restore/RestoreRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.Devices.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var deviceIdOption = new Option("--device-id", description: "The unique identifier of device") { }; deviceIdOption.IsRequired = true; @@ -61,21 +64,21 @@ 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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Devices.Item.TransitiveMemberOf.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 @@ -70,14 +73,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}/devices/{device%2Did}/transitiveMemberOf/$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}/devices/{device%2Did}/transitiveMemberOf/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index 52f0db27a9..acff9cfab4 100644 --- a/src/generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/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.Devices.Item.TransitiveMemberOf.GraphAdministrativeUnit.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 @@ -70,14 +73,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}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit/$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}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index eb3ae0766c..10bad14994 100644 --- a/src/generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.TransitiveMemberOf.GraphAdministrativeUnit.Count; 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.Devices.Item.TransitiveMemberOf.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.TransitiveMemberOf.GraphAdministrativeUnit.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/Devices/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs index ef539a8513..1f574726d0 100644 --- a/src/generated/Devices/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/Devices/Item/TransitiveMemberOf/GraphGroup/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.Devices.Item.TransitiveMemberOf.GraphGroup.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 @@ -70,14 +73,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}/devices/{device%2Did}/transitiveMemberOf/graph.group/$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}/devices/{device%2Did}/transitiveMemberOf/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Di /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs index c581f48267..c2b0d3d256 100644 --- a/src/generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Devices/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.TransitiveMemberOf.GraphGroup.Count; 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.Devices.Item.TransitiveMemberOf.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Devices.Item.TransitiveMemberOf.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -150,14 +153,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -170,11 +173,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{devic /// 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); @@ -185,7 +188,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -249,3 +253,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 0a33b30a1d..32505a910b 100644 --- a/src/generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit; using ApiSdk.Devices.Item.TransitiveMemberOf.Item.GraphGroup; 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.Devices.Item.TransitiveMemberOf.Item /// /// Provides operations to manage the transitiveMemberOf property of the microsoft.graph.device entity. /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand. @@ -96,7 +99,7 @@ public Command BuildGraphAdministrativeUnitByIdNavCommand() { var command = new Command("graph-administrative-unit-by-id"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -113,7 +116,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.TransitiveMemberOf.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -123,14 +126,14 @@ public Command BuildGraphGroupByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/devic /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand. /// - public class DirectoryObjectItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class DirectoryObjectItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 078721a7f2..6d3de1a048 100644 --- a/src/generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.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.Devices.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -87,14 +90,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index 3af4481955..895b739c98 100644 --- a/src/generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Devices/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.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.Devices.Item.TransitiveMemberOf.Item.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. @@ -88,14 +91,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -108,11 +111,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{devic /// 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); @@ -123,7 +126,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -148,3 +152,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs b/src/generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs index 721b6c5815..e74054c1d4 100644 --- a/src/generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs +++ b/src/generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Devices.Item.TransitiveMemberOf.Count; using ApiSdk.Devices.Item.TransitiveMemberOf.GraphAdministrativeUnit; using ApiSdk.Devices.Item.TransitiveMemberOf.GraphGroup; using ApiSdk.Devices.Item.TransitiveMemberOf.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; @@ -23,7 +25,8 @@ namespace ApiSdk.Devices.Item.TransitiveMemberOf /// /// Provides operations to manage the transitiveMemberOf property of the microsoft.graph.device entity. /// - public class TransitiveMemberOfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TransitiveMemberOfRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the transitiveMemberOf property of the microsoft.graph.device entity. @@ -33,7 +36,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.TransitiveMemberOf.Item.DirectoryObjectItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGraphAdministrativeUnitByIdNavCommand()); commands.Add(builder.BuildGraphGroupByIdNavCommand()); @@ -47,7 +50,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.Devices.Item.TransitiveMemberOf.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -64,7 +67,7 @@ public Command BuildGraphAdministrativeUnitNavCommand() { var command = new Command("graph-administrative-unit"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.TransitiveMemberOf.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -87,7 +90,7 @@ public Command BuildGraphGroupNavCommand() { var command = new Command("graph-group"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.Item.TransitiveMemberOf.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -213,14 +216,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 TransitiveMemberOfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf{?%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 TransitiveMemberOfRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/transitiveMemberOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -233,11 +236,11 @@ public TransitiveMemberOfRequestBuilder(string rawUrl) : base("{+baseurl}/device /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,7 +251,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the groups and administrative units that the device is a member of. This API request is transitive, and will also return all groups and administrative units the device is a nested member of. /// - public class TransitiveMemberOfRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TransitiveMemberOfRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -312,3 +316,4 @@ public class TransitiveMemberOfRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/generated/Devices/ValidateProperties/ValidatePropertiesPostRequestBody.cs index 301fc90d45..c68146946f 100644 --- a/src/generated/Devices/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/generated/Devices/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Devices.ValidateProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidatePropertiesPostRequestBody : 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. @@ -39,7 +41,7 @@ public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsabl /// The onBehalfOfUserId property public Guid? OnBehalfOfUserId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidatePropertiesPostRequestBody() { @@ -48,12 +50,12 @@ public ValidatePropertiesPostRequestBody() /// /// 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 ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Devices.ValidateProperties.ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidatePropertiesPostRequestBody(); + return new global::ApiSdk.Devices.ValidateProperties.ValidatePropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -84,3 +86,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 1a39ec3dc1..07e5a9016a 100644 --- a/src/generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/generated/Devices/ValidateProperties/ValidatePropertiesRequestBuilder.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.Devices.ValidateProperties /// /// Provides operations to call the validateProperties method. /// - public class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. @@ -38,8 +41,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(ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Devices.ValidateProperties.ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -57,14 +60,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 ValidatePropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices/validateProperties", 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 ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/devices/validateProperties", rawUrl) @@ -78,11 +81,11 @@ public ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/device /// 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(ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.ValidateProperties.ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Devices.ValidateProperties.ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -93,3 +96,4 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs b/src/generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs index 5196e6d320..1c974497c9 100644 --- a/src/generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs +++ b/src/generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.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.DevicesWithDeviceId /// /// Provides operations to manage the collection of device entities. /// - public class DevicesWithDeviceIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DevicesWithDeviceIdRequestBuilder : BaseCliRequestBuilder { /// /// Delete a registered device. @@ -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(ApiSdk.Models.Device.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Device.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 DevicesWithDeviceIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/devices(deviceId='{deviceId}'){?%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 DevicesWithDeviceIdRequestBuilder(string rawUrl) : base("{+baseurl}/devices(deviceId='{deviceId}'){?%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(ApiSdk.Models.Device body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Device body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Device body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Device body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Device body, A /// /// Get the properties and relationships of a device object. /// - public class DevicesWithDeviceIdRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DevicesWithDeviceIdRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class DevicesWithDeviceIdRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs index cb17911c08..95a1d14fcd 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/AdministrativeUnitsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Count; using ApiSdk.DirectoryNamespace.AdministrativeUnits.Delta; using ApiSdk.DirectoryNamespace.AdministrativeUnits.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; @@ -22,7 +24,8 @@ namespace ApiSdk.DirectoryNamespace.AdministrativeUnits /// /// Provides operations to manage the administrativeUnits property of the microsoft.graph.directory entity. /// - public class AdministrativeUnitsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AdministrativeUnitsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the administrativeUnits property of the microsoft.graph.directory entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new AdministrativeUnitItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.AdministrativeUnitItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildExtensionsNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -49,7 +52,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.DirectoryNamespace.AdministrativeUnits.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -59,14 +62,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Use this API to create a new administrativeUnit. + /// Create a new administrativeUnit. /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to create a new administrativeUnit.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-post-administrativeunits?view=graph-rest-1.0"; + command.Description = "Create a new administrativeUnit.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-post-administrativeunits?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -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(ApiSdk.Models.AdministrativeUnit.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AdministrativeUnit.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -112,7 +115,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AdministrativeUnitsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits{?%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 AdministrativeUnitsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public AdministrativeUnitsRequestBuilder(string rawUrl) : base("{+baseurl}/direc /// 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); @@ -252,18 +255,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new administrativeUnit. + /// Create a new administrativeUnit. /// /// 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 ToPostRequestInformation(ApiSdk.Models.AdministrativeUnit body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AdministrativeUnit body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.AdministrativeUnit body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AdministrativeUnit body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.AdministrativeU /// /// Retrieve a list of administrativeUnit objects. /// - public class AdministrativeUnitsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AdministrativeUnitsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class AdministrativeUnitsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Count/CountRequestBuilder.cs index ef5af30b37..e40db3de02 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/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.DirectoryNamespace.AdministrativeUnits.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}/directory/administrativeUnits/$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}/directory/administrativeUnits/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administr /// 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/DirectoryNamespace/AdministrativeUnits/Delta/DeltaGetResponse.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaGetResponse.cs index 7bb342909a..3db03e35b3 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaGetResponse.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryNamespace.AdministrativeUnits.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.AdministrativeUnit.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.AdministrativeUnit.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.cs index b1a5072e48..51e46b2124 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Delta/DeltaRequestBuilder.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.DirectoryNamespace.AdministrativeUnits.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function delta @@ -117,14 +120,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -137,11 +140,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administr /// 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); @@ -152,7 +155,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function delta /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -216,3 +220,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs index f903b2a67b..fd5d9373bb 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/AdministrativeUnitItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Extensions; using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members; using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.ScopedRoleMembers; 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.DirectoryNamespace.AdministrativeUnits.Item /// /// Provides operations to manage the administrativeUnits property of the microsoft.graph.directory entity. /// - public class AdministrativeUnitItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AdministrativeUnitItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete an administrativeUnit. @@ -68,7 +71,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.administrativeUnit entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -148,7 +151,7 @@ public Command BuildMembersNavCommand() { var command = new Command("members"); command.Description = "Provides operations to manage the members property of the microsoft.graph.administrativeUnit entity."; - var builder = new MembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.MembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -205,8 +208,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.AdministrativeUnit.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AdministrativeUnit.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,7 +237,7 @@ public Command BuildScopedRoleMembersNavCommand() { var command = new Command("scoped-role-members"); command.Description = "Provides operations to manage the scopedRoleMembers property of the microsoft.graph.administrativeUnit entity."; - var builder = new ScopedRoleMembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.ScopedRoleMembers.ScopedRoleMembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -254,14 +257,14 @@ public Command BuildScopedRoleMembersNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AdministrativeUnitItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%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 AdministrativeUnitItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}{?%24expand,%24select}", rawUrl) @@ -293,11 +296,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); @@ -313,11 +316,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.AdministrativeUnit body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AdministrativeUnit body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.AdministrativeUnit body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AdministrativeUnit body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -329,7 +332,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Administrative /// /// Retrieve the properties and relationships of an administrativeUnit object. /// - public class AdministrativeUnitItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AdministrativeUnitItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -354,3 +358,4 @@ public class AdministrativeUnitItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Count/CountRequestBuilder.cs index b1a58744ec..aa73a81501 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/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.DirectoryNamespace.AdministrativeUnits.Item.Extensions.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}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions/$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}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administr /// 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/DirectoryNamespace/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.cs index 7462fd44cd..0787925672 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Extensions.Count; using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Extensions.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.DirectoryNamespace.AdministrativeUnits.Item.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.administrativeUnit entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.administrativeUnit entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Extensions.Item.ExtensionItemRequestBuilder(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.DirectoryNamespace.AdministrativeUnits.Item.Extensions.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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/admi /// 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); @@ -247,11 +250,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for this administrative unit. Nullable. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 2992cc38ac..28d8c55b58 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Extensions/Item/ExtensionItemRequestBuilder.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.DirectoryNamespace.AdministrativeUnits.Item.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.administrativeUnit entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for directory @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for this administrative unit. Nullable. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Count/CountRequestBuilder.cs index 816f346853..bd3eab135b 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/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.DirectoryNamespace.AdministrativeUnits.Item.Members.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 @@ -70,14 +73,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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administr /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/Count/CountRequestBuilder.cs index 999d00e786..5925f25170 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphApplic /// /// 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 @@ -70,14 +73,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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.application/$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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.application/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administr /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs index a72add9498..503a45f0b4 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphApplication.Count; 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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphApplic /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphApplication.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/director /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/Count/CountRequestBuilder.cs index 6b1c99c51f..8f7d7397c7 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphDevice /// /// 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 @@ -70,14 +73,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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.device/$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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.device/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administr /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs index 368d07b756..74f29a2dc4 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphDevice.Count; 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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphDevice /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphDevice.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directory/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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/Count/CountRequestBuilder.cs index cce5261005..898034f50e 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphGroup. /// /// 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 @@ -70,14 +73,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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.group/$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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administr /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs index a9a8290076..ad1a4b0b91 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphGroup.Count; 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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directory/admi /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs index d4acc87c55..8bdf8a1fca 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphOrgCon /// /// 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 @@ -70,14 +73,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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.orgContact/$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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.orgContact/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administr /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 8da9c6ceb0..6f85dd798a 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphOrgContact.Count; 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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphOrgCon /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphOrgContact.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/directory /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs index 28a2111ccf..7086957b74 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphServic /// /// 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 @@ -70,14 +73,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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.servicePrincipal/$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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.servicePrincipal/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administr /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index e0253a5dd2..e83b9e15dc 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphServicePrincipal.Count; 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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphServic /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphServicePrincipal.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/dir /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/Count/CountRequestBuilder.cs index ca86e619fc..339cca0a47 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphUser.C /// /// 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 @@ -70,14 +73,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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.user/$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}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.user/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administr /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.cs index 37f3a11e1d..cefac3a0af 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/GraphUser/GraphUserRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphUser.Count; 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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphUser.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directory/admin /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs index 32b1af430c..a4f4c0a124 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphApplication; using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphDevice; using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphGroup; @@ -6,6 +7,7 @@ using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphServicePrincipal; using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphUser; using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -21,7 +23,8 @@ namespace ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item /// /// Builds and executes requests for operations under \directory\administrativeUnits\{administrativeUnit-id}\members\{directoryObject-id} /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Casts the previous resource to application. @@ -31,7 +34,7 @@ public Command BuildGraphApplicationByIdNavCommand() { var command = new Command("graph-application-by-id"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -48,7 +51,7 @@ public Command BuildGraphDeviceByIdNavCommand() { var command = new Command("graph-device-by-id"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -65,7 +68,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -82,7 +85,7 @@ public Command BuildGraphOrgContactByIdNavCommand() { var command = new Command("graph-org-contact-by-id"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -99,7 +102,7 @@ public Command BuildGraphServicePrincipalByIdNavCommand() { var command = new Command("graph-service-principal-by-id"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -116,7 +119,7 @@ public Command BuildGraphUserByIdNavCommand() { var command = new Command("graph-user-by-id"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -133,7 +136,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of directory entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -143,14 +146,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}", 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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}", rawUrl) @@ -158,3 +161,4 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/direc } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs index 42684a7095..64e93a1ab3 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.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.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphA /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -87,14 +90,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.application{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/director /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs index f595d214c0..5d8eb6ea43 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.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.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphD /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -87,14 +90,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.device{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directory/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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs index f4b9d4dbe9..80d59a297b 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.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.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphG /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -87,14 +90,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directory/admi /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index b3079a154e..1cb1a8a4eb 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.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.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphO /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -87,14 +90,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/directory /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 3d3d593b3b..2b5b5fed06 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.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.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphS /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -87,14 +90,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/dir /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs index 70ac3f2003..776efd4bb1 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/GraphUser/GraphUserRequestBuilder.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.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.GraphU /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -87,14 +90,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/graph.user{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directory/admin /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs index c76504a6ff..bdfe2d1deb 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.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.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.Ref /// /// Provides operations to manage the collection of directory entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Use this API to remove a member (user, group, or device) from an administrative unit. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Count; using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphApplication; using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphDevice; @@ -10,6 +11,7 @@ using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Ref; 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; @@ -28,7 +30,8 @@ namespace ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members /// /// Provides operations to manage the members property of the microsoft.graph.administrativeUnit entity. /// - public class MembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.directory.administrativeUnits.item.members.item collection @@ -37,7 +40,7 @@ public class MembersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Item.DirectoryObjectItemRequestBuilder(PathParameters); commands.Add(builder.BuildGraphApplicationByIdNavCommand()); commands.Add(builder.BuildGraphDeviceByIdNavCommand()); commands.Add(builder.BuildGraphGroupByIdNavCommand()); @@ -55,7 +58,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.DirectoryNamespace.AdministrativeUnits.Item.Members.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(DirectoryObject.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -124,7 +127,7 @@ public Command BuildGraphApplicationNavCommand() { var command = new Command("graph-application"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -147,7 +150,7 @@ public Command BuildGraphDeviceNavCommand() { var command = new Command("graph-device"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -170,7 +173,7 @@ public Command BuildGraphGroupNavCommand() { var command = new Command("graph-group"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -193,7 +196,7 @@ public Command BuildGraphOrgContactNavCommand() { var command = new Command("graph-org-contact"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -216,7 +219,7 @@ public Command BuildGraphServicePrincipalNavCommand() { var command = new Command("graph-service-principal"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -239,7 +242,7 @@ public Command BuildGraphUserNavCommand() { var command = new Command("graph-user"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -372,7 +375,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of directory entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.Members.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -384,14 +387,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members{?%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 MembersRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -404,11 +407,11 @@ public MembersRequestBuilder(string rawUrl) : base("{+baseurl}/directory/adminis /// 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); @@ -424,11 +427,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(DirectoryObject body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryObject body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DirectoryObject body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryObject body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -440,7 +443,8 @@ public RequestInformation ToPostRequestInformation(DirectoryObject body, Action< /// /// Use this API to get the members list (users, groups, or devices) in an administrative unit. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -504,3 +508,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs index fd3c283abb..7b8a88b973 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.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.DirectoryNamespace.AdministrativeUnits.Item.Members.Ref /// /// Provides operations to manage the collection of directory entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Use this API to remove a member (user, group, or device) from an administrative unit. @@ -182,8 +185,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -202,14 +205,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -222,11 +225,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrat /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref?@id={%40id}", PathParameters); @@ -241,11 +244,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, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -261,11 +264,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Use this API to remove a member (user, group, or device) from an administrative unit. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -293,7 +297,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// Use this API to get the members list (users, groups, or devices) in an administrative unit. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -337,3 +342,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Count/CountRequestBuilder.cs index c4cfe8f446..317e75df75 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/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.DirectoryNamespace.AdministrativeUnits.Item.ScopedRoleMembers.C /// /// 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}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers/$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}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administr /// 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/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs index 09499b7331..fc1757c07c 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/Item/ScopedRoleMembershipItemRequestBuilder.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.DirectoryNamespace.AdministrativeUnits.Item.ScopedRoleMembers.I /// /// Provides operations to manage the scopedRoleMembers property of the microsoft.graph.administrativeUnit entity. /// - public class ScopedRoleMembershipItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopedRoleMembershipItemRequestBuilder : BaseCliRequestBuilder { /// /// Remove a Microsoft Entra role assignment with administrative unit scope. @@ -157,8 +160,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(ScopedRoleMembership.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ScopedRoleMembership.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -180,14 +183,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 ScopedRoleMembershipItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers/{scopedRoleMembership%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 ScopedRoleMembershipItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers/{scopedRoleMembership%2Did}{?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(ScopedRoleMembership body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ScopedRoleMembership body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ScopedRoleMembership body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ScopedRoleMembership body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(ScopedRoleMembership body, A /// /// Get a Microsoft Entra role assignment with administrative unit scope. /// - public class ScopedRoleMembershipItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopedRoleMembershipItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class ScopedRoleMembershipItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs index 9d569c5139..476041c625 100644 --- a/src/generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AdministrativeUnits/Item/ScopedRoleMembers/ScopedRoleMembersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.ScopedRoleMembers.Count; using ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.ScopedRoleMembers.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.DirectoryNamespace.AdministrativeUnits.Item.ScopedRoleMembers /// /// Provides operations to manage the scopedRoleMembers property of the microsoft.graph.administrativeUnit entity. /// - public class ScopedRoleMembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopedRoleMembersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the scopedRoleMembers property of the microsoft.graph.administrativeUnit entity. @@ -30,7 +33,7 @@ public class ScopedRoleMembersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ScopedRoleMembershipItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.Item.ScopedRoleMembers.Item.ScopedRoleMembershipItemRequestBuilder(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.DirectoryNamespace.AdministrativeUnits.Item.ScopedRoleMembers.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(ScopedRoleMembership.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ScopedRoleMembership.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 ScopedRoleMembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers{?%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 ScopedRoleMembersRequestBuilder(string rawUrl) : base("{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/scopedRoleMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public ScopedRoleMembersRequestBuilder(string rawUrl) : base("{+baseurl}/directo /// 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(ScopedRoleMembership body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ScopedRoleMembership body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ScopedRoleMembership body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ScopedRoleMembership body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ScopedRoleMembership body, Ac /// /// List Microsoft Entra role assignments with administrative unit scope. /// - public class ScopedRoleMembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopedRoleMembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class ScopedRoleMembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs b/src/generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs index 35d7170b1f..92bc2af25f 100644 --- a/src/generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AttributeSets/AttributeSetsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AttributeSets.Count; using ApiSdk.DirectoryNamespace.AttributeSets.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.DirectoryNamespace.AttributeSets /// /// Provides operations to manage the attributeSets property of the microsoft.graph.directory entity. /// - public class AttributeSetsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttributeSetsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attributeSets property of the microsoft.graph.directory entity. @@ -30,7 +33,7 @@ public class AttributeSetsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttributeSetItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AttributeSets.Item.AttributeSetItemRequestBuilder(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.DirectoryNamespace.AttributeSets.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(AttributeSet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AttributeSet.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 AttributeSetsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/attributeSets{?%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 AttributeSetsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/attributeSets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public AttributeSetsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/a /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -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(AttributeSet body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AttributeSet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AttributeSet body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AttributeSet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(AttributeSet body, Action /// Get a list of the attributeSet objects and their properties. /// - public class AttributeSetsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttributeSetsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class AttributeSetsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/AttributeSets/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/AttributeSets/Count/CountRequestBuilder.cs index a8d8a66334..1ad7632ea3 100644 --- a/src/generated/DirectoryNamespace/AttributeSets/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AttributeSets/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.DirectoryNamespace.AttributeSets.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}/directory/attributeSets/$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}/directory/attributeSets/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/attribute /// 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/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.cs b/src/generated/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.cs index b0f1ac3e13..b503874a8c 100644 --- a/src/generated/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/AttributeSets/Item/AttributeSetItemRequestBuilder.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.DirectoryNamespace.AttributeSets.Item /// /// Provides operations to manage the attributeSets property of the microsoft.graph.directory entity. /// - public class AttributeSetItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttributeSetItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attributeSets for directory @@ -140,8 +143,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(AttributeSet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AttributeSet.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 AttributeSetItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/attributeSets/{attributeSet%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 AttributeSetItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/attributeSets/{attributeSet%2Did}{?%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(AttributeSet body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AttributeSet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AttributeSet body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AttributeSet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(AttributeSet body, Action /// Read the properties and relationships of an attributeSet object. /// - public class AttributeSetItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttributeSetItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class AttributeSetItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Count/CountRequestBuilder.cs index 553b2cf3f0..293c116be5 100644 --- a/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/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.DirectoryNamespace.CustomSecurityAttributeDefinitions.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}/directory/customSecurityAttributeDefinitions/$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}/directory/customSecurityAttributeDefinitions/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/customSec /// 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/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs index 636fecaab1..5f7b1df731 100644 --- a/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/CustomSecurityAttributeDefinitionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.CustomSecurityAttributeDefinitions.Count; using ApiSdk.DirectoryNamespace.CustomSecurityAttributeDefinitions.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.DirectoryNamespace.CustomSecurityAttributeDefinitions /// /// Provides operations to manage the customSecurityAttributeDefinitions property of the microsoft.graph.directory entity. /// - public class CustomSecurityAttributeDefinitionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomSecurityAttributeDefinitionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the customSecurityAttributeDefinitions property of the microsoft.graph.directory entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new CustomSecurityAttributeDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.CustomSecurityAttributeDefinitions.Item.CustomSecurityAttributeDefinitionItemRequestBuilder(PathParameters); commands.Add(builder.BuildAllowedValuesNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.DirectoryNamespace.CustomSecurityAttributeDefinitions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,8 +84,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(CustomSecurityAttributeDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CustomSecurityAttributeDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 CustomSecurityAttributeDefinitionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/customSecurityAttributeDefinitions{?%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 CustomSecurityAttributeDefinitionsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/customSecurityAttributeDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public CustomSecurityAttributeDefinitionsRequestBuilder(string rawUrl) : base("{ /// 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); @@ -239,11 +242,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(CustomSecurityAttributeDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CustomSecurityAttributeDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CustomSecurityAttributeDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CustomSecurityAttributeDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(CustomSecurityAttributeDefini /// /// Get a list of the customSecurityAttributeDefinition objects and their properties. /// - public class CustomSecurityAttributeDefinitionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomSecurityAttributeDefinitionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class CustomSecurityAttributeDefinitionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs index e57fda6c83..83cce41592 100644 --- a/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/AllowedValuesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.CustomSecurityAttributeDefinitions.Item.AllowedValues.Count; using ApiSdk.DirectoryNamespace.CustomSecurityAttributeDefinitions.Item.AllowedValues.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.DirectoryNamespace.CustomSecurityAttributeDefinitions.Item.Allo /// /// Provides operations to manage the allowedValues property of the microsoft.graph.customSecurityAttributeDefinition entity. /// - public class AllowedValuesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedValuesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the allowedValues property of the microsoft.graph.customSecurityAttributeDefinition entity. @@ -30,7 +33,7 @@ public class AllowedValuesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AllowedValueItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.CustomSecurityAttributeDefinitions.Item.AllowedValues.Item.AllowedValueItemRequestBuilder(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.DirectoryNamespace.CustomSecurityAttributeDefinitions.Item.AllowedValues.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(AllowedValue.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AllowedValue.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 AllowedValuesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues{?%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 AllowedValuesRequestBuilder(string rawUrl) : base("{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public AllowedValuesRequestBuilder(string rawUrl) : base("{+baseurl}/directory/c /// 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(AllowedValue body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AllowedValue body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AllowedValue body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AllowedValue body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(AllowedValue body, Action /// Get a list of the allowedValue objects and their properties. /// - public class AllowedValuesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedValuesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class AllowedValuesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Count/CountRequestBuilder.cs index 93a5e2ac8e..c6a5556d2a 100644 --- a/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/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.DirectoryNamespace.CustomSecurityAttributeDefinitions.Item.Allo /// /// 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}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues/$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}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/customSec /// 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/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.cs b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.cs index 7a03ebe0d2..88812fd4b0 100644 --- a/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/AllowedValues/Item/AllowedValueItemRequestBuilder.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.DirectoryNamespace.CustomSecurityAttributeDefinitions.Item.Allo /// /// Provides operations to manage the allowedValues property of the microsoft.graph.customSecurityAttributeDefinition entity. /// - public class AllowedValueItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedValueItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property allowedValues for directory @@ -157,8 +160,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(AllowedValue.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AllowedValue.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -180,14 +183,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 AllowedValueItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues/{allowedValue%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 AllowedValueItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}/allowedValues/{allowedValue%2Did}{?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(AllowedValue body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AllowedValue body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AllowedValue body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AllowedValue body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(AllowedValue body, Action /// Read the properties and relationships of an allowedValue object. /// - public class AllowedValueItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedValueItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class AllowedValueItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs index 3f3276408d..ceb0f21e60 100644 --- a/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/CustomSecurityAttributeDefinitions/Item/CustomSecurityAttributeDefinitionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.CustomSecurityAttributeDefinitions.Item.AllowedValues; 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.DirectoryNamespace.CustomSecurityAttributeDefinitions.Item /// /// Provides operations to manage the customSecurityAttributeDefinitions property of the microsoft.graph.directory entity. /// - public class CustomSecurityAttributeDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomSecurityAttributeDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the allowedValues property of the microsoft.graph.customSecurityAttributeDefinition entity. @@ -30,7 +33,7 @@ public Command BuildAllowedValuesNavCommand() { var command = new Command("allowed-values"); command.Description = "Provides operations to manage the allowedValues property of the microsoft.graph.customSecurityAttributeDefinition entity."; - var builder = new AllowedValuesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.CustomSecurityAttributeDefinitions.Item.AllowedValues.AllowedValuesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -168,8 +171,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(CustomSecurityAttributeDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CustomSecurityAttributeDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -190,14 +193,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 CustomSecurityAttributeDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%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 CustomSecurityAttributeDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/customSecurityAttributeDefinitions/{customSecurityAttributeDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -229,11 +232,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); @@ -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 ToPatchRequestInformation(CustomSecurityAttributeDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CustomSecurityAttributeDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CustomSecurityAttributeDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CustomSecurityAttributeDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPatchRequestInformation(CustomSecurityAttributeDefin /// /// Read the properties and relationships of a customSecurityAttributeDefinition object. /// - public class CustomSecurityAttributeDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomSecurityAttributeDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -290,3 +294,4 @@ public class CustomSecurityAttributeDefinitionItemRequestBuilderGetQueryParamete } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Count/CountRequestBuilder.cs index 8886100bee..27a540df20 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/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.DirectoryNamespace.DeletedItems.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}/directory/deletedItems/$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}/directory/deletedItems/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedIt /// 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/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs index c596f896d7..7cabf0994c 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.DeletedItems.Count; using ApiSdk.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties; using ApiSdk.DirectoryNamespace.DeletedItems.GetByIds; @@ -12,6 +13,7 @@ using ApiSdk.DirectoryNamespace.DeletedItems.ValidateProperties; 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; @@ -30,7 +32,8 @@ namespace ApiSdk.DirectoryNamespace.DeletedItems /// /// Provides operations to manage the deletedItems property of the microsoft.graph.directory entity. /// - public class DeletedItemsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeletedItemsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deletedItems property of the microsoft.graph.directory entity. @@ -40,7 +43,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.DirectoryObjectItemRequestBuilder(PathParameters); commands.Add(builder.BuildCheckMemberGroupsNavCommand()); commands.Add(builder.BuildCheckMemberObjectsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -64,7 +67,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.DirectoryNamespace.DeletedItems.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,7 +84,7 @@ public Command BuildGetAvailableExtensionPropertiesNavCommand() { var command = new Command("get-available-extension-properties"); command.Description = "Provides operations to call the getAvailableExtensionProperties method."; - var builder = new GetAvailableExtensionPropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -98,7 +101,7 @@ public Command BuildGetByIdsNavCommand() { var command = new Command("get-by-ids"); command.Description = "Provides operations to call the getByIds method."; - var builder = new GetByIdsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.GetByIds.GetByIdsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -115,7 +118,7 @@ public Command BuildGraphAdministrativeUnitNavCommand() { var command = new Command("graph-administrative-unit"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -138,7 +141,7 @@ public Command BuildGraphApplicationNavCommand() { var command = new Command("graph-application"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -161,7 +164,7 @@ public Command BuildGraphDeviceNavCommand() { var command = new Command("graph-device"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -184,7 +187,7 @@ public Command BuildGraphGroupNavCommand() { var command = new Command("graph-group"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -207,7 +210,7 @@ public Command BuildGraphServicePrincipalNavCommand() { var command = new Command("graph-service-principal"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -230,7 +233,7 @@ public Command BuildGraphUserNavCommand() { var command = new Command("graph-user"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -349,7 +352,7 @@ public Command BuildValidatePropertiesNavCommand() { var command = new Command("validate-properties"); command.Description = "Provides operations to call the validateProperties method."; - var builder = new ValidatePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.ValidateProperties.ValidatePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -359,14 +362,14 @@ public Command BuildValidatePropertiesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DeletedItemsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems{?%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 DeletedItemsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -379,11 +382,11 @@ public DeletedItemsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/de /// 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); @@ -394,7 +397,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. /// - public class DeletedItemsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeletedItemsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -458,3 +462,4 @@ public class DeletedItemsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index a199548e73..1050ea785a 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetAvailableExtensionPropertiesPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHol /// The isSyncedFromOnPremises property public bool? IsSyncedFromOnPremises { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAvailableExtensionPropertiesPostRequestBody() { @@ -24,12 +26,12 @@ public GetAvailableExtensionPropertiesPostRequestBody() /// /// 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 GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostRequestBody(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 22006a7956..5f93e9a402 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAvailableExtensionPropertiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostResponse(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExtensionProperty.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index f1330e43e8..9fe1c6f1cc 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.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.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties /// /// Provides operations to call the getAvailableExtensionProperties method. /// - public class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: @@ -50,8 +53,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(GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetAvailableExtensionPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/getAvailableExtensionProperties", 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 GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/getAvailableExtensionProperties", rawUrl) @@ -101,11 +104,11 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+ba /// 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(GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostRequestBody.cs b/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostRequestBody.cs index f8bb5c1c0c..41fbdfe9ab 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryNamespace.DeletedItems.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetByIdsPostRequestBody : 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. @@ -29,7 +31,7 @@ public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable public List Types { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetByIdsPostRequestBody() { @@ -38,12 +40,12 @@ public GetByIdsPostRequestBody() /// /// 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 GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryNamespace.DeletedItems.GetByIds.GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostRequestBody(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.GetByIds.GetByIdsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostResponse.cs b/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostResponse.cs index 02441c1ce2..7082aa2c0f 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostResponse.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsPostResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryNamespace.DeletedItems.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetByIdsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryNamespace.DeletedItems.GetByIds.GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostResponse(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.GetByIds.GetByIdsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsRequestBuilder.cs index 8f5b931a8c..be63f59f38 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GetByIds/GetByIdsRequestBuilder.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.DirectoryNamespace.DeletedItems.GetByIds /// /// Provides operations to call the getByIds method. /// - public class GetByIdsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetByIdsRequestBuilder : BaseCliRequestBuilder { /// /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -50,8 +53,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(GetByIdsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryNamespace.DeletedItems.GetByIds.GetByIdsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetByIdsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/getByIds", 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 GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/getByIds", rawUrl) @@ -101,11 +104,11 @@ public GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/delete /// 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(GetByIdsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index 14f4d1c733..4afb754001 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/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.DirectoryNamespace.DeletedItems.GraphAdministrativeUnit.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}/directory/deletedItems/graph.administrativeUnit/$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}/directory/deletedItems/graph.administrativeUnit/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedIt /// 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/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 786edfb863..e772e65dbf 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.DeletedItems.GraphAdministrativeUnit.Count; 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.DirectoryNamespace.DeletedItems.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.DeletedItems.GraphAdministrativeUnit.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GraphApplication/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphApplication/Count/CountRequestBuilder.cs index 7531ecc56c..32e58b2483 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphApplication/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.DirectoryNamespace.DeletedItems.GraphApplication.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}/directory/deletedItems/graph.application/$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}/directory/deletedItems/graph.application/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedIt /// 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/DirectoryNamespace/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.cs index 44d89f0a3a..66fab661b2 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphApplication/GraphApplicationRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.DeletedItems.GraphApplication.Count; 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.DirectoryNamespace.DeletedItems.GraphApplication /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.DeletedItems.GraphApplication.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/director /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GraphDevice/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphDevice/Count/CountRequestBuilder.cs index 92a436fb83..7036165d0f 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphDevice/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.DirectoryNamespace.DeletedItems.GraphDevice.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}/directory/deletedItems/graph.device/$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}/directory/deletedItems/graph.device/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedIt /// 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/DirectoryNamespace/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.cs index a38002bc57..6aa76bd422 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.DeletedItems.GraphDevice.Count; 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.DirectoryNamespace.DeletedItems.GraphDevice /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.DeletedItems.GraphDevice.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directory/del /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphGroup/Count/CountRequestBuilder.cs index cef6bf71a0..0db39841a6 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphGroup/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.DirectoryNamespace.DeletedItems.GraphGroup.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}/directory/deletedItems/graph.group/$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}/directory/deletedItems/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedIt /// 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/DirectoryNamespace/DeletedItems/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphGroup/GraphGroupRequestBuilder.cs index 34b92ca2aa..c9dc0dcff4 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.DeletedItems.GraphGroup.Count; 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.DirectoryNamespace.DeletedItems.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.DeletedItems.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -137,14 +140,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -157,11 +160,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directory/dele /// 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); @@ -172,7 +175,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -236,3 +240,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.cs index 4a0355f0fa..22ddea023b 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/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.DirectoryNamespace.DeletedItems.GraphServicePrincipal.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}/directory/deletedItems/graph.servicePrincipal/$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}/directory/deletedItems/graph.servicePrincipal/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedIt /// 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/DirectoryNamespace/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 7351925d76..823e1f0d22 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.DeletedItems.GraphServicePrincipal.Count; 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.DirectoryNamespace.DeletedItems.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.DeletedItems.GraphServicePrincipal.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/dir /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/GraphUser/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphUser/Count/CountRequestBuilder.cs index 6e300e6315..ac7face822 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphUser/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphUser/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.DirectoryNamespace.DeletedItems.GraphUser.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}/directory/deletedItems/graph.user/$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}/directory/deletedItems/graph.user/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedIt /// 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/DirectoryNamespace/DeletedItems/GraphUser/GraphUserRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/GraphUser/GraphUserRequestBuilder.cs index 3083510803..c8466f92a9 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/GraphUser/GraphUserRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.DeletedItems.GraphUser.Count; 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.DirectoryNamespace.DeletedItems.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryNamespace.DeletedItems.GraphUser.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,14 +139,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directory/delet /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 722a478e96..58506b4f12 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberGroupsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List GroupIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberGroupsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberGroupsPostRequestBody() /// /// 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 CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostRequestBody(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index ba3befdf60..778e4b226d 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.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.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountRespon /// /// 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 new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups.CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostResponse(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups.CheckMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 709844d0a5..f32e85a15e 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups /// /// Provides operations to call the checkMemberGroups method. /// - public class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; + command.Description = "Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; var directoryObjectIdOption = new Option("--directory-object-id", description: "The unique identifier of directoryObject") { }; directoryObjectIdOption.IsRequired = true; @@ -55,8 +58,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(CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 CheckMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberGroups", 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 CheckMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// /// 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 ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 5e219a5a92..3ea7e4b17a 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberObjectsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsabl public List Ids { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberObjectsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberObjectsPostRequestBody() /// /// 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 CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostRequestBody(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index cf3c416441..1f3c848b80 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.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.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountRespo /// /// 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 new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects.CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostResponse(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects.CheckMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 9f3020baff..152abf8992 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.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.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects /// /// Provides operations to call the checkMemberObjects method. /// - public class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action checkMemberObjects @@ -54,8 +57,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(CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -85,14 +88,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 CheckMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberObjects", 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 CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/checkMemberObjects", rawUrl) @@ -106,11 +109,11 @@ public CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/direct /// 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(CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -121,3 +124,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs index 2863d9fa7d..454b154675 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups; using ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects; using ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberGroups; @@ -12,6 +13,7 @@ using ApiSdk.DirectoryNamespace.DeletedItems.Item.Restore; 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; @@ -30,7 +32,8 @@ namespace ApiSdk.DirectoryNamespace.DeletedItems.Item /// /// Provides operations to manage the deletedItems property of the microsoft.graph.directory entity. /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the checkMemberGroups method. @@ -40,7 +43,7 @@ public Command BuildCheckMemberGroupsNavCommand() { var command = new Command("check-member-groups"); command.Description = "Provides operations to call the checkMemberGroups method."; - var builder = new CheckMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberGroups.CheckMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -57,7 +60,7 @@ public Command BuildCheckMemberObjectsNavCommand() { var command = new Command("check-member-objects"); command.Description = "Provides operations to call the checkMemberObjects method."; - var builder = new CheckMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects.CheckMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -163,7 +166,7 @@ public Command BuildGetMemberGroupsNavCommand() { var command = new Command("get-member-groups"); command.Description = "Provides operations to call the getMemberGroups method."; - var builder = new GetMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberGroups.GetMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -180,7 +183,7 @@ public Command BuildGetMemberObjectsNavCommand() { var command = new Command("get-member-objects"); command.Description = "Provides operations to call the getMemberObjects method."; - var builder = new GetMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberObjects.GetMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -197,7 +200,7 @@ public Command BuildGraphAdministrativeUnitByIdNavCommand() { var command = new Command("graph-administrative-unit-by-id"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -214,7 +217,7 @@ public Command BuildGraphApplicationByIdNavCommand() { var command = new Command("graph-application-by-id"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -231,7 +234,7 @@ public Command BuildGraphDeviceByIdNavCommand() { var command = new Command("graph-device-by-id"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -248,7 +251,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -265,7 +268,7 @@ public Command BuildGraphServicePrincipalByIdNavCommand() { var command = new Command("graph-service-principal-by-id"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -282,7 +285,7 @@ public Command BuildGraphUserByIdNavCommand() { var command = new Command("graph-user-by-id"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -299,7 +302,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -309,14 +312,14 @@ public Command BuildRestoreNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) @@ -348,11 +351,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); @@ -363,7 +366,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. /// - public class DirectoryObjectItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -388,3 +392,4 @@ public class DirectoryObjectItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 0cb16183f5..47c3a4ffd3 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberGroupsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberGroupsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberGroupsPostRequestBody() /// /// 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 GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberGroups.GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostRequestBody(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberGroups.GetMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index a996af8ac4..386ccd67c7 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsPostResponse.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.DirectoryNamespace.DeletedItems.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse /// /// 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 new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberGroups.GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostResponse(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberGroups.GetMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 3dcab3e8d8..9a9f902c7f 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberGroups /// /// Provides operations to call the getMemberGroups method. /// - public class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; + command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; var directoryObjectIdOption = new Option("--directory-object-id", description: "The unique identifier of directoryObject") { }; directoryObjectIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberGroups.GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberGroups", 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 GetMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// /// 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 ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 79280d1340..2fc99bc0f3 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberObjectsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberObjectsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberObjectsPostRequestBody() /// /// 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 GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberObjects.GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostRequestBody(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberObjects.GetMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 86ad891470..38d9626409 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsPostResponse.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.DirectoryNamespace.DeletedItems.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountRespons /// /// 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 new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberObjects.GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostResponse(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberObjects.GetMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 5772b1bf71..13348796b2 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberObjects /// /// Provides operations to call the getMemberObjects method. /// - public class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; + command.Description = "Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; var directoryObjectIdOption = new Option("--directory-object-id", description: "The unique identifier of directoryObject") { }; directoryObjectIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberObjects.GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberObjects", 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 GetMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// /// 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 ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 7e150e84cd..ce82c90203 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.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.DirectoryNamespace.DeletedItems.Item.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -74,14 +77,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.cs index a811151d68..a53746ae69 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphApplication/GraphApplicationRequestBuilder.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.DirectoryNamespace.DeletedItems.Item.GraphApplication /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -74,14 +77,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.application{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/director /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.cs index 17c3e92d8c..bf2039a45d 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.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.DirectoryNamespace.DeletedItems.Item.GraphDevice /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -74,14 +77,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.device{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directory/del /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.cs index cc46a9bfd0..d220a27fc7 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.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.DirectoryNamespace.DeletedItems.Item.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. @@ -75,14 +78,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -95,11 +98,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directory/dele /// 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); @@ -110,7 +113,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,3 +139,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index f1f717c1ac..32414e3867 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.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.DirectoryNamespace.DeletedItems.Item.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -74,14 +77,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/dir /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.cs index 345575e440..27bd830bb3 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/GraphUser/GraphUserRequestBuilder.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.DirectoryNamespace.DeletedItems.Item.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -74,14 +77,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.user{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directory/delet /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs index fb33228cc5..c910227e73 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.DirectoryNamespace.DeletedItems.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var directoryObjectIdOption = new Option("--directory-object-id", description: "The unique identifier of directoryObject") { }; directoryObjectIdOption.IsRequired = true; @@ -61,21 +64,21 @@ 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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryNamespace.DeletedItems.ValidateProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidatePropertiesPostRequestBody : 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. @@ -39,7 +41,7 @@ public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsabl /// The onBehalfOfUserId property public Guid? OnBehalfOfUserId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidatePropertiesPostRequestBody() { @@ -48,12 +50,12 @@ public ValidatePropertiesPostRequestBody() /// /// 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 ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryNamespace.DeletedItems.ValidateProperties.ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidatePropertiesPostRequestBody(); + return new global::ApiSdk.DirectoryNamespace.DeletedItems.ValidateProperties.ValidatePropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -84,3 +86,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.cs index a04f6592ee..3276ad9be6 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/ValidateProperties/ValidatePropertiesRequestBuilder.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.DirectoryNamespace.DeletedItems.ValidateProperties /// /// Provides operations to call the validateProperties method. /// - public class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. @@ -38,8 +41,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(ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryNamespace.DeletedItems.ValidateProperties.ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -57,14 +60,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 ValidatePropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deletedItems/validateProperties", 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 ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/validateProperties", rawUrl) @@ -78,11 +81,11 @@ public ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/direct /// 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(ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.ValidateProperties.ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryNamespace.DeletedItems.ValidateProperties.ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -93,3 +96,4 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeviceLocalCredentials/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/DeviceLocalCredentials/Count/CountRequestBuilder.cs index 2eae145666..2306539f1e 100644 --- a/src/generated/DirectoryNamespace/DeviceLocalCredentials/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeviceLocalCredentials/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.DirectoryNamespace.DeviceLocalCredentials.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}/directory/deviceLocalCredentials/$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}/directory/deviceLocalCredentials/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deviceLoc /// 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/DirectoryNamespace/DeviceLocalCredentials/DeviceLocalCredentialsRequestBuilder.cs b/src/generated/DirectoryNamespace/DeviceLocalCredentials/DeviceLocalCredentialsRequestBuilder.cs index 5e67e226af..38a350c06d 100644 --- a/src/generated/DirectoryNamespace/DeviceLocalCredentials/DeviceLocalCredentialsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeviceLocalCredentials/DeviceLocalCredentialsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.DeviceLocalCredentials.Count; using ApiSdk.DirectoryNamespace.DeviceLocalCredentials.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.DirectoryNamespace.DeviceLocalCredentials /// /// Provides operations to manage the deviceLocalCredentials property of the microsoft.graph.directory entity. /// - public class DeviceLocalCredentialsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceLocalCredentialsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the deviceLocalCredentials property of the microsoft.graph.directory entity. @@ -30,7 +33,7 @@ public class DeviceLocalCredentialsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DeviceLocalCredentialInfoItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeviceLocalCredentials.Item.DeviceLocalCredentialInfoItemRequestBuilder(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.DirectoryNamespace.DeviceLocalCredentials.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DeviceLocalCredentialInfo.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceLocalCredentialInfo.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -137,6 +140,11 @@ public Command BuildListCommand() }; 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"); @@ -151,6 +159,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -167,6 +176,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, @@ -189,17 +199,17 @@ 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 DeviceLocalCredentialsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deviceLocalCredentials{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public DeviceLocalCredentialsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deviceLocalCredentials{?%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 DeviceLocalCredentialsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deviceLocalCredentials{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public DeviceLocalCredentialsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deviceLocalCredentials{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -209,11 +219,11 @@ public DeviceLocalCredentialsRequestBuilder(string rawUrl) : base("{+baseurl}/di /// 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); @@ -229,11 +239,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(DeviceLocalCredentialInfo body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceLocalCredentialInfo body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeviceLocalCredentialInfo body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DeviceLocalCredentialInfo body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -245,11 +255,22 @@ public RequestInformation ToPostRequestInformation(DeviceLocalCredentialInfo bod /// /// Get a list of the deviceLocalCredentialInfo objects and their properties, excluding the credentials property. /// - public class DeviceLocalCredentialsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceLocalCredentialsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -299,3 +320,4 @@ public class DeviceLocalCredentialsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DeviceLocalCredentials/Item/DeviceLocalCredentialInfoItemRequestBuilder.cs b/src/generated/DirectoryNamespace/DeviceLocalCredentials/Item/DeviceLocalCredentialInfoItemRequestBuilder.cs index c28861fc01..df9083bea2 100644 --- a/src/generated/DirectoryNamespace/DeviceLocalCredentials/Item/DeviceLocalCredentialInfoItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeviceLocalCredentials/Item/DeviceLocalCredentialInfoItemRequestBuilder.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.DirectoryNamespace.DeviceLocalCredentials.Item /// /// Provides operations to manage the deviceLocalCredentials property of the microsoft.graph.directory entity. /// - public class DeviceLocalCredentialInfoItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceLocalCredentialInfoItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property deviceLocalCredentials for directory @@ -74,6 +77,11 @@ public Command BuildGetCommand() }; 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"); @@ -81,6 +89,7 @@ public Command BuildGetCommand() command.SetHandler(async (invocationContext) => { var deviceLocalCredentialInfoId = invocationContext.ParseResult.GetValueForOption(deviceLocalCredentialInfoIdOption); 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"); @@ -89,6 +98,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (deviceLocalCredentialInfoId is not null) requestInfo.PathParameters.Add("deviceLocalCredentialInfo%2Did", deviceLocalCredentialInfoId); var errorMapping = new Dictionary> { @@ -132,8 +142,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(DeviceLocalCredentialInfo.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DeviceLocalCredentialInfo.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -154,17 +164,17 @@ 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 DeviceLocalCredentialInfoItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deviceLocalCredentials/{deviceLocalCredentialInfo%2Did}{?%24select}", pathParameters) + public DeviceLocalCredentialInfoItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/deviceLocalCredentials/{deviceLocalCredentialInfo%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 DeviceLocalCredentialInfoItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deviceLocalCredentials/{deviceLocalCredentialInfo%2Did}{?%24select}", rawUrl) + public DeviceLocalCredentialInfoItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deviceLocalCredentials/{deviceLocalCredentialInfo%2Did}{?%24expand,%24select}", rawUrl) { } /// @@ -193,11 +203,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); @@ -213,11 +223,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(DeviceLocalCredentialInfo body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceLocalCredentialInfo body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DeviceLocalCredentialInfo body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DeviceLocalCredentialInfo body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -229,8 +239,19 @@ public RequestInformation ToPatchRequestInformation(DeviceLocalCredentialInfo bo /// /// Retrieve the properties of a deviceLocalCredentialInfo for a specified device object. /// - public class DeviceLocalCredentialInfoItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeviceLocalCredentialInfoItemRequestBuilderGetQueryParameters { + /// 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 @@ -244,3 +265,4 @@ public class DeviceLocalCredentialInfoItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/DirectoryRequestBuilder.cs b/src/generated/DirectoryNamespace/DirectoryRequestBuilder.cs index 8907322d4e..c60af6baa5 100644 --- a/src/generated/DirectoryNamespace/DirectoryRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DirectoryRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.AdministrativeUnits; using ApiSdk.DirectoryNamespace.AttributeSets; using ApiSdk.DirectoryNamespace.CustomSecurityAttributeDefinitions; @@ -10,6 +11,7 @@ using ApiSdk.DirectoryNamespace.SubscriptionsWithCommerceSubscriptionId; 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; @@ -28,7 +30,8 @@ namespace ApiSdk.DirectoryNamespace /// /// Provides operations to manage the directory singleton. /// - public class DirectoryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the administrativeUnits property of the microsoft.graph.directory entity. @@ -38,7 +41,7 @@ public Command BuildAdministrativeUnitsNavCommand() { var command = new Command("administrative-units"); command.Description = "Provides operations to manage the administrativeUnits property of the microsoft.graph.directory entity."; - var builder = new AdministrativeUnitsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AdministrativeUnits.AdministrativeUnitsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -66,7 +69,7 @@ public Command BuildAttributeSetsNavCommand() { var command = new Command("attribute-sets"); command.Description = "Provides operations to manage the attributeSets property of the microsoft.graph.directory entity."; - var builder = new AttributeSetsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.AttributeSets.AttributeSetsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -93,7 +96,7 @@ public Command BuildCustomSecurityAttributeDefinitionsNavCommand() { var command = new Command("custom-security-attribute-definitions"); command.Description = "Provides operations to manage the customSecurityAttributeDefinitions property of the microsoft.graph.directory entity."; - var builder = new CustomSecurityAttributeDefinitionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.CustomSecurityAttributeDefinitions.CustomSecurityAttributeDefinitionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -120,7 +123,7 @@ public Command BuildDeletedItemsNavCommand() { var command = new Command("deleted-items"); command.Description = "Provides operations to manage the deletedItems property of the microsoft.graph.directory entity."; - var builder = new DeletedItemsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeletedItems.DeletedItemsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -155,7 +158,7 @@ public Command BuildDeviceLocalCredentialsNavCommand() { var command = new Command("device-local-credentials"); command.Description = "Provides operations to manage the deviceLocalCredentials property of the microsoft.graph.directory entity."; - var builder = new DeviceLocalCredentialsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DeviceLocalCredentials.DeviceLocalCredentialsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -182,7 +185,7 @@ public Command BuildFederationConfigurationsNavCommand() { var command = new Command("federation-configurations"); command.Description = "Provides operations to manage the federationConfigurations property of the microsoft.graph.directory entity."; - var builder = new FederationConfigurationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.FederationConfigurations.FederationConfigurationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAvailableProviderTypesNavCommand()); @@ -256,7 +259,7 @@ public Command BuildOnPremisesSynchronizationNavCommand() { var command = new Command("on-premises-synchronization"); command.Description = "Provides operations to manage the onPremisesSynchronization property of the microsoft.graph.directory entity."; - var builder = new OnPremisesSynchronizationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.OnPremisesSynchronization.OnPremisesSynchronizationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -300,8 +303,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(DirectoryObject1.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryObject1.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -328,7 +331,7 @@ public Command BuildSubscriptionsNavCommand() { var command = new Command("subscriptions"); command.Description = "Provides operations to manage the subscriptions property of the microsoft.graph.directory entity."; - var builder = new SubscriptionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.Subscriptions.SubscriptionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -355,7 +358,7 @@ public Command BuildSubscriptionsWithCommerceSubscriptionIdRbCommand() { var command = new Command("subscriptions-with-commerce-subscription-id"); command.Description = "Provides operations to manage the subscriptions property of the microsoft.graph.directory entity."; - var builder = new SubscriptionsWithCommerceSubscriptionIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.SubscriptionsWithCommerceSubscriptionId.SubscriptionsWithCommerceSubscriptionIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -367,14 +370,14 @@ public Command BuildSubscriptionsWithCommerceSubscriptionIdRbCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory{?%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 DirectoryRequestBuilder(string rawUrl) : base("{+baseurl}/directory{?%24expand,%24select}", rawUrl) @@ -387,11 +390,11 @@ public DirectoryRequestBuilder(string rawUrl) : base("{+baseurl}/directory{?%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); @@ -407,11 +410,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(DirectoryObject1 body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryObject1 body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DirectoryObject1 body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryObject1 body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -423,7 +426,8 @@ public RequestInformation ToPatchRequestInformation(DirectoryObject1 body, Actio /// /// Get directory /// - public class DirectoryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -448,3 +452,4 @@ public class DirectoryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs b/src/generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs index 9b52d9764c..660d570c7f 100644 --- a/src/generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.cs +++ b/src/generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesGetResponse.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.DirectoryNamespace.FederationConfigurations.AvailableProviderTypes { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AvailableProviderTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class AvailableProviderTypesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class AvailableProviderTypesGetResponse : BaseCollectionPaginationCountRe /// /// 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 new AvailableProviderTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryNamespace.FederationConfigurations.AvailableProviderTypes.AvailableProviderTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AvailableProviderTypesGetResponse(); + return new global::ApiSdk.DirectoryNamespace.FederationConfigurations.AvailableProviderTypes.AvailableProviderTypesGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs b/src/generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs index 5ec4b62ef9..9220a0685b 100644 --- a/src/generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/FederationConfigurations/AvailableProviderTypes/AvailableProviderTypesRequestBuilder.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.DirectoryNamespace.FederationConfigurations.AvailableProviderTy /// /// Provides operations to call the availableProviderTypes method. /// - public class AvailableProviderTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AvailableProviderTypesRequestBuilder : BaseCliRequestBuilder { /// /// Get all identity providers supported in a directory. @@ -97,14 +100,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 AvailableProviderTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/federationConfigurations/availableProviderTypes(){?%24count,%24filter,%24search,%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 AvailableProviderTypesRequestBuilder(string rawUrl) : base("{+baseurl}/directory/federationConfigurations/availableProviderTypes(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) @@ -117,11 +120,11 @@ public AvailableProviderTypesRequestBuilder(string rawUrl) : base("{+baseurl}/di /// 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); @@ -132,7 +135,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get all identity providers supported in a directory. /// - public class AvailableProviderTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AvailableProviderTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -166,3 +170,4 @@ public class AvailableProviderTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/FederationConfigurations/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/FederationConfigurations/Count/CountRequestBuilder.cs index 5241b60eb9..d98614dd5a 100644 --- a/src/generated/DirectoryNamespace/FederationConfigurations/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/FederationConfigurations/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.DirectoryNamespace.FederationConfigurations.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}/directory/federationConfigurations/$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}/directory/federationConfigurations/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/federatio /// 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/DirectoryNamespace/FederationConfigurations/FederationConfigurationsRequestBuilder.cs b/src/generated/DirectoryNamespace/FederationConfigurations/FederationConfigurationsRequestBuilder.cs index e0c3a20b18..374f82967e 100644 --- a/src/generated/DirectoryNamespace/FederationConfigurations/FederationConfigurationsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/FederationConfigurations/FederationConfigurationsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.FederationConfigurations.AvailableProviderTypes; using ApiSdk.DirectoryNamespace.FederationConfigurations.Count; using ApiSdk.DirectoryNamespace.FederationConfigurations.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; @@ -22,7 +24,8 @@ namespace ApiSdk.DirectoryNamespace.FederationConfigurations /// /// Provides operations to manage the federationConfigurations property of the microsoft.graph.directory entity. /// - public class FederationConfigurationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FederationConfigurationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the availableProviderTypes method. @@ -32,7 +35,7 @@ public Command BuildAvailableProviderTypesNavCommand() { var command = new Command("available-provider-types"); command.Description = "Provides operations to call the availableProviderTypes method."; - var builder = new AvailableProviderTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.FederationConfigurations.AvailableProviderTypes.AvailableProviderTypesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -48,7 +51,7 @@ public Command BuildAvailableProviderTypesNavCommand() public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new IdentityProviderBaseItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.FederationConfigurations.Item.IdentityProviderBaseItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -62,7 +65,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.DirectoryNamespace.FederationConfigurations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -96,8 +99,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(IdentityProviderBase.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.IdentityProviderBase.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -213,14 +216,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 FederationConfigurationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/federationConfigurations{?%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 FederationConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/federationConfigurations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -233,11 +236,11 @@ public FederationConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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); @@ -253,11 +256,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(IdentityProviderBase body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.IdentityProviderBase body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IdentityProviderBase body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.IdentityProviderBase body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -269,7 +272,8 @@ public RequestInformation ToPostRequestInformation(IdentityProviderBase body, Ac /// /// Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol. /// - public class FederationConfigurationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FederationConfigurationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -333,3 +337,4 @@ public class FederationConfigurationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.cs b/src/generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.cs index c8e8e705f7..b923c2fbd5 100644 --- a/src/generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/FederationConfigurations/Item/IdentityProviderBaseItemRequestBuilder.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.DirectoryNamespace.FederationConfigurations.Item /// /// Provides operations to manage the federationConfigurations property of the microsoft.graph.directory entity. /// - public class IdentityProviderBaseItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IdentityProviderBaseItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete a samlOrWsFedExternalDomainFederation object. @@ -139,8 +142,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(IdentityProviderBase.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.IdentityProviderBase.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 IdentityProviderBaseItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/federationConfigurations/{identityProviderBase%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 IdentityProviderBaseItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/federationConfigurations/{identityProviderBase%2Did}{?%24expand,%24select}", rawUrl) @@ -200,11 +203,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); @@ -220,11 +223,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(IdentityProviderBase body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.IdentityProviderBase body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(IdentityProviderBase body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.IdentityProviderBase body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -236,7 +239,8 @@ public RequestInformation ToPatchRequestInformation(IdentityProviderBase body, A /// /// Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol. /// - public class IdentityProviderBaseItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IdentityProviderBaseItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -261,3 +265,4 @@ public class IdentityProviderBaseItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/OnPremisesSynchronization/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/OnPremisesSynchronization/Count/CountRequestBuilder.cs index 22c043d56c..f1b5080b58 100644 --- a/src/generated/DirectoryNamespace/OnPremisesSynchronization/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/OnPremisesSynchronization/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.DirectoryNamespace.OnPremisesSynchronization.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}/directory/onPremisesSynchronization/$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}/directory/onPremisesSynchronization/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/onPremise /// 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/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.cs b/src/generated/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.cs index 2cadeab57c..46875250d5 100644 --- a/src/generated/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/OnPremisesSynchronization/Item/OnPremisesDirectorySynchronizationItemRequestBuilder.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.DirectoryNamespace.OnPremisesSynchronization.Item /// /// Provides operations to manage the onPremisesSynchronization property of the microsoft.graph.directory entity. /// - public class OnPremisesDirectorySynchronizationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnPremisesDirectorySynchronizationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property onPremisesSynchronization for directory @@ -140,8 +143,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(OnPremisesDirectorySynchronization.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnPremisesDirectorySynchronization.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 OnPremisesDirectorySynchronizationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/onPremisesSynchronization/{onPremisesDirectorySynchronization%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 OnPremisesDirectorySynchronizationItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/onPremisesSynchronization/{onPremisesDirectorySynchronization%2Did}{?%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(OnPremisesDirectorySynchronization body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnPremisesDirectorySynchronization body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnPremisesDirectorySynchronization body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnPremisesDirectorySynchronization body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(OnPremisesDirectorySynchroni /// /// Read the properties and relationships of an onPremisesDirectorySynchronization object. /// - public class OnPremisesDirectorySynchronizationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnPremisesDirectorySynchronizationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class OnPremisesDirectorySynchronizationItemRequestBuilderGetQueryParamet } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs b/src/generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs index bc1ac06d44..e4fdaee87c 100644 --- a/src/generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/OnPremisesSynchronization/OnPremisesSynchronizationRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.OnPremisesSynchronization.Count; using ApiSdk.DirectoryNamespace.OnPremisesSynchronization.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.DirectoryNamespace.OnPremisesSynchronization /// /// Provides operations to manage the onPremisesSynchronization property of the microsoft.graph.directory entity. /// - public class OnPremisesSynchronizationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnPremisesSynchronizationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the onPremisesSynchronization property of the microsoft.graph.directory entity. @@ -30,7 +33,7 @@ public class OnPremisesSynchronizationRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new OnPremisesDirectorySynchronizationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.OnPremisesSynchronization.Item.OnPremisesDirectorySynchronizationItemRequestBuilder(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.DirectoryNamespace.OnPremisesSynchronization.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(OnPremisesDirectorySynchronization.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnPremisesDirectorySynchronization.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 OnPremisesSynchronizationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/onPremisesSynchronization{?%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 OnPremisesSynchronizationRequestBuilder(string rawUrl) : base("{+baseurl}/directory/onPremisesSynchronization{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public OnPremisesSynchronizationRequestBuilder(string rawUrl) : base("{+baseurl} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(OnPremisesDirectorySynchronization body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnPremisesDirectorySynchronization body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnPremisesDirectorySynchronization body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnPremisesDirectorySynchronization body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(OnPremisesDirectorySynchroniz /// /// Read the properties and relationships of an onPremisesDirectorySynchronization object. /// - public class OnPremisesSynchronizationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnPremisesSynchronizationRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class OnPremisesSynchronizationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/Subscriptions/Count/CountRequestBuilder.cs b/src/generated/DirectoryNamespace/Subscriptions/Count/CountRequestBuilder.cs index 86cb9f7214..7d10469109 100644 --- a/src/generated/DirectoryNamespace/Subscriptions/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/Subscriptions/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.DirectoryNamespace.Subscriptions.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}/directory/subscriptions/$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}/directory/subscriptions/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directory/subscript /// 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/DirectoryNamespace/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.cs b/src/generated/DirectoryNamespace/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.cs index 859f38c3d5..337471ab43 100644 --- a/src/generated/DirectoryNamespace/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.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.DirectoryNamespace.Subscriptions.Item /// /// Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. /// - public class CompanySubscriptionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CompanySubscriptionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property subscriptions for directory @@ -57,13 +60,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Get subscriptions from directory + /// Get a specific commercial subscription that an organization acquired. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get subscriptions from directory"; + command.Description = "Get a specific commercial subscription that an organization acquired.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/companysubscription-get?view=graph-rest-1.0"; var companySubscriptionIdOption = new Option("--company-subscription-id", description: "The unique identifier of companySubscription") { }; companySubscriptionIdOption.IsRequired = true; @@ -138,8 +142,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(CompanySubscription.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CompanySubscription.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +164,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 CompanySubscriptionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/subscriptions/{companySubscription%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 CompanySubscriptionItemRequestBuilder(string rawUrl) : base("{+baseurl}/directory/subscriptions/{companySubscription%2Did}{?%24expand,%24select}", rawUrl) @@ -193,17 +197,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get subscriptions from directory + /// Get a specific commercial subscription that an organization acquired. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +223,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(CompanySubscription body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CompanySubscription body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CompanySubscription body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CompanySubscription body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -233,9 +237,10 @@ public RequestInformation ToPatchRequestInformation(CompanySubscription body, Ac return requestInfo; } /// - /// Get subscriptions from directory + /// Get a specific commercial subscription that an organization acquired. /// - public class CompanySubscriptionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CompanySubscriptionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +265,4 @@ public class CompanySubscriptionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/Subscriptions/SubscriptionsRequestBuilder.cs b/src/generated/DirectoryNamespace/Subscriptions/SubscriptionsRequestBuilder.cs index 6e630062e4..7037c44fb8 100644 --- a/src/generated/DirectoryNamespace/Subscriptions/SubscriptionsRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/Subscriptions/SubscriptionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryNamespace.Subscriptions.Count; using ApiSdk.DirectoryNamespace.Subscriptions.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.DirectoryNamespace.Subscriptions /// /// Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. /// - public class SubscriptionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. @@ -30,7 +33,7 @@ public class SubscriptionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new CompanySubscriptionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.Subscriptions.Item.CompanySubscriptionItemRequestBuilder(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.DirectoryNamespace.Subscriptions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(CompanySubscription.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CompanySubscription.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -99,13 +102,14 @@ public Command BuildCreateCommand() return command; } /// - /// Get subscriptions from directory + /// Get the list of commercial subscriptions that an organization acquired. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Get subscriptions from directory"; + command.Description = "Get the list of commercial subscriptions that an organization acquired.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-list-subscriptions?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -195,31 +199,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SubscriptionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/subscriptions{?%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 SubscriptionsRequestBuilder(string rawUrl) : base("{+baseurl}/directory/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get subscriptions from directory + /// Get the list of commercial subscriptions that an organization acquired. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +239,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(CompanySubscription body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CompanySubscription body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CompanySubscription body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CompanySubscription body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -249,9 +253,10 @@ public RequestInformation ToPostRequestInformation(CompanySubscription body, Act return requestInfo; } /// - /// Get subscriptions from directory + /// Get the list of commercial subscriptions that an organization acquired. /// - public class SubscriptionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +320,4 @@ public class SubscriptionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryNamespace/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.cs b/src/generated/DirectoryNamespace/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.cs index 9128c653c3..5910a1cd09 100644 --- a/src/generated/DirectoryNamespace/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.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.DirectoryNamespace.SubscriptionsWithCommerceSubscriptionId /// /// Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. /// - public class SubscriptionsWithCommerceSubscriptionIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionsWithCommerceSubscriptionIdRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property subscriptions for directory @@ -57,13 +60,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Get subscriptions from directory + /// Get a specific commercial subscription that an organization acquired. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get subscriptions from directory"; + command.Description = "Get a specific commercial subscription that an organization acquired.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/companysubscription-get?view=graph-rest-1.0"; var commerceSubscriptionIdOption = new Option("--commerce-subscription-id", description: "Alternate key of companySubscription") { }; commerceSubscriptionIdOption.IsRequired = true; @@ -138,8 +142,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(CompanySubscription.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CompanySubscription.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +164,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 SubscriptionsWithCommerceSubscriptionIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directory/subscriptions(commerceSubscriptionId='{commerceSubscriptionId}'){?%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 SubscriptionsWithCommerceSubscriptionIdRequestBuilder(string rawUrl) : base("{+baseurl}/directory/subscriptions(commerceSubscriptionId='{commerceSubscriptionId}'){?%24expand,%24select}", rawUrl) @@ -193,17 +197,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get subscriptions from directory + /// Get a specific commercial subscription that an organization acquired. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +223,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(CompanySubscription body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CompanySubscription body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CompanySubscription body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CompanySubscription body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -233,9 +237,10 @@ public RequestInformation ToPatchRequestInformation(CompanySubscription body, Ac return requestInfo; } /// - /// Get subscriptions from directory + /// Get a specific commercial subscription that an organization acquired. /// - public class SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +265,4 @@ public class SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParame } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Count/CountRequestBuilder.cs b/src/generated/DirectoryObjects/Count/CountRequestBuilder.cs index f3b3d8bf42..1fca9f4632 100644 --- a/src/generated/DirectoryObjects/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryObjects/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.DirectoryObjects.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 @@ -64,14 +67,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}/directoryObjects/$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}/directoryObjects/$count{?%24filter,%24search}", rawUrl) @@ -84,11 +87,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/$c /// 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); @@ -99,7 +102,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 @@ -124,3 +128,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Delta/DeltaGetResponse.cs b/src/generated/DirectoryObjects/Delta/DeltaGetResponse.cs index 38a7836403..5d829960a1 100644 --- a/src/generated/DirectoryObjects/Delta/DeltaGetResponse.cs +++ b/src/generated/DirectoryObjects/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryObjects.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryObjects.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.DirectoryObjects.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs b/src/generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs index c6fcec5fcc..1541ed4d00 100644 --- a/src/generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs +++ b/src/generated/DirectoryObjects/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryObjects.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-1.0"; + command.Description = "Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -118,31 +121,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryObjects/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -151,9 +154,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs b/src/generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs index 75b6903c2d..5713e96f0c 100644 --- a/src/generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs +++ b/src/generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryObjects.Count; using ApiSdk.DirectoryObjects.Delta; using ApiSdk.DirectoryObjects.GetAvailableExtensionProperties; @@ -7,6 +8,7 @@ using ApiSdk.DirectoryObjects.ValidateProperties; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.DirectoryObjects /// /// Provides operations to manage the collection of directoryObject entities. /// - public class DirectoryObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of directoryObject entities. @@ -35,7 +38,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryObjects.Item.DirectoryObjectItemRequestBuilder(PathParameters); commands.Add(builder.BuildCheckMemberGroupsNavCommand()); commands.Add(builder.BuildCheckMemberObjectsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -54,7 +57,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.DirectoryObjects.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -116,7 +119,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryObjects.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -133,7 +136,7 @@ public Command BuildGetAvailableExtensionPropertiesNavCommand() { var command = new Command("get-available-extension-properties"); command.Description = "Provides operations to call the getAvailableExtensionProperties method."; - var builder = new GetAvailableExtensionPropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryObjects.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -150,7 +153,7 @@ public Command BuildGetByIdsNavCommand() { var command = new Command("get-by-ids"); command.Description = "Provides operations to call the getByIds method."; - var builder = new GetByIdsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryObjects.GetByIds.GetByIdsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -270,7 +273,7 @@ public Command BuildValidatePropertiesNavCommand() { var command = new Command("validate-properties"); command.Description = "Provides operations to call the validateProperties method."; - var builder = new ValidatePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryObjects.ValidateProperties.ValidatePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -280,14 +283,14 @@ public Command BuildValidatePropertiesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryObjects{?%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 DirectoryObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -300,11 +303,11 @@ public DirectoryObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/director /// 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); @@ -320,11 +323,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(DirectoryObject body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryObject body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DirectoryObject body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryObject body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -336,7 +339,8 @@ public RequestInformation ToPostRequestInformation(DirectoryObject body, Action< /// /// Get entities from directoryObjects /// - public class DirectoryObjectsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -400,3 +404,4 @@ public class DirectoryObjectsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 16a4d7b83e..fee5a48c8a 100644 --- a/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryObjects.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetAvailableExtensionPropertiesPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHol /// The isSyncedFromOnPremises property public bool? IsSyncedFromOnPremises { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAvailableExtensionPropertiesPostRequestBody() { @@ -24,12 +26,12 @@ public GetAvailableExtensionPropertiesPostRequestBody() /// /// 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 GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryObjects.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostRequestBody(); + return new global::ApiSdk.DirectoryObjects.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 3986079b46..0e8c597e18 100644 --- a/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryObjects.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAvailableExtensionPropertiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryObjects.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostResponse(); + return new global::ApiSdk.DirectoryObjects.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExtensionProperty.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index ae8db7f1be..2aec36324b 100644 --- a/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/generated/DirectoryObjects/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.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.DirectoryObjects.GetAvailableExtensionProperties /// /// Provides operations to call the getAvailableExtensionProperties method. /// - public class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: @@ -50,8 +53,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(GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryObjects.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetAvailableExtensionPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryObjects/getAvailableExtensionProperties", 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 GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/getAvailableExtensionProperties", rawUrl) @@ -101,11 +104,11 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+ba /// 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(GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/GetByIds/GetByIdsPostRequestBody.cs b/src/generated/DirectoryObjects/GetByIds/GetByIdsPostRequestBody.cs index 89ea17ec57..be4cc666a6 100644 --- a/src/generated/DirectoryObjects/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/generated/DirectoryObjects/GetByIds/GetByIdsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryObjects.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetByIdsPostRequestBody : 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. @@ -29,7 +31,7 @@ public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable public List Types { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetByIdsPostRequestBody() { @@ -38,12 +40,12 @@ public GetByIdsPostRequestBody() /// /// 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 GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryObjects.GetByIds.GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostRequestBody(); + return new global::ApiSdk.DirectoryObjects.GetByIds.GetByIdsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.cs b/src/generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.cs index a04dd1124d..992173e8f2 100644 --- a/src/generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.cs +++ b/src/generated/DirectoryObjects/GetByIds/GetByIdsPostResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryObjects.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetByIdsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryObjects.GetByIds.GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostResponse(); + return new global::ApiSdk.DirectoryObjects.GetByIds.GetByIdsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.cs b/src/generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.cs index 487be0fbcb..42d6d65f5b 100644 --- a/src/generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/generated/DirectoryObjects/GetByIds/GetByIdsRequestBuilder.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.DirectoryObjects.GetByIds /// /// Provides operations to call the getByIds method. /// - public class GetByIdsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetByIdsRequestBuilder : BaseCliRequestBuilder { /// /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -50,8 +53,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(GetByIdsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryObjects.GetByIds.GetByIdsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetByIdsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryObjects/getByIds", 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 GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/getByIds", rawUrl) @@ -101,11 +104,11 @@ public GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects /// 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(GetByIdsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index b114dd1307..7144178501 100644 --- a/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryObjects.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberGroupsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List GroupIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberGroupsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberGroupsPostRequestBody() /// /// 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 CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryObjects.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostRequestBody(); + return new global::ApiSdk.DirectoryObjects.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 8d05e2c692..9bca72115c 100644 --- a/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.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.DirectoryObjects.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountRespon /// /// 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 new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryObjects.Item.CheckMemberGroups.CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostResponse(); + return new global::ApiSdk.DirectoryObjects.Item.CheckMemberGroups.CheckMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 2573cff7ff..cb6e8fa6a5 100644 --- a/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/generated/DirectoryObjects/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryObjects.Item.CheckMemberGroups /// /// Provides operations to call the checkMemberGroups method. /// - public class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; + command.Description = "Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; var directoryObjectIdOption = new Option("--directory-object-id", description: "The unique identifier of directoryObject") { }; directoryObjectIdOption.IsRequired = true; @@ -55,8 +58,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(CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryObjects.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 CheckMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}/checkMemberGroups", 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 CheckMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// /// 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 ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 4780fe367e..38c49323cb 100644 --- a/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryObjects.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberObjectsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsabl public List Ids { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberObjectsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberObjectsPostRequestBody() /// /// 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 CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryObjects.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostRequestBody(); + return new global::ApiSdk.DirectoryObjects.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 7636b5fc06..246280fb66 100644 --- a/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.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.DirectoryObjects.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountRespo /// /// 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 new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryObjects.Item.CheckMemberObjects.CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostResponse(); + return new global::ApiSdk.DirectoryObjects.Item.CheckMemberObjects.CheckMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index a5756c2098..3372e41766 100644 --- a/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/generated/DirectoryObjects/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.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.DirectoryObjects.Item.CheckMemberObjects /// /// Provides operations to call the checkMemberObjects method. /// - public class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action checkMemberObjects @@ -54,8 +57,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(CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryObjects.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -85,14 +88,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 CheckMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}/checkMemberObjects", 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 CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}/checkMemberObjects", rawUrl) @@ -106,11 +109,11 @@ public CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/direct /// 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(CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -121,3 +124,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs index 7dfb704aa1..a6aaa7b181 100644 --- a/src/generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/DirectoryObjects/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryObjects.Item.CheckMemberGroups; using ApiSdk.DirectoryObjects.Item.CheckMemberObjects; using ApiSdk.DirectoryObjects.Item.GetMemberGroups; @@ -6,6 +7,7 @@ using ApiSdk.DirectoryObjects.Item.Restore; 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 +26,8 @@ namespace ApiSdk.DirectoryObjects.Item /// /// Provides operations to manage the collection of directoryObject entities. /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the checkMemberGroups method. @@ -34,7 +37,7 @@ public Command BuildCheckMemberGroupsNavCommand() { var command = new Command("check-member-groups"); command.Description = "Provides operations to call the checkMemberGroups method."; - var builder = new CheckMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryObjects.Item.CheckMemberGroups.CheckMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCheckMemberObjectsNavCommand() { var command = new Command("check-member-objects"); command.Description = "Provides operations to call the checkMemberObjects method."; - var builder = new CheckMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryObjects.Item.CheckMemberObjects.CheckMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -157,7 +160,7 @@ public Command BuildGetMemberGroupsNavCommand() { var command = new Command("get-member-groups"); command.Description = "Provides operations to call the getMemberGroups method."; - var builder = new GetMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryObjects.Item.GetMemberGroups.GetMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -174,7 +177,7 @@ public Command BuildGetMemberObjectsNavCommand() { var command = new Command("get-member-objects"); command.Description = "Provides operations to call the getMemberObjects method."; - var builder = new GetMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryObjects.Item.GetMemberObjects.GetMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -213,8 +216,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(DirectoryObject.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -242,7 +245,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryObjects.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -252,14 +255,14 @@ public Command BuildRestoreNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryObjects/{directoryObject%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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) @@ -291,11 +294,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); @@ -311,11 +314,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(DirectoryObject body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryObject body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DirectoryObject body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryObject body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPatchRequestInformation(DirectoryObject body, Action /// /// Retrieve the properties and relationships of a directoryObject object. /// - public class DirectoryObjectItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -352,3 +356,4 @@ public class DirectoryObjectItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 810e87d71b..dc15c58686 100644 --- a/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryObjects.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberGroupsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberGroupsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberGroupsPostRequestBody() /// /// 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 GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryObjects.Item.GetMemberGroups.GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostRequestBody(); + return new global::ApiSdk.DirectoryObjects.Item.GetMemberGroups.GetMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index c675816401..088c5b0908 100644 --- a/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsPostResponse.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.DirectoryObjects.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse /// /// 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 new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryObjects.Item.GetMemberGroups.GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostResponse(); + return new global::ApiSdk.DirectoryObjects.Item.GetMemberGroups.GetMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 8ee1d0ad39..62060afd07 100644 --- a/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/generated/DirectoryObjects/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryObjects.Item.GetMemberGroups /// /// Provides operations to call the getMemberGroups method. /// - public class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; + command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; var directoryObjectIdOption = new Option("--directory-object-id", description: "The unique identifier of directoryObject") { }; directoryObjectIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryObjects.Item.GetMemberGroups.GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberGroups", 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 GetMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// /// 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 ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index dee54317fd..6f54e64c7f 100644 --- a/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryObjects.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberObjectsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberObjectsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberObjectsPostRequestBody() /// /// 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 GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryObjects.Item.GetMemberObjects.GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostRequestBody(); + return new global::ApiSdk.DirectoryObjects.Item.GetMemberObjects.GetMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 32c3968651..fc1c4f60af 100644 --- a/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsPostResponse.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.DirectoryObjects.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountRespons /// /// 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 new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryObjects.Item.GetMemberObjects.GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostResponse(); + return new global::ApiSdk.DirectoryObjects.Item.GetMemberObjects.GetMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 61ff07b454..bdec33474b 100644 --- a/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/generated/DirectoryObjects/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryObjects.Item.GetMemberObjects /// /// Provides operations to call the getMemberObjects method. /// - public class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; + command.Description = "Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; var directoryObjectIdOption = new Option("--directory-object-id", description: "The unique identifier of directoryObject") { }; directoryObjectIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryObjects.Item.GetMemberObjects.GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberObjects", 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 GetMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// /// 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 ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs b/src/generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs index 08414fba3a..3a3dabf96a 100644 --- a/src/generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.DirectoryObjects.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var directoryObjectIdOption = new Option("--directory-object-id", description: "The unique identifier of directoryObject") { }; directoryObjectIdOption.IsRequired = true; @@ -61,21 +64,21 @@ 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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryObjects.ValidateProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidatePropertiesPostRequestBody : 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. @@ -39,7 +41,7 @@ public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsabl /// The onBehalfOfUserId property public Guid? OnBehalfOfUserId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidatePropertiesPostRequestBody() { @@ -48,12 +50,12 @@ public ValidatePropertiesPostRequestBody() /// /// 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 ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryObjects.ValidateProperties.ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidatePropertiesPostRequestBody(); + return new global::ApiSdk.DirectoryObjects.ValidateProperties.ValidatePropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -84,3 +86,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.cs index 4117b2c67c..42ea3a07b6 100644 --- a/src/generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/generated/DirectoryObjects/ValidateProperties/ValidatePropertiesRequestBuilder.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.DirectoryObjects.ValidateProperties /// /// Provides operations to call the validateProperties method. /// - public class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. @@ -38,8 +41,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(ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryObjects.ValidateProperties.ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -57,14 +60,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 ValidatePropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryObjects/validateProperties", 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 ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/validateProperties", rawUrl) @@ -78,11 +81,11 @@ public ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/direct /// 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(ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.ValidateProperties.ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryObjects.ValidateProperties.ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -93,3 +96,4 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Count/CountRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/Count/CountRequestBuilder.cs index 8ffac01760..18c2b313f5 100644 --- a/src/generated/DirectoryRoleTemplates/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/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.DirectoryRoleTemplates.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}/directoryRoleTemplates/$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}/directoryRoleTemplates/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTempla /// 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/DirectoryRoleTemplates/Delta/DeltaGetResponse.cs b/src/generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.cs index 52174a2a2b..d27ea5aaf7 100644 --- a/src/generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.cs +++ b/src/generated/DirectoryRoleTemplates/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryRoleTemplates.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoleTemplates.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.DirectoryRoleTemplates.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs index cbf46f577a..b25b5d5433 100644 --- a/src/generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryRoleTemplates.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-1.0"; + command.Description = "Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -118,31 +121,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoleTemplates/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -151,9 +154,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs index ef6322907a..b23407f217 100644 --- a/src/generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoleTemplates.Count; using ApiSdk.DirectoryRoleTemplates.Delta; using ApiSdk.DirectoryRoleTemplates.GetAvailableExtensionProperties; @@ -7,6 +8,7 @@ using ApiSdk.DirectoryRoleTemplates.ValidateProperties; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.DirectoryRoleTemplates /// /// Provides operations to manage the collection of directoryRoleTemplate entities. /// - public class DirectoryRoleTemplatesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRoleTemplatesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of directoryRoleTemplate entities. @@ -35,7 +38,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryRoleTemplateItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoleTemplates.Item.DirectoryRoleTemplateItemRequestBuilder(PathParameters); commands.Add(builder.BuildCheckMemberGroupsNavCommand()); commands.Add(builder.BuildCheckMemberObjectsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -54,7 +57,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.DirectoryRoleTemplates.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DirectoryRoleTemplate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryRoleTemplate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -116,7 +119,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoleTemplates.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -133,7 +136,7 @@ public Command BuildGetAvailableExtensionPropertiesNavCommand() { var command = new Command("get-available-extension-properties"); command.Description = "Provides operations to call the getAvailableExtensionProperties method."; - var builder = new GetAvailableExtensionPropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoleTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -150,7 +153,7 @@ public Command BuildGetByIdsNavCommand() { var command = new Command("get-by-ids"); command.Description = "Provides operations to call the getByIds method."; - var builder = new GetByIdsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoleTemplates.GetByIds.GetByIdsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -264,7 +267,7 @@ public Command BuildValidatePropertiesNavCommand() { var command = new Command("validate-properties"); command.Description = "Provides operations to call the validateProperties method."; - var builder = new ValidatePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoleTemplates.ValidateProperties.ValidatePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -274,14 +277,14 @@ public Command BuildValidatePropertiesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryRoleTemplatesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoleTemplates{?%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 DirectoryRoleTemplatesRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -294,11 +297,11 @@ public DirectoryRoleTemplatesRequestBuilder(string rawUrl) : base("{+baseurl}/di /// 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); @@ -314,11 +317,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(DirectoryRoleTemplate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryRoleTemplate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DirectoryRoleTemplate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryRoleTemplate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -330,7 +333,8 @@ public RequestInformation ToPostRequestInformation(DirectoryRoleTemplate body, A /// /// Retrieve a list of directoryRoleTemplate objects. /// - public class DirectoryRoleTemplatesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRoleTemplatesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -394,3 +398,4 @@ public class DirectoryRoleTemplatesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 1c6f59a07e..6e75dcad04 100644 --- a/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoleTemplates.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetAvailableExtensionPropertiesPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHol /// The isSyncedFromOnPremises property public bool? IsSyncedFromOnPremises { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAvailableExtensionPropertiesPostRequestBody() { @@ -24,12 +26,12 @@ public GetAvailableExtensionPropertiesPostRequestBody() /// /// 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 GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoleTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostRequestBody(); + return new global::ApiSdk.DirectoryRoleTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 0d68b2d2d4..b38be217a6 100644 --- a/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryRoleTemplates.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAvailableExtensionPropertiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoleTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostResponse(); + return new global::ApiSdk.DirectoryRoleTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExtensionProperty.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index 4b9afbb65c..14e2ed1728 100644 --- a/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.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.DirectoryRoleTemplates.GetAvailableExtensionProperties /// /// Provides operations to call the getAvailableExtensionProperties method. /// - public class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: @@ -50,8 +53,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(GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoleTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetAvailableExtensionPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoleTemplates/getAvailableExtensionProperties", 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 GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates/getAvailableExtensionProperties", rawUrl) @@ -101,11 +104,11 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+ba /// 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(GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostRequestBody.cs b/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostRequestBody.cs index 76215e2216..79edad1105 100644 --- a/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoleTemplates.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetByIdsPostRequestBody : 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. @@ -29,7 +31,7 @@ public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable public List Types { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetByIdsPostRequestBody() { @@ -38,12 +40,12 @@ public GetByIdsPostRequestBody() /// /// 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 GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoleTemplates.GetByIds.GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostRequestBody(); + return new global::ApiSdk.DirectoryRoleTemplates.GetByIds.GetByIdsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.cs b/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.cs index 0f427b472a..7a90ec9131 100644 --- a/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.cs +++ b/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsPostResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryRoleTemplates.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetByIdsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoleTemplates.GetByIds.GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostResponse(); + return new global::ApiSdk.DirectoryRoleTemplates.GetByIds.GetByIdsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.cs index 4e767a8c3c..fb2fef5d4d 100644 --- a/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/GetByIds/GetByIdsRequestBuilder.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.DirectoryRoleTemplates.GetByIds /// /// Provides operations to call the getByIds method. /// - public class GetByIdsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetByIdsRequestBuilder : BaseCliRequestBuilder { /// /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -50,8 +53,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(GetByIdsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoleTemplates.GetByIds.GetByIdsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetByIdsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoleTemplates/getByIds", 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 GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates/getByIds", rawUrl) @@ -101,11 +104,11 @@ public GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTem /// 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(GetByIdsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 831aefee52..799831a4bb 100644 --- a/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoleTemplates.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberGroupsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List GroupIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberGroupsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberGroupsPostRequestBody() /// /// 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 CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostRequestBody(); + return new global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 5803140865..b61379103d 100644 --- a/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.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.DirectoryRoleTemplates.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountRespon /// /// 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 new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostResponse(); + return new global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 1541f4246f..b91c0e99fa 100644 --- a/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryRoleTemplates.Item.CheckMemberGroups /// /// Provides operations to call the checkMemberGroups method. /// - public class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; + command.Description = "Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; var directoryRoleTemplateIdOption = new Option("--directory-role-template-id", description: "The unique identifier of directoryRoleTemplate") { }; directoryRoleTemplateIdOption.IsRequired = true; @@ -55,8 +58,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(CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 CheckMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/checkMemberGroups", 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 CheckMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// /// 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 ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 74e1381a85..dc13338f34 100644 --- a/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoleTemplates.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberObjectsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsabl public List Ids { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberObjectsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberObjectsPostRequestBody() /// /// 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 CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostRequestBody(); + return new global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 738304aa82..ede669381c 100644 --- a/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.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.DirectoryRoleTemplates.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountRespo /// /// 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 new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostResponse(); + return new global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 1e7ee4cb76..e0188beec5 100644 --- a/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.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.DirectoryRoleTemplates.Item.CheckMemberObjects /// /// Provides operations to call the checkMemberObjects method. /// - public class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action checkMemberObjects @@ -54,8 +57,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(CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -85,14 +88,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 CheckMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/checkMemberObjects", 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 CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/checkMemberObjects", rawUrl) @@ -106,11 +109,11 @@ public CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/direct /// 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(CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -121,3 +124,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs index 45a5bd640b..32ebdf15dd 100644 --- a/src/generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/Item/DirectoryRoleTemplateItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoleTemplates.Item.CheckMemberGroups; using ApiSdk.DirectoryRoleTemplates.Item.CheckMemberObjects; using ApiSdk.DirectoryRoleTemplates.Item.GetMemberGroups; @@ -6,6 +7,7 @@ using ApiSdk.DirectoryRoleTemplates.Item.Restore; 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 +26,8 @@ namespace ApiSdk.DirectoryRoleTemplates.Item /// /// Provides operations to manage the collection of directoryRoleTemplate entities. /// - public class DirectoryRoleTemplateItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRoleTemplateItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the checkMemberGroups method. @@ -34,7 +37,7 @@ public Command BuildCheckMemberGroupsNavCommand() { var command = new Command("check-member-groups"); command.Description = "Provides operations to call the checkMemberGroups method."; - var builder = new CheckMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberGroups.CheckMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCheckMemberObjectsNavCommand() { var command = new Command("check-member-objects"); command.Description = "Provides operations to call the checkMemberObjects method."; - var builder = new CheckMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoleTemplates.Item.CheckMemberObjects.CheckMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -156,7 +159,7 @@ public Command BuildGetMemberGroupsNavCommand() { var command = new Command("get-member-groups"); command.Description = "Provides operations to call the getMemberGroups method."; - var builder = new GetMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberGroups.GetMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -173,7 +176,7 @@ public Command BuildGetMemberObjectsNavCommand() { var command = new Command("get-member-objects"); command.Description = "Provides operations to call the getMemberObjects method."; - var builder = new GetMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberObjects.GetMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -212,8 +215,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(DirectoryRoleTemplate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryRoleTemplate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -241,7 +244,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoleTemplates.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -251,14 +254,14 @@ public Command BuildRestoreNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryRoleTemplateItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%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 DirectoryRoleTemplateItemRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}{?%24expand,%24select}", rawUrl) @@ -290,11 +293,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); @@ -310,11 +313,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(DirectoryRoleTemplate body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryRoleTemplate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DirectoryRoleTemplate body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryRoleTemplate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -326,7 +329,8 @@ public RequestInformation ToPatchRequestInformation(DirectoryRoleTemplate body, /// /// Retrieve the properties and relationships of a directoryroletemplate object. /// - public class DirectoryRoleTemplateItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRoleTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -351,3 +355,4 @@ public class DirectoryRoleTemplateItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index af7ddf48b8..c3b22d8a3f 100644 --- a/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoleTemplates.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberGroupsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberGroupsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberGroupsPostRequestBody() /// /// 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 GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberGroups.GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostRequestBody(); + return new global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberGroups.GetMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index d18292a88a..d3441f5fd1 100644 --- a/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.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.DirectoryRoleTemplates.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse /// /// 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 new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberGroups.GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostResponse(); + return new global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberGroups.GetMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 902b065064..0ac70857a2 100644 --- a/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryRoleTemplates.Item.GetMemberGroups /// /// Provides operations to call the getMemberGroups method. /// - public class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; + command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; var directoryRoleTemplateIdOption = new Option("--directory-role-template-id", description: "The unique identifier of directoryRoleTemplate") { }; directoryRoleTemplateIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberGroups.GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberGroups", 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 GetMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// /// 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 ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index b4a649b0ae..0b3175ed99 100644 --- a/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoleTemplates.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberObjectsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberObjectsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberObjectsPostRequestBody() /// /// 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 GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberObjects.GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostRequestBody(); + return new global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberObjects.GetMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 8bec789114..daa6f4fc64 100644 --- a/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.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.DirectoryRoleTemplates.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountRespons /// /// 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 new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberObjects.GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostResponse(); + return new global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberObjects.GetMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 39ee535e52..1fc6d3302b 100644 --- a/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryRoleTemplates.Item.GetMemberObjects /// /// Provides operations to call the getMemberObjects method. /// - public class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; + command.Description = "Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; var directoryRoleTemplateIdOption = new Option("--directory-role-template-id", description: "The unique identifier of directoryRoleTemplate") { }; directoryRoleTemplateIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberObjects.GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberObjects", 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 GetMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// /// 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 ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs index 7b9f09f814..3e83e9fc7f 100644 --- a/src/generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.DirectoryRoleTemplates.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var directoryRoleTemplateIdOption = new Option("--directory-role-template-id", description: "The unique identifier of directoryRoleTemplate") { }; directoryRoleTemplateIdOption.IsRequired = true; @@ -61,21 +64,21 @@ 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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoleTemplates.ValidateProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidatePropertiesPostRequestBody : 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. @@ -39,7 +41,7 @@ public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsabl /// The onBehalfOfUserId property public Guid? OnBehalfOfUserId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidatePropertiesPostRequestBody() { @@ -48,12 +50,12 @@ public ValidatePropertiesPostRequestBody() /// /// 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 ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoleTemplates.ValidateProperties.ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidatePropertiesPostRequestBody(); + return new global::ApiSdk.DirectoryRoleTemplates.ValidateProperties.ValidatePropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -84,3 +86,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs index b01febad87..858f2ed839 100644 --- a/src/generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.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.DirectoryRoleTemplates.ValidateProperties /// /// Provides operations to call the validateProperties method. /// - public class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. @@ -38,8 +41,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(ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoleTemplates.ValidateProperties.ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -57,14 +60,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 ValidatePropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoleTemplates/validateProperties", 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 ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates/validateProperties", rawUrl) @@ -78,11 +81,11 @@ public ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/direct /// 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(ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.ValidateProperties.ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoleTemplates.ValidateProperties.ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -93,3 +96,4 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Count/CountRequestBuilder.cs b/src/generated/DirectoryRoles/Count/CountRequestBuilder.cs index 65ef447269..de6a6b0c52 100644 --- a/src/generated/DirectoryRoles/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryRoles/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.DirectoryRoles.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}/directoryRoles/$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}/directoryRoles/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/$cou /// 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/DirectoryRoles/Delta/DeltaGetResponse.cs b/src/generated/DirectoryRoles/Delta/DeltaGetResponse.cs index e09f850a33..a8e4a20bbd 100644 --- a/src/generated/DirectoryRoles/Delta/DeltaGetResponse.cs +++ b/src/generated/DirectoryRoles/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryRoles.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoles.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.DirectoryRoles.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryRole.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryRole.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Delta/DeltaRequestBuilder.cs b/src/generated/DirectoryRoles/Delta/DeltaRequestBuilder.cs index dbb4ef5fc6..bc22379980 100644 --- a/src/generated/DirectoryRoles/Delta/DeltaRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryRoles.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Get newly created, updated, or deleted directory roles without having to perform a full read of the entire resource collection. See Using Delta Query for details. + /// Get newly created, updated, or deleted directory roles without having to perform a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get newly created, updated, or deleted directory roles without having to perform a full read of the entire resource collection. See Using Delta Query for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryrole-delta?view=graph-rest-1.0"; + command.Description = "Get newly created, updated, or deleted directory roles without having to perform a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryrole-delta?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -118,31 +121,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get newly created, updated, or deleted directory roles without having to perform a full read of the entire resource collection. See Using Delta Query for details. + /// Get newly created, updated, or deleted directory roles without having to perform a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -151,9 +154,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get newly created, updated, or deleted directory roles without having to perform a full read of the entire resource collection. See Using Delta Query for details. + /// Get newly created, updated, or deleted directory roles without having to perform a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs b/src/generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs index d543caa351..681f2b9f8a 100644 --- a/src/generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs +++ b/src/generated/DirectoryRoles/DirectoryRolesRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoles.Count; using ApiSdk.DirectoryRoles.Delta; using ApiSdk.DirectoryRoles.GetAvailableExtensionProperties; @@ -7,6 +8,7 @@ using ApiSdk.DirectoryRoles.ValidateProperties; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.DirectoryRoles /// /// Provides operations to manage the collection of directoryRole entities. /// - public class DirectoryRolesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRolesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of directoryRole entities. @@ -35,7 +38,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryRoleItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.DirectoryRoleItemRequestBuilder(PathParameters); commands.Add(builder.BuildCheckMemberGroupsNavCommand()); commands.Add(builder.BuildCheckMemberObjectsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -56,7 +59,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.DirectoryRoles.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DirectoryRole.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryRole.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -119,7 +122,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,7 +139,7 @@ public Command BuildGetAvailableExtensionPropertiesNavCommand() { var command = new Command("get-available-extension-properties"); command.Description = "Provides operations to call the getAvailableExtensionProperties method."; - var builder = new GetAvailableExtensionPropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -153,7 +156,7 @@ public Command BuildGetByIdsNavCommand() { var command = new Command("get-by-ids"); command.Description = "Provides operations to call the getByIds method."; - var builder = new GetByIdsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.GetByIds.GetByIdsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -267,7 +270,7 @@ public Command BuildValidatePropertiesNavCommand() { var command = new Command("validate-properties"); command.Description = "Provides operations to call the validateProperties method."; - var builder = new ValidatePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.ValidateProperties.ValidatePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -277,14 +280,14 @@ public Command BuildValidatePropertiesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryRolesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles{?%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 DirectoryRolesRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -297,11 +300,11 @@ public DirectoryRolesRequestBuilder(string rawUrl) : base("{+baseurl}/directoryR /// 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); @@ -317,11 +320,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(DirectoryRole body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryRole body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DirectoryRole body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DirectoryRole body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -333,7 +336,8 @@ public RequestInformation ToPostRequestInformation(DirectoryRole body, Action /// List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates. /// - public class DirectoryRolesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRolesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -397,3 +401,4 @@ public class DirectoryRolesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index e98b53ad1a..ef70a5636b 100644 --- a/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoles.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetAvailableExtensionPropertiesPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHol /// The isSyncedFromOnPremises property public bool? IsSyncedFromOnPremises { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAvailableExtensionPropertiesPostRequestBody() { @@ -24,12 +26,12 @@ public GetAvailableExtensionPropertiesPostRequestBody() /// /// 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 GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoles.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostRequestBody(); + return new global::ApiSdk.DirectoryRoles.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 094990ec1c..d59500452c 100644 --- a/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryRoles.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAvailableExtensionPropertiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoles.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostResponse(); + return new global::ApiSdk.DirectoryRoles.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExtensionProperty.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index c5cd7116da..71852a730c 100644 --- a/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/generated/DirectoryRoles/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.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.DirectoryRoles.GetAvailableExtensionProperties /// /// Provides operations to call the getAvailableExtensionProperties method. /// - public class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: @@ -50,8 +53,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(GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoles.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetAvailableExtensionPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/getAvailableExtensionProperties", 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 GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/getAvailableExtensionProperties", rawUrl) @@ -101,11 +104,11 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+ba /// 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(GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/GetByIds/GetByIdsPostRequestBody.cs b/src/generated/DirectoryRoles/GetByIds/GetByIdsPostRequestBody.cs index 12c2a995ce..2170da55ba 100644 --- a/src/generated/DirectoryRoles/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/generated/DirectoryRoles/GetByIds/GetByIdsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoles.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetByIdsPostRequestBody : 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. @@ -29,7 +31,7 @@ public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable public List Types { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetByIdsPostRequestBody() { @@ -38,12 +40,12 @@ public GetByIdsPostRequestBody() /// /// 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 GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoles.GetByIds.GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostRequestBody(); + return new global::ApiSdk.DirectoryRoles.GetByIds.GetByIdsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.cs b/src/generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.cs index 24cd63070a..e494aaa242 100644 --- a/src/generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.cs +++ b/src/generated/DirectoryRoles/GetByIds/GetByIdsPostResponse.cs @@ -1,33 +1,35 @@ // +#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.DirectoryRoles.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetByIdsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoles.GetByIds.GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostResponse(); + return new global::ApiSdk.DirectoryRoles.GetByIds.GetByIdsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.cs b/src/generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.cs index 314779d175..d1405805f2 100644 --- a/src/generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/generated/DirectoryRoles/GetByIds/GetByIdsRequestBuilder.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.DirectoryRoles.GetByIds /// /// Provides operations to call the getByIds method. /// - public class GetByIdsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetByIdsRequestBuilder : BaseCliRequestBuilder { /// /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -50,8 +53,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(GetByIdsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoles.GetByIds.GetByIdsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetByIdsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/getByIds", 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 GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/getByIds", rawUrl) @@ -101,11 +104,11 @@ public GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/g /// 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(GetByIdsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index c4a30d533a..107bc77239 100644 --- a/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoles.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberGroupsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List GroupIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberGroupsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberGroupsPostRequestBody() /// /// 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 CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoles.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostRequestBody(); + return new global::ApiSdk.DirectoryRoles.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index a84dd7447e..abfa177709 100644 --- a/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.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.DirectoryRoles.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountRespon /// /// 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 new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoles.Item.CheckMemberGroups.CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostResponse(); + return new global::ApiSdk.DirectoryRoles.Item.CheckMemberGroups.CheckMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 22e629c498..2cb987277f 100644 --- a/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryRoles.Item.CheckMemberGroups /// /// Provides operations to call the checkMemberGroups method. /// - public class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; + command.Description = "Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; var directoryRoleIdOption = new Option("--directory-role-id", description: "The unique identifier of directoryRole") { }; directoryRoleIdOption.IsRequired = true; @@ -55,8 +58,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(CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoles.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 CheckMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberGroups", 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 CheckMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// /// 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 ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 1714bc2bdc..99697b9281 100644 --- a/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoles.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberObjectsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsabl public List Ids { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberObjectsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberObjectsPostRequestBody() /// /// 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 CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoles.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostRequestBody(); + return new global::ApiSdk.DirectoryRoles.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 1bdc517b33..975bbdc436 100644 --- a/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.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.DirectoryRoles.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountRespo /// /// 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 new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoles.Item.CheckMemberObjects.CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostResponse(); + return new global::ApiSdk.DirectoryRoles.Item.CheckMemberObjects.CheckMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index c460964a5d..337d477361 100644 --- a/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.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.DirectoryRoles.Item.CheckMemberObjects /// /// Provides operations to call the checkMemberObjects method. /// - public class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action checkMemberObjects @@ -54,8 +57,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(CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoles.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -85,14 +88,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 CheckMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberObjects", 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 CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberObjects", rawUrl) @@ -106,11 +109,11 @@ public CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/direct /// 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(CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -121,3 +124,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs b/src/generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs index 88ffab3c73..180d892b7f 100644 --- a/src/generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/DirectoryRoleItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoles.Item.CheckMemberGroups; using ApiSdk.DirectoryRoles.Item.CheckMemberObjects; using ApiSdk.DirectoryRoles.Item.GetMemberGroups; @@ -8,6 +9,7 @@ using ApiSdk.DirectoryRoles.Item.ScopedMembers; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -26,7 +28,8 @@ namespace ApiSdk.DirectoryRoles.Item /// /// Provides operations to manage the collection of directoryRole entities. /// - public class DirectoryRoleItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRoleItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the checkMemberGroups method. @@ -36,7 +39,7 @@ public Command BuildCheckMemberGroupsNavCommand() { var command = new Command("check-member-groups"); command.Description = "Provides operations to call the checkMemberGroups method."; - var builder = new CheckMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.CheckMemberGroups.CheckMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -53,7 +56,7 @@ public Command BuildCheckMemberObjectsNavCommand() { var command = new Command("check-member-objects"); command.Description = "Provides operations to call the checkMemberObjects method."; - var builder = new CheckMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.CheckMemberObjects.CheckMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -158,7 +161,7 @@ public Command BuildGetMemberGroupsNavCommand() { var command = new Command("get-member-groups"); command.Description = "Provides operations to call the getMemberGroups method."; - var builder = new GetMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.GetMemberGroups.GetMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -175,7 +178,7 @@ public Command BuildGetMemberObjectsNavCommand() { var command = new Command("get-member-objects"); command.Description = "Provides operations to call the getMemberObjects method."; - var builder = new GetMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.GetMemberObjects.GetMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -192,7 +195,7 @@ public Command BuildMembersNavCommand() { var command = new Command("members"); command.Description = "Provides operations to manage the members property of the microsoft.graph.directoryRole entity."; - var builder = new MembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.MembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -247,8 +250,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DirectoryRole.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryRole.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -276,7 +279,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -293,7 +296,7 @@ public Command BuildScopedMembersNavCommand() { var command = new Command("scoped-members"); command.Description = "Provides operations to manage the scopedMembers property of the microsoft.graph.directoryRole entity."; - var builder = new ScopedMembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.ScopedMembers.ScopedMembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -313,14 +316,14 @@ public Command BuildScopedMembersNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryRoleItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%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 DirectoryRoleItemRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}{?%24expand,%24select}", rawUrl) @@ -352,11 +355,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); @@ -372,11 +375,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(DirectoryRole body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryRole body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DirectoryRole body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryRole body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -388,7 +391,8 @@ public RequestInformation ToPatchRequestInformation(DirectoryRole body, Action /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. /// - public class DirectoryRoleItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRoleItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -413,3 +417,4 @@ public class DirectoryRoleItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index e02b7ab622..5c55856dfa 100644 --- a/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoles.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberGroupsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberGroupsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberGroupsPostRequestBody() /// /// 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 GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoles.Item.GetMemberGroups.GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostRequestBody(); + return new global::ApiSdk.DirectoryRoles.Item.GetMemberGroups.GetMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index f5359c5846..a5cb048e64 100644 --- a/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsPostResponse.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.DirectoryRoles.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse /// /// 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 new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoles.Item.GetMemberGroups.GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostResponse(); + return new global::ApiSdk.DirectoryRoles.Item.GetMemberGroups.GetMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 484147843f..00fd6bb257 100644 --- a/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryRoles.Item.GetMemberGroups /// /// Provides operations to call the getMemberGroups method. /// - public class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; + command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; var directoryRoleIdOption = new Option("--directory-role-id", description: "The unique identifier of directoryRole") { }; directoryRoleIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoles.Item.GetMemberGroups.GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberGroups", 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 GetMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// /// 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 ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index edf362b1aa..4dbe9c31cc 100644 --- a/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoles.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberObjectsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberObjectsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberObjectsPostRequestBody() /// /// 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 GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoles.Item.GetMemberObjects.GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostRequestBody(); + return new global::ApiSdk.DirectoryRoles.Item.GetMemberObjects.GetMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index 67dca500a7..c4285172da 100644 --- a/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsPostResponse.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.DirectoryRoles.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountRespons /// /// 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 new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.DirectoryRoles.Item.GetMemberObjects.GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostResponse(); + return new global::ApiSdk.DirectoryRoles.Item.GetMemberObjects.GetMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index ea130e7651..71251cc91c 100644 --- a/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.DirectoryRoles.Item.GetMemberObjects /// /// Provides operations to call the getMemberObjects method. /// - public class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; + command.Description = "Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; var directoryRoleIdOption = new Option("--directory-role-id", description: "The unique identifier of directoryRole") { }; directoryRoleIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoles.Item.GetMemberObjects.GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberObjects", 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 GetMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// /// 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 ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/Count/CountRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/Count/CountRequestBuilder.cs index 554ddddd33..3930481649 100644 --- a/src/generated/DirectoryRoles/Item/Members/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/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.DirectoryRoles.Item.Members.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 @@ -70,14 +73,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}/directoryRoles/{directoryRole%2Did}/members/$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}/directoryRoles/{directoryRole%2Did}/members/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{dir /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphApplication/Count/CountRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphApplication/Count/CountRequestBuilder.cs index 4e27caade4..472b6bc439 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphApplication/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.DirectoryRoles.Item.Members.GraphApplication.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 @@ -70,14 +73,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}/directoryRoles/{directoryRole%2Did}/members/graph.application/$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}/directoryRoles/{directoryRole%2Did}/members/graph.application/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{dir /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs index 05e2bac951..4ff511f38f 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoles.Item.Members.GraphApplication.Count; 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.DirectoryRoles.Item.Members.GraphApplication /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryRoles.Item.Members.GraphApplication.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/director /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphDevice/Count/CountRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphDevice/Count/CountRequestBuilder.cs index 505ddd825c..c98c7a7c4a 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphDevice/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.DirectoryRoles.Item.Members.GraphDevice.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 @@ -70,14 +73,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}/directoryRoles/{directoryRole%2Did}/members/graph.device/$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}/directoryRoles/{directoryRole%2Did}/members/graph.device/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{dir /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs index 638f5b12a5..ba0706fc0c 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoles.Item.Members.GraphDevice.Count; 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.DirectoryRoles.Item.Members.GraphDevice /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryRoles.Item.Members.GraphDevice.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRole /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphGroup/Count/CountRequestBuilder.cs index bbef69719f..5c1d99f0a4 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphGroup/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.DirectoryRoles.Item.Members.GraphGroup.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 @@ -70,14 +73,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}/directoryRoles/{directoryRole%2Did}/members/graph.group/$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}/directoryRoles/{directoryRole%2Did}/members/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{dir /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs index c6244cfa8a..3335b03085 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoles.Item.Members.GraphGroup.Count; 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.DirectoryRoles.Item.Members.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryRoles.Item.Members.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs index fcd2d7b7cf..762ec7f3e2 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphOrgContact/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.DirectoryRoles.Item.Members.GraphOrgContact.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 @@ -70,14 +73,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}/directoryRoles/{directoryRole%2Did}/members/graph.orgContact/$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}/directoryRoles/{directoryRole%2Did}/members/graph.orgContact/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{dir /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs index cc3739d8ce..0ee13eaf9a 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoles.Item.Members.GraphOrgContact.Count; 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.DirectoryRoles.Item.Members.GraphOrgContact /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryRoles.Item.Members.GraphOrgContact.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/directory /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs index 0bdda5c4d5..395e7a544b 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphServicePrincipal/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.DirectoryRoles.Item.Members.GraphServicePrincipal.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 @@ -70,14 +73,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}/directoryRoles/{directoryRole%2Did}/members/graph.servicePrincipal/$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}/directoryRoles/{directoryRole%2Did}/members/graph.servicePrincipal/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{dir /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index c6c3f4f9f2..e9f7f8d835 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoles.Item.Members.GraphServicePrincipal.Count; 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.DirectoryRoles.Item.Members.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryRoles.Item.Members.GraphServicePrincipal.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/dir /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphUser/Count/CountRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphUser/Count/CountRequestBuilder.cs index 0997dbd327..b80807397c 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphUser/Count/CountRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphUser/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.DirectoryRoles.Item.Members.GraphUser.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 @@ -70,14 +73,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}/directoryRoles/{directoryRole%2Did}/members/graph.user/$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}/directoryRoles/{directoryRole%2Did}/members/graph.user/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{dir /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.cs index 3c5a5e56f2..7ec6afc1b1 100644 --- a/src/generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/GraphUser/GraphUserRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoles.Item.Members.GraphUser.Count; 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.DirectoryRoles.Item.Members.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.DirectoryRoles.Item.Members.GraphUser.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/ /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs index 292ae07746..22be714494 100644 --- a/src/generated/DirectoryRoles/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoles.Item.Members.Item.GraphApplication; using ApiSdk.DirectoryRoles.Item.Members.Item.GraphDevice; using ApiSdk.DirectoryRoles.Item.Members.Item.GraphGroup; @@ -6,6 +7,7 @@ using ApiSdk.DirectoryRoles.Item.Members.Item.GraphServicePrincipal; using ApiSdk.DirectoryRoles.Item.Members.Item.GraphUser; using ApiSdk.DirectoryRoles.Item.Members.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -21,7 +23,8 @@ namespace ApiSdk.DirectoryRoles.Item.Members.Item /// /// Builds and executes requests for operations under \directoryRoles\{directoryRole-id}\members\{directoryObject-id} /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Casts the previous resource to application. @@ -31,7 +34,7 @@ public Command BuildGraphApplicationByIdNavCommand() { var command = new Command("graph-application-by-id"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.Item.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -48,7 +51,7 @@ public Command BuildGraphDeviceByIdNavCommand() { var command = new Command("graph-device-by-id"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.Item.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -65,7 +68,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -82,7 +85,7 @@ public Command BuildGraphOrgContactByIdNavCommand() { var command = new Command("graph-org-contact-by-id"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.Item.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -99,7 +102,7 @@ public Command BuildGraphServicePrincipalByIdNavCommand() { var command = new Command("graph-service-principal-by-id"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.Item.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -116,7 +119,7 @@ public Command BuildGraphUserByIdNavCommand() { var command = new Command("graph-user-by-id"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.Item.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -133,7 +136,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of directoryRole entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -143,14 +146,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}", 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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}", rawUrl) @@ -158,3 +161,4 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/direc } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs index e75d034672..03c45785e6 100644 --- a/src/generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.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.DirectoryRoles.Item.Members.Item.GraphApplication /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -87,14 +90,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.application{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/director /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs index 7fb0b2aeab..9a979830e7 100644 --- a/src/generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.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.DirectoryRoles.Item.Members.Item.GraphDevice /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -87,14 +90,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.device{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRole /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs index d12a07f3c1..542563d551 100644 --- a/src/generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.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.DirectoryRoles.Item.Members.Item.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -87,14 +90,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 097a9916ae..c47ccee302 100644 --- a/src/generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.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.DirectoryRoles.Item.Members.Item.GraphOrgContact /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -87,14 +90,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/directory /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index af7fbd6603..273a7c4805 100644 --- a/src/generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.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.DirectoryRoles.Item.Members.Item.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -87,14 +90,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/dir /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs index ebe0437437..66323866ae 100644 --- a/src/generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/Item/GraphUser/GraphUserRequestBuilder.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.DirectoryRoles.Item.Members.Item.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -87,14 +90,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/graph.user{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/ /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs index b169dbcddd..51ef6f100f 100644 --- a/src/generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.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.DirectoryRoles.Item.Members.Item.Ref /// /// Provides operations to manage the collection of directoryRole entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.DirectoryRoles.Item.Members.Count; using ApiSdk.DirectoryRoles.Item.Members.GraphApplication; using ApiSdk.DirectoryRoles.Item.Members.GraphDevice; @@ -10,6 +11,7 @@ using ApiSdk.DirectoryRoles.Item.Members.Ref; 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; @@ -28,7 +30,8 @@ namespace ApiSdk.DirectoryRoles.Item.Members /// /// Provides operations to manage the members property of the microsoft.graph.directoryRole entity. /// - public class MembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.directoryRoles.item.members.item collection @@ -37,7 +40,7 @@ public class MembersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.Item.DirectoryObjectItemRequestBuilder(PathParameters); commands.Add(builder.BuildGraphApplicationByIdNavCommand()); commands.Add(builder.BuildGraphDeviceByIdNavCommand()); commands.Add(builder.BuildGraphGroupByIdNavCommand()); @@ -55,7 +58,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.DirectoryRoles.Item.Members.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -72,7 +75,7 @@ public Command BuildGraphApplicationNavCommand() { var command = new Command("graph-application"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -95,7 +98,7 @@ public Command BuildGraphDeviceNavCommand() { var command = new Command("graph-device"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -118,7 +121,7 @@ public Command BuildGraphGroupNavCommand() { var command = new Command("graph-group"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -141,7 +144,7 @@ public Command BuildGraphOrgContactNavCommand() { var command = new Command("graph-org-contact"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -164,7 +167,7 @@ public Command BuildGraphServicePrincipalNavCommand() { var command = new Command("graph-service-principal"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -187,7 +190,7 @@ public Command BuildGraphUserNavCommand() { var command = new Command("graph-user"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -320,7 +323,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of directoryRole entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.Members.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -332,14 +335,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members{?%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 MembersRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -352,11 +355,11 @@ public MembersRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{d /// 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); @@ -367,7 +370,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve the list of principals that are assigned to the directory role. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -431,3 +435,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs index e041137db0..7de0d08f1f 100644 --- a/src/generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.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.DirectoryRoles.Item.Members.Ref /// /// Provides operations to manage the collection of directoryRole entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. @@ -182,8 +185,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -202,14 +205,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -222,11 +225,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{direc /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref?@id={%40id}", PathParameters); @@ -241,11 +244,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, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -261,11 +264,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -293,7 +297,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// Retrieve the list of principals that are assigned to the directory role. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -337,3 +342,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs index 9e01d455b4..28280931eb 100644 --- a/src/generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.DirectoryRoles.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var directoryRoleIdOption = new Option("--directory-role-id", description: "The unique identifier of directoryRole") { }; directoryRoleIdOption.IsRequired = true; @@ -61,21 +64,21 @@ 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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.DirectoryRoles.Item.ScopedMembers.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}/directoryRoles/{directoryRole%2Did}/scopedMembers/$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}/directoryRoles/{directoryRole%2Did}/scopedMembers/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{dir /// 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/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs b/src/generated/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs index 4851387ce9..6db076288b 100644 --- a/src/generated/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/ScopedMembers/Item/ScopedRoleMembershipItemRequestBuilder.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.DirectoryRoles.Item.ScopedMembers.Item /// /// Provides operations to manage the scopedMembers property of the microsoft.graph.directoryRole entity. /// - public class ScopedRoleMembershipItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopedRoleMembershipItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property scopedMembers for directoryRoles @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ScopedRoleMembership.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ScopedRoleMembership.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ScopedRoleMembershipItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/scopedMembers/{scopedRoleMembership%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 ScopedRoleMembershipItemRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/scopedMembers/{scopedRoleMembership%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ScopedRoleMembership body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ScopedRoleMembership body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ScopedRoleMembership body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ScopedRoleMembership body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(ScopedRoleMembership body, A /// /// Members of this directory role that are scoped to administrative units. Read-only. Nullable. /// - public class ScopedRoleMembershipItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopedRoleMembershipItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ScopedRoleMembershipItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs b/src/generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs index da0adf3de8..ec32f29e69 100644 --- a/src/generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/ScopedMembers/ScopedMembersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DirectoryRoles.Item.ScopedMembers.Count; using ApiSdk.DirectoryRoles.Item.ScopedMembers.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.DirectoryRoles.Item.ScopedMembers /// /// Provides operations to manage the scopedMembers property of the microsoft.graph.directoryRole entity. /// - public class ScopedMembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopedMembersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the scopedMembers property of the microsoft.graph.directoryRole entity. @@ -30,7 +33,7 @@ public class ScopedMembersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ScopedRoleMembershipItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.Item.ScopedMembers.Item.ScopedRoleMembershipItemRequestBuilder(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.DirectoryRoles.Item.ScopedMembers.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(ScopedRoleMembership.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ScopedRoleMembership.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -208,14 +211,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ScopedMembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/scopedMembers{?%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 ScopedMembersRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/scopedMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -228,11 +231,11 @@ public ScopedMembersRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ScopedRoleMembership body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ScopedRoleMembership body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ScopedRoleMembership body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ScopedRoleMembership body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPostRequestInformation(ScopedRoleMembership body, Ac /// /// Retrieve a list of scopedRoleMembership objects for a directory role. /// - public class ScopedMembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopedMembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -328,3 +332,4 @@ public class ScopedMembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/ValidateProperties/ValidatePropertiesPostRequestBody.cs b/src/generated/DirectoryRoles/ValidateProperties/ValidatePropertiesPostRequestBody.cs index c2637fc835..6b5ee541ae 100644 --- a/src/generated/DirectoryRoles/ValidateProperties/ValidatePropertiesPostRequestBody.cs +++ b/src/generated/DirectoryRoles/ValidateProperties/ValidatePropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.DirectoryRoles.ValidateProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidatePropertiesPostRequestBody : 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. @@ -39,7 +41,7 @@ public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsabl /// The onBehalfOfUserId property public Guid? OnBehalfOfUserId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidatePropertiesPostRequestBody() { @@ -48,12 +50,12 @@ public ValidatePropertiesPostRequestBody() /// /// 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 ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.DirectoryRoles.ValidateProperties.ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidatePropertiesPostRequestBody(); + return new global::ApiSdk.DirectoryRoles.ValidateProperties.ValidatePropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -84,3 +86,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.cs index b3a2f11c71..cc75518ced 100644 --- a/src/generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/generated/DirectoryRoles/ValidateProperties/ValidatePropertiesRequestBuilder.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.DirectoryRoles.ValidateProperties /// /// Provides operations to call the validateProperties method. /// - public class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. @@ -38,8 +41,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(ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.DirectoryRoles.ValidateProperties.ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -57,14 +60,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 ValidatePropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles/validateProperties", 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 ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/validateProperties", rawUrl) @@ -78,11 +81,11 @@ public ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/direct /// 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(ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.ValidateProperties.ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.DirectoryRoles.ValidateProperties.ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -93,3 +96,4 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs b/src/generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs index 4f07a9dec2..a8a9f1cb78 100644 --- a/src/generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs +++ b/src/generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.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.DirectoryRolesWithRoleTemplateId /// /// Provides operations to manage the collection of directoryRole entities. /// - public class DirectoryRolesWithRoleTemplateIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRolesWithRoleTemplateIdRequestBuilder : BaseCliRequestBuilder { /// /// Delete entity from directoryRoles by roleTemplateId @@ -139,8 +142,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(DirectoryRole.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DirectoryRole.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 DirectoryRolesWithRoleTemplateIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/directoryRoles(roleTemplateId='{roleTemplateId}'){?%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 DirectoryRolesWithRoleTemplateIdRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles(roleTemplateId='{roleTemplateId}'){?%24expand,%24select}", rawUrl) @@ -200,11 +203,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); @@ -220,11 +223,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(DirectoryRole body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryRole body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DirectoryRole body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DirectoryRole body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -236,7 +239,8 @@ public RequestInformation ToPatchRequestInformation(DirectoryRole body, Action /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. /// - public class DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -261,3 +265,4 @@ public class DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DomainDnsRecords/Count/CountRequestBuilder.cs b/src/generated/DomainDnsRecords/Count/CountRequestBuilder.cs index 7e85551ded..923385e9b0 100644 --- a/src/generated/DomainDnsRecords/Count/CountRequestBuilder.cs +++ b/src/generated/DomainDnsRecords/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.DomainDnsRecords.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}/domainDnsRecords/$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}/domainDnsRecords/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/domainDnsRecords/$c /// 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/DomainDnsRecords/DomainDnsRecordsRequestBuilder.cs b/src/generated/DomainDnsRecords/DomainDnsRecordsRequestBuilder.cs index c65e778613..aa5142458d 100644 --- a/src/generated/DomainDnsRecords/DomainDnsRecordsRequestBuilder.cs +++ b/src/generated/DomainDnsRecords/DomainDnsRecordsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.DomainDnsRecords.Count; using ApiSdk.DomainDnsRecords.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.DomainDnsRecords /// /// Provides operations to manage the collection of domainDnsRecord entities. /// - public class DomainDnsRecordsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainDnsRecordsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of domainDnsRecord entities. @@ -30,7 +33,7 @@ public class DomainDnsRecordsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DomainDnsRecordItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DomainDnsRecords.Item.DomainDnsRecordItemRequestBuilder(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.DomainDnsRecords.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DomainDnsRecord.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DomainDnsRecord.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 DomainDnsRecordsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domainDnsRecords{?%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 DomainDnsRecordsRequestBuilder(string rawUrl) : base("{+baseurl}/domainDnsRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public DomainDnsRecordsRequestBuilder(string rawUrl) : base("{+baseurl}/domainDn /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(DomainDnsRecord body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DomainDnsRecord body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(DomainDnsRecord body, Action< /// /// Get entities from domainDnsRecords /// - public class DomainDnsRecordsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainDnsRecordsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class DomainDnsRecordsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs b/src/generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs index 30c044afd1..5f36fb2a6d 100644 --- a/src/generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs +++ b/src/generated/DomainDnsRecords/Item/DomainDnsRecordItemRequestBuilder.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.DomainDnsRecords.Item /// /// Provides operations to manage the collection of domainDnsRecord entities. /// - public class DomainDnsRecordItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainDnsRecordItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete entity from domainDnsRecords @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DomainDnsRecord.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DomainDnsRecord.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DomainDnsRecordItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domainDnsRecords/{domainDnsRecord%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 DomainDnsRecordItemRequestBuilder(string rawUrl) : base("{+baseurl}/domainDnsRecords/{domainDnsRecord%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action /// /// Get entity from domainDnsRecords by key /// - public class DomainDnsRecordItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainDnsRecordItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class DomainDnsRecordItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Count/CountRequestBuilder.cs b/src/generated/Domains/Count/CountRequestBuilder.cs index e7de92fd91..1699cdb334 100644 --- a/src/generated/Domains/Count/CountRequestBuilder.cs +++ b/src/generated/Domains/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.Domains.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}/domains/$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}/domains/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/domains/$count{?%24 /// 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/Domains/DomainsRequestBuilder.cs b/src/generated/Domains/DomainsRequestBuilder.cs index 801d4fbfe1..088c147080 100644 --- a/src/generated/Domains/DomainsRequestBuilder.cs +++ b/src/generated/Domains/DomainsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Domains.Count; using ApiSdk.Domains.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.Domains /// /// Provides operations to manage the collection of domain entities. /// - public class DomainsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of domain entities. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DomainItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.DomainItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDomainNameReferencesNavCommand()); commands.Add(builder.BuildFederationConfigurationNavCommand()); @@ -39,6 +42,7 @@ public Tuple, List> BuildCommand() executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); commands.Add(builder.BuildPromoteNavCommand()); + commands.Add(builder.BuildRootDomainNavCommand()); commands.Add(builder.BuildServiceConfigurationRecordsNavCommand()); commands.Add(builder.BuildVerificationDnsRecordsNavCommand()); commands.Add(builder.BuildVerifyNavCommand()); @@ -52,7 +56,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to count the resources in the collection."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -87,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Domain.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Domain.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -205,14 +209,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 DomainsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains{?%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 DomainsRequestBuilder(string rawUrl) : base("{+baseurl}/domains{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -225,11 +229,11 @@ public DomainsRequestBuilder(string rawUrl) : base("{+baseurl}/domains{?%24count /// 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); @@ -245,11 +249,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(Domain body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Domain body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Domain body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Domain body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -261,7 +265,8 @@ public RequestInformation ToPostRequestInformation(Domain body, Action /// Retrieve a list of domain objects. /// - public class DomainsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -325,3 +330,4 @@ public class DomainsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/DomainItemRequestBuilder.cs b/src/generated/Domains/Item/DomainItemRequestBuilder.cs index 8f64f51672..08de87571a 100644 --- a/src/generated/Domains/Item/DomainItemRequestBuilder.cs +++ b/src/generated/Domains/Item/DomainItemRequestBuilder.cs @@ -1,13 +1,16 @@ // +#pragma warning disable CS0618 using ApiSdk.Domains.Item.DomainNameReferences; using ApiSdk.Domains.Item.FederationConfiguration; using ApiSdk.Domains.Item.ForceDelete; using ApiSdk.Domains.Item.Promote; +using ApiSdk.Domains.Item.RootDomain; using ApiSdk.Domains.Item.ServiceConfigurationRecords; using ApiSdk.Domains.Item.VerificationDnsRecords; using ApiSdk.Domains.Item.Verify; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -26,7 +29,8 @@ namespace ApiSdk.Domains.Item /// /// Provides operations to manage the collection of domain entities. /// - public class DomainItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete a domain from a tenant. @@ -72,7 +76,7 @@ public Command BuildDomainNameReferencesNavCommand() { var command = new Command("domain-name-references"); command.Description = "Provides operations to manage the domainNameReferences property of the microsoft.graph.domain entity."; - var builder = new DomainNameReferencesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.DomainNameReferences.DomainNameReferencesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -98,7 +102,7 @@ public Command BuildFederationConfigurationNavCommand() { var command = new Command("federation-configuration"); command.Description = "Provides operations to manage the federationConfiguration property of the microsoft.graph.domain entity."; - var builder = new FederationConfigurationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.FederationConfiguration.FederationConfigurationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -125,7 +129,7 @@ public Command BuildForceDeleteNavCommand() { var command = new Command("force-delete"); command.Description = "Provides operations to call the forceDelete method."; - var builder = new ForceDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.ForceDelete.ForceDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -218,8 +222,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(Domain.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Domain.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,7 +251,7 @@ public Command BuildPromoteNavCommand() { var command = new Command("promote"); command.Description = "Provides operations to call the promote method."; - var builder = new PromoteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.Promote.PromoteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -257,6 +261,23 @@ public Command BuildPromoteNavCommand() return command; } /// + /// Provides operations to manage the rootDomain property of the microsoft.graph.domain entity. + /// + /// A + public Command BuildRootDomainNavCommand() + { + var command = new Command("root-domain"); + command.Description = "Provides operations to manage the rootDomain property of the microsoft.graph.domain entity."; + var builder = new global::ApiSdk.Domains.Item.RootDomain.RootDomainRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Provides operations to manage the serviceConfigurationRecords property of the microsoft.graph.domain entity. /// /// A @@ -264,7 +285,7 @@ public Command BuildServiceConfigurationRecordsNavCommand() { var command = new Command("service-configuration-records"); command.Description = "Provides operations to manage the serviceConfigurationRecords property of the microsoft.graph.domain entity."; - var builder = new ServiceConfigurationRecordsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.ServiceConfigurationRecords.ServiceConfigurationRecordsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -291,7 +312,7 @@ public Command BuildVerificationDnsRecordsNavCommand() { var command = new Command("verification-dns-records"); command.Description = "Provides operations to manage the verificationDnsRecords property of the microsoft.graph.domain entity."; - var builder = new VerificationDnsRecordsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.VerificationDnsRecords.VerificationDnsRecordsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -318,7 +339,7 @@ public Command BuildVerifyNavCommand() { var command = new Command("verify"); command.Description = "Provides operations to call the verify method."; - var builder = new VerifyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.Verify.VerifyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -328,14 +349,14 @@ public Command BuildVerifyNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DomainItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%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 DomainItemRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}{?%24expand,%24select}", rawUrl) @@ -367,11 +388,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); @@ -387,11 +408,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(Domain body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Domain body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Domain body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Domain body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -403,7 +424,8 @@ public RequestInformation ToPatchRequestInformation(Domain body, Action /// Retrieve the properties and relationships of domain object. /// - public class DomainItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -428,3 +450,4 @@ public class DomainItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/DomainNameReferences/Count/CountRequestBuilder.cs b/src/generated/Domains/Item/DomainNameReferences/Count/CountRequestBuilder.cs index 3f9666d20c..9b802f9767 100644 --- a/src/generated/Domains/Item/DomainNameReferences/Count/CountRequestBuilder.cs +++ b/src/generated/Domains/Item/DomainNameReferences/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.Domains.Item.DomainNameReferences.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}/domains/{domain%2Did}/domainNameReferences/$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}/domains/{domain%2Did}/domainNameReferences/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Di /// 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/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs b/src/generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs index ae3e7094b8..418d752f3c 100644 --- a/src/generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs +++ b/src/generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Domains.Item.DomainNameReferences.Count; using ApiSdk.Domains.Item.DomainNameReferences.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.Domains.Item.DomainNameReferences /// /// Provides operations to manage the domainNameReferences property of the microsoft.graph.domain entity. /// - public class DomainNameReferencesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainNameReferencesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the domainNameReferences property of the microsoft.graph.domain entity. @@ -30,7 +33,7 @@ public class DomainNameReferencesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.DomainNameReferences.Item.DirectoryObjectItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Domains.Item.DomainNameReferences.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -155,14 +158,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 DomainNameReferencesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/domainNameReferences{?%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 DomainNameReferencesRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/domainNameReferences{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -175,11 +178,11 @@ public DomainNameReferencesRequestBuilder(string rawUrl) : base("{+baseurl}/doma /// 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); @@ -190,7 +193,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain. /// - public class DomainNameReferencesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainNameReferencesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -254,3 +258,4 @@ public class DomainNameReferencesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.cs index 2b30d062d7..c55a2da627 100644 --- a/src/generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.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,16 +21,17 @@ namespace ApiSdk.Domains.Item.DomainNameReferences.Item /// /// Provides operations to manage the domainNameReferences property of the microsoft.graph.domain entity. /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// - /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Doesn't support $expand. Supports $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group."; + command.Description = "The objects such as users and groups that reference the domain ID. Read-only, Nullable. Doesn't support $expand. Supports $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group."; var domainIdOption = new Option("--domain-id", description: "The unique identifier of domain") { }; domainIdOption.IsRequired = true; @@ -80,31 +83,31 @@ 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 DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/domainNameReferences/{directoryObject%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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/domainNameReferences/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Doesn't support $expand. Supports $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -113,9 +116,10 @@ public RequestInformation ToGetRequestInformation(Action - /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Doesn't support $expand. Supports $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. /// - public class DirectoryObjectItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class DirectoryObjectItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/FederationConfiguration/Count/CountRequestBuilder.cs b/src/generated/Domains/Item/FederationConfiguration/Count/CountRequestBuilder.cs index 3050fb4016..3b18ffcc8e 100644 --- a/src/generated/Domains/Item/FederationConfiguration/Count/CountRequestBuilder.cs +++ b/src/generated/Domains/Item/FederationConfiguration/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.Domains.Item.FederationConfiguration.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}/domains/{domain%2Did}/federationConfiguration/$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}/domains/{domain%2Did}/federationConfiguration/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Di /// 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/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs b/src/generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs index 0b52e4bf90..e8338aeaff 100644 --- a/src/generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs +++ b/src/generated/Domains/Item/FederationConfiguration/FederationConfigurationRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Domains.Item.FederationConfiguration.Count; using ApiSdk.Domains.Item.FederationConfiguration.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.Domains.Item.FederationConfiguration /// /// Provides operations to manage the federationConfiguration property of the microsoft.graph.domain entity. /// - public class FederationConfigurationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FederationConfigurationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the federationConfiguration property of the microsoft.graph.domain entity. @@ -30,7 +33,7 @@ public class FederationConfigurationRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new InternalDomainFederationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.FederationConfiguration.Item.InternalDomainFederationItemRequestBuilder(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.Domains.Item.FederationConfiguration.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(InternalDomainFederation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.InternalDomainFederation.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 FederationConfigurationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/federationConfiguration{?%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 FederationConfigurationRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/federationConfiguration{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public FederationConfigurationRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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(InternalDomainFederation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.InternalDomainFederation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(InternalDomainFederation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.InternalDomainFederation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(InternalDomainFederation body /// /// Read the properties of the internalDomainFederation objects for the domain. This API returns only one object in the collection. /// - public class FederationConfigurationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FederationConfigurationRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class FederationConfigurationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.cs b/src/generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.cs index 123a4c90b0..627c791bd3 100644 --- a/src/generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.cs +++ b/src/generated/Domains/Item/FederationConfiguration/Item/InternalDomainFederationItemRequestBuilder.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.Domains.Item.FederationConfiguration.Item /// /// Provides operations to manage the federationConfiguration property of the microsoft.graph.domain entity. /// - public class InternalDomainFederationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InternalDomainFederationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete an internalDomainFederation object. @@ -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(InternalDomainFederation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.InternalDomainFederation.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 InternalDomainFederationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/federationConfiguration/{internalDomainFederation%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 InternalDomainFederationItemRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/federationConfiguration/{internalDomainFederation%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(InternalDomainFederation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.InternalDomainFederation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(InternalDomainFederation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.InternalDomainFederation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(InternalDomainFederation bod /// /// Read the properties and relationships of an internalDomainFederation object. /// - public class InternalDomainFederationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InternalDomainFederationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,3 +285,4 @@ public class InternalDomainFederationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/ForceDelete/ForceDeletePostRequestBody.cs b/src/generated/Domains/Item/ForceDelete/ForceDeletePostRequestBody.cs index a0354c89f9..79dd4cd2d6 100644 --- a/src/generated/Domains/Item/ForceDelete/ForceDeletePostRequestBody.cs +++ b/src/generated/Domains/Item/ForceDelete/ForceDeletePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Domains.Item.ForceDelete { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForceDeletePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForceDeletePostRequestBody : 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. @@ -15,7 +17,7 @@ public class ForceDeletePostRequestBody : IAdditionalDataHolder, IParsable /// The disableUserAccounts property public bool? DisableUserAccounts { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForceDeletePostRequestBody() { @@ -24,12 +26,12 @@ public ForceDeletePostRequestBody() /// /// 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 ForceDeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Domains.Item.ForceDelete.ForceDeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForceDeletePostRequestBody(); + return new global::ApiSdk.Domains.Item.ForceDelete.ForceDeletePostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs b/src/generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs index 8ab2b96e5d..513c2cfc81 100644 --- a/src/generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs +++ b/src/generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.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.Domains.Item.ForceDelete /// /// Provides operations to call the forceDelete method. /// - public class ForceDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForceDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Delete a domain using an asynchronous long-running operation. Before performing this operation, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. @@ -43,8 +46,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(ForceDeletePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Domains.Item.ForceDelete.ForceDeletePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 ForceDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/forceDelete", 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 ForceDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/forceDelete", rawUrl) @@ -84,11 +87,11 @@ public ForceDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{doma /// 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(ForceDeletePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Domains.Item.ForceDelete.ForceDeletePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForceDeletePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Domains.Item.ForceDelete.ForceDeletePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(ForceDeletePostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/Promote/PromotePostResponse.cs b/src/generated/Domains/Item/Promote/PromotePostResponse.cs index 1a0b010f5a..800b86d77f 100644 --- a/src/generated/Domains/Item/Promote/PromotePostResponse.cs +++ b/src/generated/Domains/Item/Promote/PromotePostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Domains.Item.Promote { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PromotePostResponse : IAdditionalDataHolder, IParsable + public partial class PromotePostResponse : 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. @@ -15,7 +17,7 @@ public class PromotePostResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PromotePostResponse() { @@ -24,12 +26,12 @@ public PromotePostResponse() /// /// 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 PromotePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Domains.Item.Promote.PromotePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PromotePostResponse(); + return new global::ApiSdk.Domains.Item.Promote.PromotePostResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/Promote/PromoteRequestBuilder.cs b/src/generated/Domains/Item/Promote/PromoteRequestBuilder.cs index bde361e6dd..64ab65bb00 100644 --- a/src/generated/Domains/Item/Promote/PromoteRequestBuilder.cs +++ b/src/generated/Domains/Item/Promote/PromoteRequestBuilder.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.Domains.Item.Promote /// /// Provides operations to call the promote method. /// - public class PromoteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PromoteRequestBuilder : BaseCliRequestBuilder { /// /// Promote a verified subdomain to the root domain. A verified domain has its isVerified property set to true. @@ -60,14 +63,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 PromoteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/promote", 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 PromoteRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/promote", rawUrl) @@ -94,3 +97,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Domains.Item.RootDomain +{ + /// + /// Provides operations to manage the rootDomain property of the microsoft.graph.domain entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RootDomainRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get the root domain of a subdomain. This API returns a single object. + /// Find more info here + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get the root domain of a subdomain. This API returns a single object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/domain-get-rootdomain?view=graph-rest-1.0"; + var domainIdOption = new Option("--domain-id", description: "The unique identifier of domain") { + }; + domainIdOption.IsRequired = true; + command.AddOption(domainIdOption); + 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 domainId = invocationContext.ParseResult.GetValueForOption(domainIdOption); + 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; + }); + if (domainId is not null) requestInfo.PathParameters.Add("domain%2Did", domainId); + 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 RootDomainRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/rootDomain{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RootDomainRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/rootDomain{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get the root domain of a subdomain. This API returns a single object. + /// + /// 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; + } + /// + /// Get the root domain of a subdomain. This API returns a single object. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RootDomainRequestBuilderGetQueryParameters + { + /// 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/Domains/Item/ServiceConfigurationRecords/Count/CountRequestBuilder.cs b/src/generated/Domains/Item/ServiceConfigurationRecords/Count/CountRequestBuilder.cs index 1c62faddad..95ab3a38a4 100644 --- a/src/generated/Domains/Item/ServiceConfigurationRecords/Count/CountRequestBuilder.cs +++ b/src/generated/Domains/Item/ServiceConfigurationRecords/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.Domains.Item.ServiceConfigurationRecords.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}/domains/{domain%2Did}/serviceConfigurationRecords/$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}/domains/{domain%2Did}/serviceConfigurationRecords/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Di /// 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/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.cs b/src/generated/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.cs index 1ef102ad06..8c595dd2dc 100644 --- a/src/generated/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.cs +++ b/src/generated/Domains/Item/ServiceConfigurationRecords/Item/DomainDnsRecordItemRequestBuilder.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.Domains.Item.ServiceConfigurationRecords.Item /// /// Provides operations to manage the serviceConfigurationRecords property of the microsoft.graph.domain entity. /// - public class DomainDnsRecordItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainDnsRecordItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property serviceConfigurationRecords for domains @@ -63,13 +66,13 @@ public Command BuildDeleteCommand() return command; } /// - /// DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Supports $expand. + /// DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Doesn't support $expand. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Supports $expand."; + command.Description = "DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Doesn't support $expand."; var domainIdOption = new Option("--domain-id", description: "The unique identifier of domain") { }; domainIdOption.IsRequired = true; @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DomainDnsRecord.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DomainDnsRecord.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DomainDnsRecordItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/serviceConfigurationRecords/{domainDnsRecord%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 DomainDnsRecordItemRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/serviceConfigurationRecords/{domainDnsRecord%2Did}{?%24expand,%24select}", rawUrl) @@ -211,17 +214,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Supports $expand. + /// DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Doesn't support $expand. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,9 +254,10 @@ public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action return requestInfo; } /// - /// DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Supports $expand. + /// DNS records the customer adds to the DNS zone file of the domain before the domain can be used by Microsoft Online services. Read-only, Nullable. Doesn't support $expand. /// - public class DomainDnsRecordItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainDnsRecordItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class DomainDnsRecordItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs b/src/generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs index 66d7904e1c..e45228df48 100644 --- a/src/generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs +++ b/src/generated/Domains/Item/ServiceConfigurationRecords/ServiceConfigurationRecordsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Domains.Item.ServiceConfigurationRecords.Count; using ApiSdk.Domains.Item.ServiceConfigurationRecords.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.Domains.Item.ServiceConfigurationRecords /// /// Provides operations to manage the serviceConfigurationRecords property of the microsoft.graph.domain entity. /// - public class ServiceConfigurationRecordsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceConfigurationRecordsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the serviceConfigurationRecords property of the microsoft.graph.domain entity. @@ -30,7 +33,7 @@ public class ServiceConfigurationRecordsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DomainDnsRecordItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.ServiceConfigurationRecords.Item.DomainDnsRecordItemRequestBuilder(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.Domains.Item.ServiceConfigurationRecords.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(DomainDnsRecord.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DomainDnsRecord.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -208,14 +211,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ServiceConfigurationRecordsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/serviceConfigurationRecords{?%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 ServiceConfigurationRecordsRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/serviceConfigurationRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -228,11 +231,11 @@ public ServiceConfigurationRecordsRequestBuilder(string rawUrl) : base("{+baseur /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(DomainDnsRecord body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DomainDnsRecord body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPostRequestInformation(DomainDnsRecord body, Action< /// /// Retrieves a list of domainDnsRecord objects needed to enable services for the domain. Use the returned list to add records to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. /// - public class ServiceConfigurationRecordsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceConfigurationRecordsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -328,3 +332,4 @@ public class ServiceConfigurationRecordsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/VerificationDnsRecords/Count/CountRequestBuilder.cs b/src/generated/Domains/Item/VerificationDnsRecords/Count/CountRequestBuilder.cs index 97352b1c0f..600a912b66 100644 --- a/src/generated/Domains/Item/VerificationDnsRecords/Count/CountRequestBuilder.cs +++ b/src/generated/Domains/Item/VerificationDnsRecords/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.Domains.Item.VerificationDnsRecords.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}/domains/{domain%2Did}/verificationDnsRecords/$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}/domains/{domain%2Did}/verificationDnsRecords/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Di /// 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/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs b/src/generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs index f325720c4c..a5dde6682c 100644 --- a/src/generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.cs +++ b/src/generated/Domains/Item/VerificationDnsRecords/Item/DomainDnsRecordItemRequestBuilder.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.Domains.Item.VerificationDnsRecords.Item /// /// Provides operations to manage the verificationDnsRecords property of the microsoft.graph.domain entity. /// - public class DomainDnsRecordItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainDnsRecordItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property verificationDnsRecords for domains @@ -63,13 +66,13 @@ public Command BuildDeleteCommand() return command; } /// - /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. + /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Doesn't support $expand. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand."; + command.Description = "DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Doesn't support $expand."; var domainIdOption = new Option("--domain-id", description: "The unique identifier of domain") { }; domainIdOption.IsRequired = true; @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DomainDnsRecord.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DomainDnsRecord.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DomainDnsRecordItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/verificationDnsRecords/{domainDnsRecord%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 DomainDnsRecordItemRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/verificationDnsRecords/{domainDnsRecord%2Did}{?%24expand,%24select}", rawUrl) @@ -211,17 +214,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. + /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Doesn't support $expand. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,9 +254,10 @@ public RequestInformation ToPatchRequestInformation(DomainDnsRecord body, Action return requestInfo; } /// - /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Supports $expand. + /// DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Doesn't support $expand. /// - public class DomainDnsRecordItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DomainDnsRecordItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class DomainDnsRecordItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs b/src/generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs index 218f8b9f78..4c83fed186 100644 --- a/src/generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs +++ b/src/generated/Domains/Item/VerificationDnsRecords/VerificationDnsRecordsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Domains.Item.VerificationDnsRecords.Count; using ApiSdk.Domains.Item.VerificationDnsRecords.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.Domains.Item.VerificationDnsRecords /// /// Provides operations to manage the verificationDnsRecords property of the microsoft.graph.domain entity. /// - public class VerificationDnsRecordsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VerificationDnsRecordsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the verificationDnsRecords property of the microsoft.graph.domain entity. @@ -30,7 +33,7 @@ public class VerificationDnsRecordsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DomainDnsRecordItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.Item.VerificationDnsRecords.Item.DomainDnsRecordItemRequestBuilder(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.Domains.Item.VerificationDnsRecords.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(DomainDnsRecord.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DomainDnsRecord.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -208,14 +211,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public VerificationDnsRecordsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/verificationDnsRecords{?%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 VerificationDnsRecordsRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/verificationDnsRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -228,11 +231,11 @@ public VerificationDnsRecordsRequestBuilder(string rawUrl) : base("{+baseurl}/do /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(DomainDnsRecord body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DomainDnsRecord body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DomainDnsRecord body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPostRequestInformation(DomainDnsRecord body, Action< /// /// Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. /// - public class VerificationDnsRecordsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VerificationDnsRecordsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -328,3 +332,4 @@ public class VerificationDnsRecordsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Domains/Item/Verify/VerifyRequestBuilder.cs b/src/generated/Domains/Item/Verify/VerifyRequestBuilder.cs index 22710c55a2..6ed3a37c8b 100644 --- a/src/generated/Domains/Item/Verify/VerifyRequestBuilder.cs +++ b/src/generated/Domains/Item/Verify/VerifyRequestBuilder.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.Domains.Item.Verify /// /// Provides operations to call the verify method. /// - public class VerifyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VerifyRequestBuilder : BaseCliRequestBuilder { /// /// Validates the ownership of the domain. @@ -61,14 +64,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 VerifyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/domains/{domain%2Did}/verify", 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 VerifyRequestBuilder(string rawUrl) : base("{+baseurl}/domains/{domain%2Did}/verify", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.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; @@ -20,7 +22,8 @@ namespace ApiSdk.Drives /// /// Provides operations to manage the collection of drive entities. /// - public class DrivesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DrivesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of drive entities. @@ -30,7 +33,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DriveItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.DriveItemRequestBuilder(PathParameters); commands.Add(builder.BuildBundlesNavCommand()); commands.Add(builder.BuildCreatedByUserNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -71,8 +74,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.Drive.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Drive.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -97,7 +100,7 @@ public Command BuildCreateCommand() /// A public Command BuildListCommand() { - var driveIndexer = new DriveItemRequestBuilder(PathParameters); + var driveIndexer = new global::ApiSdk.Drives.Item.DriveItemRequestBuilder(PathParameters); var command = driveIndexer.BuildListNavCommand(); command.Description = "Get entities from drives"; var topOption = new Option("--top", description: "Show only the first n items") { @@ -183,14 +186,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 DrivesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives{?%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 DrivesRequestBuilder(string rawUrl) : base("{+baseurl}/drives{?%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -203,11 +206,11 @@ public DrivesRequestBuilder(string rawUrl) : base("{+baseurl}/drives{?%24expand, /// 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); @@ -223,11 +226,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(ApiSdk.Models.Drive body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Drive body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.Drive body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Drive body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -239,7 +242,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.Drive body, Act /// /// Get entities from drives /// - public class DrivesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DrivesRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -300,3 +304,4 @@ public class DrivesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Bundles/BundlesRequestBuilder.cs b/src/generated/Drives/Item/Bundles/BundlesRequestBuilder.cs index 88d8ead0bf..d3b0a3f803 100644 --- a/src/generated/Drives/Item/Bundles/BundlesRequestBuilder.cs +++ b/src/generated/Drives/Item/Bundles/BundlesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Bundles.Count; using ApiSdk.Drives.Item.Bundles.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.Drives.Item.Bundles /// /// Provides operations to manage the bundles property of the microsoft.graph.drive entity. /// - public class BundlesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BundlesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the bundles property of the microsoft.graph.drive entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DriveItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Bundles.Item.DriveItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, commands); @@ -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.Drives.Item.Bundles.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(ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 BundlesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/bundles{?%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 BundlesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/bundles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public BundlesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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); @@ -247,11 +250,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(ApiSdk.Models.DriveItem body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DriveItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.DriveItem body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DriveItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.DriveItem body, /// /// Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. /// - public class BundlesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BundlesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class BundlesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Bundles/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Bundles/Count/CountRequestBuilder.cs index 8f30250a3a..6811a8b2c8 100644 --- a/src/generated/Drives/Item/Bundles/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Bundles/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.Drives.Item.Bundles.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}/drives/{drive%2Did}/bundles/$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}/drives/{drive%2Did}/bundles/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.cs b/src/generated/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.cs index 804328b45f..68bca3b586 100644 --- a/src/generated/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Drives/Item/Bundles/Item/Content/ContentRequestBuilder.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.Drives.Item.Bundles.Item.Content /// /// Provides operations to manage the media for the drive entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -169,14 +172,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/bundles/{driveItem%2Did}/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/bundles/{driveItem%2Did}/content{?%24format*}", rawUrl) @@ -208,11 +211,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); @@ -245,7 +248,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.cs b/src/generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.cs index 058ac375b1..1a0c3d4538 100644 --- a/src/generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Bundles/Item/DriveItemItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Bundles.Item.Content; 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.Drives.Item.Bundles.Item /// /// Provides operations to manage the bundles property of the microsoft.graph.drive entity. /// - public class DriveItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the drive entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the drive entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Bundles.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -100,14 +103,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 DriveItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/bundles/{driveItem%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 DriveItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/bundles/{driveItem%2Did}{?%24expand,%24select}", rawUrl) @@ -120,11 +123,11 @@ public DriveItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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); @@ -135,7 +138,8 @@ public RequestInformation ToGetRequestInformation(Action /// Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. /// - public class DriveItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,3 +164,4 @@ public class DriveItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index b3262260ca..706d997ec2 100644 --- a/src/generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/generated/Drives/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.CreatedByUser.MailboxSettings; using ApiSdk.Drives.Item.CreatedByUser.ServiceProvisioningErrors; 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.Drives.Item.CreatedByUser /// /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. /// - public class CreatedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who created the item. Read-only. @@ -83,7 +86,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.CreatedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -101,7 +104,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.CreatedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -117,14 +120,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CreatedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/createdByUser{?%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 CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/createdByUser{?%24expand,%24select}", rawUrl) @@ -137,11 +140,11 @@ public CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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); @@ -152,7 +155,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who created the item. Read-only. /// - public class CreatedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -177,3 +181,4 @@ public class CreatedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 9760b4d3d3..dee285800a 100644 --- a/src/generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Drives/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Drives.Item.CreatedByUser.MailboxSettings /// /// Builds and executes requests for operations under \drives\{drive-id}\createdByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -103,8 +106,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,14 +128,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/createdByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -145,11 +148,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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); @@ -165,11 +168,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -181,7 +184,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,3 +210,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index d591eb159a..e7c2905f2e 100644 --- a/src/generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/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.Drives.Item.CreatedByUser.ServiceProvisioningErrors.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}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors/$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}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 64d8bba684..81706afdfd 100644 --- a/src/generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Drives/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.CreatedByUser.ServiceProvisioningErrors.Count; 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.Drives.Item.CreatedByUser.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \drives\{drive-id}\createdByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Drives.Item.CreatedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -142,31 +145,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -175,9 +178,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -241,3 +245,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/DriveItemRequestBuilder.cs b/src/generated/Drives/Item/DriveItemRequestBuilder.cs index 4f2fb88b1a..5345bb016c 100644 --- a/src/generated/Drives/Item/DriveItemRequestBuilder.cs +++ b/src/generated/Drives/Item/DriveItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Bundles; using ApiSdk.Drives.Item.CreatedByUser; using ApiSdk.Drives.Item.Following; @@ -12,6 +13,7 @@ using ApiSdk.Drives.Item.Special; 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; @@ -30,7 +32,8 @@ namespace ApiSdk.Drives.Item /// /// Provides operations to manage the collection of drive entities. /// - public class DriveItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the bundles property of the microsoft.graph.drive entity. @@ -40,7 +43,7 @@ public Command BuildBundlesNavCommand() { var command = new Command("bundles"); command.Description = "Provides operations to manage the bundles property of the microsoft.graph.drive entity."; - var builder = new BundlesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Bundles.BundlesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -67,7 +70,7 @@ public Command BuildCreatedByUserNavCommand() { var command = new Command("created-by-user"); command.Description = "Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity."; - var builder = new CreatedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.CreatedByUser.CreatedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -126,7 +129,7 @@ public Command BuildFollowingNavCommand() { var command = new Command("following"); command.Description = "Provides operations to manage the following property of the microsoft.graph.drive entity."; - var builder = new FollowingRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Following.FollowingRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -204,7 +207,7 @@ public Command BuildItemsNavCommand() { var command = new Command("items"); command.Description = "Provides operations to manage the items property of the microsoft.graph.drive entity."; - var builder = new ItemsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.ItemsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -231,7 +234,7 @@ public Command BuildLastModifiedByUserNavCommand() { var command = new Command("last-modified-by-user"); command.Description = "Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity."; - var builder = new LastModifiedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.LastModifiedByUser.LastModifiedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -255,7 +258,7 @@ public Command BuildListNavCommand() { var command = new Command("list"); command.Description = "Provides operations to manage the list property of the microsoft.graph.drive entity."; - var builder = new ListRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ListRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildColumnsNavCommand()); @@ -309,8 +312,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.Drive.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Drive.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -338,7 +341,7 @@ public Command BuildRecentNavCommand() { var command = new Command("recent"); command.Description = "Provides operations to call the recent method."; - var builder = new RecentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Recent.RecentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -355,7 +358,7 @@ public Command BuildRootNavCommand() { var command = new Command("root"); command.Description = "Provides operations to manage the root property of the microsoft.graph.drive entity."; - var builder = new RootRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Root.RootRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildContentNavCommand()); @@ -378,7 +381,7 @@ public Command BuildSearchWithQRbCommand() { var command = new Command("search-with-q"); command.Description = "Provides operations to call the search method."; - var builder = new SearchWithQRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.SearchWithQ.SearchWithQRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -395,7 +398,7 @@ public Command BuildSharedWithMeNavCommand() { var command = new Command("shared-with-me"); command.Description = "Provides operations to call the sharedWithMe method."; - var builder = new SharedWithMeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.SharedWithMe.SharedWithMeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -412,7 +415,7 @@ public Command BuildSpecialNavCommand() { var command = new Command("special"); command.Description = "Provides operations to manage the special property of the microsoft.graph.drive entity."; - var builder = new SpecialRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Special.SpecialRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -431,14 +434,14 @@ public Command BuildSpecialNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DriveItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%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 DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}{?%24expand,%24select}", rawUrl) @@ -470,11 +473,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); @@ -490,11 +493,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.Drive body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Drive body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Drive body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Drive body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -506,7 +509,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Drive body, Ac /// /// Get entity from drives by key /// - public class DriveItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -531,3 +535,4 @@ public class DriveItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Following/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Following/Count/CountRequestBuilder.cs index a48895c787..ab68c500ab 100644 --- a/src/generated/Drives/Item/Following/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Following/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.Drives.Item.Following.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}/drives/{drive%2Did}/following/$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}/drives/{drive%2Did}/following/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/Following/FollowingRequestBuilder.cs b/src/generated/Drives/Item/Following/FollowingRequestBuilder.cs index 93aa73ac82..4c2507d206 100644 --- a/src/generated/Drives/Item/Following/FollowingRequestBuilder.cs +++ b/src/generated/Drives/Item/Following/FollowingRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Following.Count; using ApiSdk.Drives.Item.Following.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.Drives.Item.Following /// /// Provides operations to manage the following property of the microsoft.graph.drive entity. /// - public class FollowingRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FollowingRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the following property of the microsoft.graph.drive entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DriveItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Following.Item.DriveItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, commands); @@ -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.Drives.Item.Following.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -156,14 +159,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 FollowingRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/following{?%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 FollowingRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/following{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -176,11 +179,11 @@ public FollowingRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -191,7 +194,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of items the user is following. Only in OneDrive for Business. /// - public class FollowingRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FollowingRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -255,3 +259,4 @@ public class FollowingRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.cs b/src/generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.cs index 0f967a323e..ea0a483a7f 100644 --- a/src/generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Drives/Item/Following/Item/Content/ContentRequestBuilder.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.Drives.Item.Following.Item.Content /// /// Provides operations to manage the media for the drive entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -169,14 +172,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/following/{driveItem%2Did}/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/following/{driveItem%2Did}/content{?%24format*}", rawUrl) @@ -208,11 +211,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); @@ -245,7 +248,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.cs b/src/generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.cs index ed658fd9fc..b8f1772d32 100644 --- a/src/generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Following/Item/DriveItemItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Following.Item.Content; 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.Drives.Item.Following.Item /// /// Provides operations to manage the following property of the microsoft.graph.drive entity. /// - public class DriveItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the drive entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the drive entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Following.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -100,14 +103,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 DriveItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/following/{driveItem%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 DriveItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/following/{driveItem%2Did}{?%24expand,%24select}", rawUrl) @@ -120,11 +123,11 @@ public DriveItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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); @@ -135,7 +138,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of items the user is following. Only in OneDrive for Business. /// - public class DriveItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,3 +164,4 @@ public class DriveItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Count/CountRequestBuilder.cs index 3b37650be3..6ebfaf6f30 100644 --- a/src/generated/Drives/Item/Items/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/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.Drives.Item.Items.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}/drives/{drive%2Did}/items/$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}/drives/{drive%2Did}/items/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.cs index a86314b0a3..46112138cc 100644 --- a/src/generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Analytics/AllTime/AllTimeRequestBuilder.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,16 +21,18 @@ namespace ApiSdk.Drives.Item.Items.Item.Analytics.AllTime /// /// Provides operations to manage the allTime property of the microsoft.graph.itemAnalytics entity. /// - public class AllTimeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllTimeRequestBuilder : BaseCliRequestBuilder { /// - /// Get allTime from drives + /// Get itemAnalytics about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval API. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get allTime from drives"; + command.Description = "Get itemAnalytics about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/itemanalytics-get?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -80,31 +84,31 @@ 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 AllTimeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/allTime{?%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 AllTimeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/allTime{?%24expand,%24select}", rawUrl) { } /// - /// Get allTime from drives + /// Get itemAnalytics about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval API. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -113,9 +117,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get allTime from drives + /// Get itemAnalytics about the views that took place under this resource.The itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.For a custom time range or interval, use the getActivitiesByInterval API. /// - public class AllTimeRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllTimeRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +145,4 @@ public class AllTimeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs index dc367cb953..0328f2db4a 100644 --- a/src/generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Analytics.AllTime; using ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats; using ApiSdk.Drives.Item.Items.Item.Analytics.LastSevenDays; 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.Drives.Item.Items.Item.Analytics /// /// Provides operations to manage the analytics property of the microsoft.graph.driveItem entity. /// - public class AnalyticsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AnalyticsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the allTime property of the microsoft.graph.itemAnalytics entity. @@ -32,7 +35,7 @@ public Command BuildAllTimeNavCommand() { var command = new Command("all-time"); command.Description = "Provides operations to manage the allTime property of the microsoft.graph.itemAnalytics entity."; - var builder = new AllTimeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Analytics.AllTime.AllTimeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -148,7 +151,7 @@ public Command BuildItemActivityStatsNavCommand() { var command = new Command("item-activity-stats"); command.Description = "Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity."; - var builder = new ItemActivityStatsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.ItemActivityStatsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -175,7 +178,7 @@ public Command BuildLastSevenDaysNavCommand() { var command = new Command("last-seven-days"); command.Description = "Provides operations to manage the lastSevenDays property of the microsoft.graph.itemAnalytics entity."; - var builder = new LastSevenDaysRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Analytics.LastSevenDays.LastSevenDaysRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -219,8 +222,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(ItemAnalytics.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemAnalytics.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -242,14 +245,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 AnalyticsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics{?%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 AnalyticsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics{?%24expand,%24select}", rawUrl) @@ -281,11 +284,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); @@ -301,11 +304,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(ItemAnalytics body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemAnalytics body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ItemAnalytics body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemAnalytics body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -317,7 +320,8 @@ public RequestInformation ToPatchRequestInformation(ItemAnalytics body, Action /// Analytics about the view activities that took place on this item. /// - public class AnalyticsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AnalyticsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -342,3 +346,4 @@ public class AnalyticsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs index 7d9da2c32b..ae96481b4a 100644 --- a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/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.Drives.Item.Items.Item.Analytics.ItemActivityStats.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs index 07df87135a..132ea7a8f3 100644 --- a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activities.Count; using ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activities.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.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activit /// /// Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. /// - public class ActivitiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ActivitiesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ItemActivityItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activities.Item.ItemActivityItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDriveItemNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activities.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(ItemActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 ActivitiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities{?%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 ActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public ActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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); @@ -273,11 +276,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(ItemActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ItemActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ItemActivity body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ItemActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(ItemActivity body, Action /// Exposes the itemActivities represented in this itemActivityStat resource. /// - public class ActivitiesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ActivitiesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class ActivitiesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs index 658d83eff2..e1753b1a92 100644 --- a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/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.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activit /// /// 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 @@ -75,14 +78,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}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs index 9940623f3f..61e706f3e1 100644 --- a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.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.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activit /// /// Provides operations to manage the media for the drive entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -205,14 +208,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content{?%24format*}", rawUrl) @@ -244,11 +247,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); @@ -281,7 +284,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs index 8fe4cd7651..0a980c62e4 100644 --- a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activities.Item.DriveItem.Content; 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.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activit /// /// Provides operations to manage the driveItem property of the microsoft.graph.itemActivity entity. /// - public class DriveItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the drive entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the drive entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activities.Item.DriveItem.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -112,14 +115,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 DriveItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem{?%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 DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem{?%24expand,%24select}", rawUrl) @@ -132,11 +135,11 @@ public DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -147,7 +150,8 @@ public RequestInformation ToGetRequestInformation(Action /// Exposes the driveItem that was the target of this activity. /// - public class DriveItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -172,3 +176,4 @@ public class DriveItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs index 0920b548ee..39d858cff5 100644 --- a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activities.Item.DriveItem; 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.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activit /// /// Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. /// - public class ItemActivityItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property activities for drives @@ -83,7 +86,7 @@ public Command BuildDriveItemNavCommand() { var command = new Command("drive-item"); command.Description = "Provides operations to manage the driveItem property of the microsoft.graph.itemActivity entity."; - var builder = new ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activities.Item.DriveItem.DriveItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activities.Item.DriveItem.DriveItemRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildContentNavCommand()); @@ -213,8 +216,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(ItemActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -238,14 +241,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 ItemActivityItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%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 ItemActivityItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}{?%24expand,%24select}", rawUrl) @@ -277,11 +280,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); @@ -297,11 +300,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(ItemActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ItemActivity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -313,7 +316,8 @@ public RequestInformation ToPatchRequestInformation(ItemActivity body, Action /// Exposes the itemActivities represented in this itemActivityStat resource. /// - public class ItemActivityItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -338,3 +342,4 @@ public class ItemActivityItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs index b4a57ef5d4..eea96032b6 100644 --- a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activities; 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.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item /// /// Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. /// - public class ItemActivityStatItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityStatItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. @@ -30,7 +33,7 @@ public Command BuildActivitiesNavCommand() { var command = new Command("activities"); command.Description = "Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity."; - var builder = new ActivitiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.Activities.ActivitiesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -200,8 +203,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(ItemActivityStat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,14 +227,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 ItemActivityStatItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%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 ItemActivityStatItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}{?%24expand,%24select}", rawUrl) @@ -263,11 +266,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); @@ -283,11 +286,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(ItemActivityStat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemActivityStat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ItemActivityStat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemActivityStat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPatchRequestInformation(ItemActivityStat body, Actio /// /// Get itemActivityStats from drives /// - public class ItemActivityStatItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityStatItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -324,3 +328,4 @@ public class ItemActivityStatItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs index bdb388dca9..1b5f2ee969 100644 --- a/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Count; using ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.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.Drives.Item.Items.Item.Analytics.ItemActivityStats /// /// Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. /// - public class ItemActivityStatsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityStatsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ItemActivityStatItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Analytics.ItemActivityStats.Item.ItemActivityStatItemRequestBuilder(PathParameters); commands.Add(builder.BuildActivitiesNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Drives.Item.Items.Item.Analytics.ItemActivityStats.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(ItemActivityStat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 ItemActivityStatsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats{?%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 ItemActivityStatsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/itemActivityStats{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public ItemActivityStatsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/ /// 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); @@ -261,11 +264,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(ItemActivityStat body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ItemActivityStat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ItemActivityStat body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ItemActivityStat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ItemActivityStat body, Action /// /// Get itemActivityStats from drives /// - public class ItemActivityStatsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityStatsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class ItemActivityStatsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs index fd5633d7fa..445c855f9a 100644 --- a/src/generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.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.Drives.Item.Items.Item.Analytics.LastSevenDays /// /// Provides operations to manage the lastSevenDays property of the microsoft.graph.itemAnalytics entity. /// - public class LastSevenDaysRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastSevenDaysRequestBuilder : BaseCliRequestBuilder { /// /// Get lastSevenDays from drives @@ -80,14 +83,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 LastSevenDaysRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/lastSevenDays{?%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 LastSevenDaysRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/analytics/lastSevenDays{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public LastSevenDaysRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get lastSevenDays from drives /// - public class LastSevenDaysRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastSevenDaysRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class LastSevenDaysRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelPostRequestBody.cs index 13fcf66f34..f14346c5e8 100644 --- a/src/generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelPostRequestBody.cs @@ -1,20 +1,22 @@ // +#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.Drives.Item.Items.Item.AssignSensitivityLabel { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignSensitivityLabelPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignSensitivityLabelPostRequestBody : 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. public IDictionary AdditionalData { get; set; } /// The assignmentMethod property - public SensitivityLabelAssignmentMethod? AssignmentMethod { get; set; } + public global::ApiSdk.Models.SensitivityLabelAssignmentMethod? AssignmentMethod { get; set; } /// The justificationText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,7 +34,7 @@ public class AssignSensitivityLabelPostRequestBody : IAdditionalDataHolder, IPar public string SensitivityLabelId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignSensitivityLabelPostRequestBody() { @@ -41,12 +43,12 @@ public AssignSensitivityLabelPostRequestBody() /// /// 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 AssignSensitivityLabelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.AssignSensitivityLabel.AssignSensitivityLabelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignSensitivityLabelPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.AssignSensitivityLabel.AssignSensitivityLabelPostRequestBody(); } /// /// The deserialization information for the current model @@ -56,7 +58,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "assignmentMethod", n => { AssignmentMethod = n.GetEnumValue(); } }, + { "assignmentMethod", n => { AssignmentMethod = n.GetEnumValue(); } }, { "justificationText", n => { JustificationText = n.GetStringValue(); } }, { "sensitivityLabelId", n => { SensitivityLabelId = n.GetStringValue(); } }, }; @@ -68,10 +70,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("assignmentMethod", AssignmentMethod); + writer.WriteEnumValue("assignmentMethod", AssignmentMethod); writer.WriteStringValue("justificationText", JustificationText); writer.WriteStringValue("sensitivityLabelId", SensitivityLabelId); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.cs index aeb2bd4754..b3b4bd59a7 100644 --- a/src/generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.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.Drives.Item.Items.Item.AssignSensitivityLabel /// /// Provides operations to call the assignSensitivityLabel method. /// - public class AssignSensitivityLabelRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignSensitivityLabelRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action assignSensitivityLabel @@ -47,8 +50,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(AssignSensitivityLabelPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.AssignSensitivityLabel.AssignSensitivityLabelPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -68,14 +71,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 AssignSensitivityLabelRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/assignSensitivityLabel", 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 AssignSensitivityLabelRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/assignSensitivityLabel", rawUrl) @@ -89,11 +92,11 @@ public AssignSensitivityLabelRequestBuilder(string rawUrl) : base("{+baseurl}/dr /// 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(AssignSensitivityLabelPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.AssignSensitivityLabel.AssignSensitivityLabelPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignSensitivityLabelPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.AssignSensitivityLabel.AssignSensitivityLabelPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -104,3 +107,4 @@ public RequestInformation ToPostRequestInformation(AssignSensitivityLabelPostReq } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Checkin/CheckinPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Checkin/CheckinPostRequestBody.cs index 0178562f7f..cbbd96465a 100644 --- a/src/generated/Drives/Item/Items/Item/Checkin/CheckinPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Checkin/CheckinPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Checkin { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckinPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckinPostRequestBody : 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. @@ -29,7 +31,7 @@ public class CheckinPostRequestBody : IAdditionalDataHolder, IParsable public string Comment { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckinPostRequestBody() { @@ -38,12 +40,12 @@ public CheckinPostRequestBody() /// /// 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 CheckinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Checkin.CheckinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckinPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Checkin.CheckinPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.cs index 7cf7ff6e21..afdc20b448 100644 --- a/src/generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Checkin/CheckinRequestBuilder.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.Drives.Item.Items.Item.Checkin /// /// Provides operations to call the checkin method. /// - public class CheckinRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckinRequestBuilder : BaseCliRequestBuilder { /// /// Check in a checked out driveItem resource, which makes the version of the document available to others. @@ -48,8 +51,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(CheckinPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Checkin.CheckinPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 CheckinRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/checkin", 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 CheckinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/checkin", rawUrl) @@ -90,11 +93,11 @@ public CheckinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(CheckinPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Checkin.CheckinPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckinPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Checkin.CheckinPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(CheckinPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.cs index 7c0a9a565e..ef54fdfec3 100644 --- a/src/generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Checkout/CheckoutRequestBuilder.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.Drives.Item.Items.Item.Checkout /// /// Provides operations to call the checkout method. /// - public class CheckoutRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckoutRequestBuilder : BaseCliRequestBuilder { /// /// Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CheckoutRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/checkout", 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 CheckoutRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/checkout", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Children.Count; using ApiSdk.Drives.Item.Items.Item.Children.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.Drives.Item.Items.Item.Children /// /// Provides operations to manage the children property of the microsoft.graph.driveItem entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.driveItem entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Drives.Item.Items.Item.Children.Item.DriveItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Children.Item.DriveItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, commands); @@ -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.Drives.Item.Items.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -220,14 +223,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -240,11 +243,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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); @@ -260,11 +263,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(ApiSdk.Models.DriveItem body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DriveItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.DriveItem body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DriveItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -276,7 +279,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.DriveItem body, /// /// Return a collection of DriveItems in the children relationship of a DriveItem. DriveItems with a non-null folder or package facet can have one or more child DriveItems. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -340,3 +344,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Children/Count/CountRequestBuilder.cs index ee9db411da..0d42dc1633 100644 --- a/src/generated/Drives/Item/Items/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Children/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.Drives.Item.Items.Item.Children.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.cs index 921e6ea759..3fad29f97d 100644 --- a/src/generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Children/Item/Content/ContentRequestBuilder.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.Drives.Item.Items.Item.Children.Item.Content /// /// Provides operations to manage the media for the drive entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -187,14 +190,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/{driveItem%2Did1}/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/{driveItem%2Did1}/content{?%24format*}", rawUrl) @@ -226,11 +229,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); @@ -263,7 +266,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.cs index 99f4421d33..886b600e2a 100644 --- a/src/generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Children/Item/DriveItemItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Children.Item.Content; 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.Drives.Item.Items.Item.Children.Item /// /// Provides operations to manage the children property of the microsoft.graph.driveItem entity. /// - public class DriveItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the drive entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the drive entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Children.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -106,14 +109,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 DriveItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/{driveItem%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public DriveItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/children/{driveItem%2Did1}{?%24expand,%24select}", rawUrl) @@ -126,11 +129,11 @@ public DriveItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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); @@ -141,7 +144,8 @@ public RequestInformation ToGetRequestInformation(Action /// Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. /// - public class DriveItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -166,3 +170,4 @@ public class DriveItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.cs index 235fc8b037..fab9d599a4 100644 --- a/src/generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Content/ContentRequestBuilder.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.Drives.Item.Items.Item.Content /// /// Provides operations to manage the media for the drive entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -169,14 +172,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/content{?%24format*}", rawUrl) @@ -208,11 +211,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); @@ -245,7 +248,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Copy/CopyPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Copy/CopyPostRequestBody.cs index 5f37c397e2..121b38ffe9 100644 --- a/src/generated/Drives/Item/Items/Item/Copy/CopyPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Copy/CopyPostRequestBody.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.Drives.Item.Items.Item.Copy { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyPostRequestBody : 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,13 +26,13 @@ public class CopyPostRequestBody : IAdditionalDataHolder, IParsable /// The parentReference property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ItemReference? ParentReference { get; set; } + public global::ApiSdk.Models.ItemReference? ParentReference { get; set; } #nullable restore #else - public ItemReference ParentReference { get; set; } + public global::ApiSdk.Models.ItemReference ParentReference { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyPostRequestBody() { @@ -39,12 +41,12 @@ public CopyPostRequestBody() /// /// 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 CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Copy.CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Copy.CopyPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "name", n => { Name = n.GetStringValue(); } }, - { "parentReference", n => { ParentReference = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, + { "parentReference", n => { ParentReference = n.GetObjectValue(global::ApiSdk.Models.ItemReference.CreateFromDiscriminatorValue); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("parentReference", ParentReference); + writer.WriteObjectValue("parentReference", ParentReference); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.cs index 609de09ff0..4fa4ac418c 100644 --- a/src/generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Copy/CopyRequestBuilder.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.Drives.Item.Items.Item.Copy /// /// Provides operations to call the copy method. /// - public class CopyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyRequestBuilder : BaseCliRequestBuilder { /// /// Asynchronously creates a copy of an driveItem (including any children), under a new parent item or with a new name. @@ -57,8 +60,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(CopyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Copy.CopyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 CopyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/copy", 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 CopyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/copy", rawUrl) @@ -101,11 +104,11 @@ public CopyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(CopyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Copy.CopyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Copy.CopyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs index 53755dbe9a..11db26a7ed 100644 --- a/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.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.Drives.Item.Items.Item.CreateLink { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateLinkPostRequestBody : 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. @@ -34,10 +36,10 @@ public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable /// The recipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Recipients { get; set; } + public List? Recipients { get; set; } #nullable restore #else - public List Recipients { get; set; } + public List Recipients { get; set; } #endif /// The retainInheritedPermissions property public bool? RetainInheritedPermissions { get; set; } @@ -60,7 +62,7 @@ public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateLinkPostRequestBody() { @@ -69,12 +71,12 @@ public CreateLinkPostRequestBody() /// /// 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 CreateLinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.CreateLink.CreateLinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateLinkPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.CreateLink.CreateLinkPostRequestBody(); } /// /// The deserialization information for the current model @@ -87,7 +89,7 @@ public virtual IDictionary> GetFieldDeserializers() { "expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, { "message", n => { Message = n.GetStringValue(); } }, { "password", n => { Password = n.GetStringValue(); } }, - { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } }, { "retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, { "scope", n => { Scope = n.GetStringValue(); } }, { "sendNotification", n => { SendNotification = n.GetBoolValue(); } }, @@ -104,7 +106,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); writer.WriteStringValue("message", Message); writer.WriteStringValue("password", Password); - writer.WriteCollectionOfObjectValues("recipients", Recipients); + writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); writer.WriteStringValue("scope", Scope); writer.WriteBoolValue("sendNotification", SendNotification); @@ -113,3 +115,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs index 27fbefcf8d..239c3634d0 100644 --- a/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.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.Drives.Item.Items.Item.CreateLink /// /// Provides operations to call the createLink method. /// - public class CreateLinkRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateLinkRequestBuilder : BaseCliRequestBuilder { /// /// You can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. @@ -57,8 +60,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(CreateLinkPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.CreateLink.CreateLinkPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 CreateLinkRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createLink", 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 CreateLinkRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createLink", rawUrl) @@ -101,11 +104,11 @@ public CreateLinkRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(CreateLinkPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.CreateLink.CreateLinkPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.CreateLink.CreateLinkPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 817f69e7c2..77fbdb4b90 100644 --- a/src/generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Drives.Item.Items.Item.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The item property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DriveItemUploadableProperties? Item { get; set; } + public global::ApiSdk.Models.DriveItemUploadableProperties? Item { get; set; } #nullable restore #else - public DriveItemUploadableProperties Item { get; set; } + public global::ApiSdk.Models.DriveItemUploadableProperties Item { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "item", n => { Item = n.GetObjectValue(DriveItemUploadableProperties.CreateFromDiscriminatorValue); } }, + { "item", n => { Item = n.GetObjectValue(global::ApiSdk.Models.DriveItemUploadableProperties.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("item", Item); + writer.WriteObjectValue("item", Item); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 5a6c169e9d..d0626a75e0 100644 --- a/src/generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Drives.Item.Items.Item.CreateUploadSession /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action createUploadSession @@ -56,8 +59,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createUploadSession", rawUrl) @@ -100,11 +103,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/drive /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 93797b727f..e2f419d0cc 100644 --- a/src/generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.CreatedByUser.MailboxSettings; using ApiSdk.Drives.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors; 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.Drives.Item.Items.Item.CreatedByUser /// /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. /// - public class CreatedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who created the item. Read-only. @@ -89,7 +92,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.CreatedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -107,7 +110,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -123,14 +126,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CreatedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser{?%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 CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who created the item. Read-only. /// - public class CreatedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class CreatedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index de3c548c83..af579ae6f8 100644 --- a/src/generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Drives.Item.Items.Item.CreatedByUser.MailboxSettings /// /// Builds and executes requests for operations under \drives\{drive-id}\items\{driveItem-id}\createdByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -114,8 +117,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -137,14 +140,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -157,11 +160,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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); @@ -177,11 +180,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -193,7 +196,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -218,3 +222,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 259ae1a2eb..d501958bae 100644 --- a/src/generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/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.Drives.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors. /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index d07366b8e0..5f9aeb8a04 100644 --- a/src/generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count; 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.Drives.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \drives\{drive-id}\items\{driveItem-id}\createdByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Drives.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -148,31 +151,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -181,9 +184,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -247,3 +251,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.cs b/src/generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.cs index 285eb9f119..6c51717a0f 100644 --- a/src/generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.Items.Item.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.Items.Item.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.cs index de0d4d3e32..a69c2edfe8 100644 --- a/src/generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Delta/DeltaRequestBuilder.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.Drives.Item.Items.Item.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all the changes, you may apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. @@ -130,14 +133,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -150,11 +153,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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); @@ -165,7 +168,8 @@ public RequestInformation ToGetRequestInformation(Action /// Track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all the changes, you may apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.cs b/src/generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.cs index 5f7ecb41c0..746cc4f2a7 100644 --- a/src/generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.Items.Item.DeltaWithToken { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaWithTokenGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaWithTokenGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaWithTokenGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.Items.Item.DeltaWithToken.DeltaWithTokenGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaWithTokenGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.DeltaWithToken.DeltaWithTokenGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.cs index e8f0a59e5e..e09faf9491 100644 --- a/src/generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/DeltaWithToken/DeltaWithTokenRequestBuilder.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.Drives.Item.Items.Item.DeltaWithToken /// /// Provides operations to call the delta method. /// - public class DeltaWithTokenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaWithTokenRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function delta @@ -135,14 +138,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 DeltaWithTokenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/delta(token='{token}'){?%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 DeltaWithTokenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -155,11 +158,11 @@ public DeltaWithTokenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dr /// 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); @@ -170,7 +173,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function delta /// - public class DeltaWithTokenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaWithTokenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -234,3 +238,4 @@ public class DeltaWithTokenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/DiscardCheckout/DiscardCheckoutRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/DiscardCheckout/DiscardCheckoutRequestBuilder.cs new file mode 100644 index 0000000000..73bc5d1e4d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/DiscardCheckout/DiscardCheckoutRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#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; +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.Drives.Item.Items.Item.DiscardCheckout +{ + /// + /// Provides operations to call the discardCheckout method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DiscardCheckoutRequestBuilder : BaseCliRequestBuilder + { + /// + /// Discard the check out of a driveItem. This action releases a driveItem resource that was previously checked out. Any changes made to the item while it was checked out are discarded. The same user that performed the checkout must discard it. Another alternative is to use application permissions. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Discard the check out of a driveItem. This action releases a driveItem resource that was previously checked out. Any changes made to the item while it was checked out are discarded. The same user that performed the checkout must discard it. Another alternative is to use application permissions.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/driveitem-discardcheckout?view=graph-rest-1.0"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DiscardCheckoutRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/discardCheckout", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DiscardCheckoutRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/discardCheckout", rawUrl) + { + } + /// + /// Discard the check out of a driveItem. This action releases a driveItem resource that was previously checked out. Any changes made to the item while it was checked out are discarded. The same user that performed the checkout must discard it. Another alternative is to use application permissions. + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs index d958f23a60..af6f528d98 100644 --- a/src/generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Analytics; using ApiSdk.Drives.Item.Items.Item.AssignSensitivityLabel; using ApiSdk.Drives.Item.Items.Item.Checkin; @@ -11,6 +12,7 @@ using ApiSdk.Drives.Item.Items.Item.CreatedByUser; using ApiSdk.Drives.Item.Items.Item.Delta; using ApiSdk.Drives.Item.Items.Item.DeltaWithToken; +using ApiSdk.Drives.Item.Items.Item.DiscardCheckout; using ApiSdk.Drives.Item.Items.Item.ExtractSensitivityLabels; using ApiSdk.Drives.Item.Items.Item.Follow; using ApiSdk.Drives.Item.Items.Item.GetActivitiesByInterval; @@ -32,6 +34,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook; 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; @@ -50,7 +53,8 @@ namespace ApiSdk.Drives.Item.Items.Item /// /// Provides operations to manage the items property of the microsoft.graph.drive entity. /// - public class DriveItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the analytics property of the microsoft.graph.driveItem entity. @@ -60,7 +64,7 @@ public Command BuildAnalyticsNavCommand() { var command = new Command("analytics"); command.Description = "Provides operations to manage the analytics property of the microsoft.graph.driveItem entity."; - var builder = new AnalyticsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Analytics.AnalyticsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAllTimeNavCommand()); @@ -87,7 +91,7 @@ public Command BuildAssignSensitivityLabelNavCommand() { var command = new Command("assign-sensitivity-label"); command.Description = "Provides operations to call the assignSensitivityLabel method."; - var builder = new AssignSensitivityLabelRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.AssignSensitivityLabel.AssignSensitivityLabelRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -104,7 +108,7 @@ public Command BuildCheckinNavCommand() { var command = new Command("checkin"); command.Description = "Provides operations to call the checkin method."; - var builder = new CheckinRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Checkin.CheckinRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -121,7 +125,7 @@ public Command BuildCheckoutNavCommand() { var command = new Command("checkout"); command.Description = "Provides operations to call the checkout method."; - var builder = new CheckoutRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Checkout.CheckoutRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -138,7 +142,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.driveItem entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -165,7 +169,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the drive entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -184,7 +188,7 @@ public Command BuildCopyNavCommand() { var command = new Command("copy"); command.Description = "Provides operations to call the copy method."; - var builder = new CopyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Copy.CopyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -201,7 +205,7 @@ public Command BuildCreatedByUserNavCommand() { var command = new Command("created-by-user"); command.Description = "Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity."; - var builder = new CreatedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.CreatedByUser.CreatedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -225,7 +229,7 @@ public Command BuildCreateLinkNavCommand() { var command = new Command("create-link"); command.Description = "Provides operations to call the createLink method."; - var builder = new CreateLinkRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.CreateLink.CreateLinkRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -242,7 +246,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -300,7 +304,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -317,7 +321,7 @@ public Command BuildDeltaWithTokenRbCommand() { var command = new Command("delta-with-token"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaWithTokenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.DeltaWithToken.DeltaWithTokenRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -327,6 +331,23 @@ public Command BuildDeltaWithTokenRbCommand() return command; } /// + /// Provides operations to call the discardCheckout method. + /// + /// A + public Command BuildDiscardCheckoutNavCommand() + { + var command = new Command("discard-checkout"); + command.Description = "Provides operations to call the discardCheckout method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.DiscardCheckout.DiscardCheckoutRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Provides operations to call the extractSensitivityLabels method. /// /// A @@ -334,7 +355,7 @@ public Command BuildExtractSensitivityLabelsNavCommand() { var command = new Command("extract-sensitivity-labels"); command.Description = "Provides operations to call the extractSensitivityLabels method."; - var builder = new ExtractSensitivityLabelsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.ExtractSensitivityLabels.ExtractSensitivityLabelsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -351,7 +372,7 @@ public Command BuildFollowNavCommand() { var command = new Command("follow"); command.Description = "Provides operations to call the follow method."; - var builder = new FollowRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Follow.FollowRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -368,7 +389,7 @@ public Command BuildGetActivitiesByIntervalNavCommand() { var command = new Command("get-activities-by-interval"); command.Description = "Provides operations to call the getActivitiesByInterval method."; - var builder = new GetActivitiesByIntervalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.GetActivitiesByInterval.GetActivitiesByIntervalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -385,7 +406,7 @@ public Command BuildGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithI { var command = new Command("get-activities-by-interval-with-start-date-time-with-end-date-time-with-interval"); command.Description = "Provides operations to call the getActivitiesByInterval method."; - var builder = new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -460,7 +481,7 @@ public Command BuildInviteNavCommand() { var command = new Command("invite"); command.Description = "Provides operations to call the invite method."; - var builder = new InviteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Invite.InviteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -477,7 +498,7 @@ public Command BuildLastModifiedByUserNavCommand() { var command = new Command("last-modified-by-user"); command.Description = "Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity."; - var builder = new LastModifiedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.LastModifiedByUser.LastModifiedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -501,7 +522,7 @@ public Command BuildListItemNavCommand() { var command = new Command("list-item"); command.Description = "Provides operations to manage the listItem property of the microsoft.graph.driveItem entity."; - var builder = new ListItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.ListItem.ListItemRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -545,8 +566,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.DriveItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -575,7 +596,7 @@ public Command BuildPermanentDeleteNavCommand() { var command = new Command("permanent-delete"); command.Description = "Provides operations to call the permanentDelete method."; - var builder = new PermanentDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -592,7 +613,7 @@ public Command BuildPermissionsNavCommand() { var command = new Command("permissions"); command.Description = "Provides operations to manage the permissions property of the microsoft.graph.driveItem entity."; - var builder = new PermissionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Permissions.PermissionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -619,7 +640,7 @@ public Command BuildPreviewNavCommand() { var command = new Command("preview"); command.Description = "Provides operations to call the preview method."; - var builder = new PreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Preview.PreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -636,7 +657,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -653,7 +674,7 @@ public Command BuildRetentionLabelNavCommand() { var command = new Command("retention-label"); command.Description = "Provides operations to manage the retentionLabel property of the microsoft.graph.driveItem entity."; - var builder = new RetentionLabelRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.RetentionLabel.RetentionLabelRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -672,7 +693,7 @@ public Command BuildSearchWithQRbCommand() { var command = new Command("search-with-q"); command.Description = "Provides operations to call the search method."; - var builder = new SearchWithQRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.SearchWithQ.SearchWithQRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -689,7 +710,7 @@ public Command BuildSubscriptionsNavCommand() { var command = new Command("subscriptions"); command.Description = "Provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity."; - var builder = new SubscriptionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Subscriptions.SubscriptionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -716,7 +737,7 @@ public Command BuildThumbnailsNavCommand() { var command = new Command("thumbnails"); command.Description = "Provides operations to manage the thumbnails property of the microsoft.graph.driveItem entity."; - var builder = new ThumbnailsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Thumbnails.ThumbnailsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -743,7 +764,7 @@ public Command BuildUnfollowNavCommand() { var command = new Command("unfollow"); command.Description = "Provides operations to call the unfollow method."; - var builder = new UnfollowRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Unfollow.UnfollowRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -760,7 +781,7 @@ public Command BuildValidatePermissionNavCommand() { var command = new Command("validate-permission"); command.Description = "Provides operations to call the validatePermission method."; - var builder = new ValidatePermissionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.ValidatePermission.ValidatePermissionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -777,7 +798,7 @@ public Command BuildVersionsNavCommand() { var command = new Command("versions"); command.Description = "Provides operations to manage the versions property of the microsoft.graph.driveItem entity."; - var builder = new VersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Versions.VersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -804,7 +825,7 @@ public Command BuildWorkbookNavCommand() { var command = new Command("workbook"); command.Description = "Provides operations to manage the workbook property of the microsoft.graph.driveItem entity."; - var builder = new WorkbookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.WorkbookRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildApplicationNavCommand()); @@ -833,14 +854,14 @@ public Command BuildWorkbookNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DriveItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%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 DriveItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}{?%24expand,%24select}", rawUrl) @@ -872,11 +893,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); @@ -892,11 +913,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.DriveItem body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DriveItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DriveItem body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DriveItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -908,7 +929,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.DriveItem body /// /// All items contained in the drive. Read-only. Nullable. /// - public class DriveItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -933,3 +955,4 @@ public class DriveItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.cs index 004e42d68f..7c4da4ec59 100644 --- a/src/generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/ExtractSensitivityLabels/ExtractSensitivityLabelsRequestBuilder.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.Drives.Item.Items.Item.ExtractSensitivityLabels /// /// Provides operations to call the extractSensitivityLabels method. /// - public class ExtractSensitivityLabelsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtractSensitivityLabelsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action extractSensitivityLabels @@ -66,14 +69,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 ExtractSensitivityLabelsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/extractSensitivityLabels", 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 ExtractSensitivityLabelsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/extractSensitivityLabels", rawUrl) @@ -100,3 +103,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Drives.Item.Items.Item.Follow /// /// Provides operations to call the follow method. /// - public class FollowRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FollowRequestBuilder : BaseCliRequestBuilder { /// /// Follow a driveItem. @@ -67,14 +70,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 FollowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/follow", 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 FollowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/follow", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Drives.Item.Items.Item.GetActivitiesByInterval { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetActivitiesByIntervalGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.Items.Item.GetActivitiesByInterval.GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetActivitiesByIntervalGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.GetActivitiesByInterval.GetActivitiesByIntervalGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index 2b3317dc94..11af217a6d 100644 --- a/src/generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.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.Drives.Item.Items.Item.GetActivitiesByInterval /// /// Provides operations to call the getActivitiesByInterval method. /// - public class GetActivitiesByIntervalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalRequestBuilder : BaseCliRequestBuilder { /// /// Get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. @@ -130,14 +133,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 GetActivitiesByIntervalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/getActivitiesByInterval(){?%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 GetActivitiesByIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -150,11 +153,11 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -165,7 +168,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. /// - public class GetActivitiesByIntervalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class GetActivitiesByIntervalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index 239adcaa86..65cdb9c2af 100644 --- a/src/generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index f443a126bb..a4c09b6c90 100644 --- a/src/generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.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.Drives.Item.Items.Item.GetActivitiesByIntervalWithStartDateTime /// /// Provides operations to call the getActivitiesByInterval method. /// - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function getActivitiesByInterval @@ -147,14 +150,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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -167,11 +170,11 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// 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); @@ -182,7 +185,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function getActivitiesByInterval /// - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -246,3 +250,4 @@ public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Invite/InvitePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Invite/InvitePostRequestBody.cs index fa9d83b4ae..eb4be761cb 100644 --- a/src/generated/Drives/Item/Items/Item/Invite/InvitePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Invite/InvitePostRequestBody.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.Drives.Item.Items.Item.Invite { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class InvitePostRequestBody : IAdditionalDataHolder, IParsable + public partial class InvitePostRequestBody : 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. @@ -40,10 +42,10 @@ public class InvitePostRequestBody : IAdditionalDataHolder, IParsable /// The recipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Recipients { get; set; } + public List? Recipients { get; set; } #nullable restore #else - public List Recipients { get; set; } + public List Recipients { get; set; } #endif /// The requireSignIn property public bool? RequireSignIn { get; set; } @@ -60,7 +62,7 @@ public class InvitePostRequestBody : IAdditionalDataHolder, IParsable /// The sendInvitation property public bool? SendInvitation { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InvitePostRequestBody() { @@ -69,12 +71,12 @@ public InvitePostRequestBody() /// /// 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 InvitePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Invite.InvitePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InvitePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Invite.InvitePostRequestBody(); } /// /// The deserialization information for the current model @@ -87,10 +89,10 @@ public virtual IDictionary> GetFieldDeserializers() { "expirationDateTime", n => { ExpirationDateTime = n.GetStringValue(); } }, { "message", n => { Message = n.GetStringValue(); } }, { "password", n => { Password = n.GetStringValue(); } }, - { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } }, { "requireSignIn", n => { RequireSignIn = n.GetBoolValue(); } }, { "retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "sendInvitation", n => { SendInvitation = n.GetBoolValue(); } }, }; } @@ -104,7 +106,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("expirationDateTime", ExpirationDateTime); writer.WriteStringValue("message", Message); writer.WriteStringValue("password", Password); - writer.WriteCollectionOfObjectValues("recipients", Recipients); + writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteBoolValue("requireSignIn", RequireSignIn); writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); writer.WriteCollectionOfPrimitiveValues("roles", Roles); @@ -113,3 +115,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Invite/InvitePostResponse.cs b/src/generated/Drives/Item/Items/Item/Invite/InvitePostResponse.cs index 5347537d27..e2eff081fa 100644 --- a/src/generated/Drives/Item/Items/Item/Invite/InvitePostResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Invite/InvitePostResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.Items.Item.Invite { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class InvitePostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class InvitePostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new InvitePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.Items.Item.Invite.InvitePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InvitePostResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Invite.InvitePostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Permission.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.cs index 3a07bc64e3..86dcfcbf14 100644 --- a/src/generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Invite/InviteRequestBuilder.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.Drives.Item.Items.Item.Invite /// /// Provides operations to call the invite method. /// - public class InviteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InviteRequestBuilder : BaseCliRequestBuilder { /// /// Sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link. @@ -60,8 +63,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(InvitePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Invite.InvitePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 InviteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/invite", 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 InviteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/invite", rawUrl) @@ -113,11 +116,11 @@ public InviteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(InvitePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Invite.InvitePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(InvitePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Invite.InvitePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(InvitePostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 5a3ab4ea00..911266e6a6 100644 --- a/src/generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.LastModifiedByUser.MailboxSettings; using ApiSdk.Drives.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors; 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.Drives.Item.Items.Item.LastModifiedByUser /// /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. /// - public class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who last modified the item. Read-only. @@ -89,7 +92,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.LastModifiedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -107,7 +110,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -123,14 +126,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LastModifiedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser{?%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 LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who last modified the item. Read-only. /// - public class LastModifiedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class LastModifiedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index f6ff398175..cff3750a55 100644 --- a/src/generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Drives.Item.Items.Item.LastModifiedByUser.MailboxSettings /// /// Builds and executes requests for operations under \drives\{drive-id}\items\{driveItem-id}\lastModifiedByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -114,8 +117,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -137,14 +140,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -157,11 +160,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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); @@ -177,11 +180,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -193,7 +196,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -218,3 +222,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 41a499af31..17ed4fff3c 100644 --- a/src/generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/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.Drives.Item.Items.Item.LastModifiedByUser.ServiceProvisioningEr /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 3d8487bc03..e1f328bec7 100644 --- a/src/generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; 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.Drives.Item.Items.Item.LastModifiedByUser.ServiceProvisioningEr /// /// Builds and executes requests for operations under \drives\{drive-id}\items\{driveItem-id}\lastModifiedByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Drives.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -148,31 +151,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -181,9 +184,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -247,3 +251,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.cs index 33997ea1c7..861e3424ee 100644 --- a/src/generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/ListItem/ListItemRequestBuilder.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.Drives.Item.Items.Item.ListItem /// /// Provides operations to manage the listItem property of the microsoft.graph.driveItem entity. /// - public class ListItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemRequestBuilder : BaseCliRequestBuilder { /// /// For drives in SharePoint, the associated document library list item. Read-only. Nullable. @@ -80,14 +83,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 ListItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/listItem{?%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 ListItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/listItem{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public ListItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// For drives in SharePoint, the associated document library list item. Read-only. Nullable. /// - public class ListItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class ListItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs index 09a4234cfc..5abcfd1b2f 100644 --- a/src/generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.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.Drives.Item.Items.Item.PermanentDelete /// /// Provides operations to call the permanentDelete method. /// - public class PermanentDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action permanentDelete @@ -55,14 +58,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PermanentDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permanentDelete", 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 PermanentDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permanentDelete", rawUrl) @@ -89,3 +92,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Permissions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostRequestBody.cs index 397d54bd51..2e2e7a4789 100644 --- a/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostRequestBody.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.Drives.Item.Items.Item.Permissions.Item.Grant { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GrantPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GrantPostRequestBody : 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. @@ -16,10 +18,10 @@ public class GrantPostRequestBody : IAdditionalDataHolder, IParsable /// The recipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Recipients { get; set; } + public List? Recipients { get; set; } #nullable restore #else - public List Recipients { get; set; } + public List Recipients { get; set; } #endif /// The roles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -30,7 +32,7 @@ public class GrantPostRequestBody : IAdditionalDataHolder, IParsable public List Roles { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GrantPostRequestBody() { @@ -39,12 +41,12 @@ public GrantPostRequestBody() /// /// 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 GrantPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Permissions.Item.Grant.GrantPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GrantPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Permissions.Item.Grant.GrantPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +56,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } }, + { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -65,9 +67,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("recipients", Recipients); + writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteCollectionOfPrimitiveValues("roles", Roles); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.cs b/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.cs index 4f95df4438..c131479b49 100644 --- a/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.Items.Item.Permissions.Item.Grant { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GrantPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GrantPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GrantPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.Items.Item.Permissions.Item.Grant.GrantPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GrantPostResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Permissions.Item.Grant.GrantPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Permission.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.cs index 4b287d16b6..c15f2702a2 100644 --- a/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Permissions/Item/Grant/GrantRequestBuilder.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.Drives.Item.Items.Item.Permissions.Item.Grant /// /// Provides operations to call the grant method. /// - public class GrantRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GrantRequestBuilder : BaseCliRequestBuilder { /// /// Grant users access to a link represented by a permission. @@ -65,8 +68,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(GrantPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Permissions.Item.Grant.GrantPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -98,14 +101,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 GrantRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}/grant", 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 GrantRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}/grant", rawUrl) @@ -119,11 +122,11 @@ public GrantRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(GrantPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Permissions.Item.Grant.GrantPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GrantPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Permissions.Item.Grant.GrantPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -134,3 +137,4 @@ public RequestInformation ToPostRequestInformation(GrantPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs index cd886535ee..c5ae241556 100644 --- a/src/generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Permissions.Item.Grant; 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.Drives.Item.Items.Item.Permissions.Item /// /// Provides operations to manage the permissions property of the microsoft.graph.driveItem entity. /// - public class PermissionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property permissions for drives @@ -141,7 +144,7 @@ public Command BuildGrantNavCommand() { var command = new Command("grant"); command.Description = "Provides operations to call the grant method."; - var builder = new GrantRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Permissions.Item.Grant.GrantRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -190,8 +193,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.Permission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Permission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 PermissionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%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 PermissionItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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.Permission body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Permission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Permission body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Permission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Permission bod /// /// The set of permissions for the item. Read-only. Nullable. /// - public class PermissionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class PermissionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs index 5e4935456e..462c46ee18 100644 --- a/src/generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Permissions.Count; using ApiSdk.Drives.Item.Items.Item.Permissions.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.Drives.Item.Items.Item.Permissions /// /// Provides operations to manage the permissions property of the microsoft.graph.driveItem entity. /// - public class PermissionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the permissions property of the microsoft.graph.driveItem entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new PermissionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Permissions.Item.PermissionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGrantNavCommand()); @@ -46,7 +49,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.Drives.Item.Items.Item.Permissions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.Permission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Permission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 PermissionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions{?%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 PermissionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public PermissionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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); @@ -261,11 +264,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(ApiSdk.Models.Permission body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Permission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.Permission body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Permission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.Permission body /// /// The set of permissions for the item. Read-only. Nullable. /// - public class PermissionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class PermissionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Preview/PreviewPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Preview/PreviewPostRequestBody.cs index cbe14572fd..b00b9f7f7e 100644 --- a/src/generated/Drives/Item/Items/Item/Preview/PreviewPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Preview/PreviewPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Preview { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PreviewPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PreviewPostRequestBody : 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. @@ -23,7 +25,7 @@ public class PreviewPostRequestBody : IAdditionalDataHolder, IParsable /// The zoom property public double? Zoom { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PreviewPostRequestBody() { @@ -32,12 +34,12 @@ public PreviewPostRequestBody() /// /// 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 PreviewPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Preview.PreviewPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PreviewPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Preview.PreviewPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.cs index 09043b3670..af6d542be9 100644 --- a/src/generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Preview/PreviewRequestBuilder.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.Drives.Item.Items.Item.Preview /// /// Provides operations to call the preview method. /// - public class PreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PreviewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action preview @@ -56,8 +59,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(PreviewPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Preview.PreviewPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/preview", 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 PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/preview", rawUrl) @@ -100,11 +103,11 @@ public PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(PreviewPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Preview.PreviewPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PreviewPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Preview.PreviewPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PreviewPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Restore/RestorePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Restore/RestorePostRequestBody.cs index 8b536ea4d9..9709f6adfa 100644 --- a/src/generated/Drives/Item/Items/Item/Restore/RestorePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Restore/RestorePostRequestBody.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.Drives.Item.Items.Item.Restore { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RestorePostRequestBody : IAdditionalDataHolder, IParsable + public partial class RestorePostRequestBody : 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,13 +26,13 @@ public class RestorePostRequestBody : IAdditionalDataHolder, IParsable /// The parentReference property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ItemReference? ParentReference { get; set; } + public global::ApiSdk.Models.ItemReference? ParentReference { get; set; } #nullable restore #else - public ItemReference ParentReference { get; set; } + public global::ApiSdk.Models.ItemReference ParentReference { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RestorePostRequestBody() { @@ -39,12 +41,12 @@ public RestorePostRequestBody() /// /// 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 RestorePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Restore.RestorePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RestorePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Restore.RestorePostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "name", n => { Name = n.GetStringValue(); } }, - { "parentReference", n => { ParentReference = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, + { "parentReference", n => { ParentReference = n.GetObjectValue(global::ApiSdk.Models.ItemReference.CreateFromDiscriminatorValue); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("parentReference", ParentReference); + writer.WriteObjectValue("parentReference", ParentReference); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.cs index 857bb8a8a5..5d36c0dd65 100644 --- a/src/generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Restore/RestoreRequestBuilder.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.Drives.Item.Items.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// /// Restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. @@ -57,8 +60,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(RestorePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Restore.RestorePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/restore", rawUrl) @@ -101,11 +104,11 @@ public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(RestorePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Restore.RestorePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RestorePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Restore.RestorePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(RestorePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs index 28828eb035..1410634de7 100644 --- a/src/generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.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.Drives.Item.Items.Item.RetentionLabel /// /// Provides operations to manage the retentionLabel property of the microsoft.graph.driveItem entity. /// - public class RetentionLabelRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RetentionLabelRequestBuilder : BaseCliRequestBuilder { /// /// Remove a retention label from a driveItem. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. @@ -157,8 +160,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(ItemRetentionLabel.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemRetentionLabel.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -180,14 +183,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 RetentionLabelRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/retentionLabel{?%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 RetentionLabelRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/retentionLabel{?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(ItemRetentionLabel body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemRetentionLabel body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ItemRetentionLabel body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemRetentionLabel body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(ItemRetentionLabel body, Act /// /// Information about retention label and settings enforced on the driveItem. Read-write. /// - public class RetentionLabelRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RetentionLabelRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class RetentionLabelRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.cs b/src/generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.cs index 91e6935bde..9f5eb0c047 100644 --- a/src/generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.Items.Item.SearchWithQ { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SearchWithQGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class SearchWithQGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new SearchWithQGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.Items.Item.SearchWithQ.SearchWithQGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SearchWithQGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.SearchWithQ.SearchWithQGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.cs index b76d425a74..2869c666ec 100644 --- a/src/generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/SearchWithQ/SearchWithQRequestBuilder.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.Drives.Item.Items.Item.SearchWithQ /// /// Provides operations to call the search method. /// - public class SearchWithQRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SearchWithQRequestBuilder : BaseCliRequestBuilder { /// /// Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. @@ -136,14 +139,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 SearchWithQRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/search(q='{q}'){?%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 SearchWithQRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/search(q='{q}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public SearchWithQRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. /// - public class SearchWithQRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SearchWithQRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class SearchWithQRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Subscriptions/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Subscriptions/Count/CountRequestBuilder.cs index 15271ca77b..b5a0ab21b0 100644 --- a/src/generated/Drives/Item/Items/Item/Subscriptions/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Subscriptions/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.Drives.Item.Items.Item.Subscriptions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index e41f07d459..a98b320205 100644 --- a/src/generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.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.Drives.Item.Items.Item.Subscriptions.Item.Reauthorize /// /// Provides operations to call the reauthorize method. /// - public class ReauthorizeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReauthorizeRequestBuilder : BaseCliRequestBuilder { /// /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. @@ -62,14 +65,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 ReauthorizeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions/{subscription%2Did}/reauthorize", 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 ReauthorizeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions/{subscription%2Did}/reauthorize", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Subscriptions.Item.Reauthorize; 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.Drives.Item.Items.Item.Subscriptions.Item /// /// Provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity. /// - public class SubscriptionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property subscriptions for drives @@ -173,8 +176,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(Subscription.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Subscription.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildReauthorizeNavCommand() { var command = new Command("reauthorize"); command.Description = "Provides operations to call the reauthorize method."; - var builder = new ReauthorizeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Subscriptions.Item.Reauthorize.ReauthorizeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -214,14 +217,14 @@ public Command BuildReauthorizeNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SubscriptionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions/{subscription%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 SubscriptionItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions/{subscription%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(Subscription body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Subscription body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Subscription body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Subscription body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(Subscription body, Action /// The set of subscriptions on the item. Only supported on the root of a drive. /// - public class SubscriptionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class SubscriptionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.cs index 80285e127d..01f8ceb5e4 100644 --- a/src/generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Subscriptions/SubscriptionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Subscriptions.Count; using ApiSdk.Drives.Item.Items.Item.Subscriptions.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.Drives.Item.Items.Item.Subscriptions /// /// Provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity. /// - public class SubscriptionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SubscriptionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Subscriptions.Item.SubscriptionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Drives.Item.Items.Item.Subscriptions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(Subscription.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Subscription.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 SubscriptionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions{?%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 SubscriptionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public SubscriptionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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); @@ -261,11 +264,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(Subscription body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Subscription body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Subscription body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Subscription body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(Subscription body, Action /// The set of subscriptions on the item. Only supported on the root of a drive. /// - public class SubscriptionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class SubscriptionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Thumbnails/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Thumbnails/Count/CountRequestBuilder.cs index 751eb7fea6..24ec24795f 100644 --- a/src/generated/Drives/Item/Items/Item/Thumbnails/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Thumbnails/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.Drives.Item.Items.Item.Thumbnails.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.cs index c3543f609a..fb0a0ed2eb 100644 --- a/src/generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Thumbnails/Item/ThumbnailSetItemRequestBuilder.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.Drives.Item.Items.Item.Thumbnails.Item /// /// Provides operations to manage the thumbnails property of the microsoft.graph.driveItem entity. /// - public class ThumbnailSetItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ThumbnailSetItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property thumbnails for drives @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ThumbnailSet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ThumbnailSet.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ThumbnailSetItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails/{thumbnailSet%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 ThumbnailSetItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails/{thumbnailSet%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ThumbnailSet body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ThumbnailSet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ThumbnailSet body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ThumbnailSet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(ThumbnailSet body, Action /// Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. /// - public class ThumbnailSetItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ThumbnailSetItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ThumbnailSetItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs index b1fd4fb6b1..59d81dc481 100644 --- a/src/generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Thumbnails/ThumbnailsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Thumbnails.Count; using ApiSdk.Drives.Item.Items.Item.Thumbnails.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.Drives.Item.Items.Item.Thumbnails /// /// Provides operations to manage the thumbnails property of the microsoft.graph.driveItem entity. /// - public class ThumbnailsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ThumbnailsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the thumbnails property of the microsoft.graph.driveItem entity. @@ -30,7 +33,7 @@ public class ThumbnailsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ThumbnailSetItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Thumbnails.Item.ThumbnailSetItemRequestBuilder(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.Drives.Item.Items.Item.Thumbnails.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ThumbnailSet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ThumbnailSet.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ThumbnailsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails{?%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 ThumbnailsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/thumbnails{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ThumbnailsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ThumbnailSet body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ThumbnailSet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ThumbnailSet body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ThumbnailSet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(ThumbnailSet body, Action /// Collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. /// - public class ThumbnailsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ThumbnailsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ThumbnailsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.cs index 1e7401e6be..da6ad35e48 100644 --- a/src/generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Unfollow/UnfollowRequestBuilder.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.Drives.Item.Items.Item.Unfollow /// /// Provides operations to call the unfollow method. /// - public class UnfollowRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnfollowRequestBuilder : BaseCliRequestBuilder { /// /// Unfollow a driveItem. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UnfollowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/unfollow", 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 UnfollowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/unfollow", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.ValidatePermission { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidatePermissionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidatePermissionPostRequestBody : 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. @@ -29,7 +31,7 @@ public class ValidatePermissionPostRequestBody : IAdditionalDataHolder, IParsabl public string Password { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidatePermissionPostRequestBody() { @@ -38,12 +40,12 @@ public ValidatePermissionPostRequestBody() /// /// 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 ValidatePermissionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.ValidatePermission.ValidatePermissionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidatePermissionPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.ValidatePermission.ValidatePermissionPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.cs index 74357e0d7e..e39660e6b3 100644 --- a/src/generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/ValidatePermission/ValidatePermissionRequestBuilder.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.Drives.Item.Items.Item.ValidatePermission /// /// Provides operations to call the validatePermission method. /// - public class ValidatePermissionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidatePermissionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action validatePermission @@ -47,8 +50,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(ValidatePermissionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.ValidatePermission.ValidatePermissionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -68,14 +71,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 ValidatePermissionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/validatePermission", 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 ValidatePermissionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/validatePermission", rawUrl) @@ -89,11 +92,11 @@ public ValidatePermissionRequestBuilder(string rawUrl) : base("{+baseurl}/drives /// 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(ValidatePermissionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.ValidatePermission.ValidatePermissionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidatePermissionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.ValidatePermission.ValidatePermissionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -104,3 +107,4 @@ public RequestInformation ToPostRequestInformation(ValidatePermissionPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Versions/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Versions/Count/CountRequestBuilder.cs index 456f26daa4..bd40c9835c 100644 --- a/src/generated/Drives/Item/Items/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Versions/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.Drives.Item.Items.Item.Versions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.cs index 9d0796541b..f4b42d64f7 100644 --- a/src/generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Versions/Item/Content/ContentRequestBuilder.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.Drives.Item.Items.Item.Versions.Item.Content /// /// Provides operations to manage the media for the drive entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream for this version of the item. @@ -181,14 +184,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/content", rawUrl) @@ -256,3 +259,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Versions.Item.Content; using ApiSdk.Drives.Item.Items.Item.Versions.Item.RestoreVersion; 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.Drives.Item.Items.Item.Versions.Item /// /// Provides operations to manage the versions property of the microsoft.graph.driveItem entity. /// - public class DriveItemVersionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemVersionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the drive entity. @@ -31,7 +34,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the drive entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Versions.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -193,8 +196,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(DriveItemVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DriveItemVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,7 +227,7 @@ public Command BuildRestoreVersionNavCommand() { var command = new Command("restore-version"); command.Description = "Provides operations to call the restoreVersion method."; - var builder = new RestoreVersionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Versions.Item.RestoreVersion.RestoreVersionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -234,14 +237,14 @@ public Command BuildRestoreVersionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DriveItemVersionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/{driveItemVersion%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 DriveItemVersionItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(DriveItemVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DriveItemVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DriveItemVersion body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DriveItemVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(DriveItemVersion body, Actio /// /// The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. /// - public class DriveItemVersionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemVersionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class DriveItemVersionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index 9a67dfea7f..4b75536d65 100644 --- a/src/generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.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.Drives.Item.Items.Item.Versions.Item.RestoreVersion /// /// Provides operations to call the restoreVersion method. /// - public class RestoreVersionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreVersionRequestBuilder : BaseCliRequestBuilder { /// /// Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. @@ -62,14 +65,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 RestoreVersionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/restoreVersion", 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 RestoreVersionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/restoreVersion", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Versions.Count; using ApiSdk.Drives.Item.Items.Item.Versions.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.Drives.Item.Items.Item.Versions /// /// Provides operations to manage the versions property of the microsoft.graph.driveItem entity. /// - public class VersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the versions property of the microsoft.graph.driveItem entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DriveItemVersionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Versions.Item.DriveItemVersionItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.Drives.Item.Items.Item.Versions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DriveItemVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DriveItemVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 VersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions{?%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 VersionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public VersionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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); @@ -262,11 +265,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(DriveItemVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DriveItemVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DriveItemVersion body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DriveItemVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(DriveItemVersion body, Action /// /// The list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. /// - public class VersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class VersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs index 57b4f9d077..c6ae4b090f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Application/ApplicationRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Application.Calculate; 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.Drives.Item.Items.Item.Workbook.Application /// /// Provides operations to manage the application property of the microsoft.graph.workbook entity. /// - public class ApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the calculate method. @@ -30,7 +33,7 @@ public Command BuildCalculateNavCommand() { var command = new Command("calculate"); command.Description = "Provides operations to call the calculate method."; - var builder = new CalculateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Application.Calculate.CalculateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -173,8 +176,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(WorkbookApplication.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookApplication.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/application{?%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 ApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/application{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookApplication body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookApplication body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookApplication body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookApplication body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookApplication body, Ac /// /// Get application from drives /// - public class ApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplicationRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculatePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculatePostRequestBody.cs index 73474bcdca..f20eacccb9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculatePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculatePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Application.Calculate { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CalculatePostRequestBody : IAdditionalDataHolder, IParsable + public partial class CalculatePostRequestBody : 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. @@ -21,7 +23,7 @@ public class CalculatePostRequestBody : IAdditionalDataHolder, IParsable public string CalculationType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CalculatePostRequestBody() { @@ -30,12 +32,12 @@ public CalculatePostRequestBody() /// /// 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 CalculatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Application.Calculate.CalculatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CalculatePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Application.Calculate.CalculatePostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.cs index dd9d8f10b0..01a8e81b0e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Application/Calculate/CalculateRequestBuilder.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.Drives.Item.Items.Item.Workbook.Application.Calculate /// /// Provides operations to call the calculate method. /// - public class CalculateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalculateRequestBuilder : BaseCliRequestBuilder { /// /// Recalculate all currently opened workbooks in Excel. @@ -48,8 +51,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(CalculatePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Application.Calculate.CalculatePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 CalculateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/application/calculate", 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 CalculateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/application/calculate", rawUrl) @@ -90,11 +93,11 @@ public CalculateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(CalculatePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Application.Calculate.CalculatePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CalculatePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Application.Calculate.CalculatePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(CalculatePostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.cs index e196bfc721..efcb22aa4c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/CloseSession/CloseSessionRequestBuilder.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.Drives.Item.Items.Item.Workbook.CloseSession /// /// Provides operations to call the closeSession method. /// - public class CloseSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloseSessionRequestBuilder : BaseCliRequestBuilder { /// /// Use this API to close an existing workbook session. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CloseSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/closeSession", 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 CloseSessionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/closeSession", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Comments.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Comments.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.Drives.Item.Items.Item.Workbook.Comments /// /// Provides operations to manage the comments property of the microsoft.graph.workbook entity. /// - public class CommentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the comments property of the microsoft.graph.workbook entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookCommentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Comments.Item.WorkbookCommentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Drives.Item.Items.Item.Workbook.Comments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(WorkbookComment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookComment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 CommentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments{?%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 CommentsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public CommentsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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); @@ -261,11 +264,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(WorkbookComment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookComment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookComment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookComment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(WorkbookComment body, Action< /// /// Represents a collection of comments in a workbook. /// - public class CommentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class CommentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Comments/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Comments/Count/CountRequestBuilder.cs index 8316b84d95..471dd24ff2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Comments/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Comments/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.Drives.Item.Items.Item.Workbook.Comments.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Count/CountRequestBuilder.cs index 2554267d9e..7fca4ae756 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/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.Drives.Item.Items.Item.Workbook.Comments.Item.Replies.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 @@ -75,14 +78,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.cs index 4a6ac57b37..59af75ce18 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/Item/WorkbookCommentReplyItemRequestBuilder.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.Drives.Item.Items.Item.Workbook.Comments.Item.Replies.Item /// /// Provides operations to manage the replies property of the microsoft.graph.workbookComment entity. /// - public class WorkbookCommentReplyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookCommentReplyItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property replies for drives @@ -75,13 +78,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Get replies from drives + /// The list of replies to the comment. Read-only. Nullable. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get replies from drives"; + command.Description = "The list of replies to the comment. Read-only. Nullable."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -189,8 +192,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(WorkbookCommentReply.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookCommentReply.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 WorkbookCommentReplyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%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 WorkbookCommentReplyItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}{?%24expand,%24select}", rawUrl) @@ -247,17 +250,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get replies from drives + /// The list of replies to the comment. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -273,11 +276,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(WorkbookCommentReply body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookCommentReply body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookCommentReply body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookCommentReply body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,9 +290,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookCommentReply body, A return requestInfo; } /// - /// Get replies from drives + /// The list of replies to the comment. Read-only. Nullable. /// - public class WorkbookCommentReplyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookCommentReplyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class WorkbookCommentReplyItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs index 0de7976262..940bb4be23 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/Replies/RepliesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Comments.Item.Replies.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Comments.Item.Replies.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.Drives.Item.Items.Item.Workbook.Comments.Item.Replies /// /// Provides operations to manage the replies property of the microsoft.graph.workbookComment entity. /// - public class RepliesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RepliesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the replies property of the microsoft.graph.workbookComment entity. @@ -30,7 +33,7 @@ public class RepliesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new WorkbookCommentReplyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Comments.Item.Replies.Item.WorkbookCommentReplyItemRequestBuilder(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.Drives.Item.Items.Item.Workbook.Comments.Item.Replies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(WorkbookCommentReply.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookCommentReply.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -117,13 +120,13 @@ public Command BuildCreateCommand() return command; } /// - /// Get replies from drives + /// The list of replies to the comment. Read-only. Nullable. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Get replies from drives"; + command.Description = "The list of replies to the comment. Read-only. Nullable."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -231,31 +234,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RepliesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies{?%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 RepliesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get replies from drives + /// The list of replies to the comment. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -271,11 +274,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(WorkbookCommentReply body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookCommentReply body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookCommentReply body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookCommentReply body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -285,9 +288,10 @@ public RequestInformation ToPostRequestInformation(WorkbookCommentReply body, Ac return requestInfo; } /// - /// Get replies from drives + /// The list of replies to the comment. Read-only. Nullable. /// - public class RepliesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RepliesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -351,3 +355,4 @@ public class RepliesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.cs index 25f533fe99..154b9c3f6b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Comments/Item/WorkbookCommentItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Comments.Item.Replies; 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.Drives.Item.Items.Item.Workbook.Comments.Item /// /// Provides operations to manage the comments property of the microsoft.graph.workbook entity. /// - public class WorkbookCommentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookCommentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property comments for drives @@ -173,8 +176,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(WorkbookComment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookComment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildRepliesNavCommand() { var command = new Command("replies"); command.Description = "Provides operations to manage the replies property of the microsoft.graph.workbookComment entity."; - var builder = new RepliesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Comments.Item.Replies.RepliesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -224,14 +227,14 @@ public Command BuildRepliesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookCommentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%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 WorkbookCommentItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}{?%24expand,%24select}", rawUrl) @@ -263,11 +266,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); @@ -283,11 +286,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(WorkbookComment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookComment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookComment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookComment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookComment body, Action /// /// Represents a collection of comments in a workbook. /// - public class WorkbookCommentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookCommentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -324,3 +328,4 @@ public class WorkbookCommentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionPostRequestBody.cs index 7aff4d5afb..a4f3d65d53 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.CreateSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateSessionPostRequestBody : 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. @@ -15,7 +17,7 @@ public class CreateSessionPostRequestBody : IAdditionalDataHolder, IParsable /// The persistChanges property public bool? PersistChanges { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateSessionPostRequestBody() { @@ -24,12 +26,12 @@ public CreateSessionPostRequestBody() /// /// 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 CreateSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.CreateSession.CreateSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateSessionPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.CreateSession.CreateSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.cs index 16a1bd41ed..1fa19757ca 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/CreateSession/CreateSessionRequestBuilder.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.Drives.Item.Items.Item.Workbook.CreateSession /// /// Provides operations to call the createSession method. /// - public class CreateSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: @@ -57,8 +60,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(CreateSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.CreateSession.CreateSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 CreateSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/createSession", 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 CreateSessionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/createSession", rawUrl) @@ -101,11 +104,11 @@ public CreateSessionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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(CreateSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.CreateSession.CreateSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.CreateSession.CreateSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(CreateSessionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsPostRequestBody.cs index 16b9be6cd1..e49bdf97a3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Abs { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AbsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AbsPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AbsPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AbsPostRequestBody() { @@ -31,12 +32,12 @@ public AbsPostRequestBody() /// /// 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 AbsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Abs.AbsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AbsPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Abs.AbsPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.cs index e8f3b009fc..b8ed70f0f8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Abs/AbsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Abs /// /// Provides operations to call the abs method. /// - public class AbsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AbsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action abs @@ -56,8 +59,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(AbsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Abs.AbsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AbsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/abs", 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 AbsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/abs", rawUrl) @@ -100,11 +103,11 @@ public AbsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(AbsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Abs.AbsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AbsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Abs.AbsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AbsPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntPostRequestBody.cs index a3c332ba43..bc9a6ab97c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrInt { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AccrIntPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AccrIntPostRequestBody : 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. @@ -16,69 +17,69 @@ public class AccrIntPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The calcMethod property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? CalcMethod { get; set; } + public UntypedNode? CalcMethod { get; set; } #nullable restore #else - public Json CalcMethod { get; set; } + public UntypedNode CalcMethod { get; set; } #endif /// The firstInterest property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FirstInterest { get; set; } + public UntypedNode? FirstInterest { get; set; } #nullable restore #else - public Json FirstInterest { get; set; } + public UntypedNode FirstInterest { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The issue property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Issue { get; set; } + public UntypedNode? Issue { get; set; } #nullable restore #else - public Json Issue { get; set; } + public UntypedNode Issue { get; set; } #endif /// The par property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Par { get; set; } + public UntypedNode? Par { get; set; } #nullable restore #else - public Json Par { get; set; } + public UntypedNode Par { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AccrIntPostRequestBody() { @@ -87,12 +88,12 @@ public AccrIntPostRequestBody() /// /// 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 AccrIntPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrInt.AccrIntPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AccrIntPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrInt.AccrIntPostRequestBody(); } /// /// The deserialization information for the current model @@ -102,14 +103,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "calcMethod", n => { CalcMethod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "firstInterest", n => { FirstInterest = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "issue", n => { Issue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "par", n => { Par = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "calcMethod", n => { CalcMethod = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "firstInterest", n => { FirstInterest = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "issue", n => { Issue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "par", n => { Par = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -119,15 +120,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("calcMethod", CalcMethod); - writer.WriteObjectValue("firstInterest", FirstInterest); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("issue", Issue); - writer.WriteObjectValue("par", Par); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("calcMethod", CalcMethod); + writer.WriteObjectValue("firstInterest", FirstInterest); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("issue", Issue); + writer.WriteObjectValue("par", Par); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.cs index 618f23894c..b9fd81e94e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrInt/AccrIntRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.AccrInt /// /// Provides operations to call the accrInt method. /// - public class AccrIntRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccrIntRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action accrInt @@ -56,8 +59,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(AccrIntPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrInt.AccrIntPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AccrIntRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/accrInt", 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 AccrIntRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/accrInt", rawUrl) @@ -100,11 +103,11 @@ public AccrIntRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(AccrIntPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrInt.AccrIntPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AccrIntPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrInt.AccrIntPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AccrIntPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMPostRequestBody.cs index b7736a68aa..512a22d785 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrIntM { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AccrIntMPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AccrIntMPostRequestBody : 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. @@ -16,45 +17,45 @@ public class AccrIntMPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The issue property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Issue { get; set; } + public UntypedNode? Issue { get; set; } #nullable restore #else - public Json Issue { get; set; } + public UntypedNode Issue { get; set; } #endif /// The par property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Par { get; set; } + public UntypedNode? Par { get; set; } #nullable restore #else - public Json Par { get; set; } + public UntypedNode Par { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AccrIntMPostRequestBody() { @@ -63,12 +64,12 @@ public AccrIntMPostRequestBody() /// /// 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 AccrIntMPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrIntM.AccrIntMPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AccrIntMPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrIntM.AccrIntMPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "issue", n => { Issue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "par", n => { Par = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "issue", n => { Issue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "par", n => { Par = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("issue", Issue); - writer.WriteObjectValue("par", Par); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("issue", Issue); + writer.WriteObjectValue("par", Par); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.cs index 417538f9cf..1ea50a4772 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AccrIntM/AccrIntMRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.AccrIntM /// /// Provides operations to call the accrIntM method. /// - public class AccrIntMRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccrIntMRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action accrIntM @@ -56,8 +59,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(AccrIntMPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrIntM.AccrIntMPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AccrIntMRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/accrIntM", 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 AccrIntMRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/accrIntM", rawUrl) @@ -100,11 +103,11 @@ public AccrIntMRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(AccrIntMPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrIntM.AccrIntMPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AccrIntMPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrIntM.AccrIntMPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AccrIntMPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosPostRequestBody.cs index 877e2786ac..75a2c726fd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acos { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcosPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcosPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AcosPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcosPostRequestBody() { @@ -31,12 +32,12 @@ public AcosPostRequestBody() /// /// 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 AcosPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acos.AcosPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcosPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acos.AcosPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.cs index d4fdbf0143..4c6274fb29 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acos/AcosRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Acos /// /// Provides operations to call the acos method. /// - public class AcosRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcosRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action acos @@ -56,8 +59,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(AcosPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acos.AcosPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AcosRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/acos", 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 AcosRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/acos", rawUrl) @@ -100,11 +103,11 @@ public AcosRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(AcosPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acos.AcosPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcosPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acos.AcosPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AcosPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshPostRequestBody.cs index e611caeacd..fdc6437132 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acosh { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcoshPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcoshPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AcoshPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcoshPostRequestBody() { @@ -31,12 +32,12 @@ public AcoshPostRequestBody() /// /// 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 AcoshPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acosh.AcoshPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcoshPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acosh.AcoshPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.cs index da08548c0a..d40aafb11a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acosh/AcoshRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Acosh /// /// Provides operations to call the acosh method. /// - public class AcoshRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcoshRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action acosh @@ -56,8 +59,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(AcoshPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acosh.AcoshPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AcoshRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/acosh", 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 AcoshRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/acosh", rawUrl) @@ -100,11 +103,11 @@ public AcoshRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(AcoshPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acosh.AcoshPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcoshPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acosh.AcoshPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AcoshPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotPostRequestBody.cs index a9fd4c4813..d31daeba1b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acot { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcotPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcotPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AcotPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcotPostRequestBody() { @@ -31,12 +32,12 @@ public AcotPostRequestBody() /// /// 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 AcotPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acot.AcotPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcotPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acot.AcotPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.cs index e7fb0e44a1..5d63a7601b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acot/AcotRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Acot /// /// Provides operations to call the acot method. /// - public class AcotRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcotRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action acot @@ -56,8 +59,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(AcotPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acot.AcotPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AcotRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/acot", 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 AcotRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/acot", rawUrl) @@ -100,11 +103,11 @@ public AcotRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(AcotPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acot.AcotPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcotPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acot.AcotPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AcotPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothPostRequestBody.cs index 481ceb494f..2b6024542c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acoth { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcothPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcothPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AcothPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcothPostRequestBody() { @@ -31,12 +32,12 @@ public AcothPostRequestBody() /// /// 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 AcothPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acoth.AcothPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcothPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acoth.AcothPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.cs index 311706b0ba..c20a3e8071 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Acoth/AcothRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Acoth /// /// Provides operations to call the acoth method. /// - public class AcothRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcothRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action acoth @@ -56,8 +59,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(AcothPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acoth.AcothPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AcothRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/acoth", 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 AcothRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/acoth", rawUrl) @@ -100,11 +103,11 @@ public AcothRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(AcothPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acoth.AcothPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcothPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acoth.AcothPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AcothPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcPostRequestBody.cs index 89c5ccf265..3ba4bee326 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorDegrc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AmorDegrcPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AmorDegrcPostRequestBody : 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. @@ -16,61 +17,61 @@ public class AmorDegrcPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The cost property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cost { get; set; } + public UntypedNode? Cost { get; set; } #nullable restore #else - public Json Cost { get; set; } + public UntypedNode Cost { get; set; } #endif /// The datePurchased property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DatePurchased { get; set; } + public UntypedNode? DatePurchased { get; set; } #nullable restore #else - public Json DatePurchased { get; set; } + public UntypedNode DatePurchased { get; set; } #endif /// The firstPeriod property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FirstPeriod { get; set; } + public UntypedNode? FirstPeriod { get; set; } #nullable restore #else - public Json FirstPeriod { get; set; } + public UntypedNode FirstPeriod { get; set; } #endif /// The period property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Period { get; set; } + public UntypedNode? Period { get; set; } #nullable restore #else - public Json Period { get; set; } + public UntypedNode Period { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The salvage property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Salvage { get; set; } + public UntypedNode? Salvage { get; set; } #nullable restore #else - public Json Salvage { get; set; } + public UntypedNode Salvage { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AmorDegrcPostRequestBody() { @@ -79,12 +80,12 @@ public AmorDegrcPostRequestBody() /// /// 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 AmorDegrcPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorDegrc.AmorDegrcPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AmorDegrcPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorDegrc.AmorDegrcPostRequestBody(); } /// /// The deserialization information for the current model @@ -94,13 +95,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "datePurchased", n => { DatePurchased = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "firstPeriod", n => { FirstPeriod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "period", n => { Period = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "salvage", n => { Salvage = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "cost", n => { Cost = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "datePurchased", n => { DatePurchased = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "firstPeriod", n => { FirstPeriod = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "period", n => { Period = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "salvage", n => { Salvage = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -110,14 +111,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("cost", Cost); - writer.WriteObjectValue("datePurchased", DatePurchased); - writer.WriteObjectValue("firstPeriod", FirstPeriod); - writer.WriteObjectValue("period", Period); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("salvage", Salvage); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("cost", Cost); + writer.WriteObjectValue("datePurchased", DatePurchased); + writer.WriteObjectValue("firstPeriod", FirstPeriod); + writer.WriteObjectValue("period", Period); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("salvage", Salvage); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.cs index dc0e3e77be..817c64c6d8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorDegrc/AmorDegrcRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.AmorDegrc /// /// Provides operations to call the amorDegrc method. /// - public class AmorDegrcRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AmorDegrcRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action amorDegrc @@ -56,8 +59,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(AmorDegrcPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorDegrc.AmorDegrcPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AmorDegrcRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/amorDegrc", 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 AmorDegrcRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/amorDegrc", rawUrl) @@ -100,11 +103,11 @@ public AmorDegrcRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(AmorDegrcPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorDegrc.AmorDegrcPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AmorDegrcPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorDegrc.AmorDegrcPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AmorDegrcPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincPostRequestBody.cs index b74b2befff..4d70f60d9f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorLinc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AmorLincPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AmorLincPostRequestBody : 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. @@ -16,61 +17,61 @@ public class AmorLincPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The cost property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cost { get; set; } + public UntypedNode? Cost { get; set; } #nullable restore #else - public Json Cost { get; set; } + public UntypedNode Cost { get; set; } #endif /// The datePurchased property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DatePurchased { get; set; } + public UntypedNode? DatePurchased { get; set; } #nullable restore #else - public Json DatePurchased { get; set; } + public UntypedNode DatePurchased { get; set; } #endif /// The firstPeriod property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FirstPeriod { get; set; } + public UntypedNode? FirstPeriod { get; set; } #nullable restore #else - public Json FirstPeriod { get; set; } + public UntypedNode FirstPeriod { get; set; } #endif /// The period property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Period { get; set; } + public UntypedNode? Period { get; set; } #nullable restore #else - public Json Period { get; set; } + public UntypedNode Period { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The salvage property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Salvage { get; set; } + public UntypedNode? Salvage { get; set; } #nullable restore #else - public Json Salvage { get; set; } + public UntypedNode Salvage { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AmorLincPostRequestBody() { @@ -79,12 +80,12 @@ public AmorLincPostRequestBody() /// /// 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 AmorLincPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorLinc.AmorLincPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AmorLincPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorLinc.AmorLincPostRequestBody(); } /// /// The deserialization information for the current model @@ -94,13 +95,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "datePurchased", n => { DatePurchased = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "firstPeriod", n => { FirstPeriod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "period", n => { Period = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "salvage", n => { Salvage = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "cost", n => { Cost = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "datePurchased", n => { DatePurchased = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "firstPeriod", n => { FirstPeriod = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "period", n => { Period = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "salvage", n => { Salvage = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -110,14 +111,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("cost", Cost); - writer.WriteObjectValue("datePurchased", DatePurchased); - writer.WriteObjectValue("firstPeriod", FirstPeriod); - writer.WriteObjectValue("period", Period); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("salvage", Salvage); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("cost", Cost); + writer.WriteObjectValue("datePurchased", DatePurchased); + writer.WriteObjectValue("firstPeriod", FirstPeriod); + writer.WriteObjectValue("period", Period); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("salvage", Salvage); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.cs index cb64508cdd..cc6653784f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AmorLinc/AmorLincRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.AmorLinc /// /// Provides operations to call the amorLinc method. /// - public class AmorLincRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AmorLincRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action amorLinc @@ -56,8 +59,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(AmorLincPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorLinc.AmorLincPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AmorLincRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/amorLinc", 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 AmorLincRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/amorLinc", rawUrl) @@ -100,11 +103,11 @@ public AmorLincRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(AmorLincPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorLinc.AmorLincPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AmorLincPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorLinc.AmorLincPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AmorLincPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/And/AndPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/And/AndPostRequestBody.cs index 201bc6ee53..9ca0111911 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/And/AndPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/And/AndPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.And { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AndPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AndPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AndPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AndPostRequestBody() { @@ -31,12 +32,12 @@ public AndPostRequestBody() /// /// 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 AndPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.And.AndPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AndPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.And.AndPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/And/AndRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/And/AndRequestBuilder.cs index ed379e33c1..80629d829b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/And/AndRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/And/AndRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.And /// /// Provides operations to call the and method. /// - public class AndRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AndRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action and @@ -56,8 +59,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(AndPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.And.AndPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AndRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/and", 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 AndRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/and", rawUrl) @@ -100,11 +103,11 @@ public AndRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(AndPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.And.AndPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AndPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.And.AndPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AndPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicPostRequestBody.cs index 41cd084dbd..6c733a84b8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Arabic { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ArabicPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ArabicPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ArabicPostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ArabicPostRequestBody() { @@ -31,12 +32,12 @@ public ArabicPostRequestBody() /// /// 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 ArabicPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Arabic.ArabicPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ArabicPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Arabic.ArabicPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.cs index a8175a04cd..45276a11b4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Arabic/ArabicRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Arabic /// /// Provides operations to call the arabic method. /// - public class ArabicRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ArabicRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action arabic @@ -56,8 +59,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(ArabicPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Arabic.ArabicPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ArabicRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/arabic", 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 ArabicRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/arabic", rawUrl) @@ -100,11 +103,11 @@ public ArabicRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(ArabicPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Arabic.ArabicPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ArabicPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Arabic.ArabicPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ArabicPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasPostRequestBody.cs index 706f437071..479c4b66b9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Areas { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AreasPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AreasPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AreasPostRequestBody : IAdditionalDataHolder, IParsable /// The reference property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Reference { get; set; } + public UntypedNode? Reference { get; set; } #nullable restore #else - public Json Reference { get; set; } + public UntypedNode Reference { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AreasPostRequestBody() { @@ -31,12 +32,12 @@ public AreasPostRequestBody() /// /// 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 AreasPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Areas.AreasPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AreasPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Areas.AreasPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "reference", n => { Reference = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "reference", n => { Reference = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("reference", Reference); + writer.WriteObjectValue("reference", Reference); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.cs index 1bfe7952a2..e85433e1f0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Areas/AreasRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Areas /// /// Provides operations to call the areas method. /// - public class AreasRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AreasRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action areas @@ -56,8 +59,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(AreasPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Areas.AreasPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AreasRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/areas", 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 AreasRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/areas", rawUrl) @@ -100,11 +103,11 @@ public AreasRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(AreasPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Areas.AreasPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AreasPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Areas.AreasPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AreasPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscPostRequestBody.cs index 77f7a22631..f489ab5fb0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AscPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AscPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AscPostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AscPostRequestBody() { @@ -31,12 +32,12 @@ public AscPostRequestBody() /// /// 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 AscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asc.AscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AscPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asc.AscPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.cs index 9299b69c92..655c8b4bf4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asc/AscRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Asc /// /// Provides operations to call the asc method. /// - public class AscRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AscRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action asc @@ -56,8 +59,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(AscPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asc.AscPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AscRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/asc", 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 AscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/asc", rawUrl) @@ -100,11 +103,11 @@ public AscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(AscPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asc.AscPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AscPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asc.AscPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AscPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinPostRequestBody.cs index f7c006addb..d5bd4dba15 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asin { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AsinPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AsinPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AsinPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AsinPostRequestBody() { @@ -31,12 +32,12 @@ public AsinPostRequestBody() /// /// 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 AsinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asin.AsinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AsinPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asin.AsinPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.cs index 007c134f7d..cc5d309e77 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asin/AsinRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Asin /// /// Provides operations to call the asin method. /// - public class AsinRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AsinRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action asin @@ -56,8 +59,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(AsinPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asin.AsinPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AsinRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/asin", 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 AsinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/asin", rawUrl) @@ -100,11 +103,11 @@ public AsinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(AsinPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asin.AsinPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AsinPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asin.AsinPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AsinPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhPostRequestBody.cs index 3801d665e7..2fe616aa7a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asinh { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AsinhPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AsinhPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AsinhPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AsinhPostRequestBody() { @@ -31,12 +32,12 @@ public AsinhPostRequestBody() /// /// 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 AsinhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asinh.AsinhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AsinhPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asinh.AsinhPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.cs index 4211b03298..784fa938c7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Asinh/AsinhRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Asinh /// /// Provides operations to call the asinh method. /// - public class AsinhRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AsinhRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action asinh @@ -56,8 +59,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(AsinhPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asinh.AsinhPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AsinhRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/asinh", 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 AsinhRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/asinh", rawUrl) @@ -100,11 +103,11 @@ public AsinhRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(AsinhPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asinh.AsinhPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AsinhPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asinh.AsinhPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AsinhPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanPostRequestBody.cs index ecd385ed57..d37ea86920 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AtanPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AtanPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AtanPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AtanPostRequestBody() { @@ -31,12 +32,12 @@ public AtanPostRequestBody() /// /// 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 AtanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan.AtanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AtanPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan.AtanPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.cs index 0f6ac40cc6..62e1b8d8f9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan/AtanRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Atan /// /// Provides operations to call the atan method. /// - public class AtanRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AtanRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action atan @@ -56,8 +59,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(AtanPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan.AtanPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AtanRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/atan", 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 AtanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/atan", rawUrl) @@ -100,11 +103,11 @@ public AtanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(AtanPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan.AtanPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AtanPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan.AtanPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AtanPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2PostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2PostRequestBody.cs index f5935b53ee..93880425d6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2PostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2PostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan2 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Atan2PostRequestBody : IAdditionalDataHolder, IParsable + public partial class Atan2PostRequestBody : 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. @@ -16,21 +17,21 @@ public class Atan2PostRequestBody : IAdditionalDataHolder, IParsable /// The xNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? XNum { get; set; } + public UntypedNode? XNum { get; set; } #nullable restore #else - public Json XNum { get; set; } + public UntypedNode XNum { get; set; } #endif /// The yNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? YNum { get; set; } + public UntypedNode? YNum { get; set; } #nullable restore #else - public Json YNum { get; set; } + public UntypedNode YNum { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Atan2PostRequestBody() { @@ -39,12 +40,12 @@ public Atan2PostRequestBody() /// /// 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 Atan2PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan2.Atan2PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Atan2PostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan2.Atan2PostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "xNum", n => { XNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "yNum", n => { YNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "xNum", n => { XNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "yNum", n => { YNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("xNum", XNum); - writer.WriteObjectValue("yNum", YNum); + writer.WriteObjectValue("xNum", XNum); + writer.WriteObjectValue("yNum", YNum); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.cs index 586acb9847..ce1773adf4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atan2/Atan2RequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Atan2 /// /// Provides operations to call the atan2 method. /// - public class Atan2RequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Atan2RequestBuilder : BaseCliRequestBuilder { /// /// Invoke action atan2 @@ -56,8 +59,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(Atan2PostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan2.Atan2PostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Atan2RequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/atan2", 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 Atan2RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/atan2", rawUrl) @@ -100,11 +103,11 @@ public Atan2RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(Atan2PostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan2.Atan2PostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Atan2PostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan2.Atan2PostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Atan2PostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhPostRequestBody.cs index 166442da04..588346f5b8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atanh { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AtanhPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AtanhPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AtanhPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AtanhPostRequestBody() { @@ -31,12 +32,12 @@ public AtanhPostRequestBody() /// /// 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 AtanhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atanh.AtanhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AtanhPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atanh.AtanhPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.cs index 09f8a3cc7f..a981f163c6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Atanh/AtanhRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Atanh /// /// Provides operations to call the atanh method. /// - public class AtanhRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AtanhRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action atanh @@ -56,8 +59,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(AtanhPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atanh.AtanhPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AtanhRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/atanh", 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 AtanhRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/atanh", rawUrl) @@ -100,11 +103,11 @@ public AtanhRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(AtanhPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atanh.AtanhPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AtanhPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atanh.AtanhPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AtanhPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevPostRequestBody.cs index 97b9ae1f5d..3961439675 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AveDev { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AveDevPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AveDevPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AveDevPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AveDevPostRequestBody() { @@ -31,12 +32,12 @@ public AveDevPostRequestBody() /// /// 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 AveDevPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AveDev.AveDevPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AveDevPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AveDev.AveDevPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.cs index 6c864b3b54..91d52d3477 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AveDev/AveDevRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.AveDev /// /// Provides operations to call the aveDev method. /// - public class AveDevRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AveDevRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action aveDev @@ -56,8 +59,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(AveDevPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AveDev.AveDevPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AveDevRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/aveDev", 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 AveDevRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/aveDev", rawUrl) @@ -100,11 +103,11 @@ public AveDevRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(AveDevPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AveDev.AveDevPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AveDevPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AveDev.AveDevPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AveDevPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Average/AveragePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Average/AveragePostRequestBody.cs index 52ca5db11e..1b73a08a00 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Average/AveragePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Average/AveragePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Average { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AveragePostRequestBody : IAdditionalDataHolder, IParsable + public partial class AveragePostRequestBody : 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. @@ -16,13 +17,13 @@ public class AveragePostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AveragePostRequestBody() { @@ -31,12 +32,12 @@ public AveragePostRequestBody() /// /// 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 AveragePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Average.AveragePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AveragePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Average.AveragePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.cs index 8a97796c76..dd29032aa4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Average/AverageRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Average /// /// Provides operations to call the average method. /// - public class AverageRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AverageRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action average @@ -56,8 +59,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(AveragePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Average.AveragePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AverageRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/average", 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 AverageRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/average", rawUrl) @@ -100,11 +103,11 @@ public AverageRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(AveragePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Average.AveragePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AveragePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Average.AveragePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AveragePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageAPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageAPostRequestBody.cs index 92a6c311ed..ca114413d9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageAPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageAPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageA { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AverageAPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AverageAPostRequestBody : 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. @@ -16,13 +17,13 @@ public class AverageAPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AverageAPostRequestBody() { @@ -31,12 +32,12 @@ public AverageAPostRequestBody() /// /// 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 AverageAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageA.AverageAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AverageAPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageA.AverageAPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.cs index b32b1b5f56..a9dc42913e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageA/AverageARequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.AverageA /// /// Provides operations to call the averageA method. /// - public class AverageARequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AverageARequestBuilder : BaseCliRequestBuilder { /// /// Invoke action averageA @@ -56,8 +59,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(AverageAPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageA.AverageAPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AverageARequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/averageA", 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 AverageARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/averageA", rawUrl) @@ -100,11 +103,11 @@ public AverageARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(AverageAPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageA.AverageAPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AverageAPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageA.AverageAPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AverageAPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfPostRequestBody.cs index 36bfbf7241..3fdd5ff786 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIf { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AverageIfPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AverageIfPostRequestBody : 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. @@ -16,29 +17,29 @@ public class AverageIfPostRequestBody : IAdditionalDataHolder, IParsable /// The averageRange property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? AverageRange { get; set; } + public UntypedNode? AverageRange { get; set; } #nullable restore #else - public Json AverageRange { get; set; } + public UntypedNode AverageRange { get; set; } #endif /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The range property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Range { get; set; } + public UntypedNode? Range { get; set; } #nullable restore #else - public Json Range { get; set; } + public UntypedNode Range { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AverageIfPostRequestBody() { @@ -47,12 +48,12 @@ public AverageIfPostRequestBody() /// /// 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 AverageIfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIf.AverageIfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AverageIfPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIf.AverageIfPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "averageRange", n => { AverageRange = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "range", n => { Range = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "averageRange", n => { AverageRange = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "range", n => { Range = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("averageRange", AverageRange); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("range", Range); + writer.WriteObjectValue("averageRange", AverageRange); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("range", Range); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.cs index 5b4c860632..4641307824 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIf/AverageIfRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.AverageIf /// /// Provides operations to call the averageIf method. /// - public class AverageIfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AverageIfRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action averageIf @@ -56,8 +59,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(AverageIfPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIf.AverageIfPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AverageIfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/averageIf", 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 AverageIfRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/averageIf", rawUrl) @@ -100,11 +103,11 @@ public AverageIfRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(AverageIfPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIf.AverageIfPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AverageIfPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIf.AverageIfPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AverageIfPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsPostRequestBody.cs index 621ccb9c0f..d98c44861e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIfs { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AverageIfsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AverageIfsPostRequestBody : 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. @@ -16,21 +17,21 @@ public class AverageIfsPostRequestBody : IAdditionalDataHolder, IParsable /// The averageRange property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? AverageRange { get; set; } + public UntypedNode? AverageRange { get; set; } #nullable restore #else - public Json AverageRange { get; set; } + public UntypedNode AverageRange { get; set; } #endif /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AverageIfsPostRequestBody() { @@ -39,12 +40,12 @@ public AverageIfsPostRequestBody() /// /// 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 AverageIfsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIfs.AverageIfsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AverageIfsPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIfs.AverageIfsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "averageRange", n => { AverageRange = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "averageRange", n => { AverageRange = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("averageRange", AverageRange); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("averageRange", AverageRange); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.cs index d6cacf47c3..5780ae8924 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/AverageIfs/AverageIfsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.AverageIfs /// /// Provides operations to call the averageIfs method. /// - public class AverageIfsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AverageIfsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action averageIfs @@ -56,8 +59,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(AverageIfsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIfs.AverageIfsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 AverageIfsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/averageIfs", 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 AverageIfsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/averageIfs", rawUrl) @@ -100,11 +103,11 @@ public AverageIfsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(AverageIfsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIfs.AverageIfsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AverageIfsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIfs.AverageIfsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AverageIfsPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextPostRequestBody.cs index 705637213f..ee712a25bd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BahtText { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class BahtTextPostRequestBody : IAdditionalDataHolder, IParsable + public partial class BahtTextPostRequestBody : 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. @@ -16,13 +17,13 @@ public class BahtTextPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BahtTextPostRequestBody() { @@ -31,12 +32,12 @@ public BahtTextPostRequestBody() /// /// 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 BahtTextPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BahtText.BahtTextPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BahtTextPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BahtText.BahtTextPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.cs index 24996c7010..6b851c6ea3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BahtText/BahtTextRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.BahtText /// /// Provides operations to call the bahtText method. /// - public class BahtTextRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BahtTextRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action bahtText @@ -56,8 +59,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(BahtTextPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BahtText.BahtTextPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 BahtTextRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bahtText", 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 BahtTextRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bahtText", rawUrl) @@ -100,11 +103,11 @@ public BahtTextRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(BahtTextPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BahtText.BahtTextPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BahtTextPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BahtText.BahtTextPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(BahtTextPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Base/BasePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Base/BasePostRequestBody.cs index 18b3100a1b..2a9da12db6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Base/BasePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Base/BasePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Base { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class BasePostRequestBody : IAdditionalDataHolder, IParsable + public partial class BasePostRequestBody : 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. @@ -16,29 +17,29 @@ public class BasePostRequestBody : IAdditionalDataHolder, IParsable /// The minLength property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? MinLength { get; set; } + public UntypedNode? MinLength { get; set; } #nullable restore #else - public Json MinLength { get; set; } + public UntypedNode MinLength { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The radix property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Radix { get; set; } + public UntypedNode? Radix { get; set; } #nullable restore #else - public Json Radix { get; set; } + public UntypedNode Radix { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BasePostRequestBody() { @@ -47,12 +48,12 @@ public BasePostRequestBody() /// /// 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 BasePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Base.BasePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BasePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Base.BasePostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "minLength", n => { MinLength = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "radix", n => { Radix = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "minLength", n => { MinLength = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "radix", n => { Radix = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("minLength", MinLength); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("radix", Radix); + writer.WriteObjectValue("minLength", MinLength); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("radix", Radix); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Base/BaseRequestBuilderEscaped.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Base/BaseRequestBuilderEscaped.cs index 384613d70d..c9a8073323 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Base/BaseRequestBuilderEscaped.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Base/BaseRequestBuilderEscaped.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.Drives.Item.Items.Item.Workbook.Functions.Base /// /// Provides operations to call the base method. /// - public class BaseRequestBuilderEscaped : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseRequestBuilderEscaped : BaseCliRequestBuilder { /// /// Invoke action base @@ -56,8 +59,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(BasePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Base.BasePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 BaseRequestBuilderEscaped(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/base", 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 BaseRequestBuilderEscaped(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/base", rawUrl) @@ -100,11 +103,11 @@ public BaseRequestBuilderEscaped(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(BasePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Base.BasePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BasePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Base.BasePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(BasePostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIPostRequestBody.cs index 95b3c74bc5..a2dbff2a35 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselI { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class BesselIPostRequestBody : IAdditionalDataHolder, IParsable + public partial class BesselIPostRequestBody : 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. @@ -16,21 +17,21 @@ public class BesselIPostRequestBody : IAdditionalDataHolder, IParsable /// The n property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? N { get; set; } + public UntypedNode? N { get; set; } #nullable restore #else - public Json N { get; set; } + public UntypedNode N { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BesselIPostRequestBody() { @@ -39,12 +40,12 @@ public BesselIPostRequestBody() /// /// 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 BesselIPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselI.BesselIPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BesselIPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselI.BesselIPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "n", n => { N = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "n", n => { N = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("n", N); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("n", N); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.cs index b4b46d806b..77d493617d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselI/BesselIRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.BesselI /// /// Provides operations to call the besselI method. /// - public class BesselIRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BesselIRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action besselI @@ -56,8 +59,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(BesselIPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselI.BesselIPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 BesselIRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/besselI", 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 BesselIRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/besselI", rawUrl) @@ -100,11 +103,11 @@ public BesselIRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(BesselIPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselI.BesselIPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BesselIPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselI.BesselIPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(BesselIPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJPostRequestBody.cs index 3305965ee2..62d0d56268 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselJ { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class BesselJPostRequestBody : IAdditionalDataHolder, IParsable + public partial class BesselJPostRequestBody : 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. @@ -16,21 +17,21 @@ public class BesselJPostRequestBody : IAdditionalDataHolder, IParsable /// The n property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? N { get; set; } + public UntypedNode? N { get; set; } #nullable restore #else - public Json N { get; set; } + public UntypedNode N { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BesselJPostRequestBody() { @@ -39,12 +40,12 @@ public BesselJPostRequestBody() /// /// 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 BesselJPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselJ.BesselJPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BesselJPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselJ.BesselJPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "n", n => { N = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "n", n => { N = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("n", N); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("n", N); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.cs index 3a0f2e79cc..3c36af36be 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselJ/BesselJRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.BesselJ /// /// Provides operations to call the besselJ method. /// - public class BesselJRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BesselJRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action besselJ @@ -56,8 +59,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(BesselJPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselJ.BesselJPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 BesselJRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/besselJ", 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 BesselJRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/besselJ", rawUrl) @@ -100,11 +103,11 @@ public BesselJRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(BesselJPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselJ.BesselJPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BesselJPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselJ.BesselJPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(BesselJPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKPostRequestBody.cs index ad686850a9..15f06d1468 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselK { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class BesselKPostRequestBody : IAdditionalDataHolder, IParsable + public partial class BesselKPostRequestBody : 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. @@ -16,21 +17,21 @@ public class BesselKPostRequestBody : IAdditionalDataHolder, IParsable /// The n property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? N { get; set; } + public UntypedNode? N { get; set; } #nullable restore #else - public Json N { get; set; } + public UntypedNode N { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BesselKPostRequestBody() { @@ -39,12 +40,12 @@ public BesselKPostRequestBody() /// /// 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 BesselKPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselK.BesselKPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BesselKPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselK.BesselKPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "n", n => { N = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "n", n => { N = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("n", N); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("n", N); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.cs index b929edac7f..b18201293e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselK/BesselKRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.BesselK /// /// Provides operations to call the besselK method. /// - public class BesselKRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BesselKRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action besselK @@ -56,8 +59,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(BesselKPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselK.BesselKPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 BesselKRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/besselK", 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 BesselKRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/besselK", rawUrl) @@ -100,11 +103,11 @@ public BesselKRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(BesselKPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselK.BesselKPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BesselKPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselK.BesselKPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(BesselKPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYPostRequestBody.cs index ebc6c21c9e..6194aa6122 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselY { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class BesselYPostRequestBody : IAdditionalDataHolder, IParsable + public partial class BesselYPostRequestBody : 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. @@ -16,21 +17,21 @@ public class BesselYPostRequestBody : IAdditionalDataHolder, IParsable /// The n property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? N { get; set; } + public UntypedNode? N { get; set; } #nullable restore #else - public Json N { get; set; } + public UntypedNode N { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BesselYPostRequestBody() { @@ -39,12 +40,12 @@ public BesselYPostRequestBody() /// /// 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 BesselYPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselY.BesselYPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BesselYPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselY.BesselYPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "n", n => { N = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "n", n => { N = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("n", N); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("n", N); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.cs index 51cf306ad8..35e56750fe 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/BesselY/BesselYRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.BesselY /// /// Provides operations to call the besselY method. /// - public class BesselYRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BesselYRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action besselY @@ -56,8 +59,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(BesselYPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselY.BesselYPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 BesselYRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/besselY", 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 BesselYRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/besselY", rawUrl) @@ -100,11 +103,11 @@ public BesselYRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(BesselYPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselY.BesselYPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BesselYPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselY.BesselYPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(BesselYPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistPostRequestBody.cs index fdb402a3b0..c0a8a78a5a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistPostRequestBody.cs @@ -1,68 +1,69 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Beta_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Beta_DistPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The A property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? A { get; set; } + public UntypedNode? A { get; set; } #nullable restore #else - public Json A { get; set; } + public UntypedNode A { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The alpha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Alpha { get; set; } + public UntypedNode? Alpha { get; set; } #nullable restore #else - public Json Alpha { get; set; } + public UntypedNode Alpha { get; set; } #endif /// The B property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? B { get; set; } + public UntypedNode? B { get; set; } #nullable restore #else - public Json B { get; set; } + public UntypedNode B { get; set; } #endif /// The beta property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Beta { get; set; } + public UntypedNode? Beta { get; set; } #nullable restore #else - public Json Beta { get; set; } + public UntypedNode Beta { get; set; } #endif /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Beta_DistPostRequestBody() { @@ -71,12 +72,12 @@ public Beta_DistPostRequestBody() /// /// 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 Beta_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Dist.Beta_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Beta_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Dist.Beta_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -86,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "A", n => { A = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "B", n => { B = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "beta", n => { Beta = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "A", n => { A = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "alpha", n => { Alpha = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "B", n => { B = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "beta", n => { Beta = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -101,13 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("A", A); - writer.WriteObjectValue("alpha", Alpha); - writer.WriteObjectValue("B", B); - writer.WriteObjectValue("beta", Beta); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("A", A); + writer.WriteObjectValue("alpha", Alpha); + writer.WriteObjectValue("B", B); + writer.WriteObjectValue("beta", Beta); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.cs index 976c17a3c8..ad938be5bf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Dist/Beta_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Beta_Dist /// /// Provides operations to call the beta_Dist method. /// - public class Beta_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Beta_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action beta_Dist @@ -56,8 +59,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(Beta_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Dist.Beta_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Beta_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/beta_Dist", 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 Beta_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/beta_Dist", rawUrl) @@ -100,11 +103,11 @@ public Beta_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(Beta_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Dist.Beta_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Beta_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Dist.Beta_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Beta_DistPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvPostRequestBody.cs index bdb85c160c..4e846a162a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvPostRequestBody.cs @@ -1,60 +1,61 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Inv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Beta_InvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Beta_InvPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The A property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? A { get; set; } + public UntypedNode? A { get; set; } #nullable restore #else - public Json A { get; set; } + public UntypedNode A { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The alpha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Alpha { get; set; } + public UntypedNode? Alpha { get; set; } #nullable restore #else - public Json Alpha { get; set; } + public UntypedNode Alpha { get; set; } #endif /// The B property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? B { get; set; } + public UntypedNode? B { get; set; } #nullable restore #else - public Json B { get; set; } + public UntypedNode B { get; set; } #endif /// The beta property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Beta { get; set; } + public UntypedNode? Beta { get; set; } #nullable restore #else - public Json Beta { get; set; } + public UntypedNode Beta { get; set; } #endif /// The probability property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Probability { get; set; } + public UntypedNode? Probability { get; set; } #nullable restore #else - public Json Probability { get; set; } + public UntypedNode Probability { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Beta_InvPostRequestBody() { @@ -63,12 +64,12 @@ public Beta_InvPostRequestBody() /// /// 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 Beta_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Inv.Beta_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Beta_InvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Inv.Beta_InvPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "A", n => { A = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "B", n => { B = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "beta", n => { Beta = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "A", n => { A = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "alpha", n => { Alpha = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "B", n => { B = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "beta", n => { Beta = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probability", n => { Probability = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("A", A); - writer.WriteObjectValue("alpha", Alpha); - writer.WriteObjectValue("B", B); - writer.WriteObjectValue("beta", Beta); - writer.WriteObjectValue("probability", Probability); + writer.WriteObjectValue("A", A); + writer.WriteObjectValue("alpha", Alpha); + writer.WriteObjectValue("B", B); + writer.WriteObjectValue("beta", Beta); + writer.WriteObjectValue("probability", Probability); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.cs index f8a3ed98c1..fe256405c2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Beta_Inv/Beta_InvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Beta_Inv /// /// Provides operations to call the beta_Inv method. /// - public class Beta_InvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Beta_InvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action beta_Inv @@ -56,8 +59,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(Beta_InvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Inv.Beta_InvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Beta_InvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/beta_Inv", 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 Beta_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/beta_Inv", rawUrl) @@ -100,11 +103,11 @@ public Beta_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(Beta_InvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Inv.Beta_InvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Beta_InvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Inv.Beta_InvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Beta_InvPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecPostRequestBody.cs index 338264754d..8c1af633ac 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Dec { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Bin2DecPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Bin2DecPostRequestBody : 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. @@ -16,13 +17,13 @@ public class Bin2DecPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Bin2DecPostRequestBody() { @@ -31,12 +32,12 @@ public Bin2DecPostRequestBody() /// /// 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 Bin2DecPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Dec.Bin2DecPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Bin2DecPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Dec.Bin2DecPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.cs index 60c46b534d..fddcb2d6ab 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Dec/Bin2DecRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Bin2Dec /// /// Provides operations to call the bin2Dec method. /// - public class Bin2DecRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Bin2DecRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action bin2Dec @@ -56,8 +59,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(Bin2DecPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Dec.Bin2DecPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Bin2DecRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bin2Dec", 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 Bin2DecRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bin2Dec", rawUrl) @@ -100,11 +103,11 @@ public Bin2DecRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Bin2DecPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Dec.Bin2DecPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Bin2DecPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Dec.Bin2DecPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Bin2DecPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexPostRequestBody.cs index 989fac93cd..75c834cd70 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Hex { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Bin2HexPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Bin2HexPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Bin2HexPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The places property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Places { get; set; } + public UntypedNode? Places { get; set; } #nullable restore #else - public Json Places { get; set; } + public UntypedNode Places { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Bin2HexPostRequestBody() { @@ -39,12 +40,12 @@ public Bin2HexPostRequestBody() /// /// 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 Bin2HexPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Hex.Bin2HexPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Bin2HexPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Hex.Bin2HexPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "places", n => { Places = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("places", Places); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("places", Places); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.cs index c30acddb17..a9b1b1d619 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Hex/Bin2HexRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Bin2Hex /// /// Provides operations to call the bin2Hex method. /// - public class Bin2HexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Bin2HexRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action bin2Hex @@ -56,8 +59,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(Bin2HexPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Hex.Bin2HexPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Bin2HexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bin2Hex", 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 Bin2HexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bin2Hex", rawUrl) @@ -100,11 +103,11 @@ public Bin2HexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Bin2HexPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Hex.Bin2HexPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Bin2HexPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Hex.Bin2HexPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Bin2HexPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctPostRequestBody.cs index 5727ceab1d..2e4e2980f9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Oct { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Bin2OctPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Bin2OctPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Bin2OctPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The places property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Places { get; set; } + public UntypedNode? Places { get; set; } #nullable restore #else - public Json Places { get; set; } + public UntypedNode Places { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Bin2OctPostRequestBody() { @@ -39,12 +40,12 @@ public Bin2OctPostRequestBody() /// /// 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 Bin2OctPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Oct.Bin2OctPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Bin2OctPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Oct.Bin2OctPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "places", n => { Places = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("places", Places); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("places", Places); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.cs index 887b95c9be..9b82f1a598 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bin2Oct/Bin2OctRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Bin2Oct /// /// Provides operations to call the bin2Oct method. /// - public class Bin2OctRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Bin2OctRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action bin2Oct @@ -56,8 +59,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(Bin2OctPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Oct.Bin2OctPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Bin2OctRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bin2Oct", 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 Bin2OctRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bin2Oct", rawUrl) @@ -100,11 +103,11 @@ public Bin2OctRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Bin2OctPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Oct.Bin2OctPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Bin2OctPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Oct.Bin2OctPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Bin2OctPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistPostRequestBody.cs index a51a9c3a6d..c4d6710570 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Binom_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Binom_DistPostRequestBody : 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. @@ -16,37 +17,37 @@ public class Binom_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The numberS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberS { get; set; } + public UntypedNode? NumberS { get; set; } #nullable restore #else - public Json NumberS { get; set; } + public UntypedNode NumberS { get; set; } #endif /// The probabilityS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ProbabilityS { get; set; } + public UntypedNode? ProbabilityS { get; set; } #nullable restore #else - public Json ProbabilityS { get; set; } + public UntypedNode ProbabilityS { get; set; } #endif /// The trials property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Trials { get; set; } + public UntypedNode? Trials { get; set; } #nullable restore #else - public Json Trials { get; set; } + public UntypedNode Trials { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Binom_DistPostRequestBody() { @@ -55,12 +56,12 @@ public Binom_DistPostRequestBody() /// /// 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 Binom_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist.Binom_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Binom_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist.Binom_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numberS", n => { NumberS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probabilityS", n => { ProbabilityS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "trials", n => { Trials = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numberS", n => { NumberS = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probabilityS", n => { ProbabilityS = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "trials", n => { Trials = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("numberS", NumberS); - writer.WriteObjectValue("probabilityS", ProbabilityS); - writer.WriteObjectValue("trials", Trials); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("numberS", NumberS); + writer.WriteObjectValue("probabilityS", ProbabilityS); + writer.WriteObjectValue("trials", Trials); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.cs index 8b2e600c04..a04c6f5664 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist/Binom_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist /// /// Provides operations to call the binom_Dist method. /// - public class Binom_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Binom_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action binom_Dist @@ -56,8 +59,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(Binom_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist.Binom_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Binom_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/binom_Dist", 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 Binom_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/binom_Dist", rawUrl) @@ -100,11 +103,11 @@ public Binom_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(Binom_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist.Binom_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Binom_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist.Binom_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Binom_DistPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangePostRequestBody.cs index 8945b45209..fbf703aa99 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist_Range { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Binom_Dist_RangePostRequestBody : IAdditionalDataHolder, IParsable + public partial class Binom_Dist_RangePostRequestBody : 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. @@ -16,37 +17,37 @@ public class Binom_Dist_RangePostRequestBody : IAdditionalDataHolder, IParsable /// The numberS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberS { get; set; } + public UntypedNode? NumberS { get; set; } #nullable restore #else - public Json NumberS { get; set; } + public UntypedNode NumberS { get; set; } #endif /// The numberS2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberS2 { get; set; } + public UntypedNode? NumberS2 { get; set; } #nullable restore #else - public Json NumberS2 { get; set; } + public UntypedNode NumberS2 { get; set; } #endif /// The probabilityS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ProbabilityS { get; set; } + public UntypedNode? ProbabilityS { get; set; } #nullable restore #else - public Json ProbabilityS { get; set; } + public UntypedNode ProbabilityS { get; set; } #endif /// The trials property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Trials { get; set; } + public UntypedNode? Trials { get; set; } #nullable restore #else - public Json Trials { get; set; } + public UntypedNode Trials { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Binom_Dist_RangePostRequestBody() { @@ -55,12 +56,12 @@ public Binom_Dist_RangePostRequestBody() /// /// 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 Binom_Dist_RangePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist_Range.Binom_Dist_RangePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Binom_Dist_RangePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist_Range.Binom_Dist_RangePostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numberS", n => { NumberS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numberS2", n => { NumberS2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probabilityS", n => { ProbabilityS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "trials", n => { Trials = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numberS", n => { NumberS = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numberS2", n => { NumberS2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probabilityS", n => { ProbabilityS = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "trials", n => { Trials = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("numberS", NumberS); - writer.WriteObjectValue("numberS2", NumberS2); - writer.WriteObjectValue("probabilityS", ProbabilityS); - writer.WriteObjectValue("trials", Trials); + writer.WriteObjectValue("numberS", NumberS); + writer.WriteObjectValue("numberS2", NumberS2); + writer.WriteObjectValue("probabilityS", ProbabilityS); + writer.WriteObjectValue("trials", Trials); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.cs index f369460473..008c635c4a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Dist_Range/Binom_Dist_RangeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist_Range /// /// Provides operations to call the binom_Dist_Range method. /// - public class Binom_Dist_RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Binom_Dist_RangeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action binom_Dist_Range @@ -56,8 +59,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(Binom_Dist_RangePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist_Range.Binom_Dist_RangePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Binom_Dist_RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/binom_Dist_Range", 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 Binom_Dist_RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/binom_Dist_Range", rawUrl) @@ -100,11 +103,11 @@ public Binom_Dist_RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{ /// 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(Binom_Dist_RangePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist_Range.Binom_Dist_RangePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Binom_Dist_RangePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist_Range.Binom_Dist_RangePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Binom_Dist_RangePostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvPostRequestBody.cs index 2ea415fe2e..4edb2cbb8b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Inv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Binom_InvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Binom_InvPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Binom_InvPostRequestBody : IAdditionalDataHolder, IParsable /// The alpha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Alpha { get; set; } + public UntypedNode? Alpha { get; set; } #nullable restore #else - public Json Alpha { get; set; } + public UntypedNode Alpha { get; set; } #endif /// The probabilityS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ProbabilityS { get; set; } + public UntypedNode? ProbabilityS { get; set; } #nullable restore #else - public Json ProbabilityS { get; set; } + public UntypedNode ProbabilityS { get; set; } #endif /// The trials property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Trials { get; set; } + public UntypedNode? Trials { get; set; } #nullable restore #else - public Json Trials { get; set; } + public UntypedNode Trials { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Binom_InvPostRequestBody() { @@ -47,12 +48,12 @@ public Binom_InvPostRequestBody() /// /// 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 Binom_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Inv.Binom_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Binom_InvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Inv.Binom_InvPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probabilityS", n => { ProbabilityS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "trials", n => { Trials = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "alpha", n => { Alpha = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probabilityS", n => { ProbabilityS = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "trials", n => { Trials = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("alpha", Alpha); - writer.WriteObjectValue("probabilityS", ProbabilityS); - writer.WriteObjectValue("trials", Trials); + writer.WriteObjectValue("alpha", Alpha); + writer.WriteObjectValue("probabilityS", ProbabilityS); + writer.WriteObjectValue("trials", Trials); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.cs index ffcc816eb0..437290a2fa 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Binom_Inv/Binom_InvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Binom_Inv /// /// Provides operations to call the binom_Inv method. /// - public class Binom_InvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Binom_InvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action binom_Inv @@ -56,8 +59,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(Binom_InvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Inv.Binom_InvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Binom_InvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/binom_Inv", 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 Binom_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/binom_Inv", rawUrl) @@ -100,11 +103,11 @@ public Binom_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(Binom_InvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Inv.Binom_InvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Binom_InvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Inv.Binom_InvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Binom_InvPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandPostRequestBody.cs index 2cd64be26e..927f0a9b6a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitand { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class BitandPostRequestBody : IAdditionalDataHolder, IParsable + public partial class BitandPostRequestBody : 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. @@ -16,21 +17,21 @@ public class BitandPostRequestBody : IAdditionalDataHolder, IParsable /// The number1 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number1 { get; set; } + public UntypedNode? Number1 { get; set; } #nullable restore #else - public Json Number1 { get; set; } + public UntypedNode Number1 { get; set; } #endif /// The number2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number2 { get; set; } + public UntypedNode? Number2 { get; set; } #nullable restore #else - public Json Number2 { get; set; } + public UntypedNode Number2 { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BitandPostRequestBody() { @@ -39,12 +40,12 @@ public BitandPostRequestBody() /// /// 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 BitandPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitand.BitandPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BitandPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitand.BitandPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number1", n => { Number1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number2", n => { Number2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number1", n => { Number1 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number2", n => { Number2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number1", Number1); - writer.WriteObjectValue("number2", Number2); + writer.WriteObjectValue("number1", Number1); + writer.WriteObjectValue("number2", Number2); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.cs index 11ce617238..eb38eb3aeb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitand/BitandRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Bitand /// /// Provides operations to call the bitand method. /// - public class BitandRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BitandRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action bitand @@ -56,8 +59,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(BitandPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitand.BitandPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 BitandRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitand", 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 BitandRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitand", rawUrl) @@ -100,11 +103,11 @@ public BitandRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(BitandPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitand.BitandPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BitandPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitand.BitandPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(BitandPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftPostRequestBody.cs index b5eaefc1e9..b36c4dab3c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitlshift { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class BitlshiftPostRequestBody : IAdditionalDataHolder, IParsable + public partial class BitlshiftPostRequestBody : 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. @@ -16,21 +17,21 @@ public class BitlshiftPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The shiftAmount property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ShiftAmount { get; set; } + public UntypedNode? ShiftAmount { get; set; } #nullable restore #else - public Json ShiftAmount { get; set; } + public UntypedNode ShiftAmount { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BitlshiftPostRequestBody() { @@ -39,12 +40,12 @@ public BitlshiftPostRequestBody() /// /// 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 BitlshiftPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitlshift.BitlshiftPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BitlshiftPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitlshift.BitlshiftPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "shiftAmount", n => { ShiftAmount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "shiftAmount", n => { ShiftAmount = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("shiftAmount", ShiftAmount); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("shiftAmount", ShiftAmount); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.cs index 9f9790a8dc..567496358b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitlshift/BitlshiftRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Bitlshift /// /// Provides operations to call the bitlshift method. /// - public class BitlshiftRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BitlshiftRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action bitlshift @@ -56,8 +59,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(BitlshiftPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitlshift.BitlshiftPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 BitlshiftRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitlshift", 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 BitlshiftRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitlshift", rawUrl) @@ -100,11 +103,11 @@ public BitlshiftRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(BitlshiftPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitlshift.BitlshiftPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BitlshiftPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitlshift.BitlshiftPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(BitlshiftPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorPostRequestBody.cs index 0113c275d6..c64f60974d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitor { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class BitorPostRequestBody : IAdditionalDataHolder, IParsable + public partial class BitorPostRequestBody : 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. @@ -16,21 +17,21 @@ public class BitorPostRequestBody : IAdditionalDataHolder, IParsable /// The number1 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number1 { get; set; } + public UntypedNode? Number1 { get; set; } #nullable restore #else - public Json Number1 { get; set; } + public UntypedNode Number1 { get; set; } #endif /// The number2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number2 { get; set; } + public UntypedNode? Number2 { get; set; } #nullable restore #else - public Json Number2 { get; set; } + public UntypedNode Number2 { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BitorPostRequestBody() { @@ -39,12 +40,12 @@ public BitorPostRequestBody() /// /// 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 BitorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitor.BitorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BitorPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitor.BitorPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number1", n => { Number1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number2", n => { Number2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number1", n => { Number1 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number2", n => { Number2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number1", Number1); - writer.WriteObjectValue("number2", Number2); + writer.WriteObjectValue("number1", Number1); + writer.WriteObjectValue("number2", Number2); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.cs index 116e42b94a..f8a5d2fb0c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitor/BitorRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Bitor /// /// Provides operations to call the bitor method. /// - public class BitorRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BitorRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action bitor @@ -56,8 +59,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(BitorPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitor.BitorPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 BitorRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitor", 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 BitorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitor", rawUrl) @@ -100,11 +103,11 @@ public BitorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(BitorPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitor.BitorPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BitorPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitor.BitorPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(BitorPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftPostRequestBody.cs index 905c8235a2..3af0afcf1e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitrshift { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class BitrshiftPostRequestBody : IAdditionalDataHolder, IParsable + public partial class BitrshiftPostRequestBody : 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. @@ -16,21 +17,21 @@ public class BitrshiftPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The shiftAmount property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ShiftAmount { get; set; } + public UntypedNode? ShiftAmount { get; set; } #nullable restore #else - public Json ShiftAmount { get; set; } + public UntypedNode ShiftAmount { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BitrshiftPostRequestBody() { @@ -39,12 +40,12 @@ public BitrshiftPostRequestBody() /// /// 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 BitrshiftPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitrshift.BitrshiftPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BitrshiftPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitrshift.BitrshiftPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "shiftAmount", n => { ShiftAmount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "shiftAmount", n => { ShiftAmount = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("shiftAmount", ShiftAmount); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("shiftAmount", ShiftAmount); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.cs index 7cea47117d..0fe56a97ae 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitrshift/BitrshiftRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Bitrshift /// /// Provides operations to call the bitrshift method. /// - public class BitrshiftRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BitrshiftRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action bitrshift @@ -56,8 +59,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(BitrshiftPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitrshift.BitrshiftPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 BitrshiftRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitrshift", 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 BitrshiftRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitrshift", rawUrl) @@ -100,11 +103,11 @@ public BitrshiftRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(BitrshiftPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitrshift.BitrshiftPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BitrshiftPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitrshift.BitrshiftPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(BitrshiftPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorPostRequestBody.cs index c6612347d4..417023115c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitxor { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class BitxorPostRequestBody : IAdditionalDataHolder, IParsable + public partial class BitxorPostRequestBody : 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. @@ -16,21 +17,21 @@ public class BitxorPostRequestBody : IAdditionalDataHolder, IParsable /// The number1 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number1 { get; set; } + public UntypedNode? Number1 { get; set; } #nullable restore #else - public Json Number1 { get; set; } + public UntypedNode Number1 { get; set; } #endif /// The number2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number2 { get; set; } + public UntypedNode? Number2 { get; set; } #nullable restore #else - public Json Number2 { get; set; } + public UntypedNode Number2 { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public BitxorPostRequestBody() { @@ -39,12 +40,12 @@ public BitxorPostRequestBody() /// /// 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 BitxorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitxor.BitxorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BitxorPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitxor.BitxorPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number1", n => { Number1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number2", n => { Number2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number1", n => { Number1 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number2", n => { Number2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number1", Number1); - writer.WriteObjectValue("number2", Number2); + writer.WriteObjectValue("number1", Number1); + writer.WriteObjectValue("number2", Number2); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.cs index 7c9ddda075..d7bcb88e45 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Bitxor/BitxorRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Bitxor /// /// Provides operations to call the bitxor method. /// - public class BitxorRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BitxorRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action bitxor @@ -56,8 +59,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(BitxorPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitxor.BitxorPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 BitxorRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitxor", 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 BitxorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/bitxor", rawUrl) @@ -100,11 +103,11 @@ public BitxorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(BitxorPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitxor.BitxorPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BitxorPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitxor.BitxorPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(BitxorPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathPostRequestBody.cs index 6739ca3b76..89b503c837 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Math { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Ceiling_MathPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Ceiling_MathPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Ceiling_MathPostRequestBody : IAdditionalDataHolder, IParsable /// The mode property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Mode { get; set; } + public UntypedNode? Mode { get; set; } #nullable restore #else - public Json Mode { get; set; } + public UntypedNode Mode { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The significance property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Significance { get; set; } + public UntypedNode? Significance { get; set; } #nullable restore #else - public Json Significance { get; set; } + public UntypedNode Significance { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Ceiling_MathPostRequestBody() { @@ -47,12 +48,12 @@ public Ceiling_MathPostRequestBody() /// /// 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 Ceiling_MathPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Math.Ceiling_MathPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Ceiling_MathPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Math.Ceiling_MathPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "mode", n => { Mode = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "mode", n => { Mode = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "significance", n => { Significance = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("mode", Mode); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("significance", Significance); + writer.WriteObjectValue("mode", Mode); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("significance", Significance); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.cs index 8ae7c3c42d..8e2e79e38a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Math/Ceiling_MathRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Math /// /// Provides operations to call the ceiling_Math method. /// - public class Ceiling_MathRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Ceiling_MathRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action ceiling_Math @@ -56,8 +59,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(Ceiling_MathPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Math.Ceiling_MathPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Ceiling_MathRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ceiling_Math", 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 Ceiling_MathRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ceiling_Math", rawUrl) @@ -100,11 +103,11 @@ public Ceiling_MathRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(Ceiling_MathPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Math.Ceiling_MathPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Ceiling_MathPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Math.Ceiling_MathPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Ceiling_MathPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PrecisePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PrecisePostRequestBody.cs index ed0b85a8f7..f225f65f34 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PrecisePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PrecisePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Precise { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Ceiling_PrecisePostRequestBody : IAdditionalDataHolder, IParsable + public partial class Ceiling_PrecisePostRequestBody : 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. @@ -16,21 +17,21 @@ public class Ceiling_PrecisePostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The significance property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Significance { get; set; } + public UntypedNode? Significance { get; set; } #nullable restore #else - public Json Significance { get; set; } + public UntypedNode Significance { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Ceiling_PrecisePostRequestBody() { @@ -39,12 +40,12 @@ public Ceiling_PrecisePostRequestBody() /// /// 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 Ceiling_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Precise.Ceiling_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Ceiling_PrecisePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Precise.Ceiling_PrecisePostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "significance", n => { Significance = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("significance", Significance); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("significance", Significance); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.cs index 29dae2d46e..46f0a57f6c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ceiling_Precise/Ceiling_PreciseRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Precise /// /// Provides operations to call the ceiling_Precise method. /// - public class Ceiling_PreciseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Ceiling_PreciseRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action ceiling_Precise @@ -56,8 +59,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(Ceiling_PrecisePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Precise.Ceiling_PrecisePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Ceiling_PreciseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ceiling_Precise", 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 Ceiling_PreciseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ceiling_Precise", rawUrl) @@ -100,11 +103,11 @@ public Ceiling_PreciseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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(Ceiling_PrecisePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Precise.Ceiling_PrecisePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Ceiling_PrecisePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Precise.Ceiling_PrecisePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Ceiling_PrecisePostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharPostRequestBody.cs index e4f8a0086d..4fa193a578 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CharNamespace { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CharPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CharPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CharPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CharPostRequestBody() { @@ -31,12 +32,12 @@ public CharPostRequestBody() /// /// 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 CharPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CharNamespace.CharPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CharPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CharNamespace.CharPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharRequestBuilder.cs index bc7b81f3ae..8260667425 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CharNamespace/CharRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CharNamespace /// /// Provides operations to call the char method. /// - public class CharRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CharRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action char @@ -56,8 +59,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(CharPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CharNamespace.CharPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CharRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/char", 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 CharRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/char", rawUrl) @@ -100,11 +103,11 @@ public CharRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(CharPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CharNamespace.CharPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CharPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CharNamespace.CharPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CharPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistPostRequestBody.cs index 8347d64729..38abd5cdb0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ChiSq_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ChiSq_DistPostRequestBody : 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. @@ -16,29 +17,29 @@ public class ChiSq_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The degFreedom property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom { get; set; } + public UntypedNode? DegFreedom { get; set; } #nullable restore #else - public Json DegFreedom { get; set; } + public UntypedNode DegFreedom { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ChiSq_DistPostRequestBody() { @@ -47,12 +48,12 @@ public ChiSq_DistPostRequestBody() /// /// 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 ChiSq_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist.ChiSq_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChiSq_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist.ChiSq_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "degFreedom", n => { DegFreedom = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("degFreedom", DegFreedom); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("degFreedom", DegFreedom); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.cs index dcee556c54..0389987695 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist/ChiSq_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist /// /// Provides operations to call the chiSq_Dist method. /// - public class ChiSq_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChiSq_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action chiSq_Dist @@ -56,8 +59,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(ChiSq_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist.ChiSq_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ChiSq_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/chiSq_Dist", 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 ChiSq_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/chiSq_Dist", rawUrl) @@ -100,11 +103,11 @@ public ChiSq_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(ChiSq_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist.ChiSq_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChiSq_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist.ChiSq_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ChiSq_DistPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTPostRequestBody.cs index f4e8cbf0d9..1d05c9ac26 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist_RT { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ChiSq_Dist_RTPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ChiSq_Dist_RTPostRequestBody : 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. @@ -16,21 +17,21 @@ public class ChiSq_Dist_RTPostRequestBody : IAdditionalDataHolder, IParsable /// The degFreedom property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom { get; set; } + public UntypedNode? DegFreedom { get; set; } #nullable restore #else - public Json DegFreedom { get; set; } + public UntypedNode DegFreedom { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ChiSq_Dist_RTPostRequestBody() { @@ -39,12 +40,12 @@ public ChiSq_Dist_RTPostRequestBody() /// /// 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 ChiSq_Dist_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist_RT.ChiSq_Dist_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChiSq_Dist_RTPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist_RT.ChiSq_Dist_RTPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "degFreedom", n => { DegFreedom = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("degFreedom", DegFreedom); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("degFreedom", DegFreedom); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.cs index 5e7cd960a3..4df345dfdb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Dist_RT/ChiSq_Dist_RTRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist_RT /// /// Provides operations to call the chiSq_Dist_RT method. /// - public class ChiSq_Dist_RTRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChiSq_Dist_RTRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action chiSq_Dist_RT @@ -56,8 +59,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(ChiSq_Dist_RTPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist_RT.ChiSq_Dist_RTPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ChiSq_Dist_RTRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/chiSq_Dist_RT", 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 ChiSq_Dist_RTRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/chiSq_Dist_RT", rawUrl) @@ -100,11 +103,11 @@ public ChiSq_Dist_RTRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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(ChiSq_Dist_RTPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist_RT.ChiSq_Dist_RTPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChiSq_Dist_RTPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist_RT.ChiSq_Dist_RTPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ChiSq_Dist_RTPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvPostRequestBody.cs index 19639d2ccf..9ed04bafba 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ChiSq_InvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ChiSq_InvPostRequestBody : 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. @@ -16,21 +17,21 @@ public class ChiSq_InvPostRequestBody : IAdditionalDataHolder, IParsable /// The degFreedom property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom { get; set; } + public UntypedNode? DegFreedom { get; set; } #nullable restore #else - public Json DegFreedom { get; set; } + public UntypedNode DegFreedom { get; set; } #endif /// The probability property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Probability { get; set; } + public UntypedNode? Probability { get; set; } #nullable restore #else - public Json Probability { get; set; } + public UntypedNode Probability { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ChiSq_InvPostRequestBody() { @@ -39,12 +40,12 @@ public ChiSq_InvPostRequestBody() /// /// 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 ChiSq_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv.ChiSq_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChiSq_InvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv.ChiSq_InvPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "degFreedom", n => { DegFreedom = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probability", n => { Probability = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("degFreedom", DegFreedom); - writer.WriteObjectValue("probability", Probability); + writer.WriteObjectValue("degFreedom", DegFreedom); + writer.WriteObjectValue("probability", Probability); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.cs index df086f9349..bc3572b476 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv/ChiSq_InvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv /// /// Provides operations to call the chiSq_Inv method. /// - public class ChiSq_InvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChiSq_InvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action chiSq_Inv @@ -56,8 +59,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(ChiSq_InvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv.ChiSq_InvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ChiSq_InvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/chiSq_Inv", 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 ChiSq_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/chiSq_Inv", rawUrl) @@ -100,11 +103,11 @@ public ChiSq_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(ChiSq_InvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv.ChiSq_InvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChiSq_InvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv.ChiSq_InvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ChiSq_InvPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTPostRequestBody.cs index 30f4d9e8d5..1dc27636b8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv_RT { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ChiSq_Inv_RTPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ChiSq_Inv_RTPostRequestBody : 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. @@ -16,21 +17,21 @@ public class ChiSq_Inv_RTPostRequestBody : IAdditionalDataHolder, IParsable /// The degFreedom property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom { get; set; } + public UntypedNode? DegFreedom { get; set; } #nullable restore #else - public Json DegFreedom { get; set; } + public UntypedNode DegFreedom { get; set; } #endif /// The probability property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Probability { get; set; } + public UntypedNode? Probability { get; set; } #nullable restore #else - public Json Probability { get; set; } + public UntypedNode Probability { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ChiSq_Inv_RTPostRequestBody() { @@ -39,12 +40,12 @@ public ChiSq_Inv_RTPostRequestBody() /// /// 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 ChiSq_Inv_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv_RT.ChiSq_Inv_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChiSq_Inv_RTPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv_RT.ChiSq_Inv_RTPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "degFreedom", n => { DegFreedom = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probability", n => { Probability = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("degFreedom", DegFreedom); - writer.WriteObjectValue("probability", Probability); + writer.WriteObjectValue("degFreedom", DegFreedom); + writer.WriteObjectValue("probability", Probability); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.cs index 7f62f16cfa..55ce309ae4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ChiSq_Inv_RT/ChiSq_Inv_RTRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv_RT /// /// Provides operations to call the chiSq_Inv_RT method. /// - public class ChiSq_Inv_RTRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChiSq_Inv_RTRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action chiSq_Inv_RT @@ -56,8 +59,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(ChiSq_Inv_RTPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv_RT.ChiSq_Inv_RTPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ChiSq_Inv_RTRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/chiSq_Inv_RT", 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 ChiSq_Inv_RTRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/chiSq_Inv_RT", rawUrl) @@ -100,11 +103,11 @@ public ChiSq_Inv_RTRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(ChiSq_Inv_RTPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv_RT.ChiSq_Inv_RTPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChiSq_Inv_RTPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv_RT.ChiSq_Inv_RTPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ChiSq_Inv_RTPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChoosePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChoosePostRequestBody.cs index 3c4d11ffee..12ecc720ca 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChoosePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChoosePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Choose { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ChoosePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ChoosePostRequestBody : 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. @@ -16,21 +17,21 @@ public class ChoosePostRequestBody : IAdditionalDataHolder, IParsable /// The indexNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? IndexNum { get; set; } + public UntypedNode? IndexNum { get; set; } #nullable restore #else - public Json IndexNum { get; set; } + public UntypedNode IndexNum { get; set; } #endif /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ChoosePostRequestBody() { @@ -39,12 +40,12 @@ public ChoosePostRequestBody() /// /// 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 ChoosePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Choose.ChoosePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChoosePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Choose.ChoosePostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "indexNum", n => { IndexNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "indexNum", n => { IndexNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("indexNum", IndexNum); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("indexNum", IndexNum); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.cs index 77804393e3..3d39b3ff40 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Choose/ChooseRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Choose /// /// Provides operations to call the choose method. /// - public class ChooseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChooseRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action choose @@ -56,8 +59,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(ChoosePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Choose.ChoosePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ChooseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/choose", 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 ChooseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/choose", rawUrl) @@ -100,11 +103,11 @@ public ChooseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(ChoosePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Choose.ChoosePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChoosePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Choose.ChoosePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ChoosePostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanPostRequestBody.cs index 2c49dbb285..845321988a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Clean { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CleanPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CleanPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CleanPostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CleanPostRequestBody() { @@ -31,12 +32,12 @@ public CleanPostRequestBody() /// /// 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 CleanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Clean.CleanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CleanPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Clean.CleanPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.cs index c7c535be91..bdb0609350 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Clean/CleanRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Clean /// /// Provides operations to call the clean method. /// - public class CleanRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CleanRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action clean @@ -56,8 +59,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(CleanPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Clean.CleanPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CleanRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/clean", 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 CleanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/clean", rawUrl) @@ -100,11 +103,11 @@ public CleanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(CleanPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Clean.CleanPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CleanPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Clean.CleanPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CleanPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodePostRequestBody.cs index de6ba78648..0cb24656b1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Code { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CodePostRequestBody : IAdditionalDataHolder, IParsable + public partial class CodePostRequestBody : 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. @@ -16,13 +17,13 @@ public class CodePostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CodePostRequestBody() { @@ -31,12 +32,12 @@ public CodePostRequestBody() /// /// 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 CodePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Code.CodePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CodePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Code.CodePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.cs index 5c7cfce916..ced3c4b33e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Code/CodeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Code /// /// Provides operations to call the code method. /// - public class CodeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CodeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action code @@ -56,8 +59,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(CodePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Code.CodePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CodeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/code", 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 CodeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/code", rawUrl) @@ -100,11 +103,11 @@ public CodeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(CodePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Code.CodePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CodePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Code.CodePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CodePostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsPostRequestBody.cs index 9702241bd7..b72e4dcc56 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Columns { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ColumnsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ColumnsPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ColumnsPostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ColumnsPostRequestBody() { @@ -31,12 +32,12 @@ public ColumnsPostRequestBody() /// /// 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 ColumnsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Columns.ColumnsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ColumnsPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Columns.ColumnsPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("array", Array); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.cs index 64f8acab8a..f31d5e6280 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Columns/ColumnsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Columns /// /// Provides operations to call the columns method. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action columns @@ -56,8 +59,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(ColumnsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Columns.ColumnsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/columns", 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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/columns", rawUrl) @@ -100,11 +103,11 @@ public ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(ColumnsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Columns.ColumnsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Columns.ColumnsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ColumnsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinPostRequestBody.cs index 9676780fd5..cba1f265d7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combin { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CombinPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CombinPostRequestBody : 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. @@ -16,21 +17,21 @@ public class CombinPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The numberChosen property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberChosen { get; set; } + public UntypedNode? NumberChosen { get; set; } #nullable restore #else - public Json NumberChosen { get; set; } + public UntypedNode NumberChosen { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CombinPostRequestBody() { @@ -39,12 +40,12 @@ public CombinPostRequestBody() /// /// 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 CombinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combin.CombinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CombinPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combin.CombinPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numberChosen", n => { NumberChosen = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numberChosen", n => { NumberChosen = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("numberChosen", NumberChosen); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("numberChosen", NumberChosen); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.cs index 2a37a9269b..1f258900ae 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combin/CombinRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Combin /// /// Provides operations to call the combin method. /// - public class CombinRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CombinRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action combin @@ -56,8 +59,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(CombinPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combin.CombinPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CombinRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/combin", 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 CombinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/combin", rawUrl) @@ -100,11 +103,11 @@ public CombinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(CombinPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combin.CombinPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CombinPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combin.CombinPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CombinPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaPostRequestBody.cs index 7f522a533d..ae698d30ad 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combina { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CombinaPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CombinaPostRequestBody : 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. @@ -16,21 +17,21 @@ public class CombinaPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The numberChosen property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberChosen { get; set; } + public UntypedNode? NumberChosen { get; set; } #nullable restore #else - public Json NumberChosen { get; set; } + public UntypedNode NumberChosen { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CombinaPostRequestBody() { @@ -39,12 +40,12 @@ public CombinaPostRequestBody() /// /// 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 CombinaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combina.CombinaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CombinaPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combina.CombinaPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numberChosen", n => { NumberChosen = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numberChosen", n => { NumberChosen = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("numberChosen", NumberChosen); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("numberChosen", NumberChosen); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.cs index 75ef331f78..310e81fb6d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Combina/CombinaRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Combina /// /// Provides operations to call the combina method. /// - public class CombinaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CombinaRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action combina @@ -56,8 +59,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(CombinaPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combina.CombinaPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CombinaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/combina", 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 CombinaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/combina", rawUrl) @@ -100,11 +103,11 @@ public CombinaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(CombinaPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combina.CombinaPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CombinaPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combina.CombinaPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CombinaPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexPostRequestBody.cs index 95eec6eddc..f22a6c56b8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Complex { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ComplexPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ComplexPostRequestBody : 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. @@ -16,29 +17,29 @@ public class ComplexPostRequestBody : IAdditionalDataHolder, IParsable /// The iNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? INum { get; set; } + public UntypedNode? INum { get; set; } #nullable restore #else - public Json INum { get; set; } + public UntypedNode INum { get; set; } #endif /// The realNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? RealNum { get; set; } + public UntypedNode? RealNum { get; set; } #nullable restore #else - public Json RealNum { get; set; } + public UntypedNode RealNum { get; set; } #endif /// The suffix property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Suffix { get; set; } + public UntypedNode? Suffix { get; set; } #nullable restore #else - public Json Suffix { get; set; } + public UntypedNode Suffix { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ComplexPostRequestBody() { @@ -47,12 +48,12 @@ public ComplexPostRequestBody() /// /// 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 ComplexPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Complex.ComplexPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ComplexPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Complex.ComplexPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "iNum", n => { INum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "realNum", n => { RealNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "suffix", n => { Suffix = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "iNum", n => { INum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "realNum", n => { RealNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "suffix", n => { Suffix = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("iNum", INum); - writer.WriteObjectValue("realNum", RealNum); - writer.WriteObjectValue("suffix", Suffix); + writer.WriteObjectValue("iNum", INum); + writer.WriteObjectValue("realNum", RealNum); + writer.WriteObjectValue("suffix", Suffix); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.cs index 5e3bfca8ca..ff36ec9723 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Complex/ComplexRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Complex /// /// Provides operations to call the complex method. /// - public class ComplexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ComplexRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action complex @@ -56,8 +59,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(ComplexPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Complex.ComplexPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ComplexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/complex", 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 ComplexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/complex", rawUrl) @@ -100,11 +103,11 @@ public ComplexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(ComplexPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Complex.ComplexPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ComplexPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Complex.ComplexPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ComplexPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenatePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenatePostRequestBody.cs index 1a6517ae1d..dcf929dd8b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenatePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenatePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Concatenate { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ConcatenatePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ConcatenatePostRequestBody : 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. @@ -16,13 +17,13 @@ public class ConcatenatePostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ConcatenatePostRequestBody() { @@ -31,12 +32,12 @@ public ConcatenatePostRequestBody() /// /// 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 ConcatenatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Concatenate.ConcatenatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConcatenatePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Concatenate.ConcatenatePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.cs index 57bfb76a70..553706331b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Concatenate/ConcatenateRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Concatenate /// /// Provides operations to call the concatenate method. /// - public class ConcatenateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConcatenateRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action concatenate @@ -56,8 +59,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(ConcatenatePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Concatenate.ConcatenatePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ConcatenateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/concatenate", 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 ConcatenateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/concatenate", rawUrl) @@ -100,11 +103,11 @@ public ConcatenateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(ConcatenatePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Concatenate.ConcatenatePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ConcatenatePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Concatenate.ConcatenatePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ConcatenatePostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormPostRequestBody.cs index 4304e6fcb9..be00380dab 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_Norm { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Confidence_NormPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Confidence_NormPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Confidence_NormPostRequestBody : IAdditionalDataHolder, IParsable /// The alpha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Alpha { get; set; } + public UntypedNode? Alpha { get; set; } #nullable restore #else - public Json Alpha { get; set; } + public UntypedNode Alpha { get; set; } #endif /// The size property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Size { get; set; } + public UntypedNode? Size { get; set; } #nullable restore #else - public Json Size { get; set; } + public UntypedNode Size { get; set; } #endif /// The standardDev property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StandardDev { get; set; } + public UntypedNode? StandardDev { get; set; } #nullable restore #else - public Json StandardDev { get; set; } + public UntypedNode StandardDev { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Confidence_NormPostRequestBody() { @@ -47,12 +48,12 @@ public Confidence_NormPostRequestBody() /// /// 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 Confidence_NormPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_Norm.Confidence_NormPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Confidence_NormPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_Norm.Confidence_NormPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "size", n => { Size = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "standardDev", n => { StandardDev = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "alpha", n => { Alpha = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "size", n => { Size = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "standardDev", n => { StandardDev = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("alpha", Alpha); - writer.WriteObjectValue("size", Size); - writer.WriteObjectValue("standardDev", StandardDev); + writer.WriteObjectValue("alpha", Alpha); + writer.WriteObjectValue("size", Size); + writer.WriteObjectValue("standardDev", StandardDev); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.cs index 96ea25b1c3..204b702556 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_Norm/Confidence_NormRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Confidence_Norm /// /// Provides operations to call the confidence_Norm method. /// - public class Confidence_NormRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Confidence_NormRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action confidence_Norm @@ -56,8 +59,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(Confidence_NormPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_Norm.Confidence_NormPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Confidence_NormRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/confidence_Norm", 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 Confidence_NormRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/confidence_Norm", rawUrl) @@ -100,11 +103,11 @@ public Confidence_NormRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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(Confidence_NormPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_Norm.Confidence_NormPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Confidence_NormPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_Norm.Confidence_NormPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Confidence_NormPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TPostRequestBody.cs index b27e5aa160..61f154b3fb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_T { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Confidence_TPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Confidence_TPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Confidence_TPostRequestBody : IAdditionalDataHolder, IParsable /// The alpha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Alpha { get; set; } + public UntypedNode? Alpha { get; set; } #nullable restore #else - public Json Alpha { get; set; } + public UntypedNode Alpha { get; set; } #endif /// The size property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Size { get; set; } + public UntypedNode? Size { get; set; } #nullable restore #else - public Json Size { get; set; } + public UntypedNode Size { get; set; } #endif /// The standardDev property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StandardDev { get; set; } + public UntypedNode? StandardDev { get; set; } #nullable restore #else - public Json StandardDev { get; set; } + public UntypedNode StandardDev { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Confidence_TPostRequestBody() { @@ -47,12 +48,12 @@ public Confidence_TPostRequestBody() /// /// 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 Confidence_TPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_T.Confidence_TPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Confidence_TPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_T.Confidence_TPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "size", n => { Size = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "standardDev", n => { StandardDev = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "alpha", n => { Alpha = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "size", n => { Size = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "standardDev", n => { StandardDev = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("alpha", Alpha); - writer.WriteObjectValue("size", Size); - writer.WriteObjectValue("standardDev", StandardDev); + writer.WriteObjectValue("alpha", Alpha); + writer.WriteObjectValue("size", Size); + writer.WriteObjectValue("standardDev", StandardDev); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.cs index 57c1313034..54f829354d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Confidence_T/Confidence_TRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Confidence_T /// /// Provides operations to call the confidence_T method. /// - public class Confidence_TRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Confidence_TRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action confidence_T @@ -56,8 +59,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(Confidence_TPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_T.Confidence_TPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Confidence_TRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/confidence_T", 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 Confidence_TRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/confidence_T", rawUrl) @@ -100,11 +103,11 @@ public Confidence_TRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(Confidence_TPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_T.Confidence_TPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Confidence_TPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_T.Confidence_TPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Confidence_TPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertPostRequestBody.cs index ede620034a..a1c4f879fb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ConvertNamespace { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ConvertPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ConvertPostRequestBody : 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. @@ -16,29 +17,29 @@ public class ConvertPostRequestBody : IAdditionalDataHolder, IParsable /// The fromUnit property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FromUnit { get; set; } + public UntypedNode? FromUnit { get; set; } #nullable restore #else - public Json FromUnit { get; set; } + public UntypedNode FromUnit { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The toUnit property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ToUnit { get; set; } + public UntypedNode? ToUnit { get; set; } #nullable restore #else - public Json ToUnit { get; set; } + public UntypedNode ToUnit { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ConvertPostRequestBody() { @@ -47,12 +48,12 @@ public ConvertPostRequestBody() /// /// 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 ConvertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ConvertNamespace.ConvertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConvertPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ConvertNamespace.ConvertPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fromUnit", n => { FromUnit = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "toUnit", n => { ToUnit = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "fromUnit", n => { FromUnit = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "toUnit", n => { ToUnit = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fromUnit", FromUnit); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("toUnit", ToUnit); + writer.WriteObjectValue("fromUnit", FromUnit); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("toUnit", ToUnit); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertRequestBuilder.cs index ceac0b8057..59a614ff69 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ConvertNamespace/ConvertRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ConvertNamespace /// /// Provides operations to call the convert method. /// - public class ConvertRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConvertRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action convert @@ -56,8 +59,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(ConvertPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ConvertNamespace.ConvertPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ConvertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/convert", 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 ConvertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/convert", rawUrl) @@ -100,11 +103,11 @@ public ConvertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(ConvertPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ConvertNamespace.ConvertPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ConvertPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ConvertNamespace.ConvertPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ConvertPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosPostRequestBody.cs index 1af9bf7db9..cd710dbeff 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cos { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CosPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CosPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CosPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CosPostRequestBody() { @@ -31,12 +32,12 @@ public CosPostRequestBody() /// /// 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 CosPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cos.CosPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CosPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cos.CosPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.cs index 1770d86324..b2f758affe 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cos/CosRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Cos /// /// Provides operations to call the cos method. /// - public class CosRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CosRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action cos @@ -56,8 +59,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(CosPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cos.CosPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CosRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cos", 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 CosRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cos", rawUrl) @@ -100,11 +103,11 @@ public CosRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(CosPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cos.CosPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CosPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cos.CosPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CosPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshPostRequestBody.cs index 2fb4b9c63b..bbc1b642b9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cosh { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CoshPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CoshPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CoshPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CoshPostRequestBody() { @@ -31,12 +32,12 @@ public CoshPostRequestBody() /// /// 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 CoshPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cosh.CoshPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CoshPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cosh.CoshPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.cs index cacac901d1..f8c05aba57 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cosh/CoshRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Cosh /// /// Provides operations to call the cosh method. /// - public class CoshRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CoshRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action cosh @@ -56,8 +59,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(CoshPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cosh.CoshPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CoshRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cosh", 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 CoshRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cosh", rawUrl) @@ -100,11 +103,11 @@ public CoshRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(CoshPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cosh.CoshPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CoshPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cosh.CoshPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CoshPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotPostRequestBody.cs index 2211634043..ac2cc8df2f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cot { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CotPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CotPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CotPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CotPostRequestBody() { @@ -31,12 +32,12 @@ public CotPostRequestBody() /// /// 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 CotPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cot.CotPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CotPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cot.CotPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.cs index 57e5d2c3ce..9f56200f81 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Cot/CotRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Cot /// /// Provides operations to call the cot method. /// - public class CotRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CotRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action cot @@ -56,8 +59,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(CotPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cot.CotPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CotRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cot", 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 CotRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cot", rawUrl) @@ -100,11 +103,11 @@ public CotRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(CotPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cot.CotPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CotPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cot.CotPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CotPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothPostRequestBody.cs index 5331c53702..5913eac32e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Coth { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CothPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CothPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CothPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CothPostRequestBody() { @@ -31,12 +32,12 @@ public CothPostRequestBody() /// /// 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 CothPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Coth.CothPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CothPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Coth.CothPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.cs index 0abcbb60a4..208098c150 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Coth/CothRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Coth /// /// Provides operations to call the coth method. /// - public class CothRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CothRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action coth @@ -56,8 +59,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(CothPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Coth.CothPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CothRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coth", 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 CothRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coth", rawUrl) @@ -100,11 +103,11 @@ public CothRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(CothPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Coth.CothPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CothPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Coth.CothPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CothPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountPostRequestBody.cs index 586b49bd02..1eee74d369 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Count { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CountPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CountPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountPostRequestBody() { @@ -31,12 +32,12 @@ public CountPostRequestBody() /// /// 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 CountPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Count.CountPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Count.CountPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.cs index c331135efb..cadd97e02a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Count/CountRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Count /// /// Provides operations to call the count method. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action count @@ -56,8 +59,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(CountPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Count.CountPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/count", 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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/count", rawUrl) @@ -100,11 +103,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(CountPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Count.CountPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CountPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Count.CountPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CountPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountAPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountAPostRequestBody.cs index b531aa5294..353ccfa6df 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountAPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountAPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountA { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountAPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CountAPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CountAPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountAPostRequestBody() { @@ -31,12 +32,12 @@ public CountAPostRequestBody() /// /// 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 CountAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountA.CountAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountAPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountA.CountAPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.cs index c0e3e61d5c..2940c17c86 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountA/CountARequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CountA /// /// Provides operations to call the countA method. /// - public class CountARequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountARequestBuilder : BaseCliRequestBuilder { /// /// Invoke action countA @@ -56,8 +59,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(CountAPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountA.CountAPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CountARequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/countA", 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 CountARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/countA", rawUrl) @@ -100,11 +103,11 @@ public CountARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(CountAPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountA.CountAPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CountAPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountA.CountAPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CountAPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankPostRequestBody.cs index 36eced3283..6dbcba0710 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountBlank { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountBlankPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CountBlankPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CountBlankPostRequestBody : IAdditionalDataHolder, IParsable /// The range property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Range { get; set; } + public UntypedNode? Range { get; set; } #nullable restore #else - public Json Range { get; set; } + public UntypedNode Range { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountBlankPostRequestBody() { @@ -31,12 +32,12 @@ public CountBlankPostRequestBody() /// /// 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 CountBlankPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountBlank.CountBlankPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountBlankPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountBlank.CountBlankPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "range", n => { Range = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "range", n => { Range = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("range", Range); + writer.WriteObjectValue("range", Range); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.cs index 1ccde23181..f1a1107547 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountBlank/CountBlankRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CountBlank /// /// Provides operations to call the countBlank method. /// - public class CountBlankRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountBlankRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action countBlank @@ -56,8 +59,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(CountBlankPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountBlank.CountBlankPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CountBlankRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/countBlank", 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 CountBlankRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/countBlank", rawUrl) @@ -100,11 +103,11 @@ public CountBlankRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(CountBlankPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountBlank.CountBlankPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CountBlankPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountBlank.CountBlankPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CountBlankPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfPostRequestBody.cs index ad23b0549e..5ad1017f5f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIf { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountIfPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CountIfPostRequestBody : 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. @@ -16,21 +17,21 @@ public class CountIfPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The range property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Range { get; set; } + public UntypedNode? Range { get; set; } #nullable restore #else - public Json Range { get; set; } + public UntypedNode Range { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountIfPostRequestBody() { @@ -39,12 +40,12 @@ public CountIfPostRequestBody() /// /// 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 CountIfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIf.CountIfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountIfPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIf.CountIfPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "range", n => { Range = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "range", n => { Range = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("range", Range); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("range", Range); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.cs index 593968d2d9..58220a2ef5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIf/CountIfRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CountIf /// /// Provides operations to call the countIf method. /// - public class CountIfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountIfRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action countIf @@ -56,8 +59,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(CountIfPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIf.CountIfPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CountIfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/countIf", 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 CountIfRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/countIf", rawUrl) @@ -100,11 +103,11 @@ public CountIfRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(CountIfPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIf.CountIfPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CountIfPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIf.CountIfPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CountIfPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsPostRequestBody.cs index 1ac64ec36f..6783485261 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIfs { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountIfsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CountIfsPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CountIfsPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountIfsPostRequestBody() { @@ -31,12 +32,12 @@ public CountIfsPostRequestBody() /// /// 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 CountIfsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIfs.CountIfsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountIfsPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIfs.CountIfsPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.cs index 6ec52f8239..e9f2888d40 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CountIfs/CountIfsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CountIfs /// /// Provides operations to call the countIfs method. /// - public class CountIfsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountIfsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action countIfs @@ -56,8 +59,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(CountIfsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIfs.CountIfsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CountIfsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/countIfs", 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 CountIfsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/countIfs", rawUrl) @@ -100,11 +103,11 @@ public CountIfsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(CountIfsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIfs.CountIfsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CountIfsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIfs.CountIfsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CountIfsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsPostRequestBody.cs index 3743770281..6a55c87533 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDayBs { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CoupDayBsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CoupDayBsPostRequestBody : 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. @@ -16,37 +17,37 @@ public class CoupDayBsPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CoupDayBsPostRequestBody() { @@ -55,12 +56,12 @@ public CoupDayBsPostRequestBody() /// /// 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 CoupDayBsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDayBs.CoupDayBsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CoupDayBsPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDayBs.CoupDayBsPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.cs index 2611c8af59..9cd00dc3b0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDayBs/CoupDayBsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CoupDayBs /// /// Provides operations to call the coupDayBs method. /// - public class CoupDayBsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CoupDayBsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action coupDayBs @@ -56,8 +59,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(CoupDayBsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDayBs.CoupDayBsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CoupDayBsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupDayBs", 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 CoupDayBsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupDayBs", rawUrl) @@ -100,11 +103,11 @@ public CoupDayBsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(CoupDayBsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDayBs.CoupDayBsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CoupDayBsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDayBs.CoupDayBsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CoupDayBsPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysPostRequestBody.cs index 0ac45a4d86..6c9f99bceb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDays { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CoupDaysPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CoupDaysPostRequestBody : 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. @@ -16,37 +17,37 @@ public class CoupDaysPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CoupDaysPostRequestBody() { @@ -55,12 +56,12 @@ public CoupDaysPostRequestBody() /// /// 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 CoupDaysPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDays.CoupDaysPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CoupDaysPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDays.CoupDaysPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.cs index 4003d5fad0..fe61351740 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDays/CoupDaysRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CoupDays /// /// Provides operations to call the coupDays method. /// - public class CoupDaysRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CoupDaysRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action coupDays @@ -56,8 +59,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(CoupDaysPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDays.CoupDaysPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CoupDaysRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupDays", 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 CoupDaysRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupDays", rawUrl) @@ -100,11 +103,11 @@ public CoupDaysRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(CoupDaysPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDays.CoupDaysPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CoupDaysPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDays.CoupDaysPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CoupDaysPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcPostRequestBody.cs index 259485114d..0dbefc9150 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDaysNc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CoupDaysNcPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CoupDaysNcPostRequestBody : 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. @@ -16,37 +17,37 @@ public class CoupDaysNcPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CoupDaysNcPostRequestBody() { @@ -55,12 +56,12 @@ public CoupDaysNcPostRequestBody() /// /// 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 CoupDaysNcPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDaysNc.CoupDaysNcPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CoupDaysNcPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDaysNc.CoupDaysNcPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.cs index 926c0f36af..9a7521aba4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupDaysNc/CoupDaysNcRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CoupDaysNc /// /// Provides operations to call the coupDaysNc method. /// - public class CoupDaysNcRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CoupDaysNcRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action coupDaysNc @@ -56,8 +59,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(CoupDaysNcPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDaysNc.CoupDaysNcPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CoupDaysNcRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupDaysNc", 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 CoupDaysNcRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupDaysNc", rawUrl) @@ -100,11 +103,11 @@ public CoupDaysNcRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(CoupDaysNcPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDaysNc.CoupDaysNcPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CoupDaysNcPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDaysNc.CoupDaysNcPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CoupDaysNcPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdPostRequestBody.cs index e974984c61..47247c0001 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNcd { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CoupNcdPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CoupNcdPostRequestBody : 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. @@ -16,37 +17,37 @@ public class CoupNcdPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CoupNcdPostRequestBody() { @@ -55,12 +56,12 @@ public CoupNcdPostRequestBody() /// /// 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 CoupNcdPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNcd.CoupNcdPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CoupNcdPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNcd.CoupNcdPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.cs index 0eed3b0a3c..2aa2e49759 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNcd/CoupNcdRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CoupNcd /// /// Provides operations to call the coupNcd method. /// - public class CoupNcdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CoupNcdRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action coupNcd @@ -56,8 +59,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(CoupNcdPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNcd.CoupNcdPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CoupNcdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupNcd", 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 CoupNcdRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupNcd", rawUrl) @@ -100,11 +103,11 @@ public CoupNcdRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(CoupNcdPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNcd.CoupNcdPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CoupNcdPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNcd.CoupNcdPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CoupNcdPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumPostRequestBody.cs index fc6a149465..c541b7bdda 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNum { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CoupNumPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CoupNumPostRequestBody : 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. @@ -16,37 +17,37 @@ public class CoupNumPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CoupNumPostRequestBody() { @@ -55,12 +56,12 @@ public CoupNumPostRequestBody() /// /// 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 CoupNumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNum.CoupNumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CoupNumPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNum.CoupNumPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.cs index 5596022ffb..524d2206eb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupNum/CoupNumRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CoupNum /// /// Provides operations to call the coupNum method. /// - public class CoupNumRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CoupNumRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action coupNum @@ -56,8 +59,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(CoupNumPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNum.CoupNumPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CoupNumRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupNum", 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 CoupNumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupNum", rawUrl) @@ -100,11 +103,11 @@ public CoupNumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(CoupNumPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNum.CoupNumPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CoupNumPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNum.CoupNumPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CoupNumPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdPostRequestBody.cs index c2dcb6e6b6..1d44e73b21 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupPcd { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CoupPcdPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CoupPcdPostRequestBody : 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. @@ -16,37 +17,37 @@ public class CoupPcdPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CoupPcdPostRequestBody() { @@ -55,12 +56,12 @@ public CoupPcdPostRequestBody() /// /// 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 CoupPcdPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupPcd.CoupPcdPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CoupPcdPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupPcd.CoupPcdPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.cs index c296c9b769..8e06bf45a5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CoupPcd/CoupPcdRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CoupPcd /// /// Provides operations to call the coupPcd method. /// - public class CoupPcdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CoupPcdRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action coupPcd @@ -56,8 +59,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(CoupPcdPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupPcd.CoupPcdPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CoupPcdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupPcd", 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 CoupPcdRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/coupPcd", rawUrl) @@ -100,11 +103,11 @@ public CoupPcdRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(CoupPcdPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupPcd.CoupPcdPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CoupPcdPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupPcd.CoupPcdPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CoupPcdPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscPostRequestBody.cs index 78877e91ce..e1ef5ce407 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CscPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CscPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CscPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CscPostRequestBody() { @@ -31,12 +32,12 @@ public CscPostRequestBody() /// /// 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 CscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csc.CscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CscPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csc.CscPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.cs index 259cfa5f5c..bb85ee7c6c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csc/CscRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Csc /// /// Provides operations to call the csc method. /// - public class CscRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CscRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action csc @@ -56,8 +59,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(CscPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csc.CscPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CscRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/csc", 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 CscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/csc", rawUrl) @@ -100,11 +103,11 @@ public CscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(CscPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csc.CscPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CscPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csc.CscPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CscPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschPostRequestBody.cs index 5ce3c9b4ff..576f3b473b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csch { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CschPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CschPostRequestBody : 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. @@ -16,13 +17,13 @@ public class CschPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CschPostRequestBody() { @@ -31,12 +32,12 @@ public CschPostRequestBody() /// /// 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 CschPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csch.CschPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CschPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csch.CschPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.cs index 4945c2647f..326302e756 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Csch/CschRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Csch /// /// Provides operations to call the csch method. /// - public class CschRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CschRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action csch @@ -56,8 +59,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(CschPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csch.CschPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CschRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/csch", 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 CschRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/csch", rawUrl) @@ -100,11 +103,11 @@ public CschRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(CschPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csch.CschPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CschPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csch.CschPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CschPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtPostRequestBody.cs index cdf72fc016..8992a4008c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumIPmt { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CumIPmtPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CumIPmtPostRequestBody : 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. @@ -16,53 +17,53 @@ public class CumIPmtPostRequestBody : IAdditionalDataHolder, IParsable /// The endPeriod property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EndPeriod { get; set; } + public UntypedNode? EndPeriod { get; set; } #nullable restore #else - public Json EndPeriod { get; set; } + public UntypedNode EndPeriod { get; set; } #endif /// The nper property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Nper { get; set; } + public UntypedNode? Nper { get; set; } #nullable restore #else - public Json Nper { get; set; } + public UntypedNode Nper { get; set; } #endif /// The pv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pv { get; set; } + public UntypedNode? Pv { get; set; } #nullable restore #else - public Json Pv { get; set; } + public UntypedNode Pv { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The startPeriod property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartPeriod { get; set; } + public UntypedNode? StartPeriod { get; set; } #nullable restore #else - public Json StartPeriod { get; set; } + public UntypedNode StartPeriod { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Type { get; set; } + public UntypedNode? Type { get; set; } #nullable restore #else - public Json Type { get; set; } + public UntypedNode Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CumIPmtPostRequestBody() { @@ -71,12 +72,12 @@ public CumIPmtPostRequestBody() /// /// 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 CumIPmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumIPmt.CumIPmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CumIPmtPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumIPmt.CumIPmtPostRequestBody(); } /// /// The deserialization information for the current model @@ -86,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "endPeriod", n => { EndPeriod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startPeriod", n => { StartPeriod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "endPeriod", n => { EndPeriod = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "nper", n => { Nper = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pv", n => { Pv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startPeriod", n => { StartPeriod = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -101,13 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("endPeriod", EndPeriod); - writer.WriteObjectValue("nper", Nper); - writer.WriteObjectValue("pv", Pv); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("startPeriod", StartPeriod); - writer.WriteObjectValue("type", Type); + writer.WriteObjectValue("endPeriod", EndPeriod); + writer.WriteObjectValue("nper", Nper); + writer.WriteObjectValue("pv", Pv); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("startPeriod", StartPeriod); + writer.WriteObjectValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.cs index 3edfb6f887..6b35018e73 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumIPmt/CumIPmtRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CumIPmt /// /// Provides operations to call the cumIPmt method. /// - public class CumIPmtRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CumIPmtRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action cumIPmt @@ -56,8 +59,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(CumIPmtPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumIPmt.CumIPmtPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CumIPmtRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cumIPmt", 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 CumIPmtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cumIPmt", rawUrl) @@ -100,11 +103,11 @@ public CumIPmtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(CumIPmtPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumIPmt.CumIPmtPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CumIPmtPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumIPmt.CumIPmtPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CumIPmtPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincPostRequestBody.cs index 3442b7cb9c..d7a1afec03 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumPrinc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CumPrincPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CumPrincPostRequestBody : 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. @@ -16,53 +17,53 @@ public class CumPrincPostRequestBody : IAdditionalDataHolder, IParsable /// The endPeriod property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EndPeriod { get; set; } + public UntypedNode? EndPeriod { get; set; } #nullable restore #else - public Json EndPeriod { get; set; } + public UntypedNode EndPeriod { get; set; } #endif /// The nper property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Nper { get; set; } + public UntypedNode? Nper { get; set; } #nullable restore #else - public Json Nper { get; set; } + public UntypedNode Nper { get; set; } #endif /// The pv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pv { get; set; } + public UntypedNode? Pv { get; set; } #nullable restore #else - public Json Pv { get; set; } + public UntypedNode Pv { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The startPeriod property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartPeriod { get; set; } + public UntypedNode? StartPeriod { get; set; } #nullable restore #else - public Json StartPeriod { get; set; } + public UntypedNode StartPeriod { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Type { get; set; } + public UntypedNode? Type { get; set; } #nullable restore #else - public Json Type { get; set; } + public UntypedNode Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CumPrincPostRequestBody() { @@ -71,12 +72,12 @@ public CumPrincPostRequestBody() /// /// 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 CumPrincPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumPrinc.CumPrincPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CumPrincPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumPrinc.CumPrincPostRequestBody(); } /// /// The deserialization information for the current model @@ -86,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "endPeriod", n => { EndPeriod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startPeriod", n => { StartPeriod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "endPeriod", n => { EndPeriod = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "nper", n => { Nper = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pv", n => { Pv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startPeriod", n => { StartPeriod = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -101,13 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("endPeriod", EndPeriod); - writer.WriteObjectValue("nper", Nper); - writer.WriteObjectValue("pv", Pv); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("startPeriod", StartPeriod); - writer.WriteObjectValue("type", Type); + writer.WriteObjectValue("endPeriod", EndPeriod); + writer.WriteObjectValue("nper", Nper); + writer.WriteObjectValue("pv", Pv); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("startPeriod", StartPeriod); + writer.WriteObjectValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.cs index 79b87c051a..fe11835a09 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/CumPrinc/CumPrincRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.CumPrinc /// /// Provides operations to call the cumPrinc method. /// - public class CumPrincRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CumPrincRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action cumPrinc @@ -56,8 +59,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(CumPrincPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumPrinc.CumPrincPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CumPrincRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cumPrinc", 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 CumPrincRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/cumPrinc", rawUrl) @@ -100,11 +103,11 @@ public CumPrincRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(CumPrincPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumPrinc.CumPrincPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CumPrincPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumPrinc.CumPrincPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CumPrincPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DatePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DatePostRequestBody.cs index 5a5e71fae6..9c1cb1ea55 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DatePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DatePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DateNamespace { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DatePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DatePostRequestBody : 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. @@ -16,29 +17,29 @@ public class DatePostRequestBody : IAdditionalDataHolder, IParsable /// The day property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Day { get; set; } + public UntypedNode? Day { get; set; } #nullable restore #else - public Json Day { get; set; } + public UntypedNode Day { get; set; } #endif /// The month property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Month { get; set; } + public UntypedNode? Month { get; set; } #nullable restore #else - public Json Month { get; set; } + public UntypedNode Month { get; set; } #endif /// The year property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Year { get; set; } + public UntypedNode? Year { get; set; } #nullable restore #else - public Json Year { get; set; } + public UntypedNode Year { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DatePostRequestBody() { @@ -47,12 +48,12 @@ public DatePostRequestBody() /// /// 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 DatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DateNamespace.DatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DatePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DateNamespace.DatePostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "day", n => { Day = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "month", n => { Month = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "year", n => { Year = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "day", n => { Day = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "month", n => { Month = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "year", n => { Year = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("day", Day); - writer.WriteObjectValue("month", Month); - writer.WriteObjectValue("year", Year); + writer.WriteObjectValue("day", Day); + writer.WriteObjectValue("month", Month); + writer.WriteObjectValue("year", Year); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DateRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DateRequestBuilder.cs index 1f0baf9287..196da5fe93 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DateRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DateNamespace/DateRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.DateNamespace /// /// Provides operations to call the date method. /// - public class DateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DateRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action date @@ -56,8 +59,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(DatePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DateNamespace.DatePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/date", 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 DateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/date", rawUrl) @@ -100,11 +103,11 @@ public DateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(DatePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DateNamespace.DatePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DatePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DateNamespace.DatePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DatePostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevaluePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevaluePostRequestBody.cs index f186adf082..11983899cb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevaluePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevaluePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Datevalue { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DatevaluePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DatevaluePostRequestBody : 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. @@ -16,13 +17,13 @@ public class DatevaluePostRequestBody : IAdditionalDataHolder, IParsable /// The dateText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DateText { get; set; } + public UntypedNode? DateText { get; set; } #nullable restore #else - public Json DateText { get; set; } + public UntypedNode DateText { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DatevaluePostRequestBody() { @@ -31,12 +32,12 @@ public DatevaluePostRequestBody() /// /// 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 DatevaluePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Datevalue.DatevaluePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DatevaluePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Datevalue.DatevaluePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "dateText", n => { DateText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "dateText", n => { DateText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dateText", DateText); + writer.WriteObjectValue("dateText", DateText); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.cs index cb121e2ef6..f88910696e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Datevalue/DatevalueRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Datevalue /// /// Provides operations to call the datevalue method. /// - public class DatevalueRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DatevalueRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action datevalue @@ -56,8 +59,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(DatevaluePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Datevalue.DatevaluePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DatevalueRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/datevalue", 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 DatevalueRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/datevalue", rawUrl) @@ -100,11 +103,11 @@ public DatevalueRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(DatevaluePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Datevalue.DatevaluePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DatevaluePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Datevalue.DatevaluePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DatevaluePostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaveragePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaveragePostRequestBody.cs index 327d641303..d23ddf5c57 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaveragePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaveragePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Daverage { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DaveragePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DaveragePostRequestBody : 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. @@ -16,29 +17,29 @@ public class DaveragePostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DaveragePostRequestBody() { @@ -47,12 +48,12 @@ public DaveragePostRequestBody() /// /// 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 DaveragePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Daverage.DaveragePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DaveragePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Daverage.DaveragePostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.cs index 33c4421f2b..e8a7eec333 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Daverage/DaverageRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Daverage /// /// Provides operations to call the daverage method. /// - public class DaverageRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DaverageRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action daverage @@ -56,8 +59,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(DaveragePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Daverage.DaveragePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DaverageRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/daverage", 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 DaverageRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/daverage", rawUrl) @@ -100,11 +103,11 @@ public DaverageRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(DaveragePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Daverage.DaveragePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DaveragePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Daverage.DaveragePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DaveragePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayPostRequestBody.cs index 1052afeace..27f06e07a3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Day { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DayPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DayPostRequestBody : 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. @@ -16,13 +17,13 @@ public class DayPostRequestBody : IAdditionalDataHolder, IParsable /// The serialNumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SerialNumber { get; set; } + public UntypedNode? SerialNumber { get; set; } #nullable restore #else - public Json SerialNumber { get; set; } + public UntypedNode SerialNumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DayPostRequestBody() { @@ -31,12 +32,12 @@ public DayPostRequestBody() /// /// 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 DayPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Day.DayPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DayPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Day.DayPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "serialNumber", n => { SerialNumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("serialNumber", SerialNumber); + writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.cs index a0b95cfd62..f87b6bbb17 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Day/DayRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Day /// /// Provides operations to call the day method. /// - public class DayRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DayRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action day @@ -56,8 +59,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(DayPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Day.DayPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DayRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/day", 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 DayRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/day", rawUrl) @@ -100,11 +103,11 @@ public DayRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(DayPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Day.DayPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DayPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Day.DayPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DayPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysPostRequestBody.cs index faf3287742..9d92b6b1f4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DaysPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DaysPostRequestBody : 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. @@ -16,21 +17,21 @@ public class DaysPostRequestBody : IAdditionalDataHolder, IParsable /// The endDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EndDate { get; set; } + public UntypedNode? EndDate { get; set; } #nullable restore #else - public Json EndDate { get; set; } + public UntypedNode EndDate { get; set; } #endif /// The startDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartDate { get; set; } + public UntypedNode? StartDate { get; set; } #nullable restore #else - public Json StartDate { get; set; } + public UntypedNode StartDate { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DaysPostRequestBody() { @@ -39,12 +40,12 @@ public DaysPostRequestBody() /// /// 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 DaysPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days.DaysPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DaysPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days.DaysPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "endDate", n => { EndDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "endDate", n => { EndDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startDate", n => { StartDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("endDate", EndDate); - writer.WriteObjectValue("startDate", StartDate); + writer.WriteObjectValue("endDate", EndDate); + writer.WriteObjectValue("startDate", StartDate); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.cs index 015c1b3e87..da6e76f591 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days/DaysRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Days /// /// Provides operations to call the days method. /// - public class DaysRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DaysRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action days @@ -56,8 +59,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(DaysPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days.DaysPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DaysRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/days", 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 DaysRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/days", rawUrl) @@ -100,11 +103,11 @@ public DaysRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(DaysPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days.DaysPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DaysPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days.DaysPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DaysPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360PostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360PostRequestBody.cs index 3b09145778..87933dfc1a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360PostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360PostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days360 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Days360PostRequestBody : IAdditionalDataHolder, IParsable + public partial class Days360PostRequestBody : 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. @@ -16,29 +17,29 @@ public class Days360PostRequestBody : IAdditionalDataHolder, IParsable /// The endDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EndDate { get; set; } + public UntypedNode? EndDate { get; set; } #nullable restore #else - public Json EndDate { get; set; } + public UntypedNode EndDate { get; set; } #endif /// The method property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Method { get; set; } + public UntypedNode? Method { get; set; } #nullable restore #else - public Json Method { get; set; } + public UntypedNode Method { get; set; } #endif /// The startDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartDate { get; set; } + public UntypedNode? StartDate { get; set; } #nullable restore #else - public Json StartDate { get; set; } + public UntypedNode StartDate { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Days360PostRequestBody() { @@ -47,12 +48,12 @@ public Days360PostRequestBody() /// /// 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 Days360PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days360.Days360PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Days360PostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days360.Days360PostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "endDate", n => { EndDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "method", n => { Method = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "endDate", n => { EndDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "method", n => { Method = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startDate", n => { StartDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("endDate", EndDate); - writer.WriteObjectValue("method", Method); - writer.WriteObjectValue("startDate", StartDate); + writer.WriteObjectValue("endDate", EndDate); + writer.WriteObjectValue("method", Method); + writer.WriteObjectValue("startDate", StartDate); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.cs index 9a50afbb5e..fe39428ea0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Days360/Days360RequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Days360 /// /// Provides operations to call the days360 method. /// - public class Days360RequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Days360RequestBuilder : BaseCliRequestBuilder { /// /// Invoke action days360 @@ -56,8 +59,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(Days360PostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days360.Days360PostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Days360RequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/days360", 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 Days360RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/days360", rawUrl) @@ -100,11 +103,11 @@ public Days360RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Days360PostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days360.Days360PostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Days360PostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days360.Days360PostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Days360PostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbPostRequestBody.cs index 3290d5a812..d051fb9b04 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Db { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DbPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DbPostRequestBody : 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. @@ -16,45 +17,45 @@ public class DbPostRequestBody : IAdditionalDataHolder, IParsable /// The cost property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cost { get; set; } + public UntypedNode? Cost { get; set; } #nullable restore #else - public Json Cost { get; set; } + public UntypedNode Cost { get; set; } #endif /// The life property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Life { get; set; } + public UntypedNode? Life { get; set; } #nullable restore #else - public Json Life { get; set; } + public UntypedNode Life { get; set; } #endif /// The month property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Month { get; set; } + public UntypedNode? Month { get; set; } #nullable restore #else - public Json Month { get; set; } + public UntypedNode Month { get; set; } #endif /// The period property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Period { get; set; } + public UntypedNode? Period { get; set; } #nullable restore #else - public Json Period { get; set; } + public UntypedNode Period { get; set; } #endif /// The salvage property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Salvage { get; set; } + public UntypedNode? Salvage { get; set; } #nullable restore #else - public Json Salvage { get; set; } + public UntypedNode Salvage { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DbPostRequestBody() { @@ -63,12 +64,12 @@ public DbPostRequestBody() /// /// 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 DbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Db.DbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DbPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Db.DbPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "life", n => { Life = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "month", n => { Month = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "period", n => { Period = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "salvage", n => { Salvage = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cost", n => { Cost = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "life", n => { Life = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "month", n => { Month = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "period", n => { Period = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "salvage", n => { Salvage = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cost", Cost); - writer.WriteObjectValue("life", Life); - writer.WriteObjectValue("month", Month); - writer.WriteObjectValue("period", Period); - writer.WriteObjectValue("salvage", Salvage); + writer.WriteObjectValue("cost", Cost); + writer.WriteObjectValue("life", Life); + writer.WriteObjectValue("month", Month); + writer.WriteObjectValue("period", Period); + writer.WriteObjectValue("salvage", Salvage); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.cs index 08eaead3a5..18afa4213b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Db/DbRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Db /// /// Provides operations to call the db method. /// - public class DbRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DbRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action db @@ -56,8 +59,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(DbPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Db.DbPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DbRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/db", 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 DbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/db", rawUrl) @@ -100,11 +103,11 @@ public DbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/it /// 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(DbPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Db.DbPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DbPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Db.DbPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DbPostRequestBody body, Actio } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsPostRequestBody.cs index c0d14f16c8..8c8bd18270 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dbcs { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DbcsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DbcsPostRequestBody : 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. @@ -16,13 +17,13 @@ public class DbcsPostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DbcsPostRequestBody() { @@ -31,12 +32,12 @@ public DbcsPostRequestBody() /// /// 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 DbcsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dbcs.DbcsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DbcsPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dbcs.DbcsPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.cs index 35f444b09f..3fe4f77223 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dbcs/DbcsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dbcs /// /// Provides operations to call the dbcs method. /// - public class DbcsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DbcsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dbcs @@ -56,8 +59,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(DbcsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dbcs.DbcsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DbcsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dbcs", 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 DbcsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dbcs", rawUrl) @@ -100,11 +103,11 @@ public DbcsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(DbcsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dbcs.DbcsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DbcsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dbcs.DbcsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DbcsPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountPostRequestBody.cs index bcd6811169..0146deee89 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dcount { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DcountPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DcountPostRequestBody : 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. @@ -16,29 +17,29 @@ public class DcountPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DcountPostRequestBody() { @@ -47,12 +48,12 @@ public DcountPostRequestBody() /// /// 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 DcountPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dcount.DcountPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DcountPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dcount.DcountPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.cs index fe924edac0..5e048a3acd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dcount/DcountRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dcount /// /// Provides operations to call the dcount method. /// - public class DcountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DcountRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dcount @@ -56,8 +59,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(DcountPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dcount.DcountPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DcountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dcount", 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 DcountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dcount", rawUrl) @@ -100,11 +103,11 @@ public DcountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(DcountPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dcount.DcountPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DcountPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dcount.DcountPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DcountPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountAPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountAPostRequestBody.cs index 554c2cccca..8d22f32474 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountAPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountAPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DcountA { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DcountAPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DcountAPostRequestBody : 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. @@ -16,29 +17,29 @@ public class DcountAPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DcountAPostRequestBody() { @@ -47,12 +48,12 @@ public DcountAPostRequestBody() /// /// 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 DcountAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DcountA.DcountAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DcountAPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DcountA.DcountAPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.cs index 412353720a..f36a5e5e20 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DcountA/DcountARequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.DcountA /// /// Provides operations to call the dcountA method. /// - public class DcountARequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DcountARequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dcountA @@ -56,8 +59,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(DcountAPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DcountA.DcountAPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DcountARequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dcountA", 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 DcountARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dcountA", rawUrl) @@ -100,11 +103,11 @@ public DcountARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(DcountAPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DcountA.DcountAPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DcountAPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DcountA.DcountAPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DcountAPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbPostRequestBody.cs index ec43b2a02f..7984e1b41c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ddb { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DdbPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DdbPostRequestBody : 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. @@ -16,45 +17,45 @@ public class DdbPostRequestBody : IAdditionalDataHolder, IParsable /// The cost property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cost { get; set; } + public UntypedNode? Cost { get; set; } #nullable restore #else - public Json Cost { get; set; } + public UntypedNode Cost { get; set; } #endif /// The factor property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Factor { get; set; } + public UntypedNode? Factor { get; set; } #nullable restore #else - public Json Factor { get; set; } + public UntypedNode Factor { get; set; } #endif /// The life property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Life { get; set; } + public UntypedNode? Life { get; set; } #nullable restore #else - public Json Life { get; set; } + public UntypedNode Life { get; set; } #endif /// The period property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Period { get; set; } + public UntypedNode? Period { get; set; } #nullable restore #else - public Json Period { get; set; } + public UntypedNode Period { get; set; } #endif /// The salvage property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Salvage { get; set; } + public UntypedNode? Salvage { get; set; } #nullable restore #else - public Json Salvage { get; set; } + public UntypedNode Salvage { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DdbPostRequestBody() { @@ -63,12 +64,12 @@ public DdbPostRequestBody() /// /// 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 DdbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ddb.DdbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DdbPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ddb.DdbPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "factor", n => { Factor = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "life", n => { Life = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "period", n => { Period = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "salvage", n => { Salvage = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cost", n => { Cost = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "factor", n => { Factor = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "life", n => { Life = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "period", n => { Period = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "salvage", n => { Salvage = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cost", Cost); - writer.WriteObjectValue("factor", Factor); - writer.WriteObjectValue("life", Life); - writer.WriteObjectValue("period", Period); - writer.WriteObjectValue("salvage", Salvage); + writer.WriteObjectValue("cost", Cost); + writer.WriteObjectValue("factor", Factor); + writer.WriteObjectValue("life", Life); + writer.WriteObjectValue("period", Period); + writer.WriteObjectValue("salvage", Salvage); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.cs index 29de26b5e6..17e7b5d5eb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ddb/DdbRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Ddb /// /// Provides operations to call the ddb method. /// - public class DdbRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DdbRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action ddb @@ -56,8 +59,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(DdbPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ddb.DdbPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DdbRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ddb", 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 DdbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ddb", rawUrl) @@ -100,11 +103,11 @@ public DdbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(DdbPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ddb.DdbPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DdbPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ddb.DdbPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DdbPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinPostRequestBody.cs index 661848b5fd..6185fbd4e2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Bin { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Dec2BinPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Dec2BinPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Dec2BinPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The places property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Places { get; set; } + public UntypedNode? Places { get; set; } #nullable restore #else - public Json Places { get; set; } + public UntypedNode Places { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Dec2BinPostRequestBody() { @@ -39,12 +40,12 @@ public Dec2BinPostRequestBody() /// /// 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 Dec2BinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Bin.Dec2BinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Dec2BinPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Bin.Dec2BinPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "places", n => { Places = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("places", Places); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("places", Places); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.cs index 9ddfe5ef44..99d59c39e5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Bin/Dec2BinRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dec2Bin /// /// Provides operations to call the dec2Bin method. /// - public class Dec2BinRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Dec2BinRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dec2Bin @@ -56,8 +59,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(Dec2BinPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Bin.Dec2BinPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Dec2BinRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dec2Bin", 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 Dec2BinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dec2Bin", rawUrl) @@ -100,11 +103,11 @@ public Dec2BinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Dec2BinPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Bin.Dec2BinPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Dec2BinPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Bin.Dec2BinPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Dec2BinPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexPostRequestBody.cs index 221bb3968d..a59e773bdc 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Hex { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Dec2HexPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Dec2HexPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Dec2HexPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The places property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Places { get; set; } + public UntypedNode? Places { get; set; } #nullable restore #else - public Json Places { get; set; } + public UntypedNode Places { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Dec2HexPostRequestBody() { @@ -39,12 +40,12 @@ public Dec2HexPostRequestBody() /// /// 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 Dec2HexPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Hex.Dec2HexPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Dec2HexPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Hex.Dec2HexPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "places", n => { Places = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("places", Places); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("places", Places); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.cs index 9c8aa081a1..cf1de7037e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Hex/Dec2HexRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dec2Hex /// /// Provides operations to call the dec2Hex method. /// - public class Dec2HexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Dec2HexRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dec2Hex @@ -56,8 +59,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(Dec2HexPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Hex.Dec2HexPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Dec2HexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dec2Hex", 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 Dec2HexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dec2Hex", rawUrl) @@ -100,11 +103,11 @@ public Dec2HexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Dec2HexPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Hex.Dec2HexPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Dec2HexPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Hex.Dec2HexPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Dec2HexPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctPostRequestBody.cs index 7624003f2e..11cd59caf3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Oct { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Dec2OctPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Dec2OctPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Dec2OctPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The places property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Places { get; set; } + public UntypedNode? Places { get; set; } #nullable restore #else - public Json Places { get; set; } + public UntypedNode Places { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Dec2OctPostRequestBody() { @@ -39,12 +40,12 @@ public Dec2OctPostRequestBody() /// /// 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 Dec2OctPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Oct.Dec2OctPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Dec2OctPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Oct.Dec2OctPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "places", n => { Places = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("places", Places); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("places", Places); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.cs index 20215fd62c..4054fda9b5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dec2Oct/Dec2OctRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dec2Oct /// /// Provides operations to call the dec2Oct method. /// - public class Dec2OctRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Dec2OctRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dec2Oct @@ -56,8 +59,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(Dec2OctPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Oct.Dec2OctPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Dec2OctRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dec2Oct", 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 Dec2OctRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dec2Oct", rawUrl) @@ -100,11 +103,11 @@ public Dec2OctRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Dec2OctPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Oct.Dec2OctPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Dec2OctPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Oct.Dec2OctPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Dec2OctPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalPostRequestBody.cs index 4258a5e65c..771788ade2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DecimalNamespace { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DecimalPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DecimalPostRequestBody : 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. @@ -16,21 +17,21 @@ public class DecimalPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The radix property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Radix { get; set; } + public UntypedNode? Radix { get; set; } #nullable restore #else - public Json Radix { get; set; } + public UntypedNode Radix { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DecimalPostRequestBody() { @@ -39,12 +40,12 @@ public DecimalPostRequestBody() /// /// 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 DecimalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DecimalNamespace.DecimalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DecimalPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DecimalNamespace.DecimalPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "radix", n => { Radix = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "radix", n => { Radix = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("radix", Radix); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("radix", Radix); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalRequestBuilder.cs index 15c7f111e8..ece619bf87 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DecimalNamespace/DecimalRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.DecimalNamespace /// /// Provides operations to call the decimal method. /// - public class DecimalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecimalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action decimal @@ -56,8 +59,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(DecimalPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DecimalNamespace.DecimalPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DecimalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/decimal", 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 DecimalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/decimal", rawUrl) @@ -100,11 +103,11 @@ public DecimalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(DecimalPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DecimalNamespace.DecimalPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DecimalPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DecimalNamespace.DecimalPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DecimalPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesPostRequestBody.cs index 3cb2bd56f9..27b9fdfc35 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Degrees { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DegreesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DegreesPostRequestBody : 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. @@ -16,13 +17,13 @@ public class DegreesPostRequestBody : IAdditionalDataHolder, IParsable /// The angle property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Angle { get; set; } + public UntypedNode? Angle { get; set; } #nullable restore #else - public Json Angle { get; set; } + public UntypedNode Angle { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DegreesPostRequestBody() { @@ -31,12 +32,12 @@ public DegreesPostRequestBody() /// /// 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 DegreesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Degrees.DegreesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DegreesPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Degrees.DegreesPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "angle", n => { Angle = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "angle", n => { Angle = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("angle", Angle); + writer.WriteObjectValue("angle", Angle); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.cs index b53958eece..3d5edddbe1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Degrees/DegreesRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Degrees /// /// Provides operations to call the degrees method. /// - public class DegreesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DegreesRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action degrees @@ -56,8 +59,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(DegreesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Degrees.DegreesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DegreesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/degrees", 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 DegreesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/degrees", rawUrl) @@ -100,11 +103,11 @@ public DegreesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(DegreesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Degrees.DegreesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DegreesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Degrees.DegreesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DegreesPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaPostRequestBody.cs index 0af8c5918b..5f6732e32c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DeltaPostRequestBody : 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. @@ -16,21 +17,21 @@ public class DeltaPostRequestBody : IAdditionalDataHolder, IParsable /// The number1 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number1 { get; set; } + public UntypedNode? Number1 { get; set; } #nullable restore #else - public Json Number1 { get; set; } + public UntypedNode Number1 { get; set; } #endif /// The number2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number2 { get; set; } + public UntypedNode? Number2 { get; set; } #nullable restore #else - public Json Number2 { get; set; } + public UntypedNode Number2 { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeltaPostRequestBody() { @@ -39,12 +40,12 @@ public DeltaPostRequestBody() /// /// 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 DeltaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Delta.DeltaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Delta.DeltaPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number1", n => { Number1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number2", n => { Number2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number1", n => { Number1 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number2", n => { Number2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number1", Number1); - writer.WriteObjectValue("number2", Number2); + writer.WriteObjectValue("number1", Number1); + writer.WriteObjectValue("number2", Number2); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.cs index e2af1fefc8..aa6ad93e25 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Delta/DeltaRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action delta @@ -56,8 +59,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(DeltaPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Delta.DeltaPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/delta", 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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/delta", rawUrl) @@ -100,11 +103,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(DeltaPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Delta.DeltaPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeltaPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Delta.DeltaPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DeltaPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqPostRequestBody.cs index 9dc474f8e9..49a3cd4e47 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DevSq { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DevSqPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DevSqPostRequestBody : 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. @@ -16,13 +17,13 @@ public class DevSqPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DevSqPostRequestBody() { @@ -31,12 +32,12 @@ public DevSqPostRequestBody() /// /// 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 DevSqPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DevSq.DevSqPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DevSqPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DevSq.DevSqPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.cs index f634b1a23f..9a983b0ba0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DevSq/DevSqRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.DevSq /// /// Provides operations to call the devSq method. /// - public class DevSqRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DevSqRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action devSq @@ -56,8 +59,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(DevSqPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DevSq.DevSqPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DevSqRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/devSq", 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 DevSqRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/devSq", rawUrl) @@ -100,11 +103,11 @@ public DevSqRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(DevSqPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DevSq.DevSqPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DevSqPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DevSq.DevSqPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DevSqPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetPostRequestBody.cs index a168a2068b..47f0ac89ef 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dget { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DgetPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DgetPostRequestBody : 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. @@ -16,29 +17,29 @@ public class DgetPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DgetPostRequestBody() { @@ -47,12 +48,12 @@ public DgetPostRequestBody() /// /// 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 DgetPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dget.DgetPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DgetPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dget.DgetPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.cs index b2c85f01fd..ce34e486b8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dget/DgetRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dget /// /// Provides operations to call the dget method. /// - public class DgetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DgetRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dget @@ -56,8 +59,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(DgetPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dget.DgetPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DgetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dget", 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 DgetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dget", rawUrl) @@ -100,11 +103,11 @@ public DgetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(DgetPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dget.DgetPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DgetPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dget.DgetPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DgetPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscPostRequestBody.cs index c417c70bed..0c8010bbc2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Disc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DiscPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DiscPostRequestBody : 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. @@ -16,45 +17,45 @@ public class DiscPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The pr property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pr { get; set; } + public UntypedNode? Pr { get; set; } #nullable restore #else - public Json Pr { get; set; } + public UntypedNode Pr { get; set; } #endif /// The redemption property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Redemption { get; set; } + public UntypedNode? Redemption { get; set; } #nullable restore #else - public Json Redemption { get; set; } + public UntypedNode Redemption { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DiscPostRequestBody() { @@ -63,12 +64,12 @@ public DiscPostRequestBody() /// /// 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 DiscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Disc.DiscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DiscPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Disc.DiscPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pr", n => { Pr = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "redemption", n => { Redemption = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pr", n => { Pr = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "redemption", n => { Redemption = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("pr", Pr); - writer.WriteObjectValue("redemption", Redemption); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("pr", Pr); + writer.WriteObjectValue("redemption", Redemption); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.cs index 51473fe136..b851657883 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Disc/DiscRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Disc /// /// Provides operations to call the disc method. /// - public class DiscRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DiscRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action disc @@ -56,8 +59,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(DiscPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Disc.DiscPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DiscRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/disc", 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 DiscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/disc", rawUrl) @@ -100,11 +103,11 @@ public DiscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(DiscPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Disc.DiscPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DiscPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Disc.DiscPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DiscPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxPostRequestBody.cs index b5432fb8e6..a1bf9bc310 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmax { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DmaxPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DmaxPostRequestBody : 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. @@ -16,29 +17,29 @@ public class DmaxPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DmaxPostRequestBody() { @@ -47,12 +48,12 @@ public DmaxPostRequestBody() /// /// 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 DmaxPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmax.DmaxPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DmaxPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmax.DmaxPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.cs index 263fe856f5..7111c18fc5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmax/DmaxRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dmax /// /// Provides operations to call the dmax method. /// - public class DmaxRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DmaxRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dmax @@ -56,8 +59,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(DmaxPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmax.DmaxPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DmaxRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dmax", 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 DmaxRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dmax", rawUrl) @@ -100,11 +103,11 @@ public DmaxRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(DmaxPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmax.DmaxPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DmaxPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmax.DmaxPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DmaxPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminPostRequestBody.cs index 6e0335fe1c..3072057124 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmin { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DminPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DminPostRequestBody : 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. @@ -16,29 +17,29 @@ public class DminPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DminPostRequestBody() { @@ -47,12 +48,12 @@ public DminPostRequestBody() /// /// 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 DminPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmin.DminPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DminPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmin.DminPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.cs index 629500bbcb..9fc62c86c2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dmin/DminRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dmin /// /// Provides operations to call the dmin method. /// - public class DminRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DminRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dmin @@ -56,8 +59,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(DminPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmin.DminPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DminRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dmin", 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 DminRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dmin", rawUrl) @@ -100,11 +103,11 @@ public DminRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(DminPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmin.DminPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DminPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmin.DminPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DminPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarPostRequestBody.cs index d83408bfe9..0e1413b1f6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dollar { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DollarPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DollarPostRequestBody : 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. @@ -16,21 +17,21 @@ public class DollarPostRequestBody : IAdditionalDataHolder, IParsable /// The decimals property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Decimals { get; set; } + public UntypedNode? Decimals { get; set; } #nullable restore #else - public Json Decimals { get; set; } + public UntypedNode Decimals { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DollarPostRequestBody() { @@ -39,12 +40,12 @@ public DollarPostRequestBody() /// /// 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 DollarPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dollar.DollarPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DollarPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dollar.DollarPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "decimals", n => { Decimals = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "decimals", n => { Decimals = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("decimals", Decimals); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("decimals", Decimals); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.cs index e8433dfba9..a389b70b9d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dollar/DollarRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dollar /// /// Provides operations to call the dollar method. /// - public class DollarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DollarRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dollar @@ -56,8 +59,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(DollarPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dollar.DollarPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DollarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dollar", 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 DollarRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dollar", rawUrl) @@ -100,11 +103,11 @@ public DollarRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(DollarPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dollar.DollarPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DollarPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dollar.DollarPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DollarPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDePostRequestBody.cs index b74540e50f..22ab356b50 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarDe { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DollarDePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DollarDePostRequestBody : 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. @@ -16,21 +17,21 @@ public class DollarDePostRequestBody : IAdditionalDataHolder, IParsable /// The fraction property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Fraction { get; set; } + public UntypedNode? Fraction { get; set; } #nullable restore #else - public Json Fraction { get; set; } + public UntypedNode Fraction { get; set; } #endif /// The fractionalDollar property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FractionalDollar { get; set; } + public UntypedNode? FractionalDollar { get; set; } #nullable restore #else - public Json FractionalDollar { get; set; } + public UntypedNode FractionalDollar { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DollarDePostRequestBody() { @@ -39,12 +40,12 @@ public DollarDePostRequestBody() /// /// 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 DollarDePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarDe.DollarDePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DollarDePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarDe.DollarDePostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fraction", n => { Fraction = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "fractionalDollar", n => { FractionalDollar = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "fraction", n => { Fraction = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "fractionalDollar", n => { FractionalDollar = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fraction", Fraction); - writer.WriteObjectValue("fractionalDollar", FractionalDollar); + writer.WriteObjectValue("fraction", Fraction); + writer.WriteObjectValue("fractionalDollar", FractionalDollar); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.cs index c3c32c372b..599b0f22b5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarDe/DollarDeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.DollarDe /// /// Provides operations to call the dollarDe method. /// - public class DollarDeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DollarDeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dollarDe @@ -56,8 +59,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(DollarDePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarDe.DollarDePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DollarDeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dollarDe", 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 DollarDeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dollarDe", rawUrl) @@ -100,11 +103,11 @@ public DollarDeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(DollarDePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarDe.DollarDePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DollarDePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarDe.DollarDePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DollarDePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrPostRequestBody.cs index 03dd7130af..44b68c239f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarFr { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DollarFrPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DollarFrPostRequestBody : 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. @@ -16,21 +17,21 @@ public class DollarFrPostRequestBody : IAdditionalDataHolder, IParsable /// The decimalDollar property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DecimalDollar { get; set; } + public UntypedNode? DecimalDollar { get; set; } #nullable restore #else - public Json DecimalDollar { get; set; } + public UntypedNode DecimalDollar { get; set; } #endif /// The fraction property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Fraction { get; set; } + public UntypedNode? Fraction { get; set; } #nullable restore #else - public Json Fraction { get; set; } + public UntypedNode Fraction { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DollarFrPostRequestBody() { @@ -39,12 +40,12 @@ public DollarFrPostRequestBody() /// /// 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 DollarFrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarFr.DollarFrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DollarFrPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarFr.DollarFrPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "decimalDollar", n => { DecimalDollar = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "fraction", n => { Fraction = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "decimalDollar", n => { DecimalDollar = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "fraction", n => { Fraction = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("decimalDollar", DecimalDollar); - writer.WriteObjectValue("fraction", Fraction); + writer.WriteObjectValue("decimalDollar", DecimalDollar); + writer.WriteObjectValue("fraction", Fraction); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.cs index 3bfe8a794c..1f337e07d4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DollarFr/DollarFrRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.DollarFr /// /// Provides operations to call the dollarFr method. /// - public class DollarFrRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DollarFrRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dollarFr @@ -56,8 +59,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(DollarFrPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarFr.DollarFrPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DollarFrRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dollarFr", 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 DollarFrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dollarFr", rawUrl) @@ -100,11 +103,11 @@ public DollarFrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(DollarFrPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarFr.DollarFrPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DollarFrPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarFr.DollarFrPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DollarFrPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductPostRequestBody.cs index 2b19efd8f8..8c85700979 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dproduct { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DproductPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DproductPostRequestBody : 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. @@ -16,29 +17,29 @@ public class DproductPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DproductPostRequestBody() { @@ -47,12 +48,12 @@ public DproductPostRequestBody() /// /// 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 DproductPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dproduct.DproductPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DproductPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dproduct.DproductPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.cs index dd78b1216d..f200d894cc 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dproduct/DproductRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dproduct /// /// Provides operations to call the dproduct method. /// - public class DproductRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DproductRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dproduct @@ -56,8 +59,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(DproductPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dproduct.DproductPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DproductRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dproduct", 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 DproductRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dproduct", rawUrl) @@ -100,11 +103,11 @@ public DproductRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(DproductPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dproduct.DproductPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DproductPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dproduct.DproductPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DproductPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevPostRequestBody.cs index 1a17d1fea2..f1d041080b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDev { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DstDevPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DstDevPostRequestBody : 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. @@ -16,29 +17,29 @@ public class DstDevPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DstDevPostRequestBody() { @@ -47,12 +48,12 @@ public DstDevPostRequestBody() /// /// 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 DstDevPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDev.DstDevPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DstDevPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDev.DstDevPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.cs index ace8c3fb6f..fd8a24c7b0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDev/DstDevRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.DstDev /// /// Provides operations to call the dstDev method. /// - public class DstDevRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DstDevRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dstDev @@ -56,8 +59,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(DstDevPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDev.DstDevPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DstDevRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dstDev", 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 DstDevRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dstDev", rawUrl) @@ -100,11 +103,11 @@ public DstDevRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(DstDevPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDev.DstDevPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DstDevPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDev.DstDevPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DstDevPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPPostRequestBody.cs index 90910afdaf..7da818a727 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDevP { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DstDevPPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DstDevPPostRequestBody : 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. @@ -16,29 +17,29 @@ public class DstDevPPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DstDevPPostRequestBody() { @@ -47,12 +48,12 @@ public DstDevPPostRequestBody() /// /// 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 DstDevPPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDevP.DstDevPPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DstDevPPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDevP.DstDevPPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.cs index 5af0cd46d3..e923403540 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DstDevP/DstDevPRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.DstDevP /// /// Provides operations to call the dstDevP method. /// - public class DstDevPRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DstDevPRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dstDevP @@ -56,8 +59,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(DstDevPPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDevP.DstDevPPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DstDevPRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dstDevP", 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 DstDevPRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dstDevP", rawUrl) @@ -100,11 +103,11 @@ public DstDevPRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(DstDevPPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDevP.DstDevPPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DstDevPPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDevP.DstDevPPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DstDevPPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumPostRequestBody.cs index f1f616a26b..4bbb3719af 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dsum { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DsumPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DsumPostRequestBody : 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. @@ -16,29 +17,29 @@ public class DsumPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DsumPostRequestBody() { @@ -47,12 +48,12 @@ public DsumPostRequestBody() /// /// 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 DsumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dsum.DsumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DsumPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dsum.DsumPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.cs index e44284400f..145650e9a5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dsum/DsumRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dsum /// /// Provides operations to call the dsum method. /// - public class DsumRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DsumRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dsum @@ -56,8 +59,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(DsumPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dsum.DsumPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DsumRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dsum", 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 DsumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dsum", rawUrl) @@ -100,11 +103,11 @@ public DsumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(DsumPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dsum.DsumPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DsumPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dsum.DsumPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DsumPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationPostRequestBody.cs index 5d65001a89..819442c44b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Duration { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DurationPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DurationPostRequestBody : 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. @@ -16,53 +17,53 @@ public class DurationPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The coupon property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Coupon { get; set; } + public UntypedNode? Coupon { get; set; } #nullable restore #else - public Json Coupon { get; set; } + public UntypedNode Coupon { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// The yld property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Yld { get; set; } + public UntypedNode? Yld { get; set; } #nullable restore #else - public Json Yld { get; set; } + public UntypedNode Yld { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DurationPostRequestBody() { @@ -71,12 +72,12 @@ public DurationPostRequestBody() /// /// 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 DurationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Duration.DurationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DurationPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Duration.DurationPostRequestBody(); } /// /// The deserialization information for the current model @@ -86,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "coupon", n => { Coupon = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "yld", n => { Yld = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "coupon", n => { Coupon = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "yld", n => { Yld = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -101,13 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("coupon", Coupon); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("settlement", Settlement); - writer.WriteObjectValue("yld", Yld); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("coupon", Coupon); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("yld", Yld); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.cs index febb80efae..8d5407be14 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Duration/DurationRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Duration /// /// Provides operations to call the duration method. /// - public class DurationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DurationRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action duration @@ -56,8 +59,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(DurationPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Duration.DurationPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DurationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/duration", 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 DurationRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/duration", rawUrl) @@ -100,11 +103,11 @@ public DurationRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(DurationPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Duration.DurationPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DurationPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Duration.DurationPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DurationPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarPostRequestBody.cs index c8910bccde..23337a6e6b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dvar { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DvarPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DvarPostRequestBody : 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. @@ -16,29 +17,29 @@ public class DvarPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DvarPostRequestBody() { @@ -47,12 +48,12 @@ public DvarPostRequestBody() /// /// 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 DvarPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dvar.DvarPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DvarPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dvar.DvarPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.cs index a0b70cd79a..1af0b40e20 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Dvar/DvarRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Dvar /// /// Provides operations to call the dvar method. /// - public class DvarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DvarRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dvar @@ -56,8 +59,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(DvarPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dvar.DvarPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DvarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dvar", 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 DvarRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dvar", rawUrl) @@ -100,11 +103,11 @@ public DvarRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(DvarPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dvar.DvarPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DvarPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dvar.DvarPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DvarPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPPostRequestBody.cs index e3cd450c13..267022605e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DvarP { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DvarPPostRequestBody : IAdditionalDataHolder, IParsable + public partial class DvarPPostRequestBody : 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. @@ -16,29 +17,29 @@ public class DvarPPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The database property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Database { get; set; } + public UntypedNode? Database { get; set; } #nullable restore #else - public Json Database { get; set; } + public UntypedNode Database { get; set; } #endif /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Field { get; set; } + public UntypedNode? Field { get; set; } #nullable restore #else - public Json Field { get; set; } + public UntypedNode Field { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DvarPPostRequestBody() { @@ -47,12 +48,12 @@ public DvarPPostRequestBody() /// /// 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 DvarPPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DvarP.DvarPPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DvarPPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DvarP.DvarPPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "database", n => { Database = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "field", n => { Field = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "database", n => { Database = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "field", n => { Field = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("database", Database); - writer.WriteObjectValue("field", Field); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("database", Database); + writer.WriteObjectValue("field", Field); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.cs index e4eee850a3..72525aabc6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/DvarP/DvarPRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.DvarP /// /// Provides operations to call the dvarP method. /// - public class DvarPRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DvarPRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action dvarP @@ -56,8 +59,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(DvarPPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DvarP.DvarPPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 DvarPRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dvarP", 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 DvarPRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/dvarP", rawUrl) @@ -100,11 +103,11 @@ public DvarPRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(DvarPPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DvarP.DvarPPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DvarPPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DvarP.DvarPPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(DvarPPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingPostRequestBody.cs index f9b2ff4e25..6474efdad2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ecma_Ceiling { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Ecma_CeilingPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Ecma_CeilingPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Ecma_CeilingPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The significance property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Significance { get; set; } + public UntypedNode? Significance { get; set; } #nullable restore #else - public Json Significance { get; set; } + public UntypedNode Significance { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Ecma_CeilingPostRequestBody() { @@ -39,12 +40,12 @@ public Ecma_CeilingPostRequestBody() /// /// 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 Ecma_CeilingPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ecma_Ceiling.Ecma_CeilingPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Ecma_CeilingPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ecma_Ceiling.Ecma_CeilingPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "significance", n => { Significance = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("significance", Significance); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("significance", Significance); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.cs index 544f3a5bf8..397124b9d1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ecma_Ceiling/Ecma_CeilingRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Ecma_Ceiling /// /// Provides operations to call the ecma_Ceiling method. /// - public class Ecma_CeilingRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Ecma_CeilingRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action ecma_Ceiling @@ -56,8 +59,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(Ecma_CeilingPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ecma_Ceiling.Ecma_CeilingPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Ecma_CeilingRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ecma_Ceiling", 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 Ecma_CeilingRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ecma_Ceiling", rawUrl) @@ -100,11 +103,11 @@ public Ecma_CeilingRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(Ecma_CeilingPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ecma_Ceiling.Ecma_CeilingPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Ecma_CeilingPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ecma_Ceiling.Ecma_CeilingPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Ecma_CeilingPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdatePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdatePostRequestBody.cs index d39ec0602b..d102e53be8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdatePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdatePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Edate { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class EdatePostRequestBody : IAdditionalDataHolder, IParsable + public partial class EdatePostRequestBody : 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. @@ -16,21 +17,21 @@ public class EdatePostRequestBody : IAdditionalDataHolder, IParsable /// The months property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Months { get; set; } + public UntypedNode? Months { get; set; } #nullable restore #else - public Json Months { get; set; } + public UntypedNode Months { get; set; } #endif /// The startDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartDate { get; set; } + public UntypedNode? StartDate { get; set; } #nullable restore #else - public Json StartDate { get; set; } + public UntypedNode StartDate { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EdatePostRequestBody() { @@ -39,12 +40,12 @@ public EdatePostRequestBody() /// /// 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 EdatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Edate.EdatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EdatePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Edate.EdatePostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "months", n => { Months = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "months", n => { Months = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startDate", n => { StartDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("months", Months); - writer.WriteObjectValue("startDate", StartDate); + writer.WriteObjectValue("months", Months); + writer.WriteObjectValue("startDate", StartDate); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.cs index a6061d9094..1dbd6c7771 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Edate/EdateRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Edate /// /// Provides operations to call the edate method. /// - public class EdateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EdateRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action edate @@ -56,8 +59,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(EdatePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Edate.EdatePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 EdateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/edate", 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 EdateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/edate", rawUrl) @@ -100,11 +103,11 @@ public EdateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(EdatePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Edate.EdatePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EdatePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Edate.EdatePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(EdatePostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectPostRequestBody.cs index 7c0cc564e7..b4e0b95712 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Effect { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class EffectPostRequestBody : IAdditionalDataHolder, IParsable + public partial class EffectPostRequestBody : 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. @@ -16,21 +17,21 @@ public class EffectPostRequestBody : IAdditionalDataHolder, IParsable /// The nominalRate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NominalRate { get; set; } + public UntypedNode? NominalRate { get; set; } #nullable restore #else - public Json NominalRate { get; set; } + public UntypedNode NominalRate { get; set; } #endif /// The npery property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Npery { get; set; } + public UntypedNode? Npery { get; set; } #nullable restore #else - public Json Npery { get; set; } + public UntypedNode Npery { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EffectPostRequestBody() { @@ -39,12 +40,12 @@ public EffectPostRequestBody() /// /// 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 EffectPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Effect.EffectPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EffectPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Effect.EffectPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "nominalRate", n => { NominalRate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "npery", n => { Npery = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "nominalRate", n => { NominalRate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "npery", n => { Npery = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("nominalRate", NominalRate); - writer.WriteObjectValue("npery", Npery); + writer.WriteObjectValue("nominalRate", NominalRate); + writer.WriteObjectValue("npery", Npery); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.cs index bb74fc694b..35abef7281 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Effect/EffectRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Effect /// /// Provides operations to call the effect method. /// - public class EffectRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EffectRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action effect @@ -56,8 +59,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(EffectPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Effect.EffectPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 EffectRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/effect", 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 EffectRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/effect", rawUrl) @@ -100,11 +103,11 @@ public EffectRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(EffectPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Effect.EffectPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EffectPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Effect.EffectPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(EffectPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthPostRequestBody.cs index 7fae8d06dc..76f49a952f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.EoMonth { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class EoMonthPostRequestBody : IAdditionalDataHolder, IParsable + public partial class EoMonthPostRequestBody : 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. @@ -16,21 +17,21 @@ public class EoMonthPostRequestBody : IAdditionalDataHolder, IParsable /// The months property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Months { get; set; } + public UntypedNode? Months { get; set; } #nullable restore #else - public Json Months { get; set; } + public UntypedNode Months { get; set; } #endif /// The startDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartDate { get; set; } + public UntypedNode? StartDate { get; set; } #nullable restore #else - public Json StartDate { get; set; } + public UntypedNode StartDate { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EoMonthPostRequestBody() { @@ -39,12 +40,12 @@ public EoMonthPostRequestBody() /// /// 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 EoMonthPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.EoMonth.EoMonthPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EoMonthPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.EoMonth.EoMonthPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "months", n => { Months = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "months", n => { Months = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startDate", n => { StartDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("months", Months); - writer.WriteObjectValue("startDate", StartDate); + writer.WriteObjectValue("months", Months); + writer.WriteObjectValue("startDate", StartDate); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.cs index fb366274a9..aae99c7fe2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/EoMonth/EoMonthRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.EoMonth /// /// Provides operations to call the eoMonth method. /// - public class EoMonthRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EoMonthRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action eoMonth @@ -56,8 +59,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(EoMonthPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.EoMonth.EoMonthPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 EoMonthRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/eoMonth", 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 EoMonthRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/eoMonth", rawUrl) @@ -100,11 +103,11 @@ public EoMonthRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(EoMonthPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.EoMonth.EoMonthPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EoMonthPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.EoMonth.EoMonthPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(EoMonthPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfPostRequestBody.cs index 05efaf9cfe..43d9e31d4d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ErfPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ErfPostRequestBody : 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. @@ -16,21 +17,21 @@ public class ErfPostRequestBody : IAdditionalDataHolder, IParsable /// The lowerLimit property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? LowerLimit { get; set; } + public UntypedNode? LowerLimit { get; set; } #nullable restore #else - public Json LowerLimit { get; set; } + public UntypedNode LowerLimit { get; set; } #endif /// The upperLimit property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? UpperLimit { get; set; } + public UntypedNode? UpperLimit { get; set; } #nullable restore #else - public Json UpperLimit { get; set; } + public UntypedNode UpperLimit { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ErfPostRequestBody() { @@ -39,12 +40,12 @@ public ErfPostRequestBody() /// /// 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 ErfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf.ErfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ErfPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf.ErfPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "lowerLimit", n => { LowerLimit = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "upperLimit", n => { UpperLimit = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "lowerLimit", n => { LowerLimit = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "upperLimit", n => { UpperLimit = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("lowerLimit", LowerLimit); - writer.WriteObjectValue("upperLimit", UpperLimit); + writer.WriteObjectValue("lowerLimit", LowerLimit); + writer.WriteObjectValue("upperLimit", UpperLimit); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.cs index 3c25eae5b6..f87a7b363f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf/ErfRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Erf /// /// Provides operations to call the erf method. /// - public class ErfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ErfRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action erf @@ -56,8 +59,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(ErfPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf.ErfPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ErfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/erf", 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 ErfRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/erf", rawUrl) @@ -100,11 +103,11 @@ public ErfRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(ErfPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf.ErfPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ErfPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf.ErfPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ErfPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCPostRequestBody.cs index fbca6045fd..32c7861e0d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ErfCPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ErfCPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ErfCPostRequestBody : IAdditionalDataHolder, IParsable /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ErfCPostRequestBody() { @@ -31,12 +32,12 @@ public ErfCPostRequestBody() /// /// 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 ErfCPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC.ErfCPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ErfCPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC.ErfCPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.cs index 5b24acb303..1cb28be731 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC/ErfCRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ErfC /// /// Provides operations to call the erfC method. /// - public class ErfCRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ErfCRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action erfC @@ -56,8 +59,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(ErfCPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC.ErfCPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ErfCRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/erfC", 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 ErfCRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/erfC", rawUrl) @@ -100,11 +103,11 @@ public ErfCRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(ErfCPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC.ErfCPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ErfCPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC.ErfCPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ErfCPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PrecisePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PrecisePostRequestBody.cs index d6f7b75f74..d64c02d186 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PrecisePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PrecisePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC_Precise { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ErfC_PrecisePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ErfC_PrecisePostRequestBody : 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. @@ -16,13 +17,13 @@ public class ErfC_PrecisePostRequestBody : IAdditionalDataHolder, IParsable /// The X property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ErfC_PrecisePostRequestBody() { @@ -31,12 +32,12 @@ public ErfC_PrecisePostRequestBody() /// /// 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 ErfC_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC_Precise.ErfC_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ErfC_PrecisePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC_Precise.ErfC_PrecisePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "X", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "X", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("X", X); + writer.WriteObjectValue("X", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.cs index c6f55dd1cf..cd1184965c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ErfC_Precise/ErfC_PreciseRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ErfC_Precise /// /// Provides operations to call the erfC_Precise method. /// - public class ErfC_PreciseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ErfC_PreciseRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action erfC_Precise @@ -56,8 +59,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(ErfC_PrecisePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC_Precise.ErfC_PrecisePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ErfC_PreciseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/erfC_Precise", 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 ErfC_PreciseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/erfC_Precise", rawUrl) @@ -100,11 +103,11 @@ public ErfC_PreciseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(ErfC_PrecisePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC_Precise.ErfC_PrecisePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ErfC_PrecisePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC_Precise.ErfC_PrecisePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ErfC_PrecisePostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PrecisePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PrecisePostRequestBody.cs index d7ea345f11..e3ad81c214 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PrecisePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PrecisePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf_Precise { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Erf_PrecisePostRequestBody : IAdditionalDataHolder, IParsable + public partial class Erf_PrecisePostRequestBody : 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. @@ -16,13 +17,13 @@ public class Erf_PrecisePostRequestBody : IAdditionalDataHolder, IParsable /// The X property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Erf_PrecisePostRequestBody() { @@ -31,12 +32,12 @@ public Erf_PrecisePostRequestBody() /// /// 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 Erf_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf_Precise.Erf_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Erf_PrecisePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf_Precise.Erf_PrecisePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "X", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "X", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("X", X); + writer.WriteObjectValue("X", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.cs index 47f790e0aa..de9227649e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Erf_Precise/Erf_PreciseRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Erf_Precise /// /// Provides operations to call the erf_Precise method. /// - public class Erf_PreciseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Erf_PreciseRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action erf_Precise @@ -56,8 +59,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(Erf_PrecisePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf_Precise.Erf_PrecisePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Erf_PreciseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/erf_Precise", 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 Erf_PreciseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/erf_Precise", rawUrl) @@ -100,11 +103,11 @@ public Erf_PreciseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(Erf_PrecisePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf_Precise.Erf_PrecisePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Erf_PrecisePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf_Precise.Erf_PrecisePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Erf_PrecisePostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypePostRequestBody.cs index 5dacaeb80d..1ddc667235 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Error_Type { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Error_TypePostRequestBody : IAdditionalDataHolder, IParsable + public partial class Error_TypePostRequestBody : 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. @@ -16,13 +17,13 @@ public class Error_TypePostRequestBody : IAdditionalDataHolder, IParsable /// The errorVal property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ErrorVal { get; set; } + public UntypedNode? ErrorVal { get; set; } #nullable restore #else - public Json ErrorVal { get; set; } + public UntypedNode ErrorVal { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Error_TypePostRequestBody() { @@ -31,12 +32,12 @@ public Error_TypePostRequestBody() /// /// 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 Error_TypePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Error_Type.Error_TypePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Error_TypePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Error_Type.Error_TypePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "errorVal", n => { ErrorVal = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "errorVal", n => { ErrorVal = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("errorVal", ErrorVal); + writer.WriteObjectValue("errorVal", ErrorVal); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.cs index 23b1c25c83..3c0dc991d3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Error_Type/Error_TypeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Error_Type /// /// Provides operations to call the error_Type method. /// - public class Error_TypeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Error_TypeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action error_Type @@ -56,8 +59,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(Error_TypePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Error_Type.Error_TypePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Error_TypeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/error_Type", 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 Error_TypeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/error_Type", rawUrl) @@ -100,11 +103,11 @@ public Error_TypeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(Error_TypePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Error_Type.Error_TypePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Error_TypePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Error_Type.Error_TypePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Error_TypePostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenPostRequestBody.cs index 4aaeaa9f00..dfd5581dea 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Even { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class EvenPostRequestBody : IAdditionalDataHolder, IParsable + public partial class EvenPostRequestBody : 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. @@ -16,13 +17,13 @@ public class EvenPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EvenPostRequestBody() { @@ -31,12 +32,12 @@ public EvenPostRequestBody() /// /// 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 EvenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Even.EvenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EvenPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Even.EvenPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.cs index b2c1b1b06d..84b559b264 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Even/EvenRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Even /// /// Provides operations to call the even method. /// - public class EvenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EvenRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action even @@ -56,8 +59,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(EvenPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Even.EvenPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 EvenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/even", 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 EvenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/even", rawUrl) @@ -100,11 +103,11 @@ public EvenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(EvenPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Even.EvenPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EvenPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Even.EvenPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(EvenPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactPostRequestBody.cs index 9a47ddb919..598e533c27 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exact { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ExactPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ExactPostRequestBody : 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. @@ -16,21 +17,21 @@ public class ExactPostRequestBody : IAdditionalDataHolder, IParsable /// The text1 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text1 { get; set; } + public UntypedNode? Text1 { get; set; } #nullable restore #else - public Json Text1 { get; set; } + public UntypedNode Text1 { get; set; } #endif /// The text2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text2 { get; set; } + public UntypedNode? Text2 { get; set; } #nullable restore #else - public Json Text2 { get; set; } + public UntypedNode Text2 { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ExactPostRequestBody() { @@ -39,12 +40,12 @@ public ExactPostRequestBody() /// /// 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 ExactPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exact.ExactPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ExactPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exact.ExactPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text1", n => { Text1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "text2", n => { Text2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text1", n => { Text1 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "text2", n => { Text2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text1", Text1); - writer.WriteObjectValue("text2", Text2); + writer.WriteObjectValue("text1", Text1); + writer.WriteObjectValue("text2", Text2); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.cs index ba250f6ff2..c952a9c694 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exact/ExactRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Exact /// /// Provides operations to call the exact method. /// - public class ExactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExactRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action exact @@ -56,8 +59,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(ExactPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exact.ExactPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ExactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/exact", 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 ExactRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/exact", rawUrl) @@ -100,11 +103,11 @@ public ExactRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ExactPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exact.ExactPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExactPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exact.ExactPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ExactPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpPostRequestBody.cs index 7838e2a36d..f44acf7dc8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exp { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ExpPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ExpPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ExpPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ExpPostRequestBody() { @@ -31,12 +32,12 @@ public ExpPostRequestBody() /// /// 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 ExpPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exp.ExpPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ExpPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exp.ExpPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.cs index 946d36c9e6..1701743b30 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Exp/ExpRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Exp /// /// Provides operations to call the exp method. /// - public class ExpRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExpRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action exp @@ -56,8 +59,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(ExpPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exp.ExpPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ExpRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/exp", 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 ExpRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/exp", rawUrl) @@ -100,11 +103,11 @@ public ExpRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(ExpPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exp.ExpPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExpPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exp.ExpPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ExpPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistPostRequestBody.cs index 05506a626a..5ffefc8bd7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Expon_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Expon_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Expon_DistPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Expon_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The lambda property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Lambda { get; set; } + public UntypedNode? Lambda { get; set; } #nullable restore #else - public Json Lambda { get; set; } + public UntypedNode Lambda { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Expon_DistPostRequestBody() { @@ -47,12 +48,12 @@ public Expon_DistPostRequestBody() /// /// 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 Expon_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Expon_Dist.Expon_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Expon_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Expon_Dist.Expon_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "lambda", n => { Lambda = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "lambda", n => { Lambda = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("lambda", Lambda); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("lambda", Lambda); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.cs index 2ba8d654f2..a3529b8d38 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Expon_Dist/Expon_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Expon_Dist /// /// Provides operations to call the expon_Dist method. /// - public class Expon_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Expon_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action expon_Dist @@ -56,8 +59,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(Expon_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Expon_Dist.Expon_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Expon_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/expon_Dist", 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 Expon_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/expon_Dist", rawUrl) @@ -100,11 +103,11 @@ public Expon_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(Expon_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Expon_Dist.Expon_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Expon_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Expon_Dist.Expon_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Expon_DistPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistPostRequestBody.cs index 2dc8952d58..bf14c214c1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class F_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class F_DistPostRequestBody : 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. @@ -16,37 +17,37 @@ public class F_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The degFreedom1 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom1 { get; set; } + public UntypedNode? DegFreedom1 { get; set; } #nullable restore #else - public Json DegFreedom1 { get; set; } + public UntypedNode DegFreedom1 { get; set; } #endif /// The degFreedom2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom2 { get; set; } + public UntypedNode? DegFreedom2 { get; set; } #nullable restore #else - public Json DegFreedom2 { get; set; } + public UntypedNode DegFreedom2 { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public F_DistPostRequestBody() { @@ -55,12 +56,12 @@ public F_DistPostRequestBody() /// /// 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 F_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist.F_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new F_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist.F_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "degFreedom1", n => { DegFreedom1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "degFreedom2", n => { DegFreedom2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "degFreedom1", n => { DegFreedom1 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "degFreedom2", n => { DegFreedom2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("degFreedom1", DegFreedom1); - writer.WriteObjectValue("degFreedom2", DegFreedom2); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("degFreedom1", DegFreedom1); + writer.WriteObjectValue("degFreedom2", DegFreedom2); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.cs index 69ecf0b282..32b109a4c1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist/F_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.F_Dist /// /// Provides operations to call the f_Dist method. /// - public class F_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class F_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action f_Dist @@ -56,8 +59,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(F_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist.F_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 F_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/f_Dist", 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 F_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/f_Dist", rawUrl) @@ -100,11 +103,11 @@ public F_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(F_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist.F_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(F_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist.F_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(F_DistPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTPostRequestBody.cs index 8a6a49e2db..b4a0ce45d4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist_RT { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class F_Dist_RTPostRequestBody : IAdditionalDataHolder, IParsable + public partial class F_Dist_RTPostRequestBody : 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. @@ -16,29 +17,29 @@ public class F_Dist_RTPostRequestBody : IAdditionalDataHolder, IParsable /// The degFreedom1 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom1 { get; set; } + public UntypedNode? DegFreedom1 { get; set; } #nullable restore #else - public Json DegFreedom1 { get; set; } + public UntypedNode DegFreedom1 { get; set; } #endif /// The degFreedom2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom2 { get; set; } + public UntypedNode? DegFreedom2 { get; set; } #nullable restore #else - public Json DegFreedom2 { get; set; } + public UntypedNode DegFreedom2 { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public F_Dist_RTPostRequestBody() { @@ -47,12 +48,12 @@ public F_Dist_RTPostRequestBody() /// /// 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 F_Dist_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist_RT.F_Dist_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new F_Dist_RTPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist_RT.F_Dist_RTPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "degFreedom1", n => { DegFreedom1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "degFreedom2", n => { DegFreedom2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "degFreedom1", n => { DegFreedom1 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "degFreedom2", n => { DegFreedom2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("degFreedom1", DegFreedom1); - writer.WriteObjectValue("degFreedom2", DegFreedom2); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("degFreedom1", DegFreedom1); + writer.WriteObjectValue("degFreedom2", DegFreedom2); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.cs index ac55ee120a..037642cd94 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Dist_RT/F_Dist_RTRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.F_Dist_RT /// /// Provides operations to call the f_Dist_RT method. /// - public class F_Dist_RTRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class F_Dist_RTRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action f_Dist_RT @@ -56,8 +59,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(F_Dist_RTPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist_RT.F_Dist_RTPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 F_Dist_RTRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/f_Dist_RT", 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 F_Dist_RTRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/f_Dist_RT", rawUrl) @@ -100,11 +103,11 @@ public F_Dist_RTRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(F_Dist_RTPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist_RT.F_Dist_RTPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(F_Dist_RTPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist_RT.F_Dist_RTPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(F_Dist_RTPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvPostRequestBody.cs index dee4d106a5..92f9dd6320 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class F_InvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class F_InvPostRequestBody : 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. @@ -16,29 +17,29 @@ public class F_InvPostRequestBody : IAdditionalDataHolder, IParsable /// The degFreedom1 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom1 { get; set; } + public UntypedNode? DegFreedom1 { get; set; } #nullable restore #else - public Json DegFreedom1 { get; set; } + public UntypedNode DegFreedom1 { get; set; } #endif /// The degFreedom2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom2 { get; set; } + public UntypedNode? DegFreedom2 { get; set; } #nullable restore #else - public Json DegFreedom2 { get; set; } + public UntypedNode DegFreedom2 { get; set; } #endif /// The probability property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Probability { get; set; } + public UntypedNode? Probability { get; set; } #nullable restore #else - public Json Probability { get; set; } + public UntypedNode Probability { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public F_InvPostRequestBody() { @@ -47,12 +48,12 @@ public F_InvPostRequestBody() /// /// 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 F_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv.F_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new F_InvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv.F_InvPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "degFreedom1", n => { DegFreedom1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "degFreedom2", n => { DegFreedom2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "degFreedom1", n => { DegFreedom1 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "degFreedom2", n => { DegFreedom2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probability", n => { Probability = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("degFreedom1", DegFreedom1); - writer.WriteObjectValue("degFreedom2", DegFreedom2); - writer.WriteObjectValue("probability", Probability); + writer.WriteObjectValue("degFreedom1", DegFreedom1); + writer.WriteObjectValue("degFreedom2", DegFreedom2); + writer.WriteObjectValue("probability", Probability); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.cs index 9077459db0..0d9b73b919 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv/F_InvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.F_Inv /// /// Provides operations to call the f_Inv method. /// - public class F_InvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class F_InvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action f_Inv @@ -56,8 +59,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(F_InvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv.F_InvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 F_InvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/f_Inv", 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 F_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/f_Inv", rawUrl) @@ -100,11 +103,11 @@ public F_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(F_InvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv.F_InvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(F_InvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv.F_InvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(F_InvPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTPostRequestBody.cs index 86fc7e0baf..36c32ad197 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv_RT { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class F_Inv_RTPostRequestBody : IAdditionalDataHolder, IParsable + public partial class F_Inv_RTPostRequestBody : 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. @@ -16,29 +17,29 @@ public class F_Inv_RTPostRequestBody : IAdditionalDataHolder, IParsable /// The degFreedom1 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom1 { get; set; } + public UntypedNode? DegFreedom1 { get; set; } #nullable restore #else - public Json DegFreedom1 { get; set; } + public UntypedNode DegFreedom1 { get; set; } #endif /// The degFreedom2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom2 { get; set; } + public UntypedNode? DegFreedom2 { get; set; } #nullable restore #else - public Json DegFreedom2 { get; set; } + public UntypedNode DegFreedom2 { get; set; } #endif /// The probability property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Probability { get; set; } + public UntypedNode? Probability { get; set; } #nullable restore #else - public Json Probability { get; set; } + public UntypedNode Probability { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public F_Inv_RTPostRequestBody() { @@ -47,12 +48,12 @@ public F_Inv_RTPostRequestBody() /// /// 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 F_Inv_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv_RT.F_Inv_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new F_Inv_RTPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv_RT.F_Inv_RTPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "degFreedom1", n => { DegFreedom1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "degFreedom2", n => { DegFreedom2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "degFreedom1", n => { DegFreedom1 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "degFreedom2", n => { DegFreedom2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probability", n => { Probability = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("degFreedom1", DegFreedom1); - writer.WriteObjectValue("degFreedom2", DegFreedom2); - writer.WriteObjectValue("probability", Probability); + writer.WriteObjectValue("degFreedom1", DegFreedom1); + writer.WriteObjectValue("degFreedom2", DegFreedom2); + writer.WriteObjectValue("probability", Probability); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.cs index c11cd6105e..1c82c90811 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/F_Inv_RT/F_Inv_RTRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.F_Inv_RT /// /// Provides operations to call the f_Inv_RT method. /// - public class F_Inv_RTRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class F_Inv_RTRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action f_Inv_RT @@ -56,8 +59,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(F_Inv_RTPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv_RT.F_Inv_RTPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 F_Inv_RTRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/f_Inv_RT", 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 F_Inv_RTRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/f_Inv_RT", rawUrl) @@ -100,11 +103,11 @@ public F_Inv_RTRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(F_Inv_RTPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv_RT.F_Inv_RTPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(F_Inv_RTPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv_RT.F_Inv_RTPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(F_Inv_RTPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactPostRequestBody.cs index 233cee02af..3214bb404c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fact { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FactPostRequestBody : IAdditionalDataHolder, IParsable + public partial class FactPostRequestBody : 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. @@ -16,13 +17,13 @@ public class FactPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FactPostRequestBody() { @@ -31,12 +32,12 @@ public FactPostRequestBody() /// /// 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 FactPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fact.FactPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FactPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fact.FactPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.cs index cc94f722f9..e90ebdae82 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fact/FactRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Fact /// /// Provides operations to call the fact method. /// - public class FactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FactRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action fact @@ -56,8 +59,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(FactPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fact.FactPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 FactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fact", 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 FactRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fact", rawUrl) @@ -100,11 +103,11 @@ public FactRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(FactPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fact.FactPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FactPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fact.FactPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(FactPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoublePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoublePostRequestBody.cs index 93520bed0c..7fb2764750 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoublePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoublePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FactDouble { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FactDoublePostRequestBody : IAdditionalDataHolder, IParsable + public partial class FactDoublePostRequestBody : 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. @@ -16,13 +17,13 @@ public class FactDoublePostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FactDoublePostRequestBody() { @@ -31,12 +32,12 @@ public FactDoublePostRequestBody() /// /// 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 FactDoublePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FactDouble.FactDoublePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FactDoublePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FactDouble.FactDoublePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.cs index d13792ab3a..db0944ce32 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FactDouble/FactDoubleRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.FactDouble /// /// Provides operations to call the factDouble method. /// - public class FactDoubleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FactDoubleRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action factDouble @@ -56,8 +59,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(FactDoublePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FactDouble.FactDoublePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 FactDoubleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/factDouble", 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 FactDoubleRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/factDouble", rawUrl) @@ -100,11 +103,11 @@ public FactDoubleRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(FactDoublePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FactDouble.FactDoublePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FactDoublePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FactDouble.FactDoublePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(FactDoublePostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.cs index 7d1abc95d7..0f7fff567a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/False/FalseRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.False /// /// Provides operations to call the false method. /// - public class FalseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FalseRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action false @@ -66,14 +69,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 FalseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/false", 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 FalseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/false", rawUrl) @@ -100,3 +103,4 @@ public RequestInformation ToPostRequestInformation(Action -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Find { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FindPostRequestBody : IAdditionalDataHolder, IParsable + public partial class FindPostRequestBody : 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. @@ -16,29 +17,29 @@ public class FindPostRequestBody : IAdditionalDataHolder, IParsable /// The findText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FindText { get; set; } + public UntypedNode? FindText { get; set; } #nullable restore #else - public Json FindText { get; set; } + public UntypedNode FindText { get; set; } #endif /// The startNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartNum { get; set; } + public UntypedNode? StartNum { get; set; } #nullable restore #else - public Json StartNum { get; set; } + public UntypedNode StartNum { get; set; } #endif /// The withinText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? WithinText { get; set; } + public UntypedNode? WithinText { get; set; } #nullable restore #else - public Json WithinText { get; set; } + public UntypedNode WithinText { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FindPostRequestBody() { @@ -47,12 +48,12 @@ public FindPostRequestBody() /// /// 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 FindPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Find.FindPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FindPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Find.FindPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "findText", n => { FindText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startNum", n => { StartNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "withinText", n => { WithinText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "findText", n => { FindText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startNum", n => { StartNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "withinText", n => { WithinText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("findText", FindText); - writer.WriteObjectValue("startNum", StartNum); - writer.WriteObjectValue("withinText", WithinText); + writer.WriteObjectValue("findText", FindText); + writer.WriteObjectValue("startNum", StartNum); + writer.WriteObjectValue("withinText", WithinText); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.cs index 8c8cf3529b..fbccbd9ca2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Find/FindRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Find /// /// Provides operations to call the find method. /// - public class FindRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FindRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action find @@ -56,8 +59,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(FindPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Find.FindPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 FindRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/find", 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 FindRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/find", rawUrl) @@ -100,11 +103,11 @@ public FindRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(FindPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Find.FindPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FindPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Find.FindPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(FindPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBPostRequestBody.cs index 8eb3f9dca5..e18b1cf413 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FindB { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FindBPostRequestBody : IAdditionalDataHolder, IParsable + public partial class FindBPostRequestBody : 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. @@ -16,29 +17,29 @@ public class FindBPostRequestBody : IAdditionalDataHolder, IParsable /// The findText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FindText { get; set; } + public UntypedNode? FindText { get; set; } #nullable restore #else - public Json FindText { get; set; } + public UntypedNode FindText { get; set; } #endif /// The startNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartNum { get; set; } + public UntypedNode? StartNum { get; set; } #nullable restore #else - public Json StartNum { get; set; } + public UntypedNode StartNum { get; set; } #endif /// The withinText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? WithinText { get; set; } + public UntypedNode? WithinText { get; set; } #nullable restore #else - public Json WithinText { get; set; } + public UntypedNode WithinText { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FindBPostRequestBody() { @@ -47,12 +48,12 @@ public FindBPostRequestBody() /// /// 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 FindBPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FindB.FindBPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FindBPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FindB.FindBPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "findText", n => { FindText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startNum", n => { StartNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "withinText", n => { WithinText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "findText", n => { FindText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startNum", n => { StartNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "withinText", n => { WithinText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("findText", FindText); - writer.WriteObjectValue("startNum", StartNum); - writer.WriteObjectValue("withinText", WithinText); + writer.WriteObjectValue("findText", FindText); + writer.WriteObjectValue("startNum", StartNum); + writer.WriteObjectValue("withinText", WithinText); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.cs index 14bb40c5ee..9251d1ae75 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FindB/FindBRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.FindB /// /// Provides operations to call the findB method. /// - public class FindBRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FindBRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action findB @@ -56,8 +59,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(FindBPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FindB.FindBPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 FindBRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/findB", 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 FindBRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/findB", rawUrl) @@ -100,11 +103,11 @@ public FindBRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(FindBPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FindB.FindBPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FindBPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FindB.FindBPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(FindBPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherPostRequestBody.cs index ac2ecc6683..ed7895c065 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fisher { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FisherPostRequestBody : IAdditionalDataHolder, IParsable + public partial class FisherPostRequestBody : 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. @@ -16,13 +17,13 @@ public class FisherPostRequestBody : IAdditionalDataHolder, IParsable /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FisherPostRequestBody() { @@ -31,12 +32,12 @@ public FisherPostRequestBody() /// /// 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 FisherPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fisher.FisherPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FisherPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fisher.FisherPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.cs index fa42ad1ff9..93eec75779 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fisher/FisherRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Fisher /// /// Provides operations to call the fisher method. /// - public class FisherRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FisherRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action fisher @@ -56,8 +59,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(FisherPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fisher.FisherPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 FisherRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fisher", 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 FisherRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fisher", rawUrl) @@ -100,11 +103,11 @@ public FisherRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(FisherPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fisher.FisherPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FisherPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fisher.FisherPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(FisherPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvPostRequestBody.cs index 518dd74ecd..64564d73ad 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FisherInv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FisherInvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class FisherInvPostRequestBody : 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. @@ -16,13 +17,13 @@ public class FisherInvPostRequestBody : IAdditionalDataHolder, IParsable /// The y property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Y { get; set; } + public UntypedNode? Y { get; set; } #nullable restore #else - public Json Y { get; set; } + public UntypedNode Y { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FisherInvPostRequestBody() { @@ -31,12 +32,12 @@ public FisherInvPostRequestBody() /// /// 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 FisherInvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FisherInv.FisherInvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FisherInvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FisherInv.FisherInvPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "y", n => { Y = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "y", n => { Y = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("y", Y); + writer.WriteObjectValue("y", Y); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.cs index b16ea70daf..2e319738e0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FisherInv/FisherInvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.FisherInv /// /// Provides operations to call the fisherInv method. /// - public class FisherInvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FisherInvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action fisherInv @@ -56,8 +59,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(FisherInvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FisherInv.FisherInvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 FisherInvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fisherInv", 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 FisherInvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fisherInv", rawUrl) @@ -100,11 +103,11 @@ public FisherInvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(FisherInvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FisherInv.FisherInvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FisherInvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FisherInv.FisherInvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(FisherInvPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedPostRequestBody.cs index 0bbcc2a631..c8df73e7bb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fixed { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FixedPostRequestBody : IAdditionalDataHolder, IParsable + public partial class FixedPostRequestBody : 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. @@ -16,29 +17,29 @@ public class FixedPostRequestBody : IAdditionalDataHolder, IParsable /// The decimals property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Decimals { get; set; } + public UntypedNode? Decimals { get; set; } #nullable restore #else - public Json Decimals { get; set; } + public UntypedNode Decimals { get; set; } #endif /// The noCommas property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NoCommas { get; set; } + public UntypedNode? NoCommas { get; set; } #nullable restore #else - public Json NoCommas { get; set; } + public UntypedNode NoCommas { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FixedPostRequestBody() { @@ -47,12 +48,12 @@ public FixedPostRequestBody() /// /// 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 FixedPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fixed.FixedPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FixedPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fixed.FixedPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "decimals", n => { Decimals = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "noCommas", n => { NoCommas = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "decimals", n => { Decimals = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "noCommas", n => { NoCommas = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("decimals", Decimals); - writer.WriteObjectValue("noCommas", NoCommas); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("decimals", Decimals); + writer.WriteObjectValue("noCommas", NoCommas); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.cs index 1600344066..d1a811d466 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fixed/FixedRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Fixed /// /// Provides operations to call the fixed method. /// - public class FixedRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FixedRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action fixed @@ -56,8 +59,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(FixedPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fixed.FixedPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 FixedRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fixed", 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 FixedRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fixed", rawUrl) @@ -100,11 +103,11 @@ public FixedRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(FixedPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fixed.FixedPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FixedPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fixed.FixedPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(FixedPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathPostRequestBody.cs index 1943990e4f..8e7a11b580 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Math { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Floor_MathPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Floor_MathPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Floor_MathPostRequestBody : IAdditionalDataHolder, IParsable /// The mode property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Mode { get; set; } + public UntypedNode? Mode { get; set; } #nullable restore #else - public Json Mode { get; set; } + public UntypedNode Mode { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The significance property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Significance { get; set; } + public UntypedNode? Significance { get; set; } #nullable restore #else - public Json Significance { get; set; } + public UntypedNode Significance { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Floor_MathPostRequestBody() { @@ -47,12 +48,12 @@ public Floor_MathPostRequestBody() /// /// 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 Floor_MathPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Math.Floor_MathPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Floor_MathPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Math.Floor_MathPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "mode", n => { Mode = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "mode", n => { Mode = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "significance", n => { Significance = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("mode", Mode); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("significance", Significance); + writer.WriteObjectValue("mode", Mode); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("significance", Significance); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.cs index dfa00c9882..a9858b6a72 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Math/Floor_MathRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Floor_Math /// /// Provides operations to call the floor_Math method. /// - public class Floor_MathRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Floor_MathRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action floor_Math @@ -56,8 +59,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(Floor_MathPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Math.Floor_MathPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Floor_MathRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/floor_Math", 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 Floor_MathRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/floor_Math", rawUrl) @@ -100,11 +103,11 @@ public Floor_MathRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(Floor_MathPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Math.Floor_MathPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Floor_MathPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Math.Floor_MathPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Floor_MathPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PrecisePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PrecisePostRequestBody.cs index 5e77d6dac2..a08c1e66d1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PrecisePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PrecisePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Precise { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Floor_PrecisePostRequestBody : IAdditionalDataHolder, IParsable + public partial class Floor_PrecisePostRequestBody : 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. @@ -16,21 +17,21 @@ public class Floor_PrecisePostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The significance property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Significance { get; set; } + public UntypedNode? Significance { get; set; } #nullable restore #else - public Json Significance { get; set; } + public UntypedNode Significance { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Floor_PrecisePostRequestBody() { @@ -39,12 +40,12 @@ public Floor_PrecisePostRequestBody() /// /// 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 Floor_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Precise.Floor_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Floor_PrecisePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Precise.Floor_PrecisePostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "significance", n => { Significance = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("significance", Significance); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("significance", Significance); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.cs index 1211a7bb9e..4583eaaa78 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Floor_Precise/Floor_PreciseRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Floor_Precise /// /// Provides operations to call the floor_Precise method. /// - public class Floor_PreciseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Floor_PreciseRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action floor_Precise @@ -56,8 +59,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(Floor_PrecisePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Precise.Floor_PrecisePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Floor_PreciseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/floor_Precise", 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 Floor_PreciseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/floor_Precise", rawUrl) @@ -100,11 +103,11 @@ public Floor_PreciseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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(Floor_PrecisePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Precise.Floor_PrecisePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Floor_PrecisePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Precise.Floor_PrecisePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Floor_PrecisePostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.cs index 19116072e8..50891666c6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/FunctionsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Abs; using ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrInt; using ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrIntM; @@ -367,6 +368,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Z_Test; 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; @@ -385,7 +387,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions /// /// Provides operations to manage the functions property of the microsoft.graph.workbook entity. /// - public class FunctionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FunctionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the abs method. @@ -395,7 +398,7 @@ public Command BuildAbsNavCommand() { var command = new Command("abs"); command.Description = "Provides operations to call the abs method."; - var builder = new AbsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Abs.AbsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -412,7 +415,7 @@ public Command BuildAccrIntMNavCommand() { var command = new Command("accr-int-m"); command.Description = "Provides operations to call the accrIntM method."; - var builder = new AccrIntMRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrIntM.AccrIntMRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -429,7 +432,7 @@ public Command BuildAccrIntNavCommand() { var command = new Command("accr-int"); command.Description = "Provides operations to call the accrInt method."; - var builder = new AccrIntRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AccrInt.AccrIntRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -446,7 +449,7 @@ public Command BuildAcoshNavCommand() { var command = new Command("acosh"); command.Description = "Provides operations to call the acosh method."; - var builder = new AcoshRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acosh.AcoshRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -463,7 +466,7 @@ public Command BuildAcosNavCommand() { var command = new Command("acos"); command.Description = "Provides operations to call the acos method."; - var builder = new AcosRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acos.AcosRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -480,7 +483,7 @@ public Command BuildAcothNavCommand() { var command = new Command("acoth"); command.Description = "Provides operations to call the acoth method."; - var builder = new AcothRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acoth.AcothRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -497,7 +500,7 @@ public Command BuildAcotNavCommand() { var command = new Command("acot"); command.Description = "Provides operations to call the acot method."; - var builder = new AcotRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Acot.AcotRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -514,7 +517,7 @@ public Command BuildAmorDegrcNavCommand() { var command = new Command("amor-degrc"); command.Description = "Provides operations to call the amorDegrc method."; - var builder = new AmorDegrcRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorDegrc.AmorDegrcRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -531,7 +534,7 @@ public Command BuildAmorLincNavCommand() { var command = new Command("amor-linc"); command.Description = "Provides operations to call the amorLinc method."; - var builder = new AmorLincRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AmorLinc.AmorLincRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -548,7 +551,7 @@ public Command BuildAndNavCommand() { var command = new Command("and"); command.Description = "Provides operations to call the and method."; - var builder = new AndRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.And.AndRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -565,7 +568,7 @@ public Command BuildArabicNavCommand() { var command = new Command("arabic"); command.Description = "Provides operations to call the arabic method."; - var builder = new ArabicRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Arabic.ArabicRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -582,7 +585,7 @@ public Command BuildAreasNavCommand() { var command = new Command("areas"); command.Description = "Provides operations to call the areas method."; - var builder = new AreasRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Areas.AreasRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -599,7 +602,7 @@ public Command BuildAscNavCommand() { var command = new Command("asc"); command.Description = "Provides operations to call the asc method."; - var builder = new AscRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asc.AscRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -616,7 +619,7 @@ public Command BuildAsinhNavCommand() { var command = new Command("asinh"); command.Description = "Provides operations to call the asinh method."; - var builder = new AsinhRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asinh.AsinhRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -633,7 +636,7 @@ public Command BuildAsinNavCommand() { var command = new Command("asin"); command.Description = "Provides operations to call the asin method."; - var builder = new AsinRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Asin.AsinRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -650,7 +653,7 @@ public Command BuildAtan2NavCommand() { var command = new Command("atan2"); command.Description = "Provides operations to call the atan2 method."; - var builder = new Atan2RequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan2.Atan2RequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -667,7 +670,7 @@ public Command BuildAtanhNavCommand() { var command = new Command("atanh"); command.Description = "Provides operations to call the atanh method."; - var builder = new AtanhRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atanh.AtanhRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -684,7 +687,7 @@ public Command BuildAtanNavCommand() { var command = new Command("atan"); command.Description = "Provides operations to call the atan method."; - var builder = new AtanRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Atan.AtanRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -701,7 +704,7 @@ public Command BuildAveDevNavCommand() { var command = new Command("ave-dev"); command.Description = "Provides operations to call the aveDev method."; - var builder = new AveDevRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AveDev.AveDevRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -718,7 +721,7 @@ public Command BuildAverageANavCommand() { var command = new Command("average-a"); command.Description = "Provides operations to call the averageA method."; - var builder = new AverageARequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageA.AverageARequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -735,7 +738,7 @@ public Command BuildAverageIfNavCommand() { var command = new Command("average-if"); command.Description = "Provides operations to call the averageIf method."; - var builder = new AverageIfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIf.AverageIfRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -752,7 +755,7 @@ public Command BuildAverageIfsNavCommand() { var command = new Command("average-ifs"); command.Description = "Provides operations to call the averageIfs method."; - var builder = new AverageIfsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.AverageIfs.AverageIfsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -769,7 +772,7 @@ public Command BuildAverageNavCommand() { var command = new Command("average"); command.Description = "Provides operations to call the average method."; - var builder = new AverageRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Average.AverageRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -786,7 +789,7 @@ public Command BuildBahtTextNavCommand() { var command = new Command("baht-text"); command.Description = "Provides operations to call the bahtText method."; - var builder = new BahtTextRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BahtText.BahtTextRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -803,7 +806,7 @@ public Command BuildBaseNavCommand() { var command = new Command("base"); command.Description = "Provides operations to call the base method."; - var builder = new BaseRequestBuilderEscaped(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Base.BaseRequestBuilderEscaped(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -820,7 +823,7 @@ public Command BuildBesselINavCommand() { var command = new Command("bessel-i"); command.Description = "Provides operations to call the besselI method."; - var builder = new BesselIRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselI.BesselIRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -837,7 +840,7 @@ public Command BuildBesselJNavCommand() { var command = new Command("bessel-j"); command.Description = "Provides operations to call the besselJ method."; - var builder = new BesselJRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselJ.BesselJRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -854,7 +857,7 @@ public Command BuildBesselKNavCommand() { var command = new Command("bessel-k"); command.Description = "Provides operations to call the besselK method."; - var builder = new BesselKRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselK.BesselKRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -871,7 +874,7 @@ public Command BuildBesselYNavCommand() { var command = new Command("bessel-y"); command.Description = "Provides operations to call the besselY method."; - var builder = new BesselYRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.BesselY.BesselYRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -888,7 +891,7 @@ public Command BuildBeta_DistNavCommand() { var command = new Command("beta_-dist"); command.Description = "Provides operations to call the beta_Dist method."; - var builder = new Beta_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Dist.Beta_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -905,7 +908,7 @@ public Command BuildBeta_InvNavCommand() { var command = new Command("beta_-inv"); command.Description = "Provides operations to call the beta_Inv method."; - var builder = new Beta_InvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Beta_Inv.Beta_InvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -922,7 +925,7 @@ public Command BuildBin2DecNavCommand() { var command = new Command("bin2-dec"); command.Description = "Provides operations to call the bin2Dec method."; - var builder = new Bin2DecRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Dec.Bin2DecRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -939,7 +942,7 @@ public Command BuildBin2HexNavCommand() { var command = new Command("bin2-hex"); command.Description = "Provides operations to call the bin2Hex method."; - var builder = new Bin2HexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Hex.Bin2HexRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -956,7 +959,7 @@ public Command BuildBin2OctNavCommand() { var command = new Command("bin2-oct"); command.Description = "Provides operations to call the bin2Oct method."; - var builder = new Bin2OctRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bin2Oct.Bin2OctRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -973,7 +976,7 @@ public Command BuildBinom_Dist_RangeNavCommand() { var command = new Command("binom_-dist_-range"); command.Description = "Provides operations to call the binom_Dist_Range method."; - var builder = new Binom_Dist_RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist_Range.Binom_Dist_RangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -990,7 +993,7 @@ public Command BuildBinom_DistNavCommand() { var command = new Command("binom_-dist"); command.Description = "Provides operations to call the binom_Dist method."; - var builder = new Binom_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist.Binom_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1007,7 +1010,7 @@ public Command BuildBinom_InvNavCommand() { var command = new Command("binom_-inv"); command.Description = "Provides operations to call the binom_Inv method."; - var builder = new Binom_InvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Binom_Inv.Binom_InvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1024,7 +1027,7 @@ public Command BuildBitandNavCommand() { var command = new Command("bitand"); command.Description = "Provides operations to call the bitand method."; - var builder = new BitandRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitand.BitandRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1041,7 +1044,7 @@ public Command BuildBitlshiftNavCommand() { var command = new Command("bitlshift"); command.Description = "Provides operations to call the bitlshift method."; - var builder = new BitlshiftRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitlshift.BitlshiftRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1058,7 +1061,7 @@ public Command BuildBitorNavCommand() { var command = new Command("bitor"); command.Description = "Provides operations to call the bitor method."; - var builder = new BitorRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitor.BitorRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1075,7 +1078,7 @@ public Command BuildBitrshiftNavCommand() { var command = new Command("bitrshift"); command.Description = "Provides operations to call the bitrshift method."; - var builder = new BitrshiftRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitrshift.BitrshiftRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1092,7 +1095,7 @@ public Command BuildBitxorNavCommand() { var command = new Command("bitxor"); command.Description = "Provides operations to call the bitxor method."; - var builder = new BitxorRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Bitxor.BitxorRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1109,7 +1112,7 @@ public Command BuildCeiling_MathNavCommand() { var command = new Command("ceiling_-math"); command.Description = "Provides operations to call the ceiling_Math method."; - var builder = new Ceiling_MathRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Math.Ceiling_MathRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1126,7 +1129,7 @@ public Command BuildCeiling_PreciseNavCommand() { var command = new Command("ceiling_-precise"); command.Description = "Provides operations to call the ceiling_Precise method."; - var builder = new Ceiling_PreciseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Precise.Ceiling_PreciseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1143,7 +1146,7 @@ public Command BuildCharNavCommand() { var command = new Command("char"); command.Description = "Provides operations to call the char method."; - var builder = new CharRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CharNamespace.CharRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1160,7 +1163,7 @@ public Command BuildChiSq_Dist_RTNavCommand() { var command = new Command("chi-sq_-dist_-r-t"); command.Description = "Provides operations to call the chiSq_Dist_RT method."; - var builder = new ChiSq_Dist_RTRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist_RT.ChiSq_Dist_RTRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1177,7 +1180,7 @@ public Command BuildChiSq_DistNavCommand() { var command = new Command("chi-sq_-dist"); command.Description = "Provides operations to call the chiSq_Dist method."; - var builder = new ChiSq_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist.ChiSq_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1194,7 +1197,7 @@ public Command BuildChiSq_Inv_RTNavCommand() { var command = new Command("chi-sq_-inv_-r-t"); command.Description = "Provides operations to call the chiSq_Inv_RT method."; - var builder = new ChiSq_Inv_RTRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv_RT.ChiSq_Inv_RTRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1211,7 +1214,7 @@ public Command BuildChiSq_InvNavCommand() { var command = new Command("chi-sq_-inv"); command.Description = "Provides operations to call the chiSq_Inv method."; - var builder = new ChiSq_InvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv.ChiSq_InvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1228,7 +1231,7 @@ public Command BuildChooseNavCommand() { var command = new Command("choose"); command.Description = "Provides operations to call the choose method."; - var builder = new ChooseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Choose.ChooseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1245,7 +1248,7 @@ public Command BuildCleanNavCommand() { var command = new Command("clean"); command.Description = "Provides operations to call the clean method."; - var builder = new CleanRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Clean.CleanRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1262,7 +1265,7 @@ public Command BuildCodeNavCommand() { var command = new Command("code"); command.Description = "Provides operations to call the code method."; - var builder = new CodeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Code.CodeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1279,7 +1282,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to call the columns method."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1296,7 +1299,7 @@ public Command BuildCombinaNavCommand() { var command = new Command("combina"); command.Description = "Provides operations to call the combina method."; - var builder = new CombinaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combina.CombinaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1313,7 +1316,7 @@ public Command BuildCombinNavCommand() { var command = new Command("combin"); command.Description = "Provides operations to call the combin method."; - var builder = new CombinRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Combin.CombinRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1330,7 +1333,7 @@ public Command BuildComplexNavCommand() { var command = new Command("complex"); command.Description = "Provides operations to call the complex method."; - var builder = new ComplexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Complex.ComplexRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1347,7 +1350,7 @@ public Command BuildConcatenateNavCommand() { var command = new Command("concatenate"); command.Description = "Provides operations to call the concatenate method."; - var builder = new ConcatenateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Concatenate.ConcatenateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1364,7 +1367,7 @@ public Command BuildConfidence_NormNavCommand() { var command = new Command("confidence_-norm"); command.Description = "Provides operations to call the confidence_Norm method."; - var builder = new Confidence_NormRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_Norm.Confidence_NormRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1381,7 +1384,7 @@ public Command BuildConfidence_TNavCommand() { var command = new Command("confidence_-t"); command.Description = "Provides operations to call the confidence_T method."; - var builder = new Confidence_TRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Confidence_T.Confidence_TRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1398,7 +1401,7 @@ public Command BuildConvertNavCommand() { var command = new Command("convert"); command.Description = "Provides operations to call the convert method."; - var builder = new ConvertRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ConvertNamespace.ConvertRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1415,7 +1418,7 @@ public Command BuildCoshNavCommand() { var command = new Command("cosh"); command.Description = "Provides operations to call the cosh method."; - var builder = new CoshRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cosh.CoshRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1432,7 +1435,7 @@ public Command BuildCosNavCommand() { var command = new Command("cos"); command.Description = "Provides operations to call the cos method."; - var builder = new CosRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cos.CosRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1449,7 +1452,7 @@ public Command BuildCothNavCommand() { var command = new Command("coth"); command.Description = "Provides operations to call the coth method."; - var builder = new CothRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Coth.CothRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1466,7 +1469,7 @@ public Command BuildCotNavCommand() { var command = new Command("cot"); command.Description = "Provides operations to call the cot method."; - var builder = new CotRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Cot.CotRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1483,7 +1486,7 @@ public Command BuildCountANavCommand() { var command = new Command("count-a"); command.Description = "Provides operations to call the countA method."; - var builder = new CountARequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountA.CountARequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1500,7 +1503,7 @@ public Command BuildCountBlankNavCommand() { var command = new Command("count-blank"); command.Description = "Provides operations to call the countBlank method."; - var builder = new CountBlankRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountBlank.CountBlankRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1517,7 +1520,7 @@ public Command BuildCountIfNavCommand() { var command = new Command("count-if"); command.Description = "Provides operations to call the countIf method."; - var builder = new CountIfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIf.CountIfRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1534,7 +1537,7 @@ public Command BuildCountIfsNavCommand() { var command = new Command("count-ifs"); command.Description = "Provides operations to call the countIfs method."; - var builder = new CountIfsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CountIfs.CountIfsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1551,7 +1554,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to call the count method."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1568,7 +1571,7 @@ public Command BuildCoupDayBsNavCommand() { var command = new Command("coup-day-bs"); command.Description = "Provides operations to call the coupDayBs method."; - var builder = new CoupDayBsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDayBs.CoupDayBsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1585,7 +1588,7 @@ public Command BuildCoupDaysNavCommand() { var command = new Command("coup-days"); command.Description = "Provides operations to call the coupDays method."; - var builder = new CoupDaysRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDays.CoupDaysRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1602,7 +1605,7 @@ public Command BuildCoupDaysNcNavCommand() { var command = new Command("coup-days-nc"); command.Description = "Provides operations to call the coupDaysNc method."; - var builder = new CoupDaysNcRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupDaysNc.CoupDaysNcRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1619,7 +1622,7 @@ public Command BuildCoupNcdNavCommand() { var command = new Command("coup-ncd"); command.Description = "Provides operations to call the coupNcd method."; - var builder = new CoupNcdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNcd.CoupNcdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1636,7 +1639,7 @@ public Command BuildCoupNumNavCommand() { var command = new Command("coup-num"); command.Description = "Provides operations to call the coupNum method."; - var builder = new CoupNumRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupNum.CoupNumRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1653,7 +1656,7 @@ public Command BuildCoupPcdNavCommand() { var command = new Command("coup-pcd"); command.Description = "Provides operations to call the coupPcd method."; - var builder = new CoupPcdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CoupPcd.CoupPcdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1670,7 +1673,7 @@ public Command BuildCschNavCommand() { var command = new Command("csch"); command.Description = "Provides operations to call the csch method."; - var builder = new CschRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csch.CschRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1687,7 +1690,7 @@ public Command BuildCscNavCommand() { var command = new Command("csc"); command.Description = "Provides operations to call the csc method."; - var builder = new CscRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Csc.CscRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1704,7 +1707,7 @@ public Command BuildCumIPmtNavCommand() { var command = new Command("cum-i-pmt"); command.Description = "Provides operations to call the cumIPmt method."; - var builder = new CumIPmtRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumIPmt.CumIPmtRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1721,7 +1724,7 @@ public Command BuildCumPrincNavCommand() { var command = new Command("cum-princ"); command.Description = "Provides operations to call the cumPrinc method."; - var builder = new CumPrincRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.CumPrinc.CumPrincRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1738,7 +1741,7 @@ public Command BuildDateNavCommand() { var command = new Command("date"); command.Description = "Provides operations to call the date method."; - var builder = new DateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DateNamespace.DateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1755,7 +1758,7 @@ public Command BuildDatevalueNavCommand() { var command = new Command("datevalue"); command.Description = "Provides operations to call the datevalue method."; - var builder = new DatevalueRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Datevalue.DatevalueRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1772,7 +1775,7 @@ public Command BuildDaverageNavCommand() { var command = new Command("daverage"); command.Description = "Provides operations to call the daverage method."; - var builder = new DaverageRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Daverage.DaverageRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1789,7 +1792,7 @@ public Command BuildDayNavCommand() { var command = new Command("day"); command.Description = "Provides operations to call the day method."; - var builder = new DayRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Day.DayRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1806,7 +1809,7 @@ public Command BuildDays360NavCommand() { var command = new Command("days360"); command.Description = "Provides operations to call the days360 method."; - var builder = new Days360RequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days360.Days360RequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1823,7 +1826,7 @@ public Command BuildDaysNavCommand() { var command = new Command("days"); command.Description = "Provides operations to call the days method."; - var builder = new DaysRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Days.DaysRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1840,7 +1843,7 @@ public Command BuildDbcsNavCommand() { var command = new Command("dbcs"); command.Description = "Provides operations to call the dbcs method."; - var builder = new DbcsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dbcs.DbcsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1857,7 +1860,7 @@ public Command BuildDbNavCommand() { var command = new Command("db"); command.Description = "Provides operations to call the db method."; - var builder = new DbRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Db.DbRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1874,7 +1877,7 @@ public Command BuildDcountANavCommand() { var command = new Command("dcount-a"); command.Description = "Provides operations to call the dcountA method."; - var builder = new DcountARequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DcountA.DcountARequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1891,7 +1894,7 @@ public Command BuildDcountNavCommand() { var command = new Command("dcount"); command.Description = "Provides operations to call the dcount method."; - var builder = new DcountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dcount.DcountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1908,7 +1911,7 @@ public Command BuildDdbNavCommand() { var command = new Command("ddb"); command.Description = "Provides operations to call the ddb method."; - var builder = new DdbRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ddb.DdbRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1925,7 +1928,7 @@ public Command BuildDec2BinNavCommand() { var command = new Command("dec2-bin"); command.Description = "Provides operations to call the dec2Bin method."; - var builder = new Dec2BinRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Bin.Dec2BinRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1942,7 +1945,7 @@ public Command BuildDec2HexNavCommand() { var command = new Command("dec2-hex"); command.Description = "Provides operations to call the dec2Hex method."; - var builder = new Dec2HexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Hex.Dec2HexRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1959,7 +1962,7 @@ public Command BuildDec2OctNavCommand() { var command = new Command("dec2-oct"); command.Description = "Provides operations to call the dec2Oct method."; - var builder = new Dec2OctRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dec2Oct.Dec2OctRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1976,7 +1979,7 @@ public Command BuildDecimalNavCommand() { var command = new Command("decimal"); command.Description = "Provides operations to call the decimal method."; - var builder = new DecimalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DecimalNamespace.DecimalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1993,7 +1996,7 @@ public Command BuildDegreesNavCommand() { var command = new Command("degrees"); command.Description = "Provides operations to call the degrees method."; - var builder = new DegreesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Degrees.DegreesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2051,7 +2054,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2068,7 +2071,7 @@ public Command BuildDevSqNavCommand() { var command = new Command("dev-sq"); command.Description = "Provides operations to call the devSq method."; - var builder = new DevSqRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DevSq.DevSqRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2085,7 +2088,7 @@ public Command BuildDgetNavCommand() { var command = new Command("dget"); command.Description = "Provides operations to call the dget method."; - var builder = new DgetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dget.DgetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2102,7 +2105,7 @@ public Command BuildDiscNavCommand() { var command = new Command("disc"); command.Description = "Provides operations to call the disc method."; - var builder = new DiscRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Disc.DiscRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2119,7 +2122,7 @@ public Command BuildDmaxNavCommand() { var command = new Command("dmax"); command.Description = "Provides operations to call the dmax method."; - var builder = new DmaxRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmax.DmaxRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2136,7 +2139,7 @@ public Command BuildDminNavCommand() { var command = new Command("dmin"); command.Description = "Provides operations to call the dmin method."; - var builder = new DminRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dmin.DminRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2153,7 +2156,7 @@ public Command BuildDollarDeNavCommand() { var command = new Command("dollar-de"); command.Description = "Provides operations to call the dollarDe method."; - var builder = new DollarDeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarDe.DollarDeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2170,7 +2173,7 @@ public Command BuildDollarFrNavCommand() { var command = new Command("dollar-fr"); command.Description = "Provides operations to call the dollarFr method."; - var builder = new DollarFrRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DollarFr.DollarFrRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2187,7 +2190,7 @@ public Command BuildDollarNavCommand() { var command = new Command("dollar"); command.Description = "Provides operations to call the dollar method."; - var builder = new DollarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dollar.DollarRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2204,7 +2207,7 @@ public Command BuildDproductNavCommand() { var command = new Command("dproduct"); command.Description = "Provides operations to call the dproduct method."; - var builder = new DproductRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dproduct.DproductRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2221,7 +2224,7 @@ public Command BuildDstDevNavCommand() { var command = new Command("dst-dev"); command.Description = "Provides operations to call the dstDev method."; - var builder = new DstDevRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDev.DstDevRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2238,7 +2241,7 @@ public Command BuildDstDevPNavCommand() { var command = new Command("dst-dev-p"); command.Description = "Provides operations to call the dstDevP method."; - var builder = new DstDevPRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DstDevP.DstDevPRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2255,7 +2258,7 @@ public Command BuildDsumNavCommand() { var command = new Command("dsum"); command.Description = "Provides operations to call the dsum method."; - var builder = new DsumRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dsum.DsumRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2272,7 +2275,7 @@ public Command BuildDurationNavCommand() { var command = new Command("duration"); command.Description = "Provides operations to call the duration method."; - var builder = new DurationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Duration.DurationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2289,7 +2292,7 @@ public Command BuildDvarNavCommand() { var command = new Command("dvar"); command.Description = "Provides operations to call the dvar method."; - var builder = new DvarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Dvar.DvarRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2306,7 +2309,7 @@ public Command BuildDvarPNavCommand() { var command = new Command("dvar-p"); command.Description = "Provides operations to call the dvarP method."; - var builder = new DvarPRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.DvarP.DvarPRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2323,7 +2326,7 @@ public Command BuildEcma_CeilingNavCommand() { var command = new Command("ecma_-ceiling"); command.Description = "Provides operations to call the ecma_Ceiling method."; - var builder = new Ecma_CeilingRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ecma_Ceiling.Ecma_CeilingRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2340,7 +2343,7 @@ public Command BuildEdateNavCommand() { var command = new Command("edate"); command.Description = "Provides operations to call the edate method."; - var builder = new EdateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Edate.EdateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2357,7 +2360,7 @@ public Command BuildEffectNavCommand() { var command = new Command("effect"); command.Description = "Provides operations to call the effect method."; - var builder = new EffectRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Effect.EffectRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2374,7 +2377,7 @@ public Command BuildEoMonthNavCommand() { var command = new Command("eo-month"); command.Description = "Provides operations to call the eoMonth method."; - var builder = new EoMonthRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.EoMonth.EoMonthRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2391,7 +2394,7 @@ public Command BuildErf_PreciseNavCommand() { var command = new Command("erf_-precise"); command.Description = "Provides operations to call the erf_Precise method."; - var builder = new Erf_PreciseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf_Precise.Erf_PreciseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2408,7 +2411,7 @@ public Command BuildErfC_PreciseNavCommand() { var command = new Command("erf-c_-precise"); command.Description = "Provides operations to call the erfC_Precise method."; - var builder = new ErfC_PreciseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC_Precise.ErfC_PreciseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2425,7 +2428,7 @@ public Command BuildErfCNavCommand() { var command = new Command("erf-c"); command.Description = "Provides operations to call the erfC method."; - var builder = new ErfCRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ErfC.ErfCRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2442,7 +2445,7 @@ public Command BuildErfNavCommand() { var command = new Command("erf"); command.Description = "Provides operations to call the erf method."; - var builder = new ErfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Erf.ErfRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2459,7 +2462,7 @@ public Command BuildError_TypeNavCommand() { var command = new Command("error_-type"); command.Description = "Provides operations to call the error_Type method."; - var builder = new Error_TypeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Error_Type.Error_TypeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2476,7 +2479,7 @@ public Command BuildEvenNavCommand() { var command = new Command("even"); command.Description = "Provides operations to call the even method."; - var builder = new EvenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Even.EvenRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2493,7 +2496,7 @@ public Command BuildExactNavCommand() { var command = new Command("exact"); command.Description = "Provides operations to call the exact method."; - var builder = new ExactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exact.ExactRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2510,7 +2513,7 @@ public Command BuildExpNavCommand() { var command = new Command("exp"); command.Description = "Provides operations to call the exp method."; - var builder = new ExpRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Exp.ExpRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2527,7 +2530,7 @@ public Command BuildExpon_DistNavCommand() { var command = new Command("expon_-dist"); command.Description = "Provides operations to call the expon_Dist method."; - var builder = new Expon_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Expon_Dist.Expon_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2544,7 +2547,7 @@ public Command BuildF_Dist_RTNavCommand() { var command = new Command("f_-dist_-r-t"); command.Description = "Provides operations to call the f_Dist_RT method."; - var builder = new F_Dist_RTRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist_RT.F_Dist_RTRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2561,7 +2564,7 @@ public Command BuildF_DistNavCommand() { var command = new Command("f_-dist"); command.Description = "Provides operations to call the f_Dist method."; - var builder = new F_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Dist.F_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2578,7 +2581,7 @@ public Command BuildF_Inv_RTNavCommand() { var command = new Command("f_-inv_-r-t"); command.Description = "Provides operations to call the f_Inv_RT method."; - var builder = new F_Inv_RTRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv_RT.F_Inv_RTRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2595,7 +2598,7 @@ public Command BuildF_InvNavCommand() { var command = new Command("f_-inv"); command.Description = "Provides operations to call the f_Inv method."; - var builder = new F_InvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.F_Inv.F_InvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2612,7 +2615,7 @@ public Command BuildFactDoubleNavCommand() { var command = new Command("fact-double"); command.Description = "Provides operations to call the factDouble method."; - var builder = new FactDoubleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FactDouble.FactDoubleRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2629,7 +2632,7 @@ public Command BuildFactNavCommand() { var command = new Command("fact"); command.Description = "Provides operations to call the fact method."; - var builder = new FactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fact.FactRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2646,7 +2649,7 @@ public Command BuildFalseNavCommand() { var command = new Command("false"); command.Description = "Provides operations to call the false method."; - var builder = new FalseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.False.FalseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2663,7 +2666,7 @@ public Command BuildFindBNavCommand() { var command = new Command("find-b"); command.Description = "Provides operations to call the findB method."; - var builder = new FindBRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FindB.FindBRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2680,7 +2683,7 @@ public Command BuildFindNavCommand() { var command = new Command("find"); command.Description = "Provides operations to call the find method."; - var builder = new FindRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Find.FindRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2697,7 +2700,7 @@ public Command BuildFisherInvNavCommand() { var command = new Command("fisher-inv"); command.Description = "Provides operations to call the fisherInv method."; - var builder = new FisherInvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FisherInv.FisherInvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2714,7 +2717,7 @@ public Command BuildFisherNavCommand() { var command = new Command("fisher"); command.Description = "Provides operations to call the fisher method."; - var builder = new FisherRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fisher.FisherRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2731,7 +2734,7 @@ public Command BuildFixedNavCommand() { var command = new Command("fixed"); command.Description = "Provides operations to call the fixed method."; - var builder = new FixedRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fixed.FixedRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2748,7 +2751,7 @@ public Command BuildFloor_MathNavCommand() { var command = new Command("floor_-math"); command.Description = "Provides operations to call the floor_Math method."; - var builder = new Floor_MathRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Math.Floor_MathRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2765,7 +2768,7 @@ public Command BuildFloor_PreciseNavCommand() { var command = new Command("floor_-precise"); command.Description = "Provides operations to call the floor_Precise method."; - var builder = new Floor_PreciseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Floor_Precise.Floor_PreciseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2782,7 +2785,7 @@ public Command BuildFvNavCommand() { var command = new Command("fv"); command.Description = "Provides operations to call the fv method."; - var builder = new FvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fv.FvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2799,7 +2802,7 @@ public Command BuildFvscheduleNavCommand() { var command = new Command("fvschedule"); command.Description = "Provides operations to call the fvschedule method."; - var builder = new FvscheduleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fvschedule.FvscheduleRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2816,7 +2819,7 @@ public Command BuildGamma_DistNavCommand() { var command = new Command("gamma_-dist"); command.Description = "Provides operations to call the gamma_Dist method."; - var builder = new Gamma_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Dist.Gamma_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2833,7 +2836,7 @@ public Command BuildGamma_InvNavCommand() { var command = new Command("gamma_-inv"); command.Description = "Provides operations to call the gamma_Inv method."; - var builder = new Gamma_InvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Inv.Gamma_InvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2850,7 +2853,7 @@ public Command BuildGammaLn_PreciseNavCommand() { var command = new Command("gamma-ln_-precise"); command.Description = "Provides operations to call the gammaLn_Precise method."; - var builder = new GammaLn_PreciseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn_Precise.GammaLn_PreciseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2867,7 +2870,7 @@ public Command BuildGammaLnNavCommand() { var command = new Command("gamma-ln"); command.Description = "Provides operations to call the gammaLn method."; - var builder = new GammaLnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn.GammaLnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2884,7 +2887,7 @@ public Command BuildGammaNavCommand() { var command = new Command("gamma"); command.Description = "Provides operations to call the gamma method."; - var builder = new GammaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma.GammaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2901,7 +2904,7 @@ public Command BuildGaussNavCommand() { var command = new Command("gauss"); command.Description = "Provides operations to call the gauss method."; - var builder = new GaussRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gauss.GaussRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2918,7 +2921,7 @@ public Command BuildGcdNavCommand() { var command = new Command("gcd"); command.Description = "Provides operations to call the gcd method."; - var builder = new GcdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gcd.GcdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2935,7 +2938,7 @@ public Command BuildGeoMeanNavCommand() { var command = new Command("geo-mean"); command.Description = "Provides operations to call the geoMean method."; - var builder = new GeoMeanRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeoMean.GeoMeanRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -2952,7 +2955,7 @@ public Command BuildGeStepNavCommand() { var command = new Command("ge-step"); command.Description = "Provides operations to call the geStep method."; - var builder = new GeStepRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeStep.GeStepRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3027,7 +3030,7 @@ public Command BuildHarMeanNavCommand() { var command = new Command("har-mean"); command.Description = "Provides operations to call the harMean method."; - var builder = new HarMeanRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HarMean.HarMeanRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3044,7 +3047,7 @@ public Command BuildHex2BinNavCommand() { var command = new Command("hex2-bin"); command.Description = "Provides operations to call the hex2Bin method."; - var builder = new Hex2BinRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Bin.Hex2BinRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3061,7 +3064,7 @@ public Command BuildHex2DecNavCommand() { var command = new Command("hex2-dec"); command.Description = "Provides operations to call the hex2Dec method."; - var builder = new Hex2DecRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Dec.Hex2DecRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3078,7 +3081,7 @@ public Command BuildHex2OctNavCommand() { var command = new Command("hex2-oct"); command.Description = "Provides operations to call the hex2Oct method."; - var builder = new Hex2OctRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Oct.Hex2OctRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3095,7 +3098,7 @@ public Command BuildHlookupNavCommand() { var command = new Command("hlookup"); command.Description = "Provides operations to call the hlookup method."; - var builder = new HlookupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hlookup.HlookupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3112,7 +3115,7 @@ public Command BuildHourNavCommand() { var command = new Command("hour"); command.Description = "Provides operations to call the hour method."; - var builder = new HourRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hour.HourRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3129,7 +3132,7 @@ public Command BuildHyperlinkNavCommand() { var command = new Command("hyperlink"); command.Description = "Provides operations to call the hyperlink method."; - var builder = new HyperlinkRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hyperlink.HyperlinkRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3146,7 +3149,7 @@ public Command BuildHypGeom_DistNavCommand() { var command = new Command("hyp-geom_-dist"); command.Description = "Provides operations to call the hypGeom_Dist method."; - var builder = new HypGeom_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HypGeom_Dist.HypGeom_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3163,7 +3166,7 @@ public Command BuildIfNavCommand() { var command = new Command("if"); command.Description = "Provides operations to call the if method."; - var builder = new IfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.If.IfRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3180,7 +3183,7 @@ public Command BuildImAbsNavCommand() { var command = new Command("im-abs"); command.Description = "Provides operations to call the imAbs method."; - var builder = new ImAbsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImAbs.ImAbsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3197,7 +3200,7 @@ public Command BuildImaginaryNavCommand() { var command = new Command("imaginary"); command.Description = "Provides operations to call the imaginary method."; - var builder = new ImaginaryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Imaginary.ImaginaryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3214,7 +3217,7 @@ public Command BuildImArgumentNavCommand() { var command = new Command("im-argument"); command.Description = "Provides operations to call the imArgument method."; - var builder = new ImArgumentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImArgument.ImArgumentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3231,7 +3234,7 @@ public Command BuildImConjugateNavCommand() { var command = new Command("im-conjugate"); command.Description = "Provides operations to call the imConjugate method."; - var builder = new ImConjugateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImConjugate.ImConjugateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3248,7 +3251,7 @@ public Command BuildImCoshNavCommand() { var command = new Command("im-cosh"); command.Description = "Provides operations to call the imCosh method."; - var builder = new ImCoshRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCosh.ImCoshRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3265,7 +3268,7 @@ public Command BuildImCosNavCommand() { var command = new Command("im-cos"); command.Description = "Provides operations to call the imCos method."; - var builder = new ImCosRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCos.ImCosRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3282,7 +3285,7 @@ public Command BuildImCotNavCommand() { var command = new Command("im-cot"); command.Description = "Provides operations to call the imCot method."; - var builder = new ImCotRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCot.ImCotRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3299,7 +3302,7 @@ public Command BuildImCschNavCommand() { var command = new Command("im-csch"); command.Description = "Provides operations to call the imCsch method."; - var builder = new ImCschRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsch.ImCschRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3316,7 +3319,7 @@ public Command BuildImCscNavCommand() { var command = new Command("im-csc"); command.Description = "Provides operations to call the imCsc method."; - var builder = new ImCscRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsc.ImCscRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3333,7 +3336,7 @@ public Command BuildImDivNavCommand() { var command = new Command("im-div"); command.Description = "Provides operations to call the imDiv method."; - var builder = new ImDivRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImDiv.ImDivRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3350,7 +3353,7 @@ public Command BuildImExpNavCommand() { var command = new Command("im-exp"); command.Description = "Provides operations to call the imExp method."; - var builder = new ImExpRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImExp.ImExpRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3367,7 +3370,7 @@ public Command BuildImLnNavCommand() { var command = new Command("im-ln"); command.Description = "Provides operations to call the imLn method."; - var builder = new ImLnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLn.ImLnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3384,7 +3387,7 @@ public Command BuildImLog10NavCommand() { var command = new Command("im-log10"); command.Description = "Provides operations to call the imLog10 method."; - var builder = new ImLog10RequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog10.ImLog10RequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3401,7 +3404,7 @@ public Command BuildImLog2NavCommand() { var command = new Command("im-log2"); command.Description = "Provides operations to call the imLog2 method."; - var builder = new ImLog2RequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog2.ImLog2RequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3418,7 +3421,7 @@ public Command BuildImPowerNavCommand() { var command = new Command("im-power"); command.Description = "Provides operations to call the imPower method."; - var builder = new ImPowerRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImPower.ImPowerRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3435,7 +3438,7 @@ public Command BuildImProductNavCommand() { var command = new Command("im-product"); command.Description = "Provides operations to call the imProduct method."; - var builder = new ImProductRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImProduct.ImProductRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3452,7 +3455,7 @@ public Command BuildImRealNavCommand() { var command = new Command("im-real"); command.Description = "Provides operations to call the imReal method."; - var builder = new ImRealRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImReal.ImRealRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3469,7 +3472,7 @@ public Command BuildImSechNavCommand() { var command = new Command("im-sech"); command.Description = "Provides operations to call the imSech method."; - var builder = new ImSechRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSech.ImSechRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3486,7 +3489,7 @@ public Command BuildImSecNavCommand() { var command = new Command("im-sec"); command.Description = "Provides operations to call the imSec method."; - var builder = new ImSecRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSec.ImSecRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3503,7 +3506,7 @@ public Command BuildImSinhNavCommand() { var command = new Command("im-sinh"); command.Description = "Provides operations to call the imSinh method."; - var builder = new ImSinhRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSinh.ImSinhRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3520,7 +3523,7 @@ public Command BuildImSinNavCommand() { var command = new Command("im-sin"); command.Description = "Provides operations to call the imSin method."; - var builder = new ImSinRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSin.ImSinRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3537,7 +3540,7 @@ public Command BuildImSqrtNavCommand() { var command = new Command("im-sqrt"); command.Description = "Provides operations to call the imSqrt method."; - var builder = new ImSqrtRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSqrt.ImSqrtRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3554,7 +3557,7 @@ public Command BuildImSubNavCommand() { var command = new Command("im-sub"); command.Description = "Provides operations to call the imSub method."; - var builder = new ImSubRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSub.ImSubRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3571,7 +3574,7 @@ public Command BuildImSumNavCommand() { var command = new Command("im-sum"); command.Description = "Provides operations to call the imSum method."; - var builder = new ImSumRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSum.ImSumRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3588,7 +3591,7 @@ public Command BuildImTanNavCommand() { var command = new Command("im-tan"); command.Description = "Provides operations to call the imTan method."; - var builder = new ImTanRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImTan.ImTanRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3605,7 +3608,7 @@ public Command BuildIntNavCommand() { var command = new Command("int"); command.Description = "Provides operations to call the int method."; - var builder = new IntRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Int.IntRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3622,7 +3625,7 @@ public Command BuildIntRateNavCommand() { var command = new Command("int-rate"); command.Description = "Provides operations to call the intRate method."; - var builder = new IntRateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IntRate.IntRateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3639,7 +3642,7 @@ public Command BuildIpmtNavCommand() { var command = new Command("ipmt"); command.Description = "Provides operations to call the ipmt method."; - var builder = new IpmtRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ipmt.IpmtRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3656,7 +3659,7 @@ public Command BuildIrrNavCommand() { var command = new Command("irr"); command.Description = "Provides operations to call the irr method."; - var builder = new IrrRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Irr.IrrRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3673,7 +3676,7 @@ public Command BuildIsErrNavCommand() { var command = new Command("is-err"); command.Description = "Provides operations to call the isErr method."; - var builder = new IsErrRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsErr.IsErrRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3690,7 +3693,7 @@ public Command BuildIsErrorNavCommand() { var command = new Command("is-error"); command.Description = "Provides operations to call the isError method."; - var builder = new IsErrorRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsError.IsErrorRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3707,7 +3710,7 @@ public Command BuildIsEvenNavCommand() { var command = new Command("is-even"); command.Description = "Provides operations to call the isEven method."; - var builder = new IsEvenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsEven.IsEvenRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3724,7 +3727,7 @@ public Command BuildIsFormulaNavCommand() { var command = new Command("is-formula"); command.Description = "Provides operations to call the isFormula method."; - var builder = new IsFormulaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsFormula.IsFormulaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3741,7 +3744,7 @@ public Command BuildIsLogicalNavCommand() { var command = new Command("is-logical"); command.Description = "Provides operations to call the isLogical method."; - var builder = new IsLogicalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsLogical.IsLogicalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3758,7 +3761,7 @@ public Command BuildIsNANavCommand() { var command = new Command("is-n-a"); command.Description = "Provides operations to call the isNA method."; - var builder = new IsNARequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNA.IsNARequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3775,7 +3778,7 @@ public Command BuildIsNonTextNavCommand() { var command = new Command("is-non-text"); command.Description = "Provides operations to call the isNonText method."; - var builder = new IsNonTextRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNonText.IsNonTextRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3792,7 +3795,7 @@ public Command BuildIsNumberNavCommand() { var command = new Command("is-number"); command.Description = "Provides operations to call the isNumber method."; - var builder = new IsNumberRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNumber.IsNumberRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3809,7 +3812,7 @@ public Command BuildIso_CeilingNavCommand() { var command = new Command("iso_-ceiling"); command.Description = "Provides operations to call the iso_Ceiling method."; - var builder = new Iso_CeilingRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Iso_Ceiling.Iso_CeilingRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3826,7 +3829,7 @@ public Command BuildIsOddNavCommand() { var command = new Command("is-odd"); command.Description = "Provides operations to call the isOdd method."; - var builder = new IsOddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsOdd.IsOddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3843,7 +3846,7 @@ public Command BuildIsoWeekNumNavCommand() { var command = new Command("iso-week-num"); command.Description = "Provides operations to call the isoWeekNum method."; - var builder = new IsoWeekNumRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsoWeekNum.IsoWeekNumRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3860,7 +3863,7 @@ public Command BuildIspmtNavCommand() { var command = new Command("ispmt"); command.Description = "Provides operations to call the ispmt method."; - var builder = new IspmtRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ispmt.IspmtRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3877,7 +3880,7 @@ public Command BuildIsrefNavCommand() { var command = new Command("isref"); command.Description = "Provides operations to call the isref method."; - var builder = new IsrefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Isref.IsrefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3894,7 +3897,7 @@ public Command BuildIsTextNavCommand() { var command = new Command("is-text"); command.Description = "Provides operations to call the isText method."; - var builder = new IsTextRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsText.IsTextRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3911,7 +3914,7 @@ public Command BuildKurtNavCommand() { var command = new Command("kurt"); command.Description = "Provides operations to call the kurt method."; - var builder = new KurtRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Kurt.KurtRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3928,7 +3931,7 @@ public Command BuildLargeNavCommand() { var command = new Command("large"); command.Description = "Provides operations to call the large method."; - var builder = new LargeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Large.LargeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3945,7 +3948,7 @@ public Command BuildLcmNavCommand() { var command = new Command("lcm"); command.Description = "Provides operations to call the lcm method."; - var builder = new LcmRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lcm.LcmRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3962,7 +3965,7 @@ public Command BuildLeftbNavCommand() { var command = new Command("leftb"); command.Description = "Provides operations to call the leftb method."; - var builder = new LeftbRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Leftb.LeftbRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3979,7 +3982,7 @@ public Command BuildLeftNavCommand() { var command = new Command("left"); command.Description = "Provides operations to call the left method."; - var builder = new LeftRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Left.LeftRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -3996,7 +3999,7 @@ public Command BuildLenbNavCommand() { var command = new Command("lenb"); command.Description = "Provides operations to call the lenb method."; - var builder = new LenbRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lenb.LenbRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4013,7 +4016,7 @@ public Command BuildLenNavCommand() { var command = new Command("len"); command.Description = "Provides operations to call the len method."; - var builder = new LenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Len.LenRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4030,7 +4033,7 @@ public Command BuildLnNavCommand() { var command = new Command("ln"); command.Description = "Provides operations to call the ln method."; - var builder = new LnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ln.LnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4047,7 +4050,7 @@ public Command BuildLog10NavCommand() { var command = new Command("log10"); command.Description = "Provides operations to call the log10 method."; - var builder = new Log10RequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log10.Log10RequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4064,7 +4067,7 @@ public Command BuildLogNavCommand() { var command = new Command("log"); command.Description = "Provides operations to call the log method."; - var builder = new LogRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log.LogRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4081,7 +4084,7 @@ public Command BuildLogNorm_DistNavCommand() { var command = new Command("log-norm_-dist"); command.Description = "Provides operations to call the logNorm_Dist method."; - var builder = new LogNorm_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Dist.LogNorm_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4098,7 +4101,7 @@ public Command BuildLogNorm_InvNavCommand() { var command = new Command("log-norm_-inv"); command.Description = "Provides operations to call the logNorm_Inv method."; - var builder = new LogNorm_InvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Inv.LogNorm_InvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4115,7 +4118,7 @@ public Command BuildLookupNavCommand() { var command = new Command("lookup"); command.Description = "Provides operations to call the lookup method."; - var builder = new LookupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lookup.LookupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4132,7 +4135,7 @@ public Command BuildLowerNavCommand() { var command = new Command("lower"); command.Description = "Provides operations to call the lower method."; - var builder = new LowerRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lower.LowerRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4149,7 +4152,7 @@ public Command BuildMatchNavCommand() { var command = new Command("match"); command.Description = "Provides operations to call the match method."; - var builder = new MatchRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Match.MatchRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4166,7 +4169,7 @@ public Command BuildMaxANavCommand() { var command = new Command("max-a"); command.Description = "Provides operations to call the maxA method."; - var builder = new MaxARequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MaxA.MaxARequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4183,7 +4186,7 @@ public Command BuildMaxNavCommand() { var command = new Command("max"); command.Description = "Provides operations to call the max method."; - var builder = new MaxRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Max.MaxRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4200,7 +4203,7 @@ public Command BuildMdurationNavCommand() { var command = new Command("mduration"); command.Description = "Provides operations to call the mduration method."; - var builder = new MdurationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mduration.MdurationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4217,7 +4220,7 @@ public Command BuildMedianNavCommand() { var command = new Command("median"); command.Description = "Provides operations to call the median method."; - var builder = new MedianRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Median.MedianRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4234,7 +4237,7 @@ public Command BuildMidbNavCommand() { var command = new Command("midb"); command.Description = "Provides operations to call the midb method."; - var builder = new MidbRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Midb.MidbRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4251,7 +4254,7 @@ public Command BuildMidNavCommand() { var command = new Command("mid"); command.Description = "Provides operations to call the mid method."; - var builder = new MidRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mid.MidRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4268,7 +4271,7 @@ public Command BuildMinANavCommand() { var command = new Command("min-a"); command.Description = "Provides operations to call the minA method."; - var builder = new MinARequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MinA.MinARequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4285,7 +4288,7 @@ public Command BuildMinNavCommand() { var command = new Command("min"); command.Description = "Provides operations to call the min method."; - var builder = new MinRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Min.MinRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4302,7 +4305,7 @@ public Command BuildMinuteNavCommand() { var command = new Command("minute"); command.Description = "Provides operations to call the minute method."; - var builder = new MinuteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Minute.MinuteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4319,7 +4322,7 @@ public Command BuildMirrNavCommand() { var command = new Command("mirr"); command.Description = "Provides operations to call the mirr method."; - var builder = new MirrRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mirr.MirrRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4336,7 +4339,7 @@ public Command BuildModNavCommand() { var command = new Command("mod"); command.Description = "Provides operations to call the mod method."; - var builder = new ModRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mod.ModRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4353,7 +4356,7 @@ public Command BuildMonthNavCommand() { var command = new Command("month"); command.Description = "Provides operations to call the month method."; - var builder = new MonthRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Month.MonthRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4370,7 +4373,7 @@ public Command BuildMroundNavCommand() { var command = new Command("mround"); command.Description = "Provides operations to call the mround method."; - var builder = new MroundRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mround.MroundRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4387,7 +4390,7 @@ public Command BuildMultiNomialNavCommand() { var command = new Command("multi-nomial"); command.Description = "Provides operations to call the multiNomial method."; - var builder = new MultiNomialRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MultiNomial.MultiNomialRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4404,7 +4407,7 @@ public Command BuildNaNavCommand() { var command = new Command("na"); command.Description = "Provides operations to call the na method."; - var builder = new NaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Na.NaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4421,7 +4424,7 @@ public Command BuildNegBinom_DistNavCommand() { var command = new Command("neg-binom_-dist"); command.Description = "Provides operations to call the negBinom_Dist method."; - var builder = new NegBinom_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NegBinom_Dist.NegBinom_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4438,7 +4441,7 @@ public Command BuildNetworkDays_IntlNavCommand() { var command = new Command("network-days_-intl"); command.Description = "Provides operations to call the networkDays_Intl method."; - var builder = new NetworkDays_IntlRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays_Intl.NetworkDays_IntlRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4455,7 +4458,7 @@ public Command BuildNetworkDaysNavCommand() { var command = new Command("network-days"); command.Description = "Provides operations to call the networkDays method."; - var builder = new NetworkDaysRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays.NetworkDaysRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4472,7 +4475,7 @@ public Command BuildNNavCommand() { var command = new Command("n"); command.Description = "Provides operations to call the n method."; - var builder = new NRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.N.NRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4489,7 +4492,7 @@ public Command BuildNominalNavCommand() { var command = new Command("nominal"); command.Description = "Provides operations to call the nominal method."; - var builder = new NominalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nominal.NominalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4506,7 +4509,7 @@ public Command BuildNorm_DistNavCommand() { var command = new Command("norm_-dist"); command.Description = "Provides operations to call the norm_Dist method."; - var builder = new Norm_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Dist.Norm_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4523,7 +4526,7 @@ public Command BuildNorm_InvNavCommand() { var command = new Command("norm_-inv"); command.Description = "Provides operations to call the norm_Inv method."; - var builder = new Norm_InvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Inv.Norm_InvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4540,7 +4543,7 @@ public Command BuildNorm_S_DistNavCommand() { var command = new Command("norm_-s_-dist"); command.Description = "Provides operations to call the norm_S_Dist method."; - var builder = new Norm_S_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Dist.Norm_S_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4557,7 +4560,7 @@ public Command BuildNorm_S_InvNavCommand() { var command = new Command("norm_-s_-inv"); command.Description = "Provides operations to call the norm_S_Inv method."; - var builder = new Norm_S_InvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Inv.Norm_S_InvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4574,7 +4577,7 @@ public Command BuildNotNavCommand() { var command = new Command("not"); command.Description = "Provides operations to call the not method."; - var builder = new NotRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Not.NotRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4591,7 +4594,7 @@ public Command BuildNowNavCommand() { var command = new Command("now"); command.Description = "Provides operations to call the now method."; - var builder = new NowRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Now.NowRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4608,7 +4611,7 @@ public Command BuildNperNavCommand() { var command = new Command("nper"); command.Description = "Provides operations to call the nper method."; - var builder = new NperRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nper.NperRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4625,7 +4628,7 @@ public Command BuildNpvNavCommand() { var command = new Command("npv"); command.Description = "Provides operations to call the npv method."; - var builder = new NpvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Npv.NpvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4642,7 +4645,7 @@ public Command BuildNumberValueNavCommand() { var command = new Command("number-value"); command.Description = "Provides operations to call the numberValue method."; - var builder = new NumberValueRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NumberValue.NumberValueRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4659,7 +4662,7 @@ public Command BuildOct2BinNavCommand() { var command = new Command("oct2-bin"); command.Description = "Provides operations to call the oct2Bin method."; - var builder = new Oct2BinRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Bin.Oct2BinRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4676,7 +4679,7 @@ public Command BuildOct2DecNavCommand() { var command = new Command("oct2-dec"); command.Description = "Provides operations to call the oct2Dec method."; - var builder = new Oct2DecRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Dec.Oct2DecRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4693,7 +4696,7 @@ public Command BuildOct2HexNavCommand() { var command = new Command("oct2-hex"); command.Description = "Provides operations to call the oct2Hex method."; - var builder = new Oct2HexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Hex.Oct2HexRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4710,7 +4713,7 @@ public Command BuildOddFPriceNavCommand() { var command = new Command("odd-f-price"); command.Description = "Provides operations to call the oddFPrice method."; - var builder = new OddFPriceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFPrice.OddFPriceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4727,7 +4730,7 @@ public Command BuildOddFYieldNavCommand() { var command = new Command("odd-f-yield"); command.Description = "Provides operations to call the oddFYield method."; - var builder = new OddFYieldRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFYield.OddFYieldRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4744,7 +4747,7 @@ public Command BuildOddLPriceNavCommand() { var command = new Command("odd-l-price"); command.Description = "Provides operations to call the oddLPrice method."; - var builder = new OddLPriceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLPrice.OddLPriceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4761,7 +4764,7 @@ public Command BuildOddLYieldNavCommand() { var command = new Command("odd-l-yield"); command.Description = "Provides operations to call the oddLYield method."; - var builder = new OddLYieldRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLYield.OddLYieldRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4778,7 +4781,7 @@ public Command BuildOddNavCommand() { var command = new Command("odd"); command.Description = "Provides operations to call the odd method."; - var builder = new OddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Odd.OddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4795,7 +4798,7 @@ public Command BuildOrNavCommand() { var command = new Command("or"); command.Description = "Provides operations to call the or method."; - var builder = new OrRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Or.OrRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4839,8 +4842,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(WorkbookFunctions.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookFunctions.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -4869,7 +4872,7 @@ public Command BuildPdurationNavCommand() { var command = new Command("pduration"); command.Description = "Provides operations to call the pduration method."; - var builder = new PdurationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pduration.PdurationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4886,7 +4889,7 @@ public Command BuildPercentile_ExcNavCommand() { var command = new Command("percentile_-exc"); command.Description = "Provides operations to call the percentile_Exc method."; - var builder = new Percentile_ExcRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Exc.Percentile_ExcRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4903,7 +4906,7 @@ public Command BuildPercentile_IncNavCommand() { var command = new Command("percentile_-inc"); command.Description = "Provides operations to call the percentile_Inc method."; - var builder = new Percentile_IncRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Inc.Percentile_IncRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4920,7 +4923,7 @@ public Command BuildPercentRank_ExcNavCommand() { var command = new Command("percent-rank_-exc"); command.Description = "Provides operations to call the percentRank_Exc method."; - var builder = new PercentRank_ExcRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Exc.PercentRank_ExcRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4937,7 +4940,7 @@ public Command BuildPercentRank_IncNavCommand() { var command = new Command("percent-rank_-inc"); command.Description = "Provides operations to call the percentRank_Inc method."; - var builder = new PercentRank_IncRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Inc.PercentRank_IncRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4954,7 +4957,7 @@ public Command BuildPermutationaNavCommand() { var command = new Command("permutationa"); command.Description = "Provides operations to call the permutationa method."; - var builder = new PermutationaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permutationa.PermutationaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4971,7 +4974,7 @@ public Command BuildPermutNavCommand() { var command = new Command("permut"); command.Description = "Provides operations to call the permut method."; - var builder = new PermutRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permut.PermutRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -4988,7 +4991,7 @@ public Command BuildPhiNavCommand() { var command = new Command("phi"); command.Description = "Provides operations to call the phi method."; - var builder = new PhiRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Phi.PhiRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5005,7 +5008,7 @@ public Command BuildPiNavCommand() { var command = new Command("pi"); command.Description = "Provides operations to call the pi method."; - var builder = new PiRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pi.PiRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5022,7 +5025,7 @@ public Command BuildPmtNavCommand() { var command = new Command("pmt"); command.Description = "Provides operations to call the pmt method."; - var builder = new PmtRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pmt.PmtRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5039,7 +5042,7 @@ public Command BuildPoisson_DistNavCommand() { var command = new Command("poisson_-dist"); command.Description = "Provides operations to call the poisson_Dist method."; - var builder = new Poisson_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Poisson_Dist.Poisson_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5056,7 +5059,7 @@ public Command BuildPowerNavCommand() { var command = new Command("power"); command.Description = "Provides operations to call the power method."; - var builder = new PowerRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Power.PowerRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5073,7 +5076,7 @@ public Command BuildPpmtNavCommand() { var command = new Command("ppmt"); command.Description = "Provides operations to call the ppmt method."; - var builder = new PpmtRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ppmt.PpmtRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5090,7 +5093,7 @@ public Command BuildPriceDiscNavCommand() { var command = new Command("price-disc"); command.Description = "Provides operations to call the priceDisc method."; - var builder = new PriceDiscRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceDisc.PriceDiscRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5107,7 +5110,7 @@ public Command BuildPriceMatNavCommand() { var command = new Command("price-mat"); command.Description = "Provides operations to call the priceMat method."; - var builder = new PriceMatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceMat.PriceMatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5124,7 +5127,7 @@ public Command BuildPriceNavCommand() { var command = new Command("price"); command.Description = "Provides operations to call the price method."; - var builder = new PriceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Price.PriceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5141,7 +5144,7 @@ public Command BuildProductNavCommand() { var command = new Command("product"); command.Description = "Provides operations to call the product method."; - var builder = new ProductRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Product.ProductRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5158,7 +5161,7 @@ public Command BuildProperNavCommand() { var command = new Command("proper"); command.Description = "Provides operations to call the proper method."; - var builder = new ProperRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Proper.ProperRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5175,7 +5178,7 @@ public Command BuildPvNavCommand() { var command = new Command("pv"); command.Description = "Provides operations to call the pv method."; - var builder = new PvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pv.PvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5192,7 +5195,7 @@ public Command BuildQuartile_ExcNavCommand() { var command = new Command("quartile_-exc"); command.Description = "Provides operations to call the quartile_Exc method."; - var builder = new Quartile_ExcRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Exc.Quartile_ExcRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5209,7 +5212,7 @@ public Command BuildQuartile_IncNavCommand() { var command = new Command("quartile_-inc"); command.Description = "Provides operations to call the quartile_Inc method."; - var builder = new Quartile_IncRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Inc.Quartile_IncRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5226,7 +5229,7 @@ public Command BuildQuotientNavCommand() { var command = new Command("quotient"); command.Description = "Provides operations to call the quotient method."; - var builder = new QuotientRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quotient.QuotientRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5243,7 +5246,7 @@ public Command BuildRadiansNavCommand() { var command = new Command("radians"); command.Description = "Provides operations to call the radians method."; - var builder = new RadiansRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Radians.RadiansRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5260,7 +5263,7 @@ public Command BuildRandBetweenNavCommand() { var command = new Command("rand-between"); command.Description = "Provides operations to call the randBetween method."; - var builder = new RandBetweenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RandBetween.RandBetweenRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5277,7 +5280,7 @@ public Command BuildRandNavCommand() { var command = new Command("rand"); command.Description = "Provides operations to call the rand method."; - var builder = new RandRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rand.RandRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5294,7 +5297,7 @@ public Command BuildRank_AvgNavCommand() { var command = new Command("rank_-avg"); command.Description = "Provides operations to call the rank_Avg method."; - var builder = new Rank_AvgRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Avg.Rank_AvgRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5311,7 +5314,7 @@ public Command BuildRank_EqNavCommand() { var command = new Command("rank_-eq"); command.Description = "Provides operations to call the rank_Eq method."; - var builder = new Rank_EqRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Eq.Rank_EqRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5328,7 +5331,7 @@ public Command BuildRateNavCommand() { var command = new Command("rate"); command.Description = "Provides operations to call the rate method."; - var builder = new RateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rate.RateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5345,7 +5348,7 @@ public Command BuildReceivedNavCommand() { var command = new Command("received"); command.Description = "Provides operations to call the received method."; - var builder = new ReceivedRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Received.ReceivedRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5362,7 +5365,7 @@ public Command BuildReplaceBNavCommand() { var command = new Command("replace-b"); command.Description = "Provides operations to call the replaceB method."; - var builder = new ReplaceBRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ReplaceB.ReplaceBRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5379,7 +5382,7 @@ public Command BuildReplaceNavCommand() { var command = new Command("replace"); command.Description = "Provides operations to call the replace method."; - var builder = new ReplaceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Replace.ReplaceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5396,7 +5399,7 @@ public Command BuildReptNavCommand() { var command = new Command("rept"); command.Description = "Provides operations to call the rept method."; - var builder = new ReptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rept.ReptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5413,7 +5416,7 @@ public Command BuildRightbNavCommand() { var command = new Command("rightb"); command.Description = "Provides operations to call the rightb method."; - var builder = new RightbRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rightb.RightbRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5430,7 +5433,7 @@ public Command BuildRightNavCommand() { var command = new Command("right"); command.Description = "Provides operations to call the right method."; - var builder = new RightRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Right.RightRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5447,7 +5450,7 @@ public Command BuildRomanNavCommand() { var command = new Command("roman"); command.Description = "Provides operations to call the roman method."; - var builder = new RomanRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Roman.RomanRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5464,7 +5467,7 @@ public Command BuildRoundDownNavCommand() { var command = new Command("round-down"); command.Description = "Provides operations to call the roundDown method."; - var builder = new RoundDownRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundDown.RoundDownRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5481,7 +5484,7 @@ public Command BuildRoundNavCommand() { var command = new Command("round"); command.Description = "Provides operations to call the round method."; - var builder = new RoundRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Round.RoundRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5498,7 +5501,7 @@ public Command BuildRoundUpNavCommand() { var command = new Command("round-up"); command.Description = "Provides operations to call the roundUp method."; - var builder = new RoundUpRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundUp.RoundUpRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5515,7 +5518,7 @@ public Command BuildRowsNavCommand() { var command = new Command("rows"); command.Description = "Provides operations to call the rows method."; - var builder = new RowsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rows.RowsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5532,7 +5535,7 @@ public Command BuildRriNavCommand() { var command = new Command("rri"); command.Description = "Provides operations to call the rri method."; - var builder = new RriRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rri.RriRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5549,7 +5552,7 @@ public Command BuildSechNavCommand() { var command = new Command("sech"); command.Description = "Provides operations to call the sech method."; - var builder = new SechRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sech.SechRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5566,7 +5569,7 @@ public Command BuildSecNavCommand() { var command = new Command("sec"); command.Description = "Provides operations to call the sec method."; - var builder = new SecRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sec.SecRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5583,7 +5586,7 @@ public Command BuildSecondNavCommand() { var command = new Command("second"); command.Description = "Provides operations to call the second method."; - var builder = new SecondRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Second.SecondRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5600,7 +5603,7 @@ public Command BuildSeriesSumNavCommand() { var command = new Command("series-sum"); command.Description = "Provides operations to call the seriesSum method."; - var builder = new SeriesSumRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SeriesSum.SeriesSumRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5617,7 +5620,7 @@ public Command BuildSheetNavCommand() { var command = new Command("sheet"); command.Description = "Provides operations to call the sheet method."; - var builder = new SheetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheet.SheetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5634,7 +5637,7 @@ public Command BuildSheetsNavCommand() { var command = new Command("sheets"); command.Description = "Provides operations to call the sheets method."; - var builder = new SheetsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheets.SheetsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5651,7 +5654,7 @@ public Command BuildSignNavCommand() { var command = new Command("sign"); command.Description = "Provides operations to call the sign method."; - var builder = new SignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sign.SignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5668,7 +5671,7 @@ public Command BuildSinhNavCommand() { var command = new Command("sinh"); command.Description = "Provides operations to call the sinh method."; - var builder = new SinhRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sinh.SinhRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5685,7 +5688,7 @@ public Command BuildSinNavCommand() { var command = new Command("sin"); command.Description = "Provides operations to call the sin method."; - var builder = new SinRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sin.SinRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5702,7 +5705,7 @@ public Command BuildSkew_pNavCommand() { var command = new Command("skew_p"); command.Description = "Provides operations to call the skew_p method."; - var builder = new Skew_pRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew_p.Skew_pRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5719,7 +5722,7 @@ public Command BuildSkewNavCommand() { var command = new Command("skew"); command.Description = "Provides operations to call the skew method."; - var builder = new SkewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew.SkewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5736,7 +5739,7 @@ public Command BuildSlnNavCommand() { var command = new Command("sln"); command.Description = "Provides operations to call the sln method."; - var builder = new SlnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sln.SlnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5753,7 +5756,7 @@ public Command BuildSmallNavCommand() { var command = new Command("small"); command.Description = "Provides operations to call the small method."; - var builder = new SmallRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Small.SmallRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5770,7 +5773,7 @@ public Command BuildSqrtNavCommand() { var command = new Command("sqrt"); command.Description = "Provides operations to call the sqrt method."; - var builder = new SqrtRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sqrt.SqrtRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5787,7 +5790,7 @@ public Command BuildSqrtPiNavCommand() { var command = new Command("sqrt-pi"); command.Description = "Provides operations to call the sqrtPi method."; - var builder = new SqrtPiRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SqrtPi.SqrtPiRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5804,7 +5807,7 @@ public Command BuildStandardizeNavCommand() { var command = new Command("standardize"); command.Description = "Provides operations to call the standardize method."; - var builder = new StandardizeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Standardize.StandardizeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5821,7 +5824,7 @@ public Command BuildStDev_PNavCommand() { var command = new Command("st-dev_-p"); command.Description = "Provides operations to call the stDev_P method."; - var builder = new StDev_PRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_P.StDev_PRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5838,7 +5841,7 @@ public Command BuildStDev_SNavCommand() { var command = new Command("st-dev_-s"); command.Description = "Provides operations to call the stDev_S method."; - var builder = new StDev_SRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_S.StDev_SRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5855,7 +5858,7 @@ public Command BuildStDevANavCommand() { var command = new Command("st-dev-a"); command.Description = "Provides operations to call the stDevA method."; - var builder = new StDevARequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevA.StDevARequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5872,7 +5875,7 @@ public Command BuildStDevPANavCommand() { var command = new Command("st-dev-p-a"); command.Description = "Provides operations to call the stDevPA method."; - var builder = new StDevPARequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevPA.StDevPARequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5889,7 +5892,7 @@ public Command BuildSubstituteNavCommand() { var command = new Command("substitute"); command.Description = "Provides operations to call the substitute method."; - var builder = new SubstituteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Substitute.SubstituteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5906,7 +5909,7 @@ public Command BuildSubtotalNavCommand() { var command = new Command("subtotal"); command.Description = "Provides operations to call the subtotal method."; - var builder = new SubtotalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Subtotal.SubtotalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5923,7 +5926,7 @@ public Command BuildSumIfNavCommand() { var command = new Command("sum-if"); command.Description = "Provides operations to call the sumIf method."; - var builder = new SumIfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIf.SumIfRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5940,7 +5943,7 @@ public Command BuildSumIfsNavCommand() { var command = new Command("sum-ifs"); command.Description = "Provides operations to call the sumIfs method."; - var builder = new SumIfsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIfs.SumIfsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5957,7 +5960,7 @@ public Command BuildSumNavCommand() { var command = new Command("sum"); command.Description = "Provides operations to call the sum method."; - var builder = new SumRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sum.SumRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5974,7 +5977,7 @@ public Command BuildSumSqNavCommand() { var command = new Command("sum-sq"); command.Description = "Provides operations to call the sumSq method."; - var builder = new SumSqRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumSq.SumSqRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -5991,7 +5994,7 @@ public Command BuildSydNavCommand() { var command = new Command("syd"); command.Description = "Provides operations to call the syd method."; - var builder = new SydRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Syd.SydRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6008,7 +6011,7 @@ public Command BuildT_Dist_2TNavCommand() { var command = new Command("t_-dist_2-t"); command.Description = "Provides operations to call the t_Dist_2T method."; - var builder = new T_Dist_2TRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_2T.T_Dist_2TRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6025,7 +6028,7 @@ public Command BuildT_Dist_RTNavCommand() { var command = new Command("t_-dist_-r-t"); command.Description = "Provides operations to call the t_Dist_RT method."; - var builder = new T_Dist_RTRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_RT.T_Dist_RTRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6042,7 +6045,7 @@ public Command BuildT_DistNavCommand() { var command = new Command("t_-dist"); command.Description = "Provides operations to call the t_Dist method."; - var builder = new T_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist.T_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6059,7 +6062,7 @@ public Command BuildT_Inv_2TNavCommand() { var command = new Command("t_-inv_2-t"); command.Description = "Provides operations to call the t_Inv_2T method."; - var builder = new T_Inv_2TRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv_2T.T_Inv_2TRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6076,7 +6079,7 @@ public Command BuildT_InvNavCommand() { var command = new Command("t_-inv"); command.Description = "Provides operations to call the t_Inv method."; - var builder = new T_InvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv.T_InvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6093,7 +6096,7 @@ public Command BuildTanhNavCommand() { var command = new Command("tanh"); command.Description = "Provides operations to call the tanh method."; - var builder = new TanhRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tanh.TanhRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6110,7 +6113,7 @@ public Command BuildTanNavCommand() { var command = new Command("tan"); command.Description = "Provides operations to call the tan method."; - var builder = new TanRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tan.TanRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6127,7 +6130,7 @@ public Command BuildTbillEqNavCommand() { var command = new Command("tbill-eq"); command.Description = "Provides operations to call the tbillEq method."; - var builder = new TbillEqRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillEq.TbillEqRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6144,7 +6147,7 @@ public Command BuildTbillPriceNavCommand() { var command = new Command("tbill-price"); command.Description = "Provides operations to call the tbillPrice method."; - var builder = new TbillPriceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillPrice.TbillPriceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6161,7 +6164,7 @@ public Command BuildTbillYieldNavCommand() { var command = new Command("tbill-yield"); command.Description = "Provides operations to call the tbillYield method."; - var builder = new TbillYieldRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillYield.TbillYieldRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6178,7 +6181,7 @@ public Command BuildTextNavCommand() { var command = new Command("text"); command.Description = "Provides operations to call the text method."; - var builder = new TextRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Text.TextRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6195,7 +6198,7 @@ public Command BuildTimeNavCommand() { var command = new Command("time"); command.Description = "Provides operations to call the time method."; - var builder = new TimeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Time.TimeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6212,7 +6215,7 @@ public Command BuildTimevalueNavCommand() { var command = new Command("timevalue"); command.Description = "Provides operations to call the timevalue method."; - var builder = new TimevalueRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Timevalue.TimevalueRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6229,7 +6232,7 @@ public Command BuildTNavCommand() { var command = new Command("t"); command.Description = "Provides operations to call the t method."; - var builder = new TRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T.TRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6246,7 +6249,7 @@ public Command BuildTodayNavCommand() { var command = new Command("today"); command.Description = "Provides operations to call the today method."; - var builder = new TodayRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Today.TodayRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6263,7 +6266,7 @@ public Command BuildTrimMeanNavCommand() { var command = new Command("trim-mean"); command.Description = "Provides operations to call the trimMean method."; - var builder = new TrimMeanRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TrimMean.TrimMeanRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6280,7 +6283,7 @@ public Command BuildTrimNavCommand() { var command = new Command("trim"); command.Description = "Provides operations to call the trim method."; - var builder = new TrimRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trim.TrimRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6297,7 +6300,7 @@ public Command BuildTrueNavCommand() { var command = new Command("true"); command.Description = "Provides operations to call the true method."; - var builder = new TrueRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.True.TrueRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6314,7 +6317,7 @@ public Command BuildTruncNavCommand() { var command = new Command("trunc"); command.Description = "Provides operations to call the trunc method."; - var builder = new TruncRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trunc.TruncRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6331,7 +6334,7 @@ public Command BuildTypeNavCommand() { var command = new Command("type"); command.Description = "Provides operations to call the type method."; - var builder = new TypeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TypeNamespace.TypeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6348,7 +6351,7 @@ public Command BuildUnicharNavCommand() { var command = new Command("unichar"); command.Description = "Provides operations to call the unichar method."; - var builder = new UnicharRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unichar.UnicharRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6365,7 +6368,7 @@ public Command BuildUnicodeNavCommand() { var command = new Command("unicode"); command.Description = "Provides operations to call the unicode method."; - var builder = new UnicodeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unicode.UnicodeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6382,7 +6385,7 @@ public Command BuildUpperNavCommand() { var command = new Command("upper"); command.Description = "Provides operations to call the upper method."; - var builder = new UpperRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Upper.UpperRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6399,7 +6402,7 @@ public Command BuildUsdollarNavCommand() { var command = new Command("usdollar"); command.Description = "Provides operations to call the usdollar method."; - var builder = new UsdollarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Usdollar.UsdollarRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6416,7 +6419,7 @@ public Command BuildValueNavCommand() { var command = new Command("value"); command.Description = "Provides operations to call the value method."; - var builder = new ValueRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Value.ValueRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6433,7 +6436,7 @@ public Command BuildVar_PNavCommand() { var command = new Command("var_-p"); command.Description = "Provides operations to call the var_P method."; - var builder = new Var_PRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_P.Var_PRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6450,7 +6453,7 @@ public Command BuildVar_SNavCommand() { var command = new Command("var_-s"); command.Description = "Provides operations to call the var_S method."; - var builder = new Var_SRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_S.Var_SRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6467,7 +6470,7 @@ public Command BuildVarANavCommand() { var command = new Command("var-a"); command.Description = "Provides operations to call the varA method."; - var builder = new VarARequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarA.VarARequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6484,7 +6487,7 @@ public Command BuildVarPANavCommand() { var command = new Command("var-p-a"); command.Description = "Provides operations to call the varPA method."; - var builder = new VarPARequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarPA.VarPARequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6501,7 +6504,7 @@ public Command BuildVdbNavCommand() { var command = new Command("vdb"); command.Description = "Provides operations to call the vdb method."; - var builder = new VdbRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vdb.VdbRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6518,7 +6521,7 @@ public Command BuildVlookupNavCommand() { var command = new Command("vlookup"); command.Description = "Provides operations to call the vlookup method."; - var builder = new VlookupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vlookup.VlookupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6535,7 +6538,7 @@ public Command BuildWeekdayNavCommand() { var command = new Command("weekday"); command.Description = "Provides operations to call the weekday method."; - var builder = new WeekdayRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weekday.WeekdayRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6552,7 +6555,7 @@ public Command BuildWeekNumNavCommand() { var command = new Command("week-num"); command.Description = "Provides operations to call the weekNum method."; - var builder = new WeekNumRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WeekNum.WeekNumRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6569,7 +6572,7 @@ public Command BuildWeibull_DistNavCommand() { var command = new Command("weibull_-dist"); command.Description = "Provides operations to call the weibull_Dist method."; - var builder = new Weibull_DistRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weibull_Dist.Weibull_DistRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6586,7 +6589,7 @@ public Command BuildWorkDay_IntlNavCommand() { var command = new Command("work-day_-intl"); command.Description = "Provides operations to call the workDay_Intl method."; - var builder = new WorkDay_IntlRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay_Intl.WorkDay_IntlRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6603,7 +6606,7 @@ public Command BuildWorkDayNavCommand() { var command = new Command("work-day"); command.Description = "Provides operations to call the workDay method."; - var builder = new WorkDayRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay.WorkDayRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6620,7 +6623,7 @@ public Command BuildXirrNavCommand() { var command = new Command("xirr"); command.Description = "Provides operations to call the xirr method."; - var builder = new XirrRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xirr.XirrRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6637,7 +6640,7 @@ public Command BuildXnpvNavCommand() { var command = new Command("xnpv"); command.Description = "Provides operations to call the xnpv method."; - var builder = new XnpvRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xnpv.XnpvRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6654,7 +6657,7 @@ public Command BuildXorNavCommand() { var command = new Command("xor"); command.Description = "Provides operations to call the xor method."; - var builder = new XorRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xor.XorRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6671,7 +6674,7 @@ public Command BuildYearFracNavCommand() { var command = new Command("year-frac"); command.Description = "Provides operations to call the yearFrac method."; - var builder = new YearFracRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YearFrac.YearFracRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6688,7 +6691,7 @@ public Command BuildYearNavCommand() { var command = new Command("year"); command.Description = "Provides operations to call the year method."; - var builder = new YearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Year.YearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6705,7 +6708,7 @@ public Command BuildYieldDiscNavCommand() { var command = new Command("yield-disc"); command.Description = "Provides operations to call the yieldDisc method."; - var builder = new YieldDiscRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldDisc.YieldDiscRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6722,7 +6725,7 @@ public Command BuildYieldMatNavCommand() { var command = new Command("yield-mat"); command.Description = "Provides operations to call the yieldMat method."; - var builder = new YieldMatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldMat.YieldMatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6739,7 +6742,7 @@ public Command BuildYieldNavCommand() { var command = new Command("yield"); command.Description = "Provides operations to call the yield method."; - var builder = new YieldRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Yield.YieldRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6756,7 +6759,7 @@ public Command BuildZ_TestNavCommand() { var command = new Command("z_-test"); command.Description = "Provides operations to call the z_Test method."; - var builder = new Z_TestRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Z_Test.Z_TestRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -6766,14 +6769,14 @@ public Command BuildZ_TestNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public FunctionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions{?%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 FunctionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions{?%24expand,%24select}", rawUrl) @@ -6805,11 +6808,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); @@ -6825,11 +6828,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(WorkbookFunctions body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookFunctions body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookFunctions body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookFunctions body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -6841,7 +6844,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookFunctions body, Acti /// /// Get functions from drives /// - public class FunctionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FunctionsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -6866,3 +6870,4 @@ public class FunctionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvPostRequestBody.cs index 1dcea66ddd..604886b564 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class FvPostRequestBody : 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. @@ -16,45 +17,45 @@ public class FvPostRequestBody : IAdditionalDataHolder, IParsable /// The nper property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Nper { get; set; } + public UntypedNode? Nper { get; set; } #nullable restore #else - public Json Nper { get; set; } + public UntypedNode Nper { get; set; } #endif /// The pmt property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pmt { get; set; } + public UntypedNode? Pmt { get; set; } #nullable restore #else - public Json Pmt { get; set; } + public UntypedNode Pmt { get; set; } #endif /// The pv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pv { get; set; } + public UntypedNode? Pv { get; set; } #nullable restore #else - public Json Pv { get; set; } + public UntypedNode Pv { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Type { get; set; } + public UntypedNode? Type { get; set; } #nullable restore #else - public Json Type { get; set; } + public UntypedNode Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FvPostRequestBody() { @@ -63,12 +64,12 @@ public FvPostRequestBody() /// /// 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 FvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fv.FvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fv.FvPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pmt", n => { Pmt = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "nper", n => { Nper = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pmt", n => { Pmt = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pv", n => { Pv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("nper", Nper); - writer.WriteObjectValue("pmt", Pmt); - writer.WriteObjectValue("pv", Pv); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("type", Type); + writer.WriteObjectValue("nper", Nper); + writer.WriteObjectValue("pmt", Pmt); + writer.WriteObjectValue("pv", Pv); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.cs index e443bfd7d5..52a074bc1f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fv/FvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Fv /// /// Provides operations to call the fv method. /// - public class FvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action fv @@ -56,8 +59,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(FvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fv.FvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 FvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fv", 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 FvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fv", rawUrl) @@ -100,11 +103,11 @@ public FvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/it /// 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(FvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fv.FvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fv.FvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(FvPostRequestBody body, Actio } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvschedulePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvschedulePostRequestBody.cs index 505949bce3..72ad9861f7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvschedulePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvschedulePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fvschedule { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FvschedulePostRequestBody : IAdditionalDataHolder, IParsable + public partial class FvschedulePostRequestBody : 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. @@ -16,21 +17,21 @@ public class FvschedulePostRequestBody : IAdditionalDataHolder, IParsable /// The principal property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Principal { get; set; } + public UntypedNode? Principal { get; set; } #nullable restore #else - public Json Principal { get; set; } + public UntypedNode Principal { get; set; } #endif /// The schedule property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Schedule { get; set; } + public UntypedNode? Schedule { get; set; } #nullable restore #else - public Json Schedule { get; set; } + public UntypedNode Schedule { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FvschedulePostRequestBody() { @@ -39,12 +40,12 @@ public FvschedulePostRequestBody() /// /// 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 FvschedulePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fvschedule.FvschedulePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FvschedulePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fvschedule.FvschedulePostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "principal", n => { Principal = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "schedule", n => { Schedule = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "principal", n => { Principal = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "schedule", n => { Schedule = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("principal", Principal); - writer.WriteObjectValue("schedule", Schedule); + writer.WriteObjectValue("principal", Principal); + writer.WriteObjectValue("schedule", Schedule); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.cs index 33ba0d6252..5b04cdd44d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Fvschedule/FvscheduleRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Fvschedule /// /// Provides operations to call the fvschedule method. /// - public class FvscheduleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FvscheduleRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action fvschedule @@ -56,8 +59,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(FvschedulePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fvschedule.FvschedulePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 FvscheduleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fvschedule", 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 FvscheduleRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/fvschedule", rawUrl) @@ -100,11 +103,11 @@ public FvscheduleRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(FvschedulePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fvschedule.FvschedulePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FvschedulePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Fvschedule.FvschedulePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(FvschedulePostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaPostRequestBody.cs index 6a9e750839..761f803830 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GammaPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GammaPostRequestBody : 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. @@ -16,13 +17,13 @@ public class GammaPostRequestBody : IAdditionalDataHolder, IParsable /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GammaPostRequestBody() { @@ -31,12 +32,12 @@ public GammaPostRequestBody() /// /// 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 GammaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma.GammaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GammaPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma.GammaPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.cs index e706bd8738..46bef85d25 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma/GammaRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Gamma /// /// Provides operations to call the gamma method. /// - public class GammaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GammaRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action gamma @@ -56,8 +59,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(GammaPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma.GammaPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 GammaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gamma", 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 GammaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gamma", rawUrl) @@ -100,11 +103,11 @@ public GammaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(GammaPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma.GammaPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GammaPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma.GammaPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(GammaPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnPostRequestBody.cs index 830d590852..c41166e2d1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GammaLnPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GammaLnPostRequestBody : 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. @@ -16,13 +17,13 @@ public class GammaLnPostRequestBody : IAdditionalDataHolder, IParsable /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GammaLnPostRequestBody() { @@ -31,12 +32,12 @@ public GammaLnPostRequestBody() /// /// 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 GammaLnPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn.GammaLnPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GammaLnPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn.GammaLnPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.cs index 0e47911805..b7e13f26a1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn/GammaLnRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.GammaLn /// /// Provides operations to call the gammaLn method. /// - public class GammaLnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GammaLnRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action gammaLn @@ -56,8 +59,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(GammaLnPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn.GammaLnPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 GammaLnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gammaLn", 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 GammaLnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gammaLn", rawUrl) @@ -100,11 +103,11 @@ public GammaLnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(GammaLnPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn.GammaLnPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GammaLnPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn.GammaLnPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(GammaLnPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PrecisePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PrecisePostRequestBody.cs index 4b773093e1..64aec7dddd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PrecisePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PrecisePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn_Precise { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GammaLn_PrecisePostRequestBody : IAdditionalDataHolder, IParsable + public partial class GammaLn_PrecisePostRequestBody : 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. @@ -16,13 +17,13 @@ public class GammaLn_PrecisePostRequestBody : IAdditionalDataHolder, IParsable /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GammaLn_PrecisePostRequestBody() { @@ -31,12 +32,12 @@ public GammaLn_PrecisePostRequestBody() /// /// 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 GammaLn_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn_Precise.GammaLn_PrecisePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GammaLn_PrecisePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn_Precise.GammaLn_PrecisePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.cs index 5be0315fad..d5451b3f34 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GammaLn_Precise/GammaLn_PreciseRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.GammaLn_Precise /// /// Provides operations to call the gammaLn_Precise method. /// - public class GammaLn_PreciseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GammaLn_PreciseRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action gammaLn_Precise @@ -56,8 +59,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(GammaLn_PrecisePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn_Precise.GammaLn_PrecisePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 GammaLn_PreciseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gammaLn_Precise", 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 GammaLn_PreciseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gammaLn_Precise", rawUrl) @@ -100,11 +103,11 @@ public GammaLn_PreciseRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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(GammaLn_PrecisePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn_Precise.GammaLn_PrecisePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GammaLn_PrecisePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GammaLn_Precise.GammaLn_PrecisePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(GammaLn_PrecisePostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistPostRequestBody.cs index e860ffbaed..03baa098e5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Gamma_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Gamma_DistPostRequestBody : 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. @@ -16,37 +17,37 @@ public class Gamma_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The alpha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Alpha { get; set; } + public UntypedNode? Alpha { get; set; } #nullable restore #else - public Json Alpha { get; set; } + public UntypedNode Alpha { get; set; } #endif /// The beta property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Beta { get; set; } + public UntypedNode? Beta { get; set; } #nullable restore #else - public Json Beta { get; set; } + public UntypedNode Beta { get; set; } #endif /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Gamma_DistPostRequestBody() { @@ -55,12 +56,12 @@ public Gamma_DistPostRequestBody() /// /// 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 Gamma_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Dist.Gamma_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Gamma_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Dist.Gamma_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "beta", n => { Beta = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "alpha", n => { Alpha = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "beta", n => { Beta = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("alpha", Alpha); - writer.WriteObjectValue("beta", Beta); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("alpha", Alpha); + writer.WriteObjectValue("beta", Beta); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.cs index 8e1c08c6e1..40c206ef9a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Dist/Gamma_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Gamma_Dist /// /// Provides operations to call the gamma_Dist method. /// - public class Gamma_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Gamma_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action gamma_Dist @@ -56,8 +59,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(Gamma_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Dist.Gamma_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Gamma_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gamma_Dist", 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 Gamma_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gamma_Dist", rawUrl) @@ -100,11 +103,11 @@ public Gamma_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(Gamma_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Dist.Gamma_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Gamma_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Dist.Gamma_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Gamma_DistPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvPostRequestBody.cs index 60907b1312..004b575d44 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Inv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Gamma_InvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Gamma_InvPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Gamma_InvPostRequestBody : IAdditionalDataHolder, IParsable /// The alpha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Alpha { get; set; } + public UntypedNode? Alpha { get; set; } #nullable restore #else - public Json Alpha { get; set; } + public UntypedNode Alpha { get; set; } #endif /// The beta property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Beta { get; set; } + public UntypedNode? Beta { get; set; } #nullable restore #else - public Json Beta { get; set; } + public UntypedNode Beta { get; set; } #endif /// The probability property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Probability { get; set; } + public UntypedNode? Probability { get; set; } #nullable restore #else - public Json Probability { get; set; } + public UntypedNode Probability { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Gamma_InvPostRequestBody() { @@ -47,12 +48,12 @@ public Gamma_InvPostRequestBody() /// /// 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 Gamma_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Inv.Gamma_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Gamma_InvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Inv.Gamma_InvPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "beta", n => { Beta = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "alpha", n => { Alpha = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "beta", n => { Beta = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probability", n => { Probability = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("alpha", Alpha); - writer.WriteObjectValue("beta", Beta); - writer.WriteObjectValue("probability", Probability); + writer.WriteObjectValue("alpha", Alpha); + writer.WriteObjectValue("beta", Beta); + writer.WriteObjectValue("probability", Probability); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.cs index 605b62f993..da2e5a2328 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gamma_Inv/Gamma_InvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Gamma_Inv /// /// Provides operations to call the gamma_Inv method. /// - public class Gamma_InvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Gamma_InvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action gamma_Inv @@ -56,8 +59,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(Gamma_InvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Inv.Gamma_InvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Gamma_InvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gamma_Inv", 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 Gamma_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gamma_Inv", rawUrl) @@ -100,11 +103,11 @@ public Gamma_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(Gamma_InvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Inv.Gamma_InvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Gamma_InvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gamma_Inv.Gamma_InvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Gamma_InvPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussPostRequestBody.cs index 345df7a387..a2028db1fa 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gauss { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GaussPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GaussPostRequestBody : 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. @@ -16,13 +17,13 @@ public class GaussPostRequestBody : IAdditionalDataHolder, IParsable /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GaussPostRequestBody() { @@ -31,12 +32,12 @@ public GaussPostRequestBody() /// /// 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 GaussPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gauss.GaussPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GaussPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gauss.GaussPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.cs index ab29dc17d5..d8a9311499 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gauss/GaussRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Gauss /// /// Provides operations to call the gauss method. /// - public class GaussRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GaussRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action gauss @@ -56,8 +59,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(GaussPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gauss.GaussPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 GaussRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gauss", 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 GaussRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gauss", rawUrl) @@ -100,11 +103,11 @@ public GaussRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(GaussPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gauss.GaussPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GaussPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gauss.GaussPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(GaussPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdPostRequestBody.cs index 3b7bfbfd83..7e319404de 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gcd { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GcdPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GcdPostRequestBody : 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. @@ -16,13 +17,13 @@ public class GcdPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GcdPostRequestBody() { @@ -31,12 +32,12 @@ public GcdPostRequestBody() /// /// 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 GcdPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gcd.GcdPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GcdPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gcd.GcdPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.cs index 86fa8b661b..4eaac90eb3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Gcd/GcdRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Gcd /// /// Provides operations to call the gcd method. /// - public class GcdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GcdRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action gcd @@ -56,8 +59,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(GcdPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gcd.GcdPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 GcdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gcd", 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 GcdRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/gcd", rawUrl) @@ -100,11 +103,11 @@ public GcdRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(GcdPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gcd.GcdPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GcdPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Gcd.GcdPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(GcdPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepPostRequestBody.cs index 39433e6e97..b086e6e9d6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeStep { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GeStepPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GeStepPostRequestBody : 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. @@ -16,21 +17,21 @@ public class GeStepPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The step property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Step { get; set; } + public UntypedNode? Step { get; set; } #nullable restore #else - public Json Step { get; set; } + public UntypedNode Step { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GeStepPostRequestBody() { @@ -39,12 +40,12 @@ public GeStepPostRequestBody() /// /// 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 GeStepPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeStep.GeStepPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GeStepPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeStep.GeStepPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "step", n => { Step = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "step", n => { Step = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("step", Step); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("step", Step); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.cs index dec461aa55..34d129b321 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeStep/GeStepRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.GeStep /// /// Provides operations to call the geStep method. /// - public class GeStepRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GeStepRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action geStep @@ -56,8 +59,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(GeStepPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeStep.GeStepPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 GeStepRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/geStep", 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 GeStepRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/geStep", rawUrl) @@ -100,11 +103,11 @@ public GeStepRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(GeStepPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeStep.GeStepPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GeStepPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeStep.GeStepPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(GeStepPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanPostRequestBody.cs index 8e620be009..ff082aeed1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeoMean { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GeoMeanPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GeoMeanPostRequestBody : 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. @@ -16,13 +17,13 @@ public class GeoMeanPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GeoMeanPostRequestBody() { @@ -31,12 +32,12 @@ public GeoMeanPostRequestBody() /// /// 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 GeoMeanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeoMean.GeoMeanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GeoMeanPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeoMean.GeoMeanPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.cs index 2f8f91685d..c545699fe9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/GeoMean/GeoMeanRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.GeoMean /// /// Provides operations to call the geoMean method. /// - public class GeoMeanRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GeoMeanRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action geoMean @@ -56,8 +59,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(GeoMeanPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeoMean.GeoMeanPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 GeoMeanRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/geoMean", 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 GeoMeanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/geoMean", rawUrl) @@ -100,11 +103,11 @@ public GeoMeanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(GeoMeanPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeoMean.GeoMeanPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GeoMeanPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.GeoMean.GeoMeanPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(GeoMeanPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanPostRequestBody.cs index fc18cb1595..cbfd34ef1c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HarMean { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class HarMeanPostRequestBody : IAdditionalDataHolder, IParsable + public partial class HarMeanPostRequestBody : 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. @@ -16,13 +17,13 @@ public class HarMeanPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HarMeanPostRequestBody() { @@ -31,12 +32,12 @@ public HarMeanPostRequestBody() /// /// 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 HarMeanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HarMean.HarMeanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HarMeanPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HarMean.HarMeanPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.cs index 964150f8e4..9f430a2f17 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/HarMean/HarMeanRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.HarMean /// /// Provides operations to call the harMean method. /// - public class HarMeanRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HarMeanRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action harMean @@ -56,8 +59,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(HarMeanPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HarMean.HarMeanPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 HarMeanRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/harMean", 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 HarMeanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/harMean", rawUrl) @@ -100,11 +103,11 @@ public HarMeanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(HarMeanPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HarMean.HarMeanPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(HarMeanPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HarMean.HarMeanPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(HarMeanPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinPostRequestBody.cs index ad411b77e4..fcd2b0e592 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Bin { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Hex2BinPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Hex2BinPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Hex2BinPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The places property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Places { get; set; } + public UntypedNode? Places { get; set; } #nullable restore #else - public Json Places { get; set; } + public UntypedNode Places { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Hex2BinPostRequestBody() { @@ -39,12 +40,12 @@ public Hex2BinPostRequestBody() /// /// 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 Hex2BinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Bin.Hex2BinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Hex2BinPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Bin.Hex2BinPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "places", n => { Places = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("places", Places); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("places", Places); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.cs index 889768cbe5..13d4e9aa61 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Bin/Hex2BinRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Hex2Bin /// /// Provides operations to call the hex2Bin method. /// - public class Hex2BinRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Hex2BinRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action hex2Bin @@ -56,8 +59,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(Hex2BinPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Bin.Hex2BinPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Hex2BinRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hex2Bin", 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 Hex2BinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hex2Bin", rawUrl) @@ -100,11 +103,11 @@ public Hex2BinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Hex2BinPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Bin.Hex2BinPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Hex2BinPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Bin.Hex2BinPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Hex2BinPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecPostRequestBody.cs index 6181ca2c26..7875c6426f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Dec { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Hex2DecPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Hex2DecPostRequestBody : 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. @@ -16,13 +17,13 @@ public class Hex2DecPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Hex2DecPostRequestBody() { @@ -31,12 +32,12 @@ public Hex2DecPostRequestBody() /// /// 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 Hex2DecPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Dec.Hex2DecPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Hex2DecPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Dec.Hex2DecPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.cs index c280cef396..ab87f4a535 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Dec/Hex2DecRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Hex2Dec /// /// Provides operations to call the hex2Dec method. /// - public class Hex2DecRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Hex2DecRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action hex2Dec @@ -56,8 +59,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(Hex2DecPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Dec.Hex2DecPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Hex2DecRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hex2Dec", 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 Hex2DecRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hex2Dec", rawUrl) @@ -100,11 +103,11 @@ public Hex2DecRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Hex2DecPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Dec.Hex2DecPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Hex2DecPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Dec.Hex2DecPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Hex2DecPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctPostRequestBody.cs index bda69f12fa..1de99bec18 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Oct { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Hex2OctPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Hex2OctPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Hex2OctPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The places property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Places { get; set; } + public UntypedNode? Places { get; set; } #nullable restore #else - public Json Places { get; set; } + public UntypedNode Places { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Hex2OctPostRequestBody() { @@ -39,12 +40,12 @@ public Hex2OctPostRequestBody() /// /// 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 Hex2OctPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Oct.Hex2OctPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Hex2OctPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Oct.Hex2OctPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "places", n => { Places = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("places", Places); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("places", Places); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.cs index deeb471d77..85fc8174c1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hex2Oct/Hex2OctRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Hex2Oct /// /// Provides operations to call the hex2Oct method. /// - public class Hex2OctRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Hex2OctRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action hex2Oct @@ -56,8 +59,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(Hex2OctPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Oct.Hex2OctPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Hex2OctRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hex2Oct", 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 Hex2OctRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hex2Oct", rawUrl) @@ -100,11 +103,11 @@ public Hex2OctRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Hex2OctPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Oct.Hex2OctPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Hex2OctPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hex2Oct.Hex2OctPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Hex2OctPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupPostRequestBody.cs index 328615ff35..74404de006 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hlookup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class HlookupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class HlookupPostRequestBody : 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. @@ -16,37 +17,37 @@ public class HlookupPostRequestBody : IAdditionalDataHolder, IParsable /// The lookupValue property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? LookupValue { get; set; } + public UntypedNode? LookupValue { get; set; } #nullable restore #else - public Json LookupValue { get; set; } + public UntypedNode LookupValue { get; set; } #endif /// The rangeLookup property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? RangeLookup { get; set; } + public UntypedNode? RangeLookup { get; set; } #nullable restore #else - public Json RangeLookup { get; set; } + public UntypedNode RangeLookup { get; set; } #endif /// The rowIndexNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? RowIndexNum { get; set; } + public UntypedNode? RowIndexNum { get; set; } #nullable restore #else - public Json RowIndexNum { get; set; } + public UntypedNode RowIndexNum { get; set; } #endif /// The tableArray property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? TableArray { get; set; } + public UntypedNode? TableArray { get; set; } #nullable restore #else - public Json TableArray { get; set; } + public UntypedNode TableArray { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HlookupPostRequestBody() { @@ -55,12 +56,12 @@ public HlookupPostRequestBody() /// /// 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 HlookupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hlookup.HlookupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HlookupPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hlookup.HlookupPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "lookupValue", n => { LookupValue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rangeLookup", n => { RangeLookup = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rowIndexNum", n => { RowIndexNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "tableArray", n => { TableArray = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "lookupValue", n => { LookupValue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rangeLookup", n => { RangeLookup = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rowIndexNum", n => { RowIndexNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "tableArray", n => { TableArray = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("lookupValue", LookupValue); - writer.WriteObjectValue("rangeLookup", RangeLookup); - writer.WriteObjectValue("rowIndexNum", RowIndexNum); - writer.WriteObjectValue("tableArray", TableArray); + writer.WriteObjectValue("lookupValue", LookupValue); + writer.WriteObjectValue("rangeLookup", RangeLookup); + writer.WriteObjectValue("rowIndexNum", RowIndexNum); + writer.WriteObjectValue("tableArray", TableArray); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.cs index f7f8e1238d..f2ee0ed247 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hlookup/HlookupRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Hlookup /// /// Provides operations to call the hlookup method. /// - public class HlookupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HlookupRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action hlookup @@ -56,8 +59,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(HlookupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hlookup.HlookupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 HlookupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hlookup", 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 HlookupRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hlookup", rawUrl) @@ -100,11 +103,11 @@ public HlookupRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(HlookupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hlookup.HlookupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(HlookupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hlookup.HlookupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(HlookupPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourPostRequestBody.cs index 556b5ec09a..f9d57b89ba 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hour { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class HourPostRequestBody : IAdditionalDataHolder, IParsable + public partial class HourPostRequestBody : 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. @@ -16,13 +17,13 @@ public class HourPostRequestBody : IAdditionalDataHolder, IParsable /// The serialNumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SerialNumber { get; set; } + public UntypedNode? SerialNumber { get; set; } #nullable restore #else - public Json SerialNumber { get; set; } + public UntypedNode SerialNumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HourPostRequestBody() { @@ -31,12 +32,12 @@ public HourPostRequestBody() /// /// 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 HourPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hour.HourPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HourPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hour.HourPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "serialNumber", n => { SerialNumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("serialNumber", SerialNumber); + writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.cs index 2aa5beb497..5cfb73ae66 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hour/HourRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Hour /// /// Provides operations to call the hour method. /// - public class HourRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HourRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action hour @@ -56,8 +59,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(HourPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hour.HourPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 HourRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hour", 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 HourRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hour", rawUrl) @@ -100,11 +103,11 @@ public HourRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(HourPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hour.HourPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(HourPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hour.HourPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(HourPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistPostRequestBody.cs index 8d51d17b19..e5e18b64b2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HypGeom_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class HypGeom_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class HypGeom_DistPostRequestBody : 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. @@ -16,45 +17,45 @@ public class HypGeom_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The numberPop property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberPop { get; set; } + public UntypedNode? NumberPop { get; set; } #nullable restore #else - public Json NumberPop { get; set; } + public UntypedNode NumberPop { get; set; } #endif /// The numberSample property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberSample { get; set; } + public UntypedNode? NumberSample { get; set; } #nullable restore #else - public Json NumberSample { get; set; } + public UntypedNode NumberSample { get; set; } #endif /// The populationS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? PopulationS { get; set; } + public UntypedNode? PopulationS { get; set; } #nullable restore #else - public Json PopulationS { get; set; } + public UntypedNode PopulationS { get; set; } #endif /// The sampleS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SampleS { get; set; } + public UntypedNode? SampleS { get; set; } #nullable restore #else - public Json SampleS { get; set; } + public UntypedNode SampleS { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HypGeom_DistPostRequestBody() { @@ -63,12 +64,12 @@ public HypGeom_DistPostRequestBody() /// /// 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 HypGeom_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HypGeom_Dist.HypGeom_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HypGeom_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HypGeom_Dist.HypGeom_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numberPop", n => { NumberPop = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numberSample", n => { NumberSample = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "populationS", n => { PopulationS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "sampleS", n => { SampleS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numberPop", n => { NumberPop = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numberSample", n => { NumberSample = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "populationS", n => { PopulationS = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "sampleS", n => { SampleS = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("numberPop", NumberPop); - writer.WriteObjectValue("numberSample", NumberSample); - writer.WriteObjectValue("populationS", PopulationS); - writer.WriteObjectValue("sampleS", SampleS); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("numberPop", NumberPop); + writer.WriteObjectValue("numberSample", NumberSample); + writer.WriteObjectValue("populationS", PopulationS); + writer.WriteObjectValue("sampleS", SampleS); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.cs index 79e5d180a1..3ca801ead7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/HypGeom_Dist/HypGeom_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.HypGeom_Dist /// /// Provides operations to call the hypGeom_Dist method. /// - public class HypGeom_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HypGeom_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action hypGeom_Dist @@ -56,8 +59,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(HypGeom_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HypGeom_Dist.HypGeom_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 HypGeom_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hypGeom_Dist", 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 HypGeom_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hypGeom_Dist", rawUrl) @@ -100,11 +103,11 @@ public HypGeom_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(HypGeom_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HypGeom_Dist.HypGeom_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(HypGeom_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.HypGeom_Dist.HypGeom_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(HypGeom_DistPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkPostRequestBody.cs index d723023d1e..9ec49a2bf0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hyperlink { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class HyperlinkPostRequestBody : IAdditionalDataHolder, IParsable + public partial class HyperlinkPostRequestBody : 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. @@ -16,21 +17,21 @@ public class HyperlinkPostRequestBody : IAdditionalDataHolder, IParsable /// The friendlyName property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FriendlyName { get; set; } + public UntypedNode? FriendlyName { get; set; } #nullable restore #else - public Json FriendlyName { get; set; } + public UntypedNode FriendlyName { get; set; } #endif /// The linkLocation property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? LinkLocation { get; set; } + public UntypedNode? LinkLocation { get; set; } #nullable restore #else - public Json LinkLocation { get; set; } + public UntypedNode LinkLocation { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public HyperlinkPostRequestBody() { @@ -39,12 +40,12 @@ public HyperlinkPostRequestBody() /// /// 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 HyperlinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hyperlink.HyperlinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HyperlinkPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hyperlink.HyperlinkPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "friendlyName", n => { FriendlyName = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "linkLocation", n => { LinkLocation = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "friendlyName", n => { FriendlyName = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "linkLocation", n => { LinkLocation = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("friendlyName", FriendlyName); - writer.WriteObjectValue("linkLocation", LinkLocation); + writer.WriteObjectValue("friendlyName", FriendlyName); + writer.WriteObjectValue("linkLocation", LinkLocation); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.cs index c2c824ce48..2af9c089bb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Hyperlink/HyperlinkRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Hyperlink /// /// Provides operations to call the hyperlink method. /// - public class HyperlinkRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HyperlinkRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action hyperlink @@ -56,8 +59,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(HyperlinkPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hyperlink.HyperlinkPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 HyperlinkRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hyperlink", 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 HyperlinkRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/hyperlink", rawUrl) @@ -100,11 +103,11 @@ public HyperlinkRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(HyperlinkPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hyperlink.HyperlinkPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(HyperlinkPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Hyperlink.HyperlinkPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(HyperlinkPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/If/IfPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/If/IfPostRequestBody.cs index 80b384ae99..e604c2c230 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/If/IfPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/If/IfPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.If { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IfPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IfPostRequestBody : 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. @@ -16,29 +17,29 @@ public class IfPostRequestBody : IAdditionalDataHolder, IParsable /// The logicalTest property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? LogicalTest { get; set; } + public UntypedNode? LogicalTest { get; set; } #nullable restore #else - public Json LogicalTest { get; set; } + public UntypedNode LogicalTest { get; set; } #endif /// The valueIfFalse property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ValueIfFalse { get; set; } + public UntypedNode? ValueIfFalse { get; set; } #nullable restore #else - public Json ValueIfFalse { get; set; } + public UntypedNode ValueIfFalse { get; set; } #endif /// The valueIfTrue property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ValueIfTrue { get; set; } + public UntypedNode? ValueIfTrue { get; set; } #nullable restore #else - public Json ValueIfTrue { get; set; } + public UntypedNode ValueIfTrue { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IfPostRequestBody() { @@ -47,12 +48,12 @@ public IfPostRequestBody() /// /// 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 IfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.If.IfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IfPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.If.IfPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "logicalTest", n => { LogicalTest = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "valueIfFalse", n => { ValueIfFalse = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "valueIfTrue", n => { ValueIfTrue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "logicalTest", n => { LogicalTest = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "valueIfFalse", n => { ValueIfFalse = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "valueIfTrue", n => { ValueIfTrue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("logicalTest", LogicalTest); - writer.WriteObjectValue("valueIfFalse", ValueIfFalse); - writer.WriteObjectValue("valueIfTrue", ValueIfTrue); + writer.WriteObjectValue("logicalTest", LogicalTest); + writer.WriteObjectValue("valueIfFalse", ValueIfFalse); + writer.WriteObjectValue("valueIfTrue", ValueIfTrue); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/If/IfRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/If/IfRequestBuilder.cs index 1e07f32c27..f2d7723d3a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/If/IfRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/If/IfRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.If /// /// Provides operations to call the if method. /// - public class IfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IfRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action if @@ -56,8 +59,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(IfPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.If.IfPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/if", 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 IfRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/if", rawUrl) @@ -100,11 +103,11 @@ public IfRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/it /// 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(IfPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.If.IfPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IfPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.If.IfPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IfPostRequestBody body, Actio } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsPostRequestBody.cs index 2c49278600..c1aed31079 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImAbs { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImAbsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImAbsPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImAbsPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImAbsPostRequestBody() { @@ -31,12 +32,12 @@ public ImAbsPostRequestBody() /// /// 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 ImAbsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImAbs.ImAbsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImAbsPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImAbs.ImAbsPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.cs index ceb44abb44..c760f9056d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImAbs/ImAbsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImAbs /// /// Provides operations to call the imAbs method. /// - public class ImAbsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImAbsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imAbs @@ -56,8 +59,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(ImAbsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImAbs.ImAbsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImAbsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imAbs", 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 ImAbsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imAbs", rawUrl) @@ -100,11 +103,11 @@ public ImAbsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ImAbsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImAbs.ImAbsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImAbsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImAbs.ImAbsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImAbsPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentPostRequestBody.cs index b647b3d5e7..f09dca6494 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImArgument { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImArgumentPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImArgumentPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImArgumentPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImArgumentPostRequestBody() { @@ -31,12 +32,12 @@ public ImArgumentPostRequestBody() /// /// 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 ImArgumentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImArgument.ImArgumentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImArgumentPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImArgument.ImArgumentPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.cs index 9d228fe7f7..a97d56e4ee 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImArgument/ImArgumentRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImArgument /// /// Provides operations to call the imArgument method. /// - public class ImArgumentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImArgumentRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imArgument @@ -56,8 +59,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(ImArgumentPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImArgument.ImArgumentPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImArgumentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imArgument", 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 ImArgumentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imArgument", rawUrl) @@ -100,11 +103,11 @@ public ImArgumentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(ImArgumentPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImArgument.ImArgumentPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImArgumentPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImArgument.ImArgumentPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImArgumentPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugatePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugatePostRequestBody.cs index 00b60a48bf..9bf4e1c931 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugatePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugatePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImConjugate { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImConjugatePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImConjugatePostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImConjugatePostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImConjugatePostRequestBody() { @@ -31,12 +32,12 @@ public ImConjugatePostRequestBody() /// /// 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 ImConjugatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImConjugate.ImConjugatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImConjugatePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImConjugate.ImConjugatePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.cs index 9ad0c50eb5..b00eaf6804 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImConjugate/ImConjugateRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImConjugate /// /// Provides operations to call the imConjugate method. /// - public class ImConjugateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImConjugateRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imConjugate @@ -56,8 +59,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(ImConjugatePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImConjugate.ImConjugatePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImConjugateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imConjugate", 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 ImConjugateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imConjugate", rawUrl) @@ -100,11 +103,11 @@ public ImConjugateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(ImConjugatePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImConjugate.ImConjugatePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImConjugatePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImConjugate.ImConjugatePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImConjugatePostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosPostRequestBody.cs index 0fc0ff3f4f..4b77d993fa 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCos { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImCosPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImCosPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImCosPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImCosPostRequestBody() { @@ -31,12 +32,12 @@ public ImCosPostRequestBody() /// /// 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 ImCosPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCos.ImCosPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImCosPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCos.ImCosPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.cs index ed19dbab7c..c2952d11f6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCos/ImCosRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImCos /// /// Provides operations to call the imCos method. /// - public class ImCosRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImCosRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imCos @@ -56,8 +59,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(ImCosPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCos.ImCosPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImCosRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imCos", 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 ImCosRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imCos", rawUrl) @@ -100,11 +103,11 @@ public ImCosRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ImCosPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCos.ImCosPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImCosPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCos.ImCosPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImCosPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshPostRequestBody.cs index 6c24cf6067..a5949c39ca 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCosh { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImCoshPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImCoshPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImCoshPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImCoshPostRequestBody() { @@ -31,12 +32,12 @@ public ImCoshPostRequestBody() /// /// 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 ImCoshPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCosh.ImCoshPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImCoshPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCosh.ImCoshPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.cs index c050726e49..13cf821ed2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCosh/ImCoshRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImCosh /// /// Provides operations to call the imCosh method. /// - public class ImCoshRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImCoshRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imCosh @@ -56,8 +59,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(ImCoshPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCosh.ImCoshPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImCoshRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imCosh", 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 ImCoshRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imCosh", rawUrl) @@ -100,11 +103,11 @@ public ImCoshRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(ImCoshPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCosh.ImCoshPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImCoshPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCosh.ImCoshPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImCoshPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotPostRequestBody.cs index 160d98a893..8a2eedd3b7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCot { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImCotPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImCotPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImCotPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImCotPostRequestBody() { @@ -31,12 +32,12 @@ public ImCotPostRequestBody() /// /// 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 ImCotPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCot.ImCotPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImCotPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCot.ImCotPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.cs index 278c110543..4f5e5107e2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCot/ImCotRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImCot /// /// Provides operations to call the imCot method. /// - public class ImCotRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImCotRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imCot @@ -56,8 +59,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(ImCotPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCot.ImCotPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImCotRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imCot", 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 ImCotRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imCot", rawUrl) @@ -100,11 +103,11 @@ public ImCotRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ImCotPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCot.ImCotPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImCotPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCot.ImCotPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImCotPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscPostRequestBody.cs index f76bd1bd76..e33b2f7f64 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImCscPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImCscPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImCscPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImCscPostRequestBody() { @@ -31,12 +32,12 @@ public ImCscPostRequestBody() /// /// 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 ImCscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsc.ImCscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImCscPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsc.ImCscPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.cs index 45edebd2c6..17bc5b6a37 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsc/ImCscRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImCsc /// /// Provides operations to call the imCsc method. /// - public class ImCscRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImCscRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imCsc @@ -56,8 +59,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(ImCscPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsc.ImCscPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImCscRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imCsc", 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 ImCscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imCsc", rawUrl) @@ -100,11 +103,11 @@ public ImCscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ImCscPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsc.ImCscPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImCscPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsc.ImCscPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImCscPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschPostRequestBody.cs index 9d8b493f6c..5902afa580 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsch { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImCschPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImCschPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImCschPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImCschPostRequestBody() { @@ -31,12 +32,12 @@ public ImCschPostRequestBody() /// /// 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 ImCschPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsch.ImCschPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImCschPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsch.ImCschPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.cs index a60055b017..c18be4181c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImCsch/ImCschRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImCsch /// /// Provides operations to call the imCsch method. /// - public class ImCschRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImCschRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imCsch @@ -56,8 +59,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(ImCschPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsch.ImCschPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImCschRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imCsch", 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 ImCschRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imCsch", rawUrl) @@ -100,11 +103,11 @@ public ImCschRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(ImCschPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsch.ImCschPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImCschPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImCsch.ImCschPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImCschPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivPostRequestBody.cs index 004cc14bfd..060116fe21 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImDiv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImDivPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImDivPostRequestBody : 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. @@ -16,21 +17,21 @@ public class ImDivPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber1 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber1 { get; set; } + public UntypedNode? Inumber1 { get; set; } #nullable restore #else - public Json Inumber1 { get; set; } + public UntypedNode Inumber1 { get; set; } #endif /// The inumber2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber2 { get; set; } + public UntypedNode? Inumber2 { get; set; } #nullable restore #else - public Json Inumber2 { get; set; } + public UntypedNode Inumber2 { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImDivPostRequestBody() { @@ -39,12 +40,12 @@ public ImDivPostRequestBody() /// /// 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 ImDivPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImDiv.ImDivPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImDivPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImDiv.ImDivPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber1", n => { Inumber1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "inumber2", n => { Inumber2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber1", n => { Inumber1 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "inumber2", n => { Inumber2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber1", Inumber1); - writer.WriteObjectValue("inumber2", Inumber2); + writer.WriteObjectValue("inumber1", Inumber1); + writer.WriteObjectValue("inumber2", Inumber2); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.cs index e16243f943..96d47fe895 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImDiv/ImDivRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImDiv /// /// Provides operations to call the imDiv method. /// - public class ImDivRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImDivRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imDiv @@ -56,8 +59,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(ImDivPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImDiv.ImDivPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImDivRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imDiv", 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 ImDivRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imDiv", rawUrl) @@ -100,11 +103,11 @@ public ImDivRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ImDivPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImDiv.ImDivPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImDivPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImDiv.ImDivPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImDivPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpPostRequestBody.cs index 764666a1c3..bc268df8b4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImExp { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImExpPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImExpPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImExpPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImExpPostRequestBody() { @@ -31,12 +32,12 @@ public ImExpPostRequestBody() /// /// 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 ImExpPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImExp.ImExpPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImExpPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImExp.ImExpPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.cs index 36760a9710..936a91faff 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImExp/ImExpRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImExp /// /// Provides operations to call the imExp method. /// - public class ImExpRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImExpRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imExp @@ -56,8 +59,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(ImExpPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImExp.ImExpPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImExpRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imExp", 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 ImExpRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imExp", rawUrl) @@ -100,11 +103,11 @@ public ImExpRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ImExpPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImExp.ImExpPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImExpPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImExp.ImExpPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImExpPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnPostRequestBody.cs index c3abccfade..a50980f8b4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLn { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImLnPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImLnPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImLnPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImLnPostRequestBody() { @@ -31,12 +32,12 @@ public ImLnPostRequestBody() /// /// 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 ImLnPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLn.ImLnPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImLnPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLn.ImLnPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.cs index ac2032630f..62563cfc04 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLn/ImLnRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImLn /// /// Provides operations to call the imLn method. /// - public class ImLnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImLnRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imLn @@ -56,8 +59,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(ImLnPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLn.ImLnPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImLnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imLn", 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 ImLnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imLn", rawUrl) @@ -100,11 +103,11 @@ public ImLnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(ImLnPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLn.ImLnPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImLnPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLn.ImLnPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImLnPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10PostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10PostRequestBody.cs index 001c9619a2..784bf4979d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10PostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10PostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog10 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImLog10PostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImLog10PostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImLog10PostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImLog10PostRequestBody() { @@ -31,12 +32,12 @@ public ImLog10PostRequestBody() /// /// 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 ImLog10PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog10.ImLog10PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImLog10PostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog10.ImLog10PostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.cs index 6cd0986775..1d566b1143 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog10/ImLog10RequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImLog10 /// /// Provides operations to call the imLog10 method. /// - public class ImLog10RequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImLog10RequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imLog10 @@ -56,8 +59,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(ImLog10PostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog10.ImLog10PostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImLog10RequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imLog10", 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 ImLog10RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imLog10", rawUrl) @@ -100,11 +103,11 @@ public ImLog10RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(ImLog10PostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog10.ImLog10PostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImLog10PostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog10.ImLog10PostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImLog10PostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2PostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2PostRequestBody.cs index b20f4d1f16..65774dfba8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2PostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2PostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog2 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImLog2PostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImLog2PostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImLog2PostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImLog2PostRequestBody() { @@ -31,12 +32,12 @@ public ImLog2PostRequestBody() /// /// 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 ImLog2PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog2.ImLog2PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImLog2PostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog2.ImLog2PostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.cs index d3946f89fa..ffa26d8a64 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImLog2/ImLog2RequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImLog2 /// /// Provides operations to call the imLog2 method. /// - public class ImLog2RequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImLog2RequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imLog2 @@ -56,8 +59,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(ImLog2PostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog2.ImLog2PostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImLog2RequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imLog2", 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 ImLog2RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imLog2", rawUrl) @@ -100,11 +103,11 @@ public ImLog2RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(ImLog2PostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog2.ImLog2PostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImLog2PostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImLog2.ImLog2PostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImLog2PostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerPostRequestBody.cs index e82ad99b57..b3fea4d4e0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImPower { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImPowerPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImPowerPostRequestBody : 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. @@ -16,21 +17,21 @@ public class ImPowerPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImPowerPostRequestBody() { @@ -39,12 +40,12 @@ public ImPowerPostRequestBody() /// /// 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 ImPowerPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImPower.ImPowerPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImPowerPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImPower.ImPowerPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.cs index e0c48e8215..da5e442439 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImPower/ImPowerRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImPower /// /// Provides operations to call the imPower method. /// - public class ImPowerRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImPowerRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imPower @@ -56,8 +59,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(ImPowerPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImPower.ImPowerPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImPowerRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imPower", 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 ImPowerRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imPower", rawUrl) @@ -100,11 +103,11 @@ public ImPowerRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(ImPowerPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImPower.ImPowerPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImPowerPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImPower.ImPowerPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImPowerPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductPostRequestBody.cs index 6b3a26931b..0f5844eb80 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImProduct { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImProductPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImProductPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImProductPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImProductPostRequestBody() { @@ -31,12 +32,12 @@ public ImProductPostRequestBody() /// /// 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 ImProductPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImProduct.ImProductPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImProductPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImProduct.ImProductPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.cs index aa59acc3cd..e7be6ac784 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImProduct/ImProductRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImProduct /// /// Provides operations to call the imProduct method. /// - public class ImProductRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImProductRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imProduct @@ -56,8 +59,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(ImProductPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImProduct.ImProductPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImProductRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imProduct", 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 ImProductRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imProduct", rawUrl) @@ -100,11 +103,11 @@ public ImProductRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(ImProductPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImProduct.ImProductPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImProductPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImProduct.ImProductPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImProductPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealPostRequestBody.cs index 0f1809f14a..cd8c640b2b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImReal { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImRealPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImRealPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImRealPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImRealPostRequestBody() { @@ -31,12 +32,12 @@ public ImRealPostRequestBody() /// /// 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 ImRealPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImReal.ImRealPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImRealPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImReal.ImRealPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.cs index 14ccdff89b..81f77f06d0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImReal/ImRealRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImReal /// /// Provides operations to call the imReal method. /// - public class ImRealRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImRealRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imReal @@ -56,8 +59,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(ImRealPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImReal.ImRealPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImRealRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imReal", 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 ImRealRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imReal", rawUrl) @@ -100,11 +103,11 @@ public ImRealRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(ImRealPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImReal.ImRealPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImRealPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImReal.ImRealPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImRealPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecPostRequestBody.cs index 9b76a8d662..15f2193f8b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSec { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImSecPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImSecPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImSecPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImSecPostRequestBody() { @@ -31,12 +32,12 @@ public ImSecPostRequestBody() /// /// 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 ImSecPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSec.ImSecPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImSecPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSec.ImSecPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.cs index 56706e1909..2a8c238420 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSec/ImSecRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImSec /// /// Provides operations to call the imSec method. /// - public class ImSecRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImSecRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imSec @@ -56,8 +59,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(ImSecPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSec.ImSecPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImSecRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSec", 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 ImSecRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSec", rawUrl) @@ -100,11 +103,11 @@ public ImSecRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ImSecPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSec.ImSecPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImSecPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSec.ImSecPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImSecPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechPostRequestBody.cs index aab8c009af..f9977f0da3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSech { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImSechPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImSechPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImSechPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImSechPostRequestBody() { @@ -31,12 +32,12 @@ public ImSechPostRequestBody() /// /// 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 ImSechPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSech.ImSechPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImSechPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSech.ImSechPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.cs index a40adf4f24..e974863565 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSech/ImSechRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImSech /// /// Provides operations to call the imSech method. /// - public class ImSechRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImSechRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imSech @@ -56,8 +59,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(ImSechPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSech.ImSechPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImSechRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSech", 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 ImSechRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSech", rawUrl) @@ -100,11 +103,11 @@ public ImSechRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(ImSechPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSech.ImSechPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImSechPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSech.ImSechPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImSechPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinPostRequestBody.cs index 67c5296432..22786f9102 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSin { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImSinPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImSinPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImSinPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImSinPostRequestBody() { @@ -31,12 +32,12 @@ public ImSinPostRequestBody() /// /// 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 ImSinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSin.ImSinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImSinPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSin.ImSinPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.cs index 42a3453e1a..75ed7dd97a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSin/ImSinRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImSin /// /// Provides operations to call the imSin method. /// - public class ImSinRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImSinRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imSin @@ -56,8 +59,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(ImSinPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSin.ImSinPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImSinRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSin", 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 ImSinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSin", rawUrl) @@ -100,11 +103,11 @@ public ImSinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ImSinPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSin.ImSinPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImSinPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSin.ImSinPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImSinPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhPostRequestBody.cs index 87df3d5a68..889a347b4c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSinh { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImSinhPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImSinhPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImSinhPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImSinhPostRequestBody() { @@ -31,12 +32,12 @@ public ImSinhPostRequestBody() /// /// 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 ImSinhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSinh.ImSinhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImSinhPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSinh.ImSinhPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.cs index 1c00e5e43e..5ed8b258ed 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSinh/ImSinhRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImSinh /// /// Provides operations to call the imSinh method. /// - public class ImSinhRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImSinhRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imSinh @@ -56,8 +59,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(ImSinhPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSinh.ImSinhPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImSinhRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSinh", 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 ImSinhRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSinh", rawUrl) @@ -100,11 +103,11 @@ public ImSinhRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(ImSinhPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSinh.ImSinhPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImSinhPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSinh.ImSinhPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImSinhPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtPostRequestBody.cs index 39051af1d5..60eb947e23 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSqrt { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImSqrtPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImSqrtPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImSqrtPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImSqrtPostRequestBody() { @@ -31,12 +32,12 @@ public ImSqrtPostRequestBody() /// /// 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 ImSqrtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSqrt.ImSqrtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImSqrtPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSqrt.ImSqrtPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.cs index d282a88832..02be598cd3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSqrt/ImSqrtRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImSqrt /// /// Provides operations to call the imSqrt method. /// - public class ImSqrtRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImSqrtRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imSqrt @@ -56,8 +59,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(ImSqrtPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSqrt.ImSqrtPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImSqrtRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSqrt", 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 ImSqrtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSqrt", rawUrl) @@ -100,11 +103,11 @@ public ImSqrtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(ImSqrtPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSqrt.ImSqrtPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImSqrtPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSqrt.ImSqrtPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImSqrtPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubPostRequestBody.cs index 64f02c0683..76e8fe6384 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSub { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImSubPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImSubPostRequestBody : 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. @@ -16,21 +17,21 @@ public class ImSubPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber1 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber1 { get; set; } + public UntypedNode? Inumber1 { get; set; } #nullable restore #else - public Json Inumber1 { get; set; } + public UntypedNode Inumber1 { get; set; } #endif /// The inumber2 property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber2 { get; set; } + public UntypedNode? Inumber2 { get; set; } #nullable restore #else - public Json Inumber2 { get; set; } + public UntypedNode Inumber2 { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImSubPostRequestBody() { @@ -39,12 +40,12 @@ public ImSubPostRequestBody() /// /// 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 ImSubPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSub.ImSubPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImSubPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSub.ImSubPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber1", n => { Inumber1 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "inumber2", n => { Inumber2 = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber1", n => { Inumber1 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "inumber2", n => { Inumber2 = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber1", Inumber1); - writer.WriteObjectValue("inumber2", Inumber2); + writer.WriteObjectValue("inumber1", Inumber1); + writer.WriteObjectValue("inumber2", Inumber2); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.cs index 447e9637ad..6cf6b8b215 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSub/ImSubRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImSub /// /// Provides operations to call the imSub method. /// - public class ImSubRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImSubRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imSub @@ -56,8 +59,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(ImSubPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSub.ImSubPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImSubRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSub", 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 ImSubRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSub", rawUrl) @@ -100,11 +103,11 @@ public ImSubRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ImSubPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSub.ImSubPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImSubPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSub.ImSubPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImSubPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumPostRequestBody.cs index ce3a84069d..4ca769a29e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSum { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImSumPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImSumPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImSumPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImSumPostRequestBody() { @@ -31,12 +32,12 @@ public ImSumPostRequestBody() /// /// 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 ImSumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSum.ImSumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImSumPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSum.ImSumPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.cs index d81298d0bc..3c590ae3d2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImSum/ImSumRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImSum /// /// Provides operations to call the imSum method. /// - public class ImSumRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImSumRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imSum @@ -56,8 +59,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(ImSumPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSum.ImSumPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImSumRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSum", 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 ImSumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imSum", rawUrl) @@ -100,11 +103,11 @@ public ImSumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ImSumPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSum.ImSumPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImSumPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImSum.ImSumPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImSumPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanPostRequestBody.cs index aaa5a1929e..5b0a51a625 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImTan { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImTanPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImTanPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImTanPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImTanPostRequestBody() { @@ -31,12 +32,12 @@ public ImTanPostRequestBody() /// /// 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 ImTanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImTan.ImTanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImTanPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImTan.ImTanPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.cs index cb19f6a0e2..2de5ff6469 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ImTan/ImTanRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ImTan /// /// Provides operations to call the imTan method. /// - public class ImTanRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImTanRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imTan @@ -56,8 +59,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(ImTanPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImTan.ImTanPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImTanRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imTan", 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 ImTanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imTan", rawUrl) @@ -100,11 +103,11 @@ public ImTanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ImTanPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImTan.ImTanPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImTanPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ImTan.ImTanPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImTanPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryPostRequestBody.cs index b2d63d8da0..92fbfc2826 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Imaginary { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImaginaryPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ImaginaryPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ImaginaryPostRequestBody : IAdditionalDataHolder, IParsable /// The inumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Inumber { get; set; } + public UntypedNode? Inumber { get; set; } #nullable restore #else - public Json Inumber { get; set; } + public UntypedNode Inumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImaginaryPostRequestBody() { @@ -31,12 +32,12 @@ public ImaginaryPostRequestBody() /// /// 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 ImaginaryPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Imaginary.ImaginaryPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImaginaryPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Imaginary.ImaginaryPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "inumber", n => { Inumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "inumber", n => { Inumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("inumber", Inumber); + writer.WriteObjectValue("inumber", Inumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.cs index 32df9acee0..f6447ba165 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Imaginary/ImaginaryRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Imaginary /// /// Provides operations to call the imaginary method. /// - public class ImaginaryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImaginaryRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action imaginary @@ -56,8 +59,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(ImaginaryPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Imaginary.ImaginaryPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ImaginaryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imaginary", 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 ImaginaryRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/imaginary", rawUrl) @@ -100,11 +103,11 @@ public ImaginaryRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(ImaginaryPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Imaginary.ImaginaryPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImaginaryPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Imaginary.ImaginaryPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ImaginaryPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntPostRequestBody.cs index e0910e7dae..86e737aa4a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Int { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IntPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IntPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IntPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IntPostRequestBody() { @@ -31,12 +32,12 @@ public IntPostRequestBody() /// /// 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 IntPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Int.IntPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IntPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Int.IntPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.cs index 59b7b52acb..6a22325b3a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Int/IntRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Int /// /// Provides operations to call the int method. /// - public class IntRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action int @@ -56,8 +59,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(IntPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Int.IntPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IntRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/int", 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 IntRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/int", rawUrl) @@ -100,11 +103,11 @@ public IntRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(IntPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Int.IntPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IntPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Int.IntPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IntPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRatePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRatePostRequestBody.cs index d0bd5bb3ae..ab209746c4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRatePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRatePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IntRate { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IntRatePostRequestBody : IAdditionalDataHolder, IParsable + public partial class IntRatePostRequestBody : 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. @@ -16,45 +17,45 @@ public class IntRatePostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The investment property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Investment { get; set; } + public UntypedNode? Investment { get; set; } #nullable restore #else - public Json Investment { get; set; } + public UntypedNode Investment { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The redemption property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Redemption { get; set; } + public UntypedNode? Redemption { get; set; } #nullable restore #else - public Json Redemption { get; set; } + public UntypedNode Redemption { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IntRatePostRequestBody() { @@ -63,12 +64,12 @@ public IntRatePostRequestBody() /// /// 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 IntRatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IntRate.IntRatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IntRatePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IntRate.IntRatePostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "investment", n => { Investment = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "redemption", n => { Redemption = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "investment", n => { Investment = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "redemption", n => { Redemption = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("investment", Investment); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("redemption", Redemption); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("investment", Investment); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("redemption", Redemption); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.cs index d5fb285482..8ed92b618f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IntRate/IntRateRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IntRate /// /// Provides operations to call the intRate method. /// - public class IntRateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntRateRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action intRate @@ -56,8 +59,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(IntRatePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IntRate.IntRatePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IntRateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/intRate", 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 IntRateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/intRate", rawUrl) @@ -100,11 +103,11 @@ public IntRateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(IntRatePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IntRate.IntRatePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IntRatePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IntRate.IntRatePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IntRatePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtPostRequestBody.cs index 7cc7d42add..e633d5f1aa 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ipmt { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IpmtPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IpmtPostRequestBody : 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. @@ -16,53 +17,53 @@ public class IpmtPostRequestBody : IAdditionalDataHolder, IParsable /// The fv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Fv { get; set; } + public UntypedNode? Fv { get; set; } #nullable restore #else - public Json Fv { get; set; } + public UntypedNode Fv { get; set; } #endif /// The nper property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Nper { get; set; } + public UntypedNode? Nper { get; set; } #nullable restore #else - public Json Nper { get; set; } + public UntypedNode Nper { get; set; } #endif /// The per property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Per { get; set; } + public UntypedNode? Per { get; set; } #nullable restore #else - public Json Per { get; set; } + public UntypedNode Per { get; set; } #endif /// The pv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pv { get; set; } + public UntypedNode? Pv { get; set; } #nullable restore #else - public Json Pv { get; set; } + public UntypedNode Pv { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Type { get; set; } + public UntypedNode? Type { get; set; } #nullable restore #else - public Json Type { get; set; } + public UntypedNode Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IpmtPostRequestBody() { @@ -71,12 +72,12 @@ public IpmtPostRequestBody() /// /// 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 IpmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ipmt.IpmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IpmtPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ipmt.IpmtPostRequestBody(); } /// /// The deserialization information for the current model @@ -86,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "per", n => { Per = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "fv", n => { Fv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "nper", n => { Nper = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "per", n => { Per = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pv", n => { Pv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -101,13 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fv", Fv); - writer.WriteObjectValue("nper", Nper); - writer.WriteObjectValue("per", Per); - writer.WriteObjectValue("pv", Pv); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("type", Type); + writer.WriteObjectValue("fv", Fv); + writer.WriteObjectValue("nper", Nper); + writer.WriteObjectValue("per", Per); + writer.WriteObjectValue("pv", Pv); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.cs index f3cd99b2d6..e4bb9b6c29 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ipmt/IpmtRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Ipmt /// /// Provides operations to call the ipmt method. /// - public class IpmtRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IpmtRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action ipmt @@ -56,8 +59,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(IpmtPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ipmt.IpmtPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IpmtRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ipmt", 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 IpmtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ipmt", rawUrl) @@ -100,11 +103,11 @@ public IpmtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(IpmtPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ipmt.IpmtPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IpmtPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ipmt.IpmtPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IpmtPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrPostRequestBody.cs index 102c70873a..c558933491 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Irr { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IrrPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IrrPostRequestBody : 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. @@ -16,21 +17,21 @@ public class IrrPostRequestBody : IAdditionalDataHolder, IParsable /// The guess property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Guess { get; set; } + public UntypedNode? Guess { get; set; } #nullable restore #else - public Json Guess { get; set; } + public UntypedNode Guess { get; set; } #endif /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IrrPostRequestBody() { @@ -39,12 +40,12 @@ public IrrPostRequestBody() /// /// 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 IrrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Irr.IrrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IrrPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Irr.IrrPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "guess", n => { Guess = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "guess", n => { Guess = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("guess", Guess); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("guess", Guess); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.cs index 9c301710b9..f3f4c978cc 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Irr/IrrRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Irr /// /// Provides operations to call the irr method. /// - public class IrrRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IrrRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action irr @@ -56,8 +59,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(IrrPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Irr.IrrPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IrrRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/irr", 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 IrrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/irr", rawUrl) @@ -100,11 +103,11 @@ public IrrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(IrrPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Irr.IrrPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IrrPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Irr.IrrPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IrrPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrPostRequestBody.cs index af8c95a374..e6ef3ad6c0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsErr { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsErrPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsErrPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsErrPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsErrPostRequestBody() { @@ -31,12 +32,12 @@ public IsErrPostRequestBody() /// /// 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 IsErrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsErr.IsErrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsErrPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsErr.IsErrPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.cs index ab2e4e750f..f6d0250085 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsErr/IsErrRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IsErr /// /// Provides operations to call the isErr method. /// - public class IsErrRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsErrRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isErr @@ -56,8 +59,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(IsErrPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsErr.IsErrPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsErrRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isErr", 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 IsErrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isErr", rawUrl) @@ -100,11 +103,11 @@ public IsErrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(IsErrPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsErr.IsErrPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsErrPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsErr.IsErrPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsErrPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorPostRequestBody.cs index eb5e5518a8..b3fa1ecabf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsError { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsErrorPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsErrorPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsErrorPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsErrorPostRequestBody() { @@ -31,12 +32,12 @@ public IsErrorPostRequestBody() /// /// 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 IsErrorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsError.IsErrorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsErrorPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsError.IsErrorPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.cs index 1473550244..f8c5258f04 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsError/IsErrorRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IsError /// /// Provides operations to call the isError method. /// - public class IsErrorRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsErrorRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isError @@ -56,8 +59,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(IsErrorPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsError.IsErrorPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsErrorRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isError", 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 IsErrorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isError", rawUrl) @@ -100,11 +103,11 @@ public IsErrorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(IsErrorPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsError.IsErrorPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsErrorPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsError.IsErrorPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsErrorPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenPostRequestBody.cs index c452072849..d060e9b5c5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsEven { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsEvenPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsEvenPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsEvenPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsEvenPostRequestBody() { @@ -31,12 +32,12 @@ public IsEvenPostRequestBody() /// /// 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 IsEvenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsEven.IsEvenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsEvenPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsEven.IsEvenPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.cs index 8329154876..a07ee7f006 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsEven/IsEvenRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IsEven /// /// Provides operations to call the isEven method. /// - public class IsEvenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsEvenRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isEven @@ -56,8 +59,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(IsEvenPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsEven.IsEvenPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsEvenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isEven", 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 IsEvenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isEven", rawUrl) @@ -100,11 +103,11 @@ public IsEvenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(IsEvenPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsEven.IsEvenPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsEvenPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsEven.IsEvenPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsEvenPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaPostRequestBody.cs index b76bb84040..884f27ce4c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsFormula { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsFormulaPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsFormulaPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsFormulaPostRequestBody : IAdditionalDataHolder, IParsable /// The reference property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Reference { get; set; } + public UntypedNode? Reference { get; set; } #nullable restore #else - public Json Reference { get; set; } + public UntypedNode Reference { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsFormulaPostRequestBody() { @@ -31,12 +32,12 @@ public IsFormulaPostRequestBody() /// /// 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 IsFormulaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsFormula.IsFormulaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsFormulaPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsFormula.IsFormulaPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "reference", n => { Reference = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "reference", n => { Reference = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("reference", Reference); + writer.WriteObjectValue("reference", Reference); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.cs index cc1c49a841..53f1c14600 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsFormula/IsFormulaRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IsFormula /// /// Provides operations to call the isFormula method. /// - public class IsFormulaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsFormulaRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isFormula @@ -56,8 +59,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(IsFormulaPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsFormula.IsFormulaPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsFormulaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isFormula", 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 IsFormulaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isFormula", rawUrl) @@ -100,11 +103,11 @@ public IsFormulaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(IsFormulaPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsFormula.IsFormulaPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsFormulaPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsFormula.IsFormulaPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsFormulaPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalPostRequestBody.cs index f5c069f753..50e465ca64 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsLogical { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsLogicalPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsLogicalPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsLogicalPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsLogicalPostRequestBody() { @@ -31,12 +32,12 @@ public IsLogicalPostRequestBody() /// /// 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 IsLogicalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsLogical.IsLogicalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsLogicalPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsLogical.IsLogicalPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.cs index 04fd922aa2..152ff600a2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsLogical/IsLogicalRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IsLogical /// /// Provides operations to call the isLogical method. /// - public class IsLogicalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsLogicalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isLogical @@ -56,8 +59,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(IsLogicalPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsLogical.IsLogicalPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsLogicalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isLogical", 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 IsLogicalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isLogical", rawUrl) @@ -100,11 +103,11 @@ public IsLogicalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(IsLogicalPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsLogical.IsLogicalPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsLogicalPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsLogical.IsLogicalPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsLogicalPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNAPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNAPostRequestBody.cs index c2a936c58e..cd67b34d73 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNAPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNAPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNA { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsNAPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsNAPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsNAPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsNAPostRequestBody() { @@ -31,12 +32,12 @@ public IsNAPostRequestBody() /// /// 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 IsNAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNA.IsNAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsNAPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNA.IsNAPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.cs index 2862abe496..0aaf654c13 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNA/IsNARequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IsNA /// /// Provides operations to call the isNA method. /// - public class IsNARequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsNARequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isNA @@ -56,8 +59,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(IsNAPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNA.IsNAPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsNARequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isNA", 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 IsNARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isNA", rawUrl) @@ -100,11 +103,11 @@ public IsNARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(IsNAPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNA.IsNAPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsNAPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNA.IsNAPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsNAPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextPostRequestBody.cs index 2dfcb5beb3..372a79a062 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNonText { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsNonTextPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsNonTextPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsNonTextPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsNonTextPostRequestBody() { @@ -31,12 +32,12 @@ public IsNonTextPostRequestBody() /// /// 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 IsNonTextPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNonText.IsNonTextPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsNonTextPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNonText.IsNonTextPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.cs index c4e49fdade..effcd5108e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNonText/IsNonTextRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IsNonText /// /// Provides operations to call the isNonText method. /// - public class IsNonTextRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsNonTextRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isNonText @@ -56,8 +59,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(IsNonTextPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNonText.IsNonTextPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsNonTextRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isNonText", 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 IsNonTextRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isNonText", rawUrl) @@ -100,11 +103,11 @@ public IsNonTextRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(IsNonTextPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNonText.IsNonTextPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsNonTextPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNonText.IsNonTextPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsNonTextPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberPostRequestBody.cs index 5dbf35a570..bcb1473d0b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNumber { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsNumberPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsNumberPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsNumberPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsNumberPostRequestBody() { @@ -31,12 +32,12 @@ public IsNumberPostRequestBody() /// /// 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 IsNumberPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNumber.IsNumberPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsNumberPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNumber.IsNumberPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.cs index af0aa19d0f..2ffce43969 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsNumber/IsNumberRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IsNumber /// /// Provides operations to call the isNumber method. /// - public class IsNumberRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsNumberRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isNumber @@ -56,8 +59,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(IsNumberPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNumber.IsNumberPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsNumberRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isNumber", 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 IsNumberRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isNumber", rawUrl) @@ -100,11 +103,11 @@ public IsNumberRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(IsNumberPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNumber.IsNumberPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsNumberPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsNumber.IsNumberPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsNumberPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddPostRequestBody.cs index 0c45c11ffd..42ca586e47 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsOdd { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsOddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsOddPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsOddPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsOddPostRequestBody() { @@ -31,12 +32,12 @@ public IsOddPostRequestBody() /// /// 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 IsOddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsOdd.IsOddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsOddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsOdd.IsOddPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.cs index 7235b2102b..820992bab6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsOdd/IsOddRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IsOdd /// /// Provides operations to call the isOdd method. /// - public class IsOddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsOddRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isOdd @@ -56,8 +59,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(IsOddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsOdd.IsOddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsOddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isOdd", 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 IsOddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isOdd", rawUrl) @@ -100,11 +103,11 @@ public IsOddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(IsOddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsOdd.IsOddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsOddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsOdd.IsOddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsOddPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextPostRequestBody.cs index 211b7ef1e9..61b5e5e8fe 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsText { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsTextPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsTextPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsTextPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsTextPostRequestBody() { @@ -31,12 +32,12 @@ public IsTextPostRequestBody() /// /// 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 IsTextPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsText.IsTextPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsTextPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsText.IsTextPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.cs index b65d693e18..7d46d2a3ca 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsText/IsTextRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IsText /// /// Provides operations to call the isText method. /// - public class IsTextRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsTextRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isText @@ -56,8 +59,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(IsTextPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsText.IsTextPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsTextRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isText", 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 IsTextRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isText", rawUrl) @@ -100,11 +103,11 @@ public IsTextRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(IsTextPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsText.IsTextPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsTextPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsText.IsTextPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsTextPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumPostRequestBody.cs index 02d1457f8e..0b02498aba 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsoWeekNum { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsoWeekNumPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsoWeekNumPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsoWeekNumPostRequestBody : IAdditionalDataHolder, IParsable /// The date property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Date { get; set; } + public UntypedNode? Date { get; set; } #nullable restore #else - public Json Date { get; set; } + public UntypedNode Date { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsoWeekNumPostRequestBody() { @@ -31,12 +32,12 @@ public IsoWeekNumPostRequestBody() /// /// 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 IsoWeekNumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsoWeekNum.IsoWeekNumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsoWeekNumPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsoWeekNum.IsoWeekNumPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "date", n => { Date = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "date", n => { Date = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("date", Date); + writer.WriteObjectValue("date", Date); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.cs index 9473787dc2..5beb423470 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/IsoWeekNum/IsoWeekNumRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.IsoWeekNum /// /// Provides operations to call the isoWeekNum method. /// - public class IsoWeekNumRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsoWeekNumRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isoWeekNum @@ -56,8 +59,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(IsoWeekNumPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsoWeekNum.IsoWeekNumPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsoWeekNumRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isoWeekNum", 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 IsoWeekNumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isoWeekNum", rawUrl) @@ -100,11 +103,11 @@ public IsoWeekNumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(IsoWeekNumPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsoWeekNum.IsoWeekNumPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsoWeekNumPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.IsoWeekNum.IsoWeekNumPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsoWeekNumPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingPostRequestBody.cs index cf28b27d21..e24b5dbcd3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Iso_Ceiling { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Iso_CeilingPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Iso_CeilingPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Iso_CeilingPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The significance property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Significance { get; set; } + public UntypedNode? Significance { get; set; } #nullable restore #else - public Json Significance { get; set; } + public UntypedNode Significance { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Iso_CeilingPostRequestBody() { @@ -39,12 +40,12 @@ public Iso_CeilingPostRequestBody() /// /// 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 Iso_CeilingPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Iso_Ceiling.Iso_CeilingPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Iso_CeilingPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Iso_Ceiling.Iso_CeilingPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "significance", n => { Significance = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("significance", Significance); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("significance", Significance); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.cs index 55920cfc53..b6cf71fa29 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Iso_Ceiling/Iso_CeilingRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Iso_Ceiling /// /// Provides operations to call the iso_Ceiling method. /// - public class Iso_CeilingRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Iso_CeilingRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action iso_Ceiling @@ -56,8 +59,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(Iso_CeilingPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Iso_Ceiling.Iso_CeilingPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Iso_CeilingRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/iso_Ceiling", 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 Iso_CeilingRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/iso_Ceiling", rawUrl) @@ -100,11 +103,11 @@ public Iso_CeilingRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(Iso_CeilingPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Iso_Ceiling.Iso_CeilingPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Iso_CeilingPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Iso_Ceiling.Iso_CeilingPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Iso_CeilingPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtPostRequestBody.cs index 37e1ad6637..a816975f9b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ispmt { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IspmtPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IspmtPostRequestBody : 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. @@ -16,37 +17,37 @@ public class IspmtPostRequestBody : IAdditionalDataHolder, IParsable /// The nper property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Nper { get; set; } + public UntypedNode? Nper { get; set; } #nullable restore #else - public Json Nper { get; set; } + public UntypedNode Nper { get; set; } #endif /// The per property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Per { get; set; } + public UntypedNode? Per { get; set; } #nullable restore #else - public Json Per { get; set; } + public UntypedNode Per { get; set; } #endif /// The pv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pv { get; set; } + public UntypedNode? Pv { get; set; } #nullable restore #else - public Json Pv { get; set; } + public UntypedNode Pv { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IspmtPostRequestBody() { @@ -55,12 +56,12 @@ public IspmtPostRequestBody() /// /// 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 IspmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ispmt.IspmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IspmtPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ispmt.IspmtPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "per", n => { Per = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "nper", n => { Nper = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "per", n => { Per = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pv", n => { Pv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("nper", Nper); - writer.WriteObjectValue("per", Per); - writer.WriteObjectValue("pv", Pv); - writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("nper", Nper); + writer.WriteObjectValue("per", Per); + writer.WriteObjectValue("pv", Pv); + writer.WriteObjectValue("rate", Rate); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.cs index 715ac0fa43..4bf6598d81 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ispmt/IspmtRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Ispmt /// /// Provides operations to call the ispmt method. /// - public class IspmtRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IspmtRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action ispmt @@ -56,8 +59,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(IspmtPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ispmt.IspmtPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IspmtRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ispmt", 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 IspmtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ispmt", rawUrl) @@ -100,11 +103,11 @@ public IspmtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(IspmtPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ispmt.IspmtPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IspmtPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ispmt.IspmtPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IspmtPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefPostRequestBody.cs index 145a9cf027..7548ced954 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Isref { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsrefPostRequestBody : IAdditionalDataHolder, IParsable + public partial class IsrefPostRequestBody : 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. @@ -16,13 +17,13 @@ public class IsrefPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsrefPostRequestBody() { @@ -31,12 +32,12 @@ public IsrefPostRequestBody() /// /// 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 IsrefPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Isref.IsrefPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsrefPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Isref.IsrefPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.cs index aa715a389c..2293ccd6ec 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Isref/IsrefRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Isref /// /// Provides operations to call the isref method. /// - public class IsrefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsrefRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action isref @@ -56,8 +59,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(IsrefPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Isref.IsrefPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 IsrefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isref", 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 IsrefRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/isref", rawUrl) @@ -100,11 +103,11 @@ public IsrefRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(IsrefPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Isref.IsrefPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(IsrefPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Isref.IsrefPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(IsrefPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtPostRequestBody.cs index 64393dc177..cc5ec20397 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Kurt { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class KurtPostRequestBody : IAdditionalDataHolder, IParsable + public partial class KurtPostRequestBody : 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. @@ -16,13 +17,13 @@ public class KurtPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public KurtPostRequestBody() { @@ -31,12 +32,12 @@ public KurtPostRequestBody() /// /// 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 KurtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Kurt.KurtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new KurtPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Kurt.KurtPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.cs index e5e9fbda1c..d730073520 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Kurt/KurtRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Kurt /// /// Provides operations to call the kurt method. /// - public class KurtRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class KurtRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action kurt @@ -56,8 +59,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(KurtPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Kurt.KurtPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 KurtRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/kurt", 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 KurtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/kurt", rawUrl) @@ -100,11 +103,11 @@ public KurtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(KurtPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Kurt.KurtPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(KurtPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Kurt.KurtPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(KurtPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargePostRequestBody.cs index c7bd1aa250..ec1cfc2065 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Large { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LargePostRequestBody : IAdditionalDataHolder, IParsable + public partial class LargePostRequestBody : 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. @@ -16,21 +17,21 @@ public class LargePostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// The k property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? K { get; set; } + public UntypedNode? K { get; set; } #nullable restore #else - public Json K { get; set; } + public UntypedNode K { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LargePostRequestBody() { @@ -39,12 +40,12 @@ public LargePostRequestBody() /// /// 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 LargePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Large.LargePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LargePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Large.LargePostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "k", n => { K = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "k", n => { K = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); - writer.WriteObjectValue("k", K); + writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("k", K); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.cs index 14b2373c17..3a7cb222fb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Large/LargeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Large /// /// Provides operations to call the large method. /// - public class LargeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LargeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action large @@ -56,8 +59,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(LargePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Large.LargePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LargeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/large", 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 LargeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/large", rawUrl) @@ -100,11 +103,11 @@ public LargeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(LargePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Large.LargePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LargePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Large.LargePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LargePostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmPostRequestBody.cs index 36339a5050..7ab5f5dda2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lcm { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LcmPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LcmPostRequestBody : 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. @@ -16,13 +17,13 @@ public class LcmPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LcmPostRequestBody() { @@ -31,12 +32,12 @@ public LcmPostRequestBody() /// /// 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 LcmPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lcm.LcmPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LcmPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lcm.LcmPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.cs index 85a8c4236d..4823788890 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lcm/LcmRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Lcm /// /// Provides operations to call the lcm method. /// - public class LcmRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LcmRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action lcm @@ -56,8 +59,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(LcmPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lcm.LcmPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LcmRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/lcm", 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 LcmRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/lcm", rawUrl) @@ -100,11 +103,11 @@ public LcmRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(LcmPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lcm.LcmPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LcmPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lcm.LcmPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LcmPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftPostRequestBody.cs index 2c00d749b2..904a02d661 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Left { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LeftPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LeftPostRequestBody : 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. @@ -16,21 +17,21 @@ public class LeftPostRequestBody : IAdditionalDataHolder, IParsable /// The numChars property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumChars { get; set; } + public UntypedNode? NumChars { get; set; } #nullable restore #else - public Json NumChars { get; set; } + public UntypedNode NumChars { get; set; } #endif /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LeftPostRequestBody() { @@ -39,12 +40,12 @@ public LeftPostRequestBody() /// /// 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 LeftPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Left.LeftPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LeftPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Left.LeftPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numChars", n => { NumChars = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numChars", n => { NumChars = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("numChars", NumChars); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("numChars", NumChars); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.cs index b653fb1366..6c343d3f2e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Left/LeftRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Left /// /// Provides operations to call the left method. /// - public class LeftRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LeftRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action left @@ -56,8 +59,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(LeftPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Left.LeftPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LeftRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/left", 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 LeftRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/left", rawUrl) @@ -100,11 +103,11 @@ public LeftRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(LeftPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Left.LeftPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LeftPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Left.LeftPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LeftPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbPostRequestBody.cs index a46a82b02e..5a3f7613ee 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Leftb { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LeftbPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LeftbPostRequestBody : 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. @@ -16,21 +17,21 @@ public class LeftbPostRequestBody : IAdditionalDataHolder, IParsable /// The numBytes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumBytes { get; set; } + public UntypedNode? NumBytes { get; set; } #nullable restore #else - public Json NumBytes { get; set; } + public UntypedNode NumBytes { get; set; } #endif /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LeftbPostRequestBody() { @@ -39,12 +40,12 @@ public LeftbPostRequestBody() /// /// 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 LeftbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Leftb.LeftbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LeftbPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Leftb.LeftbPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numBytes", n => { NumBytes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numBytes", n => { NumBytes = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("numBytes", NumBytes); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("numBytes", NumBytes); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.cs index 2cb09a7606..8f3caa448c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Leftb/LeftbRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Leftb /// /// Provides operations to call the leftb method. /// - public class LeftbRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LeftbRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action leftb @@ -56,8 +59,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(LeftbPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Leftb.LeftbPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LeftbRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/leftb", 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 LeftbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/leftb", rawUrl) @@ -100,11 +103,11 @@ public LeftbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(LeftbPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Leftb.LeftbPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LeftbPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Leftb.LeftbPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LeftbPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenPostRequestBody.cs index 6184b49521..f4a7f1219f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Len { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LenPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LenPostRequestBody : 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. @@ -16,13 +17,13 @@ public class LenPostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LenPostRequestBody() { @@ -31,12 +32,12 @@ public LenPostRequestBody() /// /// 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 LenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Len.LenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LenPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Len.LenPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.cs index 999e22e5f6..248ee945b0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Len/LenRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Len /// /// Provides operations to call the len method. /// - public class LenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LenRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action len @@ -56,8 +59,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(LenPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Len.LenPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/len", 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 LenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/len", rawUrl) @@ -100,11 +103,11 @@ public LenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(LenPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Len.LenPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LenPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Len.LenPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LenPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbPostRequestBody.cs index f632ac97bb..0458e2bdd2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lenb { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LenbPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LenbPostRequestBody : 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. @@ -16,13 +17,13 @@ public class LenbPostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LenbPostRequestBody() { @@ -31,12 +32,12 @@ public LenbPostRequestBody() /// /// 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 LenbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lenb.LenbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LenbPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lenb.LenbPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.cs index c45646e695..8f933ada7c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lenb/LenbRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Lenb /// /// Provides operations to call the lenb method. /// - public class LenbRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LenbRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action lenb @@ -56,8 +59,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(LenbPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lenb.LenbPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LenbRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/lenb", 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 LenbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/lenb", rawUrl) @@ -100,11 +103,11 @@ public LenbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(LenbPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lenb.LenbPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LenbPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lenb.LenbPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LenbPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnPostRequestBody.cs index 88fce4e8b1..03b7ac53d3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ln { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LnPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LnPostRequestBody : 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. @@ -16,13 +17,13 @@ public class LnPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LnPostRequestBody() { @@ -31,12 +32,12 @@ public LnPostRequestBody() /// /// 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 LnPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ln.LnPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LnPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ln.LnPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.cs index 6c9d2afd39..0772c24b5b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ln/LnRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Ln /// /// Provides operations to call the ln method. /// - public class LnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LnRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action ln @@ -56,8 +59,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(LnPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ln.LnPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ln", 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 LnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ln", rawUrl) @@ -100,11 +103,11 @@ public LnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/it /// 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(LnPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ln.LnPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LnPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ln.LnPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LnPostRequestBody body, Actio } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogPostRequestBody.cs index be0b2234ff..3ea61cb422 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LogPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LogPostRequestBody : 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. @@ -16,21 +17,21 @@ public class LogPostRequestBody : IAdditionalDataHolder, IParsable /// The base property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Base { get; set; } + public UntypedNode? Base { get; set; } #nullable restore #else - public Json Base { get; set; } + public UntypedNode Base { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LogPostRequestBody() { @@ -39,12 +40,12 @@ public LogPostRequestBody() /// /// 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 LogPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log.LogPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LogPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log.LogPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "base", n => { Base = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "base", n => { Base = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("base", Base); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("base", Base); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.cs index c102497385..39f0e37391 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log/LogRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Log /// /// Provides operations to call the log method. /// - public class LogRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LogRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action log @@ -56,8 +59,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(LogPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log.LogPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LogRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/log", 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 LogRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/log", rawUrl) @@ -100,11 +103,11 @@ public LogRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(LogPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log.LogPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LogPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log.LogPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LogPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10PostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10PostRequestBody.cs index 87cd508cf4..04ecf80f8a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10PostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10PostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log10 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Log10PostRequestBody : IAdditionalDataHolder, IParsable + public partial class Log10PostRequestBody : 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. @@ -16,13 +17,13 @@ public class Log10PostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Log10PostRequestBody() { @@ -31,12 +32,12 @@ public Log10PostRequestBody() /// /// 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 Log10PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log10.Log10PostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Log10PostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log10.Log10PostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.cs index 0dfdb95209..b48566ba74 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Log10/Log10RequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Log10 /// /// Provides operations to call the log10 method. /// - public class Log10RequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Log10RequestBuilder : BaseCliRequestBuilder { /// /// Invoke action log10 @@ -56,8 +59,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(Log10PostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log10.Log10PostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Log10RequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/log10", 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 Log10RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/log10", rawUrl) @@ -100,11 +103,11 @@ public Log10RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(Log10PostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log10.Log10PostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Log10PostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Log10.Log10PostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Log10PostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistPostRequestBody.cs index 337b0cf5a6..657690c3ec 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LogNorm_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LogNorm_DistPostRequestBody : 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. @@ -16,37 +17,37 @@ public class LogNorm_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The mean property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Mean { get; set; } + public UntypedNode? Mean { get; set; } #nullable restore #else - public Json Mean { get; set; } + public UntypedNode Mean { get; set; } #endif /// The standardDev property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StandardDev { get; set; } + public UntypedNode? StandardDev { get; set; } #nullable restore #else - public Json StandardDev { get; set; } + public UntypedNode StandardDev { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LogNorm_DistPostRequestBody() { @@ -55,12 +56,12 @@ public LogNorm_DistPostRequestBody() /// /// 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 LogNorm_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Dist.LogNorm_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LogNorm_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Dist.LogNorm_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "standardDev", n => { StandardDev = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "mean", n => { Mean = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "standardDev", n => { StandardDev = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("mean", Mean); - writer.WriteObjectValue("standardDev", StandardDev); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("mean", Mean); + writer.WriteObjectValue("standardDev", StandardDev); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.cs index 3b8cd7128b..81b97775df 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Dist/LogNorm_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Dist /// /// Provides operations to call the logNorm_Dist method. /// - public class LogNorm_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LogNorm_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action logNorm_Dist @@ -56,8 +59,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(LogNorm_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Dist.LogNorm_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LogNorm_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/logNorm_Dist", 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 LogNorm_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/logNorm_Dist", rawUrl) @@ -100,11 +103,11 @@ public LogNorm_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(LogNorm_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Dist.LogNorm_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LogNorm_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Dist.LogNorm_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LogNorm_DistPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvPostRequestBody.cs index e2718a0920..7134ba53fd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Inv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LogNorm_InvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LogNorm_InvPostRequestBody : 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. @@ -16,29 +17,29 @@ public class LogNorm_InvPostRequestBody : IAdditionalDataHolder, IParsable /// The mean property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Mean { get; set; } + public UntypedNode? Mean { get; set; } #nullable restore #else - public Json Mean { get; set; } + public UntypedNode Mean { get; set; } #endif /// The probability property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Probability { get; set; } + public UntypedNode? Probability { get; set; } #nullable restore #else - public Json Probability { get; set; } + public UntypedNode Probability { get; set; } #endif /// The standardDev property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StandardDev { get; set; } + public UntypedNode? StandardDev { get; set; } #nullable restore #else - public Json StandardDev { get; set; } + public UntypedNode StandardDev { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LogNorm_InvPostRequestBody() { @@ -47,12 +48,12 @@ public LogNorm_InvPostRequestBody() /// /// 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 LogNorm_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Inv.LogNorm_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LogNorm_InvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Inv.LogNorm_InvPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "standardDev", n => { StandardDev = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "mean", n => { Mean = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probability", n => { Probability = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "standardDev", n => { StandardDev = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("mean", Mean); - writer.WriteObjectValue("probability", Probability); - writer.WriteObjectValue("standardDev", StandardDev); + writer.WriteObjectValue("mean", Mean); + writer.WriteObjectValue("probability", Probability); + writer.WriteObjectValue("standardDev", StandardDev); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.cs index cf05c339d9..59517fe7dc 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/LogNorm_Inv/LogNorm_InvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Inv /// /// Provides operations to call the logNorm_Inv method. /// - public class LogNorm_InvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LogNorm_InvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action logNorm_Inv @@ -56,8 +59,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(LogNorm_InvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Inv.LogNorm_InvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LogNorm_InvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/logNorm_Inv", 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 LogNorm_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/logNorm_Inv", rawUrl) @@ -100,11 +103,11 @@ public LogNorm_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(LogNorm_InvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Inv.LogNorm_InvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LogNorm_InvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Inv.LogNorm_InvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LogNorm_InvPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupPostRequestBody.cs index 37927fce7b..a38bd8d948 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lookup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LookupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LookupPostRequestBody : 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. @@ -16,29 +17,29 @@ public class LookupPostRequestBody : IAdditionalDataHolder, IParsable /// The lookupValue property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? LookupValue { get; set; } + public UntypedNode? LookupValue { get; set; } #nullable restore #else - public Json LookupValue { get; set; } + public UntypedNode LookupValue { get; set; } #endif /// The lookupVector property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? LookupVector { get; set; } + public UntypedNode? LookupVector { get; set; } #nullable restore #else - public Json LookupVector { get; set; } + public UntypedNode LookupVector { get; set; } #endif /// The resultVector property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ResultVector { get; set; } + public UntypedNode? ResultVector { get; set; } #nullable restore #else - public Json ResultVector { get; set; } + public UntypedNode ResultVector { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LookupPostRequestBody() { @@ -47,12 +48,12 @@ public LookupPostRequestBody() /// /// 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 LookupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lookup.LookupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LookupPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lookup.LookupPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "lookupValue", n => { LookupValue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "lookupVector", n => { LookupVector = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "resultVector", n => { ResultVector = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "lookupValue", n => { LookupValue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "lookupVector", n => { LookupVector = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "resultVector", n => { ResultVector = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("lookupValue", LookupValue); - writer.WriteObjectValue("lookupVector", LookupVector); - writer.WriteObjectValue("resultVector", ResultVector); + writer.WriteObjectValue("lookupValue", LookupValue); + writer.WriteObjectValue("lookupVector", LookupVector); + writer.WriteObjectValue("resultVector", ResultVector); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.cs index 7e47820983..bd8b8c5944 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lookup/LookupRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Lookup /// /// Provides operations to call the lookup method. /// - public class LookupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LookupRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action lookup @@ -56,8 +59,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(LookupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lookup.LookupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LookupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/lookup", 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 LookupRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/lookup", rawUrl) @@ -100,11 +103,11 @@ public LookupRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(LookupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lookup.LookupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LookupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lookup.LookupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LookupPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerPostRequestBody.cs index 6c0cbd5caa..03cbdc69b3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lower { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class LowerPostRequestBody : IAdditionalDataHolder, IParsable + public partial class LowerPostRequestBody : 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. @@ -16,13 +17,13 @@ public class LowerPostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public LowerPostRequestBody() { @@ -31,12 +32,12 @@ public LowerPostRequestBody() /// /// 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 LowerPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lower.LowerPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LowerPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lower.LowerPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.cs index a6a3f0ab28..dc95f3178c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Lower/LowerRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Lower /// /// Provides operations to call the lower method. /// - public class LowerRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LowerRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action lower @@ -56,8 +59,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(LowerPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lower.LowerPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 LowerRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/lower", 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 LowerRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/lower", rawUrl) @@ -100,11 +103,11 @@ public LowerRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(LowerPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lower.LowerPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LowerPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Lower.LowerPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(LowerPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchPostRequestBody.cs index 754e99f392..5ed3b4281b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Match { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MatchPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MatchPostRequestBody : 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. @@ -16,29 +17,29 @@ public class MatchPostRequestBody : IAdditionalDataHolder, IParsable /// The lookupArray property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? LookupArray { get; set; } + public UntypedNode? LookupArray { get; set; } #nullable restore #else - public Json LookupArray { get; set; } + public UntypedNode LookupArray { get; set; } #endif /// The lookupValue property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? LookupValue { get; set; } + public UntypedNode? LookupValue { get; set; } #nullable restore #else - public Json LookupValue { get; set; } + public UntypedNode LookupValue { get; set; } #endif /// The matchType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? MatchType { get; set; } + public UntypedNode? MatchType { get; set; } #nullable restore #else - public Json MatchType { get; set; } + public UntypedNode MatchType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MatchPostRequestBody() { @@ -47,12 +48,12 @@ public MatchPostRequestBody() /// /// 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 MatchPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Match.MatchPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MatchPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Match.MatchPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "lookupArray", n => { LookupArray = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "lookupValue", n => { LookupValue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "matchType", n => { MatchType = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "lookupArray", n => { LookupArray = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "lookupValue", n => { LookupValue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "matchType", n => { MatchType = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("lookupArray", LookupArray); - writer.WriteObjectValue("lookupValue", LookupValue); - writer.WriteObjectValue("matchType", MatchType); + writer.WriteObjectValue("lookupArray", LookupArray); + writer.WriteObjectValue("lookupValue", LookupValue); + writer.WriteObjectValue("matchType", MatchType); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.cs index fe78cdb7c8..4394dc2fbb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Match/MatchRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Match /// /// Provides operations to call the match method. /// - public class MatchRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MatchRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action match @@ -56,8 +59,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(MatchPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Match.MatchPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MatchRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/match", 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 MatchRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/match", rawUrl) @@ -100,11 +103,11 @@ public MatchRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(MatchPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Match.MatchPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MatchPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Match.MatchPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MatchPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxPostRequestBody.cs index 4d30ed01b7..6cbe2e2401 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Max { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MaxPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MaxPostRequestBody : 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. @@ -16,13 +17,13 @@ public class MaxPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MaxPostRequestBody() { @@ -31,12 +32,12 @@ public MaxPostRequestBody() /// /// 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 MaxPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Max.MaxPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MaxPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Max.MaxPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.cs index fffb051da4..b8211d5935 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Max/MaxRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Max /// /// Provides operations to call the max method. /// - public class MaxRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MaxRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action max @@ -56,8 +59,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(MaxPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Max.MaxPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MaxRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/max", 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 MaxRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/max", rawUrl) @@ -100,11 +103,11 @@ public MaxRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(MaxPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Max.MaxPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MaxPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Max.MaxPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MaxPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxAPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxAPostRequestBody.cs index c8f81c8b34..ee3d2dd666 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxAPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxAPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MaxA { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MaxAPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MaxAPostRequestBody : 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. @@ -16,13 +17,13 @@ public class MaxAPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MaxAPostRequestBody() { @@ -31,12 +32,12 @@ public MaxAPostRequestBody() /// /// 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 MaxAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MaxA.MaxAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MaxAPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MaxA.MaxAPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.cs index 9ecc723c6f..1cc68c8643 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MaxA/MaxARequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.MaxA /// /// Provides operations to call the maxA method. /// - public class MaxARequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MaxARequestBuilder : BaseCliRequestBuilder { /// /// Invoke action maxA @@ -56,8 +59,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(MaxAPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MaxA.MaxAPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MaxARequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/maxA", 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 MaxARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/maxA", rawUrl) @@ -100,11 +103,11 @@ public MaxARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(MaxAPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MaxA.MaxAPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MaxAPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MaxA.MaxAPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MaxAPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationPostRequestBody.cs index 0d381cc04a..fe0c6b201e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mduration { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MdurationPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MdurationPostRequestBody : 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. @@ -16,53 +17,53 @@ public class MdurationPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The coupon property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Coupon { get; set; } + public UntypedNode? Coupon { get; set; } #nullable restore #else - public Json Coupon { get; set; } + public UntypedNode Coupon { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// The yld property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Yld { get; set; } + public UntypedNode? Yld { get; set; } #nullable restore #else - public Json Yld { get; set; } + public UntypedNode Yld { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MdurationPostRequestBody() { @@ -71,12 +72,12 @@ public MdurationPostRequestBody() /// /// 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 MdurationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mduration.MdurationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MdurationPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mduration.MdurationPostRequestBody(); } /// /// The deserialization information for the current model @@ -86,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "coupon", n => { Coupon = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "yld", n => { Yld = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "coupon", n => { Coupon = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "yld", n => { Yld = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -101,13 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("coupon", Coupon); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("settlement", Settlement); - writer.WriteObjectValue("yld", Yld); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("coupon", Coupon); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("yld", Yld); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.cs index 26c919a1f7..1e7ebb9823 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mduration/MdurationRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Mduration /// /// Provides operations to call the mduration method. /// - public class MdurationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MdurationRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action mduration @@ -56,8 +59,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(MdurationPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mduration.MdurationPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MdurationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mduration", 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 MdurationRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mduration", rawUrl) @@ -100,11 +103,11 @@ public MdurationRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(MdurationPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mduration.MdurationPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MdurationPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mduration.MdurationPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MdurationPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianPostRequestBody.cs index 4c22a86d93..c979170d68 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Median { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MedianPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MedianPostRequestBody : 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. @@ -16,13 +17,13 @@ public class MedianPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MedianPostRequestBody() { @@ -31,12 +32,12 @@ public MedianPostRequestBody() /// /// 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 MedianPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Median.MedianPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MedianPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Median.MedianPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.cs index 3d584a1dda..4cf3937a2a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Median/MedianRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Median /// /// Provides operations to call the median method. /// - public class MedianRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MedianRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action median @@ -56,8 +59,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(MedianPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Median.MedianPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MedianRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/median", 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 MedianRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/median", rawUrl) @@ -100,11 +103,11 @@ public MedianRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(MedianPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Median.MedianPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MedianPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Median.MedianPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MedianPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidPostRequestBody.cs index fce8bb90a1..ffec522782 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mid { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MidPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MidPostRequestBody : 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. @@ -16,29 +17,29 @@ public class MidPostRequestBody : IAdditionalDataHolder, IParsable /// The numChars property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumChars { get; set; } + public UntypedNode? NumChars { get; set; } #nullable restore #else - public Json NumChars { get; set; } + public UntypedNode NumChars { get; set; } #endif /// The startNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartNum { get; set; } + public UntypedNode? StartNum { get; set; } #nullable restore #else - public Json StartNum { get; set; } + public UntypedNode StartNum { get; set; } #endif /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MidPostRequestBody() { @@ -47,12 +48,12 @@ public MidPostRequestBody() /// /// 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 MidPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mid.MidPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MidPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mid.MidPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numChars", n => { NumChars = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startNum", n => { StartNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numChars", n => { NumChars = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startNum", n => { StartNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("numChars", NumChars); - writer.WriteObjectValue("startNum", StartNum); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("numChars", NumChars); + writer.WriteObjectValue("startNum", StartNum); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.cs index 1237e03fd5..c11615644a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mid/MidRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Mid /// /// Provides operations to call the mid method. /// - public class MidRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MidRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action mid @@ -56,8 +59,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(MidPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mid.MidPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MidRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mid", 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 MidRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mid", rawUrl) @@ -100,11 +103,11 @@ public MidRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(MidPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mid.MidPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MidPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mid.MidPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MidPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbPostRequestBody.cs index c0d0e0aa51..866bf8ae0b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Midb { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MidbPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MidbPostRequestBody : 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. @@ -16,29 +17,29 @@ public class MidbPostRequestBody : IAdditionalDataHolder, IParsable /// The numBytes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumBytes { get; set; } + public UntypedNode? NumBytes { get; set; } #nullable restore #else - public Json NumBytes { get; set; } + public UntypedNode NumBytes { get; set; } #endif /// The startNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartNum { get; set; } + public UntypedNode? StartNum { get; set; } #nullable restore #else - public Json StartNum { get; set; } + public UntypedNode StartNum { get; set; } #endif /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MidbPostRequestBody() { @@ -47,12 +48,12 @@ public MidbPostRequestBody() /// /// 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 MidbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Midb.MidbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MidbPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Midb.MidbPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numBytes", n => { NumBytes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startNum", n => { StartNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numBytes", n => { NumBytes = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startNum", n => { StartNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("numBytes", NumBytes); - writer.WriteObjectValue("startNum", StartNum); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("numBytes", NumBytes); + writer.WriteObjectValue("startNum", StartNum); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.cs index 6ad33843c5..b3e4aad8bb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Midb/MidbRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Midb /// /// Provides operations to call the midb method. /// - public class MidbRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MidbRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action midb @@ -56,8 +59,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(MidbPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Midb.MidbPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MidbRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/midb", 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 MidbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/midb", rawUrl) @@ -100,11 +103,11 @@ public MidbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(MidbPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Midb.MidbPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MidbPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Midb.MidbPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MidbPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinPostRequestBody.cs index 865354532c..8dd569e242 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Min { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MinPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MinPostRequestBody : 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. @@ -16,13 +17,13 @@ public class MinPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MinPostRequestBody() { @@ -31,12 +32,12 @@ public MinPostRequestBody() /// /// 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 MinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Min.MinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MinPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Min.MinPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.cs index 45d194840c..e7e5791ae1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Min/MinRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Min /// /// Provides operations to call the min method. /// - public class MinRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MinRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action min @@ -56,8 +59,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(MinPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Min.MinPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MinRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/min", 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 MinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/min", rawUrl) @@ -100,11 +103,11 @@ public MinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(MinPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Min.MinPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MinPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Min.MinPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MinPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinAPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinAPostRequestBody.cs index b6d6a27642..ec56a42363 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinAPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinAPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MinA { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MinAPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MinAPostRequestBody : 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. @@ -16,13 +17,13 @@ public class MinAPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MinAPostRequestBody() { @@ -31,12 +32,12 @@ public MinAPostRequestBody() /// /// 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 MinAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MinA.MinAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MinAPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MinA.MinAPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.cs index 4f9b5da637..0c234fdc88 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MinA/MinARequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.MinA /// /// Provides operations to call the minA method. /// - public class MinARequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MinARequestBuilder : BaseCliRequestBuilder { /// /// Invoke action minA @@ -56,8 +59,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(MinAPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MinA.MinAPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MinARequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/minA", 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 MinARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/minA", rawUrl) @@ -100,11 +103,11 @@ public MinARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(MinAPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MinA.MinAPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MinAPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MinA.MinAPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MinAPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinutePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinutePostRequestBody.cs index d973aea607..cfccef41fd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinutePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinutePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Minute { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MinutePostRequestBody : IAdditionalDataHolder, IParsable + public partial class MinutePostRequestBody : 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. @@ -16,13 +17,13 @@ public class MinutePostRequestBody : IAdditionalDataHolder, IParsable /// The serialNumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SerialNumber { get; set; } + public UntypedNode? SerialNumber { get; set; } #nullable restore #else - public Json SerialNumber { get; set; } + public UntypedNode SerialNumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MinutePostRequestBody() { @@ -31,12 +32,12 @@ public MinutePostRequestBody() /// /// 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 MinutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Minute.MinutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MinutePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Minute.MinutePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "serialNumber", n => { SerialNumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("serialNumber", SerialNumber); + writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.cs index 2efef81c74..6557f00dff 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Minute/MinuteRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Minute /// /// Provides operations to call the minute method. /// - public class MinuteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MinuteRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action minute @@ -56,8 +59,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(MinutePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Minute.MinutePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MinuteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/minute", 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 MinuteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/minute", rawUrl) @@ -100,11 +103,11 @@ public MinuteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(MinutePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Minute.MinutePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MinutePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Minute.MinutePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MinutePostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrPostRequestBody.cs index cc82019687..4c85976cfe 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mirr { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MirrPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MirrPostRequestBody : 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. @@ -16,29 +17,29 @@ public class MirrPostRequestBody : IAdditionalDataHolder, IParsable /// The financeRate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FinanceRate { get; set; } + public UntypedNode? FinanceRate { get; set; } #nullable restore #else - public Json FinanceRate { get; set; } + public UntypedNode FinanceRate { get; set; } #endif /// The reinvestRate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ReinvestRate { get; set; } + public UntypedNode? ReinvestRate { get; set; } #nullable restore #else - public Json ReinvestRate { get; set; } + public UntypedNode ReinvestRate { get; set; } #endif /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MirrPostRequestBody() { @@ -47,12 +48,12 @@ public MirrPostRequestBody() /// /// 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 MirrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mirr.MirrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MirrPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mirr.MirrPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "financeRate", n => { FinanceRate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "reinvestRate", n => { ReinvestRate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "financeRate", n => { FinanceRate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "reinvestRate", n => { ReinvestRate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("financeRate", FinanceRate); - writer.WriteObjectValue("reinvestRate", ReinvestRate); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("financeRate", FinanceRate); + writer.WriteObjectValue("reinvestRate", ReinvestRate); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.cs index a52cb97318..d34686477d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mirr/MirrRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Mirr /// /// Provides operations to call the mirr method. /// - public class MirrRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MirrRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action mirr @@ -56,8 +59,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(MirrPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mirr.MirrPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MirrRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mirr", 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 MirrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mirr", rawUrl) @@ -100,11 +103,11 @@ public MirrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(MirrPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mirr.MirrPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MirrPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mirr.MirrPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MirrPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModPostRequestBody.cs index e396b9f17d..926755e230 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mod { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ModPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ModPostRequestBody : 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. @@ -16,21 +17,21 @@ public class ModPostRequestBody : IAdditionalDataHolder, IParsable /// The divisor property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Divisor { get; set; } + public UntypedNode? Divisor { get; set; } #nullable restore #else - public Json Divisor { get; set; } + public UntypedNode Divisor { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ModPostRequestBody() { @@ -39,12 +40,12 @@ public ModPostRequestBody() /// /// 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 ModPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mod.ModPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ModPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mod.ModPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "divisor", n => { Divisor = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "divisor", n => { Divisor = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("divisor", Divisor); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("divisor", Divisor); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.cs index 9cbbebec55..469546941f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mod/ModRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Mod /// /// Provides operations to call the mod method. /// - public class ModRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ModRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action mod @@ -56,8 +59,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(ModPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mod.ModPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ModRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mod", 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 ModRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mod", rawUrl) @@ -100,11 +103,11 @@ public ModRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(ModPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mod.ModPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ModPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mod.ModPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ModPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthPostRequestBody.cs index 5b28218475..7e732aa874 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Month { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MonthPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MonthPostRequestBody : 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. @@ -16,13 +17,13 @@ public class MonthPostRequestBody : IAdditionalDataHolder, IParsable /// The serialNumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SerialNumber { get; set; } + public UntypedNode? SerialNumber { get; set; } #nullable restore #else - public Json SerialNumber { get; set; } + public UntypedNode SerialNumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MonthPostRequestBody() { @@ -31,12 +32,12 @@ public MonthPostRequestBody() /// /// 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 MonthPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Month.MonthPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MonthPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Month.MonthPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "serialNumber", n => { SerialNumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("serialNumber", SerialNumber); + writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.cs index 26ef7ab572..01b7251129 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Month/MonthRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Month /// /// Provides operations to call the month method. /// - public class MonthRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MonthRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action month @@ -56,8 +59,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(MonthPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Month.MonthPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MonthRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/month", 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 MonthRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/month", rawUrl) @@ -100,11 +103,11 @@ public MonthRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(MonthPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Month.MonthPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MonthPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Month.MonthPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MonthPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundPostRequestBody.cs index f362c53b98..d000f067e8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mround { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MroundPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MroundPostRequestBody : 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. @@ -16,21 +17,21 @@ public class MroundPostRequestBody : IAdditionalDataHolder, IParsable /// The multiple property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Multiple { get; set; } + public UntypedNode? Multiple { get; set; } #nullable restore #else - public Json Multiple { get; set; } + public UntypedNode Multiple { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MroundPostRequestBody() { @@ -39,12 +40,12 @@ public MroundPostRequestBody() /// /// 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 MroundPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mround.MroundPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MroundPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mround.MroundPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "multiple", n => { Multiple = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "multiple", n => { Multiple = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("multiple", Multiple); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("multiple", Multiple); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.cs index 120611ff91..13d2b821f9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Mround/MroundRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Mround /// /// Provides operations to call the mround method. /// - public class MroundRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MroundRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action mround @@ -56,8 +59,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(MroundPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mround.MroundPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MroundRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mround", 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 MroundRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/mround", rawUrl) @@ -100,11 +103,11 @@ public MroundRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(MroundPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mround.MroundPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MroundPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Mround.MroundPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MroundPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialPostRequestBody.cs index f16022f9be..f0f49408bc 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MultiNomial { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MultiNomialPostRequestBody : IAdditionalDataHolder, IParsable + public partial class MultiNomialPostRequestBody : 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. @@ -16,13 +17,13 @@ public class MultiNomialPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MultiNomialPostRequestBody() { @@ -31,12 +32,12 @@ public MultiNomialPostRequestBody() /// /// 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 MultiNomialPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MultiNomial.MultiNomialPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MultiNomialPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MultiNomial.MultiNomialPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.cs index b3a6cca8b3..765651c4d9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/MultiNomial/MultiNomialRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.MultiNomial /// /// Provides operations to call the multiNomial method. /// - public class MultiNomialRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MultiNomialRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action multiNomial @@ -56,8 +59,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(MultiNomialPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MultiNomial.MultiNomialPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 MultiNomialRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/multiNomial", 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 MultiNomialRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/multiNomial", rawUrl) @@ -100,11 +103,11 @@ public MultiNomialRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(MultiNomialPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MultiNomial.MultiNomialPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MultiNomialPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.MultiNomial.MultiNomialPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(MultiNomialPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/N/NPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/N/NPostRequestBody.cs index e61e6fa8b6..c8e319256d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/N/NPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/N/NPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.N { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class NPostRequestBody : IAdditionalDataHolder, IParsable + public partial class NPostRequestBody : 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. @@ -16,13 +17,13 @@ public class NPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NPostRequestBody() { @@ -31,12 +32,12 @@ public NPostRequestBody() /// /// 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 NPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.N.NPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.N.NPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.cs index 68f50ca6aa..14d7a1071f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/N/NRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.N /// /// Provides operations to call the n method. /// - public class NRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action n @@ -56,8 +59,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(NPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.N.NPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 NRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/n", 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 NRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/n", rawUrl) @@ -100,11 +103,11 @@ public NRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ite /// 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(NPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.N.NPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(NPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.N.NPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(NPostRequestBody body, Action } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.cs index b7ebefcf13..b0ea4a7191 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Na/NaRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Na /// /// Provides operations to call the na method. /// - public class NaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NaRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action na @@ -66,14 +69,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 NaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/na", 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 NaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/na", rawUrl) @@ -100,3 +103,4 @@ public RequestInformation ToPostRequestInformation(Action -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NegBinom_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class NegBinom_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class NegBinom_DistPostRequestBody : 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. @@ -16,37 +17,37 @@ public class NegBinom_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The numberF property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberF { get; set; } + public UntypedNode? NumberF { get; set; } #nullable restore #else - public Json NumberF { get; set; } + public UntypedNode NumberF { get; set; } #endif /// The numberS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberS { get; set; } + public UntypedNode? NumberS { get; set; } #nullable restore #else - public Json NumberS { get; set; } + public UntypedNode NumberS { get; set; } #endif /// The probabilityS property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ProbabilityS { get; set; } + public UntypedNode? ProbabilityS { get; set; } #nullable restore #else - public Json ProbabilityS { get; set; } + public UntypedNode ProbabilityS { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NegBinom_DistPostRequestBody() { @@ -55,12 +56,12 @@ public NegBinom_DistPostRequestBody() /// /// 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 NegBinom_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NegBinom_Dist.NegBinom_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NegBinom_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NegBinom_Dist.NegBinom_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numberF", n => { NumberF = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numberS", n => { NumberS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probabilityS", n => { ProbabilityS = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numberF", n => { NumberF = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numberS", n => { NumberS = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probabilityS", n => { ProbabilityS = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("numberF", NumberF); - writer.WriteObjectValue("numberS", NumberS); - writer.WriteObjectValue("probabilityS", ProbabilityS); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("numberF", NumberF); + writer.WriteObjectValue("numberS", NumberS); + writer.WriteObjectValue("probabilityS", ProbabilityS); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.cs index 7de60beebc..ee5ae11f99 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NegBinom_Dist/NegBinom_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.NegBinom_Dist /// /// Provides operations to call the negBinom_Dist method. /// - public class NegBinom_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NegBinom_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action negBinom_Dist @@ -56,8 +59,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(NegBinom_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NegBinom_Dist.NegBinom_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 NegBinom_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/negBinom_Dist", 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 NegBinom_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/negBinom_Dist", rawUrl) @@ -100,11 +103,11 @@ public NegBinom_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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(NegBinom_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NegBinom_Dist.NegBinom_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(NegBinom_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NegBinom_Dist.NegBinom_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(NegBinom_DistPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysPostRequestBody.cs index 4ad82b0a50..9f2dfc710c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class NetworkDaysPostRequestBody : IAdditionalDataHolder, IParsable + public partial class NetworkDaysPostRequestBody : 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. @@ -16,29 +17,29 @@ public class NetworkDaysPostRequestBody : IAdditionalDataHolder, IParsable /// The endDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EndDate { get; set; } + public UntypedNode? EndDate { get; set; } #nullable restore #else - public Json EndDate { get; set; } + public UntypedNode EndDate { get; set; } #endif /// The holidays property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Holidays { get; set; } + public UntypedNode? Holidays { get; set; } #nullable restore #else - public Json Holidays { get; set; } + public UntypedNode Holidays { get; set; } #endif /// The startDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartDate { get; set; } + public UntypedNode? StartDate { get; set; } #nullable restore #else - public Json StartDate { get; set; } + public UntypedNode StartDate { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NetworkDaysPostRequestBody() { @@ -47,12 +48,12 @@ public NetworkDaysPostRequestBody() /// /// 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 NetworkDaysPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays.NetworkDaysPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NetworkDaysPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays.NetworkDaysPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "endDate", n => { EndDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "holidays", n => { Holidays = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "endDate", n => { EndDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "holidays", n => { Holidays = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startDate", n => { StartDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("endDate", EndDate); - writer.WriteObjectValue("holidays", Holidays); - writer.WriteObjectValue("startDate", StartDate); + writer.WriteObjectValue("endDate", EndDate); + writer.WriteObjectValue("holidays", Holidays); + writer.WriteObjectValue("startDate", StartDate); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.cs index 1afb5c8a69..c306159dd8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays/NetworkDaysRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.NetworkDays /// /// Provides operations to call the networkDays method. /// - public class NetworkDaysRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NetworkDaysRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action networkDays @@ -56,8 +59,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(NetworkDaysPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays.NetworkDaysPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 NetworkDaysRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/networkDays", 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 NetworkDaysRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/networkDays", rawUrl) @@ -100,11 +103,11 @@ public NetworkDaysRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(NetworkDaysPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays.NetworkDaysPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(NetworkDaysPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays.NetworkDaysPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(NetworkDaysPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlPostRequestBody.cs index 0046549c64..0390786a79 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays_Intl { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class NetworkDays_IntlPostRequestBody : IAdditionalDataHolder, IParsable + public partial class NetworkDays_IntlPostRequestBody : 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. @@ -16,37 +17,37 @@ public class NetworkDays_IntlPostRequestBody : IAdditionalDataHolder, IParsable /// The endDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EndDate { get; set; } + public UntypedNode? EndDate { get; set; } #nullable restore #else - public Json EndDate { get; set; } + public UntypedNode EndDate { get; set; } #endif /// The holidays property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Holidays { get; set; } + public UntypedNode? Holidays { get; set; } #nullable restore #else - public Json Holidays { get; set; } + public UntypedNode Holidays { get; set; } #endif /// The startDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartDate { get; set; } + public UntypedNode? StartDate { get; set; } #nullable restore #else - public Json StartDate { get; set; } + public UntypedNode StartDate { get; set; } #endif /// The weekend property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Weekend { get; set; } + public UntypedNode? Weekend { get; set; } #nullable restore #else - public Json Weekend { get; set; } + public UntypedNode Weekend { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NetworkDays_IntlPostRequestBody() { @@ -55,12 +56,12 @@ public NetworkDays_IntlPostRequestBody() /// /// 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 NetworkDays_IntlPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays_Intl.NetworkDays_IntlPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NetworkDays_IntlPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays_Intl.NetworkDays_IntlPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "endDate", n => { EndDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "holidays", n => { Holidays = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "weekend", n => { Weekend = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "endDate", n => { EndDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "holidays", n => { Holidays = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startDate", n => { StartDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "weekend", n => { Weekend = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("endDate", EndDate); - writer.WriteObjectValue("holidays", Holidays); - writer.WriteObjectValue("startDate", StartDate); - writer.WriteObjectValue("weekend", Weekend); + writer.WriteObjectValue("endDate", EndDate); + writer.WriteObjectValue("holidays", Holidays); + writer.WriteObjectValue("startDate", StartDate); + writer.WriteObjectValue("weekend", Weekend); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.cs index 42d9aeb942..f409086257 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NetworkDays_Intl/NetworkDays_IntlRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.NetworkDays_Intl /// /// Provides operations to call the networkDays_Intl method. /// - public class NetworkDays_IntlRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NetworkDays_IntlRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action networkDays_Intl @@ -56,8 +59,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(NetworkDays_IntlPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays_Intl.NetworkDays_IntlPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 NetworkDays_IntlRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/networkDays_Intl", 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 NetworkDays_IntlRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/networkDays_Intl", rawUrl) @@ -100,11 +103,11 @@ public NetworkDays_IntlRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{ /// 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(NetworkDays_IntlPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays_Intl.NetworkDays_IntlPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(NetworkDays_IntlPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NetworkDays_Intl.NetworkDays_IntlPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(NetworkDays_IntlPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalPostRequestBody.cs index 2332938116..8226ece7f8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nominal { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class NominalPostRequestBody : IAdditionalDataHolder, IParsable + public partial class NominalPostRequestBody : 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. @@ -16,21 +17,21 @@ public class NominalPostRequestBody : IAdditionalDataHolder, IParsable /// The effectRate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EffectRate { get; set; } + public UntypedNode? EffectRate { get; set; } #nullable restore #else - public Json EffectRate { get; set; } + public UntypedNode EffectRate { get; set; } #endif /// The npery property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Npery { get; set; } + public UntypedNode? Npery { get; set; } #nullable restore #else - public Json Npery { get; set; } + public UntypedNode Npery { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NominalPostRequestBody() { @@ -39,12 +40,12 @@ public NominalPostRequestBody() /// /// 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 NominalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nominal.NominalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NominalPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nominal.NominalPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "effectRate", n => { EffectRate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "npery", n => { Npery = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "effectRate", n => { EffectRate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "npery", n => { Npery = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("effectRate", EffectRate); - writer.WriteObjectValue("npery", Npery); + writer.WriteObjectValue("effectRate", EffectRate); + writer.WriteObjectValue("npery", Npery); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.cs index 638f90d464..d107d4724a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nominal/NominalRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Nominal /// /// Provides operations to call the nominal method. /// - public class NominalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NominalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action nominal @@ -56,8 +59,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(NominalPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nominal.NominalPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 NominalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/nominal", 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 NominalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/nominal", rawUrl) @@ -100,11 +103,11 @@ public NominalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(NominalPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nominal.NominalPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(NominalPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nominal.NominalPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(NominalPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistPostRequestBody.cs index 7126d5c37f..d04d0616d2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Norm_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Norm_DistPostRequestBody : 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. @@ -16,37 +17,37 @@ public class Norm_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The mean property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Mean { get; set; } + public UntypedNode? Mean { get; set; } #nullable restore #else - public Json Mean { get; set; } + public UntypedNode Mean { get; set; } #endif /// The standardDev property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StandardDev { get; set; } + public UntypedNode? StandardDev { get; set; } #nullable restore #else - public Json StandardDev { get; set; } + public UntypedNode StandardDev { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Norm_DistPostRequestBody() { @@ -55,12 +56,12 @@ public Norm_DistPostRequestBody() /// /// 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 Norm_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Dist.Norm_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Norm_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Dist.Norm_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "standardDev", n => { StandardDev = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "mean", n => { Mean = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "standardDev", n => { StandardDev = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("mean", Mean); - writer.WriteObjectValue("standardDev", StandardDev); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("mean", Mean); + writer.WriteObjectValue("standardDev", StandardDev); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.cs index 7f5d81d9d0..fa155251bf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Dist/Norm_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Norm_Dist /// /// Provides operations to call the norm_Dist method. /// - public class Norm_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Norm_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action norm_Dist @@ -56,8 +59,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(Norm_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Dist.Norm_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Norm_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/norm_Dist", 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 Norm_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/norm_Dist", rawUrl) @@ -100,11 +103,11 @@ public Norm_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(Norm_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Dist.Norm_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Norm_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Dist.Norm_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Norm_DistPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvPostRequestBody.cs index 73abf01954..53ae4ae9a8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Inv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Norm_InvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Norm_InvPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Norm_InvPostRequestBody : IAdditionalDataHolder, IParsable /// The mean property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Mean { get; set; } + public UntypedNode? Mean { get; set; } #nullable restore #else - public Json Mean { get; set; } + public UntypedNode Mean { get; set; } #endif /// The probability property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Probability { get; set; } + public UntypedNode? Probability { get; set; } #nullable restore #else - public Json Probability { get; set; } + public UntypedNode Probability { get; set; } #endif /// The standardDev property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StandardDev { get; set; } + public UntypedNode? StandardDev { get; set; } #nullable restore #else - public Json StandardDev { get; set; } + public UntypedNode StandardDev { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Norm_InvPostRequestBody() { @@ -47,12 +48,12 @@ public Norm_InvPostRequestBody() /// /// 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 Norm_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Inv.Norm_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Norm_InvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Inv.Norm_InvPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "standardDev", n => { StandardDev = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "mean", n => { Mean = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probability", n => { Probability = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "standardDev", n => { StandardDev = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("mean", Mean); - writer.WriteObjectValue("probability", Probability); - writer.WriteObjectValue("standardDev", StandardDev); + writer.WriteObjectValue("mean", Mean); + writer.WriteObjectValue("probability", Probability); + writer.WriteObjectValue("standardDev", StandardDev); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.cs index dd9b234258..b9b28495f1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_Inv/Norm_InvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Norm_Inv /// /// Provides operations to call the norm_Inv method. /// - public class Norm_InvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Norm_InvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action norm_Inv @@ -56,8 +59,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(Norm_InvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Inv.Norm_InvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Norm_InvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/norm_Inv", 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 Norm_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/norm_Inv", rawUrl) @@ -100,11 +103,11 @@ public Norm_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(Norm_InvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Inv.Norm_InvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Norm_InvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_Inv.Norm_InvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Norm_InvPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistPostRequestBody.cs index 3df814c879..deacec2ec1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Norm_S_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Norm_S_DistPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Norm_S_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The z property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Z { get; set; } + public UntypedNode? Z { get; set; } #nullable restore #else - public Json Z { get; set; } + public UntypedNode Z { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Norm_S_DistPostRequestBody() { @@ -39,12 +40,12 @@ public Norm_S_DistPostRequestBody() /// /// 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 Norm_S_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Dist.Norm_S_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Norm_S_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Dist.Norm_S_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "z", n => { Z = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "z", n => { Z = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("z", Z); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("z", Z); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.cs index 7fe275682c..9782c25e01 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Dist/Norm_S_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Dist /// /// Provides operations to call the norm_S_Dist method. /// - public class Norm_S_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Norm_S_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action norm_S_Dist @@ -56,8 +59,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(Norm_S_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Dist.Norm_S_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Norm_S_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/norm_S_Dist", 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 Norm_S_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/norm_S_Dist", rawUrl) @@ -100,11 +103,11 @@ public Norm_S_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(Norm_S_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Dist.Norm_S_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Norm_S_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Dist.Norm_S_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Norm_S_DistPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvPostRequestBody.cs index e5cb91604e..d25591774e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Inv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Norm_S_InvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Norm_S_InvPostRequestBody : 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. @@ -16,13 +17,13 @@ public class Norm_S_InvPostRequestBody : IAdditionalDataHolder, IParsable /// The probability property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Probability { get; set; } + public UntypedNode? Probability { get; set; } #nullable restore #else - public Json Probability { get; set; } + public UntypedNode Probability { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Norm_S_InvPostRequestBody() { @@ -31,12 +32,12 @@ public Norm_S_InvPostRequestBody() /// /// 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 Norm_S_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Inv.Norm_S_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Norm_S_InvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Inv.Norm_S_InvPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "probability", n => { Probability = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("probability", Probability); + writer.WriteObjectValue("probability", Probability); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.cs index 8de49f0cfa..0941f9c264 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Norm_S_Inv/Norm_S_InvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Inv /// /// Provides operations to call the norm_S_Inv method. /// - public class Norm_S_InvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Norm_S_InvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action norm_S_Inv @@ -56,8 +59,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(Norm_S_InvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Inv.Norm_S_InvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Norm_S_InvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/norm_S_Inv", 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 Norm_S_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/norm_S_Inv", rawUrl) @@ -100,11 +103,11 @@ public Norm_S_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(Norm_S_InvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Inv.Norm_S_InvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Norm_S_InvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Inv.Norm_S_InvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Norm_S_InvPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotPostRequestBody.cs index ed195e63b6..6ec8b79092 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Not { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class NotPostRequestBody : IAdditionalDataHolder, IParsable + public partial class NotPostRequestBody : 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. @@ -16,13 +17,13 @@ public class NotPostRequestBody : IAdditionalDataHolder, IParsable /// The logical property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Logical { get; set; } + public UntypedNode? Logical { get; set; } #nullable restore #else - public Json Logical { get; set; } + public UntypedNode Logical { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NotPostRequestBody() { @@ -31,12 +32,12 @@ public NotPostRequestBody() /// /// 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 NotPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Not.NotPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NotPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Not.NotPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "logical", n => { Logical = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "logical", n => { Logical = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("logical", Logical); + writer.WriteObjectValue("logical", Logical); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.cs index 7941580d47..20739744b7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Not/NotRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Not /// /// Provides operations to call the not method. /// - public class NotRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action not @@ -56,8 +59,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(NotPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Not.NotPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 NotRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/not", 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 NotRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/not", rawUrl) @@ -100,11 +103,11 @@ public NotRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(NotPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Not.NotPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(NotPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Not.NotPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(NotPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.cs index dc12544b84..6857a37b83 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Now/NowRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Now /// /// Provides operations to call the now method. /// - public class NowRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NowRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action now @@ -66,14 +69,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 NowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/now", 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 NowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/now", rawUrl) @@ -100,3 +103,4 @@ public RequestInformation ToPostRequestInformation(Action -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nper { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class NperPostRequestBody : IAdditionalDataHolder, IParsable + public partial class NperPostRequestBody : 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. @@ -16,45 +17,45 @@ public class NperPostRequestBody : IAdditionalDataHolder, IParsable /// The fv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Fv { get; set; } + public UntypedNode? Fv { get; set; } #nullable restore #else - public Json Fv { get; set; } + public UntypedNode Fv { get; set; } #endif /// The pmt property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pmt { get; set; } + public UntypedNode? Pmt { get; set; } #nullable restore #else - public Json Pmt { get; set; } + public UntypedNode Pmt { get; set; } #endif /// The pv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pv { get; set; } + public UntypedNode? Pv { get; set; } #nullable restore #else - public Json Pv { get; set; } + public UntypedNode Pv { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Type { get; set; } + public UntypedNode? Type { get; set; } #nullable restore #else - public Json Type { get; set; } + public UntypedNode Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NperPostRequestBody() { @@ -63,12 +64,12 @@ public NperPostRequestBody() /// /// 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 NperPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nper.NperPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NperPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nper.NperPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pmt", n => { Pmt = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "fv", n => { Fv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pmt", n => { Pmt = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pv", n => { Pv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fv", Fv); - writer.WriteObjectValue("pmt", Pmt); - writer.WriteObjectValue("pv", Pv); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("type", Type); + writer.WriteObjectValue("fv", Fv); + writer.WriteObjectValue("pmt", Pmt); + writer.WriteObjectValue("pv", Pv); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.cs index 501c1d1d07..f2d0a7f03d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Nper/NperRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Nper /// /// Provides operations to call the nper method. /// - public class NperRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NperRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action nper @@ -56,8 +59,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(NperPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nper.NperPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 NperRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/nper", 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 NperRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/nper", rawUrl) @@ -100,11 +103,11 @@ public NperRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(NperPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nper.NperPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(NperPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Nper.NperPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(NperPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvPostRequestBody.cs index 4c0740351c..adca6bc330 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Npv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class NpvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class NpvPostRequestBody : 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. @@ -16,21 +17,21 @@ public class NpvPostRequestBody : IAdditionalDataHolder, IParsable /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NpvPostRequestBody() { @@ -39,12 +40,12 @@ public NpvPostRequestBody() /// /// 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 NpvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Npv.NpvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NpvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Npv.NpvPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.cs index d3be8856bc..139eb698bf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Npv/NpvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Npv /// /// Provides operations to call the npv method. /// - public class NpvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NpvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action npv @@ -56,8 +59,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(NpvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Npv.NpvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 NpvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/npv", 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 NpvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/npv", rawUrl) @@ -100,11 +103,11 @@ public NpvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(NpvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Npv.NpvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(NpvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Npv.NpvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(NpvPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValuePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValuePostRequestBody.cs index c85055a5dc..3fdfa81de9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValuePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValuePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NumberValue { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class NumberValuePostRequestBody : IAdditionalDataHolder, IParsable + public partial class NumberValuePostRequestBody : 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. @@ -16,29 +17,29 @@ public class NumberValuePostRequestBody : IAdditionalDataHolder, IParsable /// The decimalSeparator property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DecimalSeparator { get; set; } + public UntypedNode? DecimalSeparator { get; set; } #nullable restore #else - public Json DecimalSeparator { get; set; } + public UntypedNode DecimalSeparator { get; set; } #endif /// The groupSeparator property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? GroupSeparator { get; set; } + public UntypedNode? GroupSeparator { get; set; } #nullable restore #else - public Json GroupSeparator { get; set; } + public UntypedNode GroupSeparator { get; set; } #endif /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public NumberValuePostRequestBody() { @@ -47,12 +48,12 @@ public NumberValuePostRequestBody() /// /// 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 NumberValuePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NumberValue.NumberValuePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NumberValuePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NumberValue.NumberValuePostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "decimalSeparator", n => { DecimalSeparator = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "groupSeparator", n => { GroupSeparator = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "decimalSeparator", n => { DecimalSeparator = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "groupSeparator", n => { GroupSeparator = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("decimalSeparator", DecimalSeparator); - writer.WriteObjectValue("groupSeparator", GroupSeparator); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("decimalSeparator", DecimalSeparator); + writer.WriteObjectValue("groupSeparator", GroupSeparator); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.cs index f029abfd88..3a4c07a2e9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/NumberValue/NumberValueRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.NumberValue /// /// Provides operations to call the numberValue method. /// - public class NumberValueRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NumberValueRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action numberValue @@ -56,8 +59,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(NumberValuePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NumberValue.NumberValuePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 NumberValueRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/numberValue", 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 NumberValueRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/numberValue", rawUrl) @@ -100,11 +103,11 @@ public NumberValueRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(NumberValuePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NumberValue.NumberValuePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(NumberValuePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.NumberValue.NumberValuePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(NumberValuePostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinPostRequestBody.cs index c54ada743c..3b57466ac6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Bin { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Oct2BinPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Oct2BinPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Oct2BinPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The places property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Places { get; set; } + public UntypedNode? Places { get; set; } #nullable restore #else - public Json Places { get; set; } + public UntypedNode Places { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Oct2BinPostRequestBody() { @@ -39,12 +40,12 @@ public Oct2BinPostRequestBody() /// /// 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 Oct2BinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Bin.Oct2BinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Oct2BinPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Bin.Oct2BinPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "places", n => { Places = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("places", Places); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("places", Places); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.cs index 17a6071d94..9f673aff1f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Bin/Oct2BinRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Oct2Bin /// /// Provides operations to call the oct2Bin method. /// - public class Oct2BinRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Oct2BinRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action oct2Bin @@ -56,8 +59,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(Oct2BinPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Bin.Oct2BinPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Oct2BinRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oct2Bin", 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 Oct2BinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oct2Bin", rawUrl) @@ -100,11 +103,11 @@ public Oct2BinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Oct2BinPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Bin.Oct2BinPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Oct2BinPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Bin.Oct2BinPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Oct2BinPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecPostRequestBody.cs index 8aea4e9719..9135c225e2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Dec { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Oct2DecPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Oct2DecPostRequestBody : 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. @@ -16,13 +17,13 @@ public class Oct2DecPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Oct2DecPostRequestBody() { @@ -31,12 +32,12 @@ public Oct2DecPostRequestBody() /// /// 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 Oct2DecPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Dec.Oct2DecPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Oct2DecPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Dec.Oct2DecPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.cs index d85f850323..8c84ee85d2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Dec/Oct2DecRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Oct2Dec /// /// Provides operations to call the oct2Dec method. /// - public class Oct2DecRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Oct2DecRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action oct2Dec @@ -56,8 +59,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(Oct2DecPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Dec.Oct2DecPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Oct2DecRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oct2Dec", 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 Oct2DecRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oct2Dec", rawUrl) @@ -100,11 +103,11 @@ public Oct2DecRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Oct2DecPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Dec.Oct2DecPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Oct2DecPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Dec.Oct2DecPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Oct2DecPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexPostRequestBody.cs index b5e79923a5..c4e352f7f5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Hex { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Oct2HexPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Oct2HexPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Oct2HexPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The places property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Places { get; set; } + public UntypedNode? Places { get; set; } #nullable restore #else - public Json Places { get; set; } + public UntypedNode Places { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Oct2HexPostRequestBody() { @@ -39,12 +40,12 @@ public Oct2HexPostRequestBody() /// /// 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 Oct2HexPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Hex.Oct2HexPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Oct2HexPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Hex.Oct2HexPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "places", n => { Places = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "places", n => { Places = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("places", Places); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("places", Places); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.cs index 1a082e1469..597206a056 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Oct2Hex/Oct2HexRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Oct2Hex /// /// Provides operations to call the oct2Hex method. /// - public class Oct2HexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Oct2HexRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action oct2Hex @@ -56,8 +59,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(Oct2HexPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Hex.Oct2HexPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Oct2HexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oct2Hex", 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 Oct2HexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oct2Hex", rawUrl) @@ -100,11 +103,11 @@ public Oct2HexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Oct2HexPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Hex.Oct2HexPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Oct2HexPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Oct2Hex.Oct2HexPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Oct2HexPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddPostRequestBody.cs index 1faf73304e..16ec466559 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Odd { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OddPostRequestBody : 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. @@ -16,13 +17,13 @@ public class OddPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OddPostRequestBody() { @@ -31,12 +32,12 @@ public OddPostRequestBody() /// /// 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 OddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Odd.OddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Odd.OddPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.cs index bd99e570c8..3db5583218 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Odd/OddRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Odd /// /// Provides operations to call the odd method. /// - public class OddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OddRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action odd @@ -56,8 +59,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(OddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Odd.OddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 OddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/odd", 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 OddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/odd", rawUrl) @@ -100,11 +103,11 @@ public OddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(OddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Odd.OddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Odd.OddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(OddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPricePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPricePostRequestBody.cs index f10d6b5437..5d1476ec4d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPricePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPricePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFPrice { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OddFPricePostRequestBody : IAdditionalDataHolder, IParsable + public partial class OddFPricePostRequestBody : 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. @@ -16,77 +17,77 @@ public class OddFPricePostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The firstCoupon property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FirstCoupon { get; set; } + public UntypedNode? FirstCoupon { get; set; } #nullable restore #else - public Json FirstCoupon { get; set; } + public UntypedNode FirstCoupon { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The issue property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Issue { get; set; } + public UntypedNode? Issue { get; set; } #nullable restore #else - public Json Issue { get; set; } + public UntypedNode Issue { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The redemption property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Redemption { get; set; } + public UntypedNode? Redemption { get; set; } #nullable restore #else - public Json Redemption { get; set; } + public UntypedNode Redemption { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// The yld property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Yld { get; set; } + public UntypedNode? Yld { get; set; } #nullable restore #else - public Json Yld { get; set; } + public UntypedNode Yld { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OddFPricePostRequestBody() { @@ -95,12 +96,12 @@ public OddFPricePostRequestBody() /// /// 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 OddFPricePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFPrice.OddFPricePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OddFPricePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFPrice.OddFPricePostRequestBody(); } /// /// The deserialization information for the current model @@ -110,15 +111,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "firstCoupon", n => { FirstCoupon = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "issue", n => { Issue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "redemption", n => { Redemption = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "yld", n => { Yld = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "firstCoupon", n => { FirstCoupon = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "issue", n => { Issue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "redemption", n => { Redemption = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "yld", n => { Yld = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -128,16 +129,17 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("firstCoupon", FirstCoupon); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("issue", Issue); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("redemption", Redemption); - writer.WriteObjectValue("settlement", Settlement); - writer.WriteObjectValue("yld", Yld); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("firstCoupon", FirstCoupon); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("issue", Issue); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("redemption", Redemption); + writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("yld", Yld); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.cs index 7dc079d63c..595ec0582a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFPrice/OddFPriceRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.OddFPrice /// /// Provides operations to call the oddFPrice method. /// - public class OddFPriceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OddFPriceRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action oddFPrice @@ -56,8 +59,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(OddFPricePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFPrice.OddFPricePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 OddFPriceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddFPrice", 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 OddFPriceRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddFPrice", rawUrl) @@ -100,11 +103,11 @@ public OddFPriceRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(OddFPricePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFPrice.OddFPricePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OddFPricePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFPrice.OddFPricePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(OddFPricePostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldPostRequestBody.cs index 6e353fe279..7d93694874 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFYield { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OddFYieldPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OddFYieldPostRequestBody : 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. @@ -16,77 +17,77 @@ public class OddFYieldPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The firstCoupon property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FirstCoupon { get; set; } + public UntypedNode? FirstCoupon { get; set; } #nullable restore #else - public Json FirstCoupon { get; set; } + public UntypedNode FirstCoupon { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The issue property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Issue { get; set; } + public UntypedNode? Issue { get; set; } #nullable restore #else - public Json Issue { get; set; } + public UntypedNode Issue { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The pr property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pr { get; set; } + public UntypedNode? Pr { get; set; } #nullable restore #else - public Json Pr { get; set; } + public UntypedNode Pr { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The redemption property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Redemption { get; set; } + public UntypedNode? Redemption { get; set; } #nullable restore #else - public Json Redemption { get; set; } + public UntypedNode Redemption { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OddFYieldPostRequestBody() { @@ -95,12 +96,12 @@ public OddFYieldPostRequestBody() /// /// 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 OddFYieldPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFYield.OddFYieldPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OddFYieldPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFYield.OddFYieldPostRequestBody(); } /// /// The deserialization information for the current model @@ -110,15 +111,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "firstCoupon", n => { FirstCoupon = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "issue", n => { Issue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pr", n => { Pr = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "redemption", n => { Redemption = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "firstCoupon", n => { FirstCoupon = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "issue", n => { Issue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pr", n => { Pr = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "redemption", n => { Redemption = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -128,16 +129,17 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("firstCoupon", FirstCoupon); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("issue", Issue); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("pr", Pr); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("redemption", Redemption); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("firstCoupon", FirstCoupon); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("issue", Issue); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("pr", Pr); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("redemption", Redemption); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.cs index fd324cb014..56c32e9af1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddFYield/OddFYieldRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.OddFYield /// /// Provides operations to call the oddFYield method. /// - public class OddFYieldRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OddFYieldRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action oddFYield @@ -56,8 +59,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(OddFYieldPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFYield.OddFYieldPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 OddFYieldRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddFYield", 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 OddFYieldRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddFYield", rawUrl) @@ -100,11 +103,11 @@ public OddFYieldRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(OddFYieldPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFYield.OddFYieldPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OddFYieldPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddFYield.OddFYieldPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(OddFYieldPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPricePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPricePostRequestBody.cs index 8585cac060..da30548522 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPricePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPricePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLPrice { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OddLPricePostRequestBody : IAdditionalDataHolder, IParsable + public partial class OddLPricePostRequestBody : 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. @@ -16,69 +17,69 @@ public class OddLPricePostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The lastInterest property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? LastInterest { get; set; } + public UntypedNode? LastInterest { get; set; } #nullable restore #else - public Json LastInterest { get; set; } + public UntypedNode LastInterest { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The redemption property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Redemption { get; set; } + public UntypedNode? Redemption { get; set; } #nullable restore #else - public Json Redemption { get; set; } + public UntypedNode Redemption { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// The yld property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Yld { get; set; } + public UntypedNode? Yld { get; set; } #nullable restore #else - public Json Yld { get; set; } + public UntypedNode Yld { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OddLPricePostRequestBody() { @@ -87,12 +88,12 @@ public OddLPricePostRequestBody() /// /// 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 OddLPricePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLPrice.OddLPricePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OddLPricePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLPrice.OddLPricePostRequestBody(); } /// /// The deserialization information for the current model @@ -102,14 +103,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "lastInterest", n => { LastInterest = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "redemption", n => { Redemption = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "yld", n => { Yld = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "lastInterest", n => { LastInterest = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "redemption", n => { Redemption = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "yld", n => { Yld = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -119,15 +120,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("lastInterest", LastInterest); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("redemption", Redemption); - writer.WriteObjectValue("settlement", Settlement); - writer.WriteObjectValue("yld", Yld); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("lastInterest", LastInterest); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("redemption", Redemption); + writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("yld", Yld); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.cs index cb664f6db6..7c24a18e45 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLPrice/OddLPriceRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.OddLPrice /// /// Provides operations to call the oddLPrice method. /// - public class OddLPriceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OddLPriceRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action oddLPrice @@ -56,8 +59,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(OddLPricePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLPrice.OddLPricePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 OddLPriceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddLPrice", 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 OddLPriceRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddLPrice", rawUrl) @@ -100,11 +103,11 @@ public OddLPriceRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(OddLPricePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLPrice.OddLPricePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OddLPricePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLPrice.OddLPricePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(OddLPricePostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldPostRequestBody.cs index 16a5118cb9..ec8ffe9547 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLYield { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OddLYieldPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OddLYieldPostRequestBody : 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. @@ -16,69 +17,69 @@ public class OddLYieldPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The lastInterest property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? LastInterest { get; set; } + public UntypedNode? LastInterest { get; set; } #nullable restore #else - public Json LastInterest { get; set; } + public UntypedNode LastInterest { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The pr property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pr { get; set; } + public UntypedNode? Pr { get; set; } #nullable restore #else - public Json Pr { get; set; } + public UntypedNode Pr { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The redemption property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Redemption { get; set; } + public UntypedNode? Redemption { get; set; } #nullable restore #else - public Json Redemption { get; set; } + public UntypedNode Redemption { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OddLYieldPostRequestBody() { @@ -87,12 +88,12 @@ public OddLYieldPostRequestBody() /// /// 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 OddLYieldPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLYield.OddLYieldPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OddLYieldPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLYield.OddLYieldPostRequestBody(); } /// /// The deserialization information for the current model @@ -102,14 +103,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "lastInterest", n => { LastInterest = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pr", n => { Pr = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "redemption", n => { Redemption = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "lastInterest", n => { LastInterest = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pr", n => { Pr = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "redemption", n => { Redemption = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -119,15 +120,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("lastInterest", LastInterest); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("pr", Pr); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("redemption", Redemption); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("lastInterest", LastInterest); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("pr", Pr); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("redemption", Redemption); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.cs index 334adb165e..cecc121abc 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/OddLYield/OddLYieldRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.OddLYield /// /// Provides operations to call the oddLYield method. /// - public class OddLYieldRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OddLYieldRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action oddLYield @@ -56,8 +59,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(OddLYieldPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLYield.OddLYieldPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 OddLYieldRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddLYield", 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 OddLYieldRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/oddLYield", rawUrl) @@ -100,11 +103,11 @@ public OddLYieldRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(OddLYieldPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLYield.OddLYieldPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OddLYieldPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.OddLYield.OddLYieldPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(OddLYieldPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrPostRequestBody.cs index 223356c8bd..9a4cd3ac2e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Or { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OrPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OrPostRequestBody : 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. @@ -16,13 +17,13 @@ public class OrPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrPostRequestBody() { @@ -31,12 +32,12 @@ public OrPostRequestBody() /// /// 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 OrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Or.OrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Or.OrPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrRequestBuilder.cs index e0165603e2..412cd26c72 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Or/OrRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Or /// /// Provides operations to call the or method. /// - public class OrRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OrRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action or @@ -56,8 +59,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(OrPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Or.OrPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 OrRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/or", 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 OrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/or", rawUrl) @@ -100,11 +103,11 @@ public OrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/it /// 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(OrPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Or.OrPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OrPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Or.OrPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(OrPostRequestBody body, Actio } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationPostRequestBody.cs index ddb7f14ebd..9fbfab2062 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pduration { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PdurationPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PdurationPostRequestBody : 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. @@ -16,29 +17,29 @@ public class PdurationPostRequestBody : IAdditionalDataHolder, IParsable /// The fv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Fv { get; set; } + public UntypedNode? Fv { get; set; } #nullable restore #else - public Json Fv { get; set; } + public UntypedNode Fv { get; set; } #endif /// The pv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pv { get; set; } + public UntypedNode? Pv { get; set; } #nullable restore #else - public Json Pv { get; set; } + public UntypedNode Pv { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PdurationPostRequestBody() { @@ -47,12 +48,12 @@ public PdurationPostRequestBody() /// /// 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 PdurationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pduration.PdurationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PdurationPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pduration.PdurationPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "fv", n => { Fv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pv", n => { Pv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fv", Fv); - writer.WriteObjectValue("pv", Pv); - writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("fv", Fv); + writer.WriteObjectValue("pv", Pv); + writer.WriteObjectValue("rate", Rate); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.cs index 3068ad4f87..0efbb2dc0e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pduration/PdurationRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Pduration /// /// Provides operations to call the pduration method. /// - public class PdurationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PdurationRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action pduration @@ -56,8 +59,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(PdurationPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pduration.PdurationPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PdurationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/pduration", 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 PdurationRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/pduration", rawUrl) @@ -100,11 +103,11 @@ public PdurationRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(PdurationPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pduration.PdurationPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PdurationPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pduration.PdurationPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PdurationPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcPostRequestBody.cs index 20eddf5ab9..9e3dcdf41c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Exc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PercentRank_ExcPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PercentRank_ExcPostRequestBody : 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. @@ -16,29 +17,29 @@ public class PercentRank_ExcPostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// The significance property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Significance { get; set; } + public UntypedNode? Significance { get; set; } #nullable restore #else - public Json Significance { get; set; } + public UntypedNode Significance { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PercentRank_ExcPostRequestBody() { @@ -47,12 +48,12 @@ public PercentRank_ExcPostRequestBody() /// /// 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 PercentRank_ExcPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Exc.PercentRank_ExcPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PercentRank_ExcPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Exc.PercentRank_ExcPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "significance", n => { Significance = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); - writer.WriteObjectValue("significance", Significance); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("significance", Significance); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.cs index 3228a0eb9a..970cab177e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Exc/PercentRank_ExcRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Exc /// /// Provides operations to call the percentRank_Exc method. /// - public class PercentRank_ExcRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PercentRank_ExcRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action percentRank_Exc @@ -56,8 +59,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(PercentRank_ExcPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Exc.PercentRank_ExcPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PercentRank_ExcRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/percentRank_Exc", 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 PercentRank_ExcRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/percentRank_Exc", rawUrl) @@ -100,11 +103,11 @@ public PercentRank_ExcRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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(PercentRank_ExcPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Exc.PercentRank_ExcPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PercentRank_ExcPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Exc.PercentRank_ExcPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PercentRank_ExcPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncPostRequestBody.cs index 819366b434..374fe7c91d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Inc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PercentRank_IncPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PercentRank_IncPostRequestBody : 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. @@ -16,29 +17,29 @@ public class PercentRank_IncPostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// The significance property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Significance { get; set; } + public UntypedNode? Significance { get; set; } #nullable restore #else - public Json Significance { get; set; } + public UntypedNode Significance { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PercentRank_IncPostRequestBody() { @@ -47,12 +48,12 @@ public PercentRank_IncPostRequestBody() /// /// 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 PercentRank_IncPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Inc.PercentRank_IncPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PercentRank_IncPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Inc.PercentRank_IncPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "significance", n => { Significance = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "significance", n => { Significance = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); - writer.WriteObjectValue("significance", Significance); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("significance", Significance); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.cs index 9875ed817e..8a510b60a7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PercentRank_Inc/PercentRank_IncRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Inc /// /// Provides operations to call the percentRank_Inc method. /// - public class PercentRank_IncRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PercentRank_IncRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action percentRank_Inc @@ -56,8 +59,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(PercentRank_IncPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Inc.PercentRank_IncPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PercentRank_IncRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/percentRank_Inc", 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 PercentRank_IncRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/percentRank_Inc", rawUrl) @@ -100,11 +103,11 @@ public PercentRank_IncRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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(PercentRank_IncPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Inc.PercentRank_IncPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PercentRank_IncPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Inc.PercentRank_IncPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PercentRank_IncPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcPostRequestBody.cs index b6638ed804..59fe0c3201 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Exc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Percentile_ExcPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Percentile_ExcPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Percentile_ExcPostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// The k property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? K { get; set; } + public UntypedNode? K { get; set; } #nullable restore #else - public Json K { get; set; } + public UntypedNode K { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Percentile_ExcPostRequestBody() { @@ -39,12 +40,12 @@ public Percentile_ExcPostRequestBody() /// /// 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 Percentile_ExcPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Exc.Percentile_ExcPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Percentile_ExcPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Exc.Percentile_ExcPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "k", n => { K = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "k", n => { K = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); - writer.WriteObjectValue("k", K); + writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("k", K); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.cs index 8945802c5c..91344057ec 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Exc/Percentile_ExcRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Percentile_Exc /// /// Provides operations to call the percentile_Exc method. /// - public class Percentile_ExcRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Percentile_ExcRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action percentile_Exc @@ -56,8 +59,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(Percentile_ExcPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Exc.Percentile_ExcPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Percentile_ExcRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/percentile_Exc", 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 Percentile_ExcRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/percentile_Exc", rawUrl) @@ -100,11 +103,11 @@ public Percentile_ExcRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dr /// 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(Percentile_ExcPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Exc.Percentile_ExcPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Percentile_ExcPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Exc.Percentile_ExcPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Percentile_ExcPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncPostRequestBody.cs index ea707b5203..245206287b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Inc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Percentile_IncPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Percentile_IncPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Percentile_IncPostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// The k property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? K { get; set; } + public UntypedNode? K { get; set; } #nullable restore #else - public Json K { get; set; } + public UntypedNode K { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Percentile_IncPostRequestBody() { @@ -39,12 +40,12 @@ public Percentile_IncPostRequestBody() /// /// 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 Percentile_IncPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Inc.Percentile_IncPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Percentile_IncPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Inc.Percentile_IncPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "k", n => { K = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "k", n => { K = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); - writer.WriteObjectValue("k", K); + writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("k", K); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.cs index 21837242a6..2f4e5b08d1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Percentile_Inc/Percentile_IncRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Percentile_Inc /// /// Provides operations to call the percentile_Inc method. /// - public class Percentile_IncRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Percentile_IncRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action percentile_Inc @@ -56,8 +59,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(Percentile_IncPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Inc.Percentile_IncPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Percentile_IncRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/percentile_Inc", 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 Percentile_IncRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/percentile_Inc", rawUrl) @@ -100,11 +103,11 @@ public Percentile_IncRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dr /// 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(Percentile_IncPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Inc.Percentile_IncPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Percentile_IncPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Percentile_Inc.Percentile_IncPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Percentile_IncPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutPostRequestBody.cs index 27074f5e4b..5d83319f12 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permut { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PermutPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PermutPostRequestBody : 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. @@ -16,21 +17,21 @@ public class PermutPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The numberChosen property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberChosen { get; set; } + public UntypedNode? NumberChosen { get; set; } #nullable restore #else - public Json NumberChosen { get; set; } + public UntypedNode NumberChosen { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PermutPostRequestBody() { @@ -39,12 +40,12 @@ public PermutPostRequestBody() /// /// 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 PermutPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permut.PermutPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PermutPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permut.PermutPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numberChosen", n => { NumberChosen = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numberChosen", n => { NumberChosen = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("numberChosen", NumberChosen); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("numberChosen", NumberChosen); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.cs index 83c1f9de21..d3236054c4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permut/PermutRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Permut /// /// Provides operations to call the permut method. /// - public class PermutRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermutRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action permut @@ -56,8 +59,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(PermutPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permut.PermutPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PermutRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/permut", 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 PermutRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/permut", rawUrl) @@ -100,11 +103,11 @@ public PermutRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(PermutPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permut.PermutPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PermutPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permut.PermutPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PermutPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaPostRequestBody.cs index cecdc1433f..23c7de259f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permutationa { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PermutationaPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PermutationaPostRequestBody : 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. @@ -16,21 +17,21 @@ public class PermutationaPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The numberChosen property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberChosen { get; set; } + public UntypedNode? NumberChosen { get; set; } #nullable restore #else - public Json NumberChosen { get; set; } + public UntypedNode NumberChosen { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PermutationaPostRequestBody() { @@ -39,12 +40,12 @@ public PermutationaPostRequestBody() /// /// 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 PermutationaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permutationa.PermutationaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PermutationaPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permutationa.PermutationaPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numberChosen", n => { NumberChosen = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numberChosen", n => { NumberChosen = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("numberChosen", NumberChosen); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("numberChosen", NumberChosen); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.cs index 3e74335d54..8d61f7ef69 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Permutationa/PermutationaRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Permutationa /// /// Provides operations to call the permutationa method. /// - public class PermutationaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermutationaRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action permutationa @@ -56,8 +59,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(PermutationaPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permutationa.PermutationaPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PermutationaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/permutationa", 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 PermutationaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/permutationa", rawUrl) @@ -100,11 +103,11 @@ public PermutationaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(PermutationaPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permutationa.PermutationaPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PermutationaPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Permutationa.PermutationaPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PermutationaPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiPostRequestBody.cs index ecac8ba02d..e1a6a8c59c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Phi { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PhiPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PhiPostRequestBody : 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. @@ -16,13 +17,13 @@ public class PhiPostRequestBody : IAdditionalDataHolder, IParsable /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PhiPostRequestBody() { @@ -31,12 +32,12 @@ public PhiPostRequestBody() /// /// 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 PhiPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Phi.PhiPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PhiPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Phi.PhiPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.cs index 4bf7233e49..c06c37634e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Phi/PhiRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Phi /// /// Provides operations to call the phi method. /// - public class PhiRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PhiRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action phi @@ -56,8 +59,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(PhiPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Phi.PhiPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PhiRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/phi", 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 PhiRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/phi", rawUrl) @@ -100,11 +103,11 @@ public PhiRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(PhiPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Phi.PhiPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PhiPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Phi.PhiPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PhiPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.cs index fff4db9b5e..9acc9cce62 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pi/PiRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Pi /// /// Provides operations to call the pi method. /// - public class PiRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PiRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action pi @@ -66,14 +69,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 PiRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/pi", 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 PiRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/pi", rawUrl) @@ -100,3 +103,4 @@ public RequestInformation ToPostRequestInformation(Action -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pmt { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PmtPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PmtPostRequestBody : 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. @@ -16,45 +17,45 @@ public class PmtPostRequestBody : IAdditionalDataHolder, IParsable /// The fv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Fv { get; set; } + public UntypedNode? Fv { get; set; } #nullable restore #else - public Json Fv { get; set; } + public UntypedNode Fv { get; set; } #endif /// The nper property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Nper { get; set; } + public UntypedNode? Nper { get; set; } #nullable restore #else - public Json Nper { get; set; } + public UntypedNode Nper { get; set; } #endif /// The pv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pv { get; set; } + public UntypedNode? Pv { get; set; } #nullable restore #else - public Json Pv { get; set; } + public UntypedNode Pv { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Type { get; set; } + public UntypedNode? Type { get; set; } #nullable restore #else - public Json Type { get; set; } + public UntypedNode Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PmtPostRequestBody() { @@ -63,12 +64,12 @@ public PmtPostRequestBody() /// /// 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 PmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pmt.PmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PmtPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pmt.PmtPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "fv", n => { Fv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "nper", n => { Nper = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pv", n => { Pv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fv", Fv); - writer.WriteObjectValue("nper", Nper); - writer.WriteObjectValue("pv", Pv); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("type", Type); + writer.WriteObjectValue("fv", Fv); + writer.WriteObjectValue("nper", Nper); + writer.WriteObjectValue("pv", Pv); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.cs index dbac0f0408..44e09982bb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pmt/PmtRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Pmt /// /// Provides operations to call the pmt method. /// - public class PmtRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PmtRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action pmt @@ -56,8 +59,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(PmtPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pmt.PmtPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PmtRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/pmt", 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 PmtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/pmt", rawUrl) @@ -100,11 +103,11 @@ public PmtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(PmtPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pmt.PmtPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PmtPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pmt.PmtPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PmtPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistPostRequestBody.cs index 9d0a9cb071..24c9b3fa31 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Poisson_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Poisson_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Poisson_DistPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Poisson_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The mean property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Mean { get; set; } + public UntypedNode? Mean { get; set; } #nullable restore #else - public Json Mean { get; set; } + public UntypedNode Mean { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Poisson_DistPostRequestBody() { @@ -47,12 +48,12 @@ public Poisson_DistPostRequestBody() /// /// 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 Poisson_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Poisson_Dist.Poisson_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Poisson_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Poisson_Dist.Poisson_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "mean", n => { Mean = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("mean", Mean); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("mean", Mean); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.cs index 8498d49c38..e5bd30e7d5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Poisson_Dist/Poisson_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Poisson_Dist /// /// Provides operations to call the poisson_Dist method. /// - public class Poisson_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Poisson_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action poisson_Dist @@ -56,8 +59,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(Poisson_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Poisson_Dist.Poisson_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Poisson_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/poisson_Dist", 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 Poisson_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/poisson_Dist", rawUrl) @@ -100,11 +103,11 @@ public Poisson_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(Poisson_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Poisson_Dist.Poisson_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Poisson_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Poisson_Dist.Poisson_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Poisson_DistPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerPostRequestBody.cs index f949de13a9..ee9570dfe5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Power { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PowerPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PowerPostRequestBody : 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. @@ -16,21 +17,21 @@ public class PowerPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The power property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Power { get; set; } + public UntypedNode? Power { get; set; } #nullable restore #else - public Json Power { get; set; } + public UntypedNode Power { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PowerPostRequestBody() { @@ -39,12 +40,12 @@ public PowerPostRequestBody() /// /// 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 PowerPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Power.PowerPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PowerPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Power.PowerPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "power", n => { Power = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "power", n => { Power = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("power", Power); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("power", Power); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.cs index ac19b40896..c560e6586d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Power/PowerRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Power /// /// Provides operations to call the power method. /// - public class PowerRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PowerRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action power @@ -56,8 +59,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(PowerPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Power.PowerPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PowerRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/power", 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 PowerRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/power", rawUrl) @@ -100,11 +103,11 @@ public PowerRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(PowerPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Power.PowerPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PowerPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Power.PowerPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PowerPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtPostRequestBody.cs index 23989f17f6..86a309a47a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ppmt { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PpmtPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PpmtPostRequestBody : 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. @@ -16,53 +17,53 @@ public class PpmtPostRequestBody : IAdditionalDataHolder, IParsable /// The fv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Fv { get; set; } + public UntypedNode? Fv { get; set; } #nullable restore #else - public Json Fv { get; set; } + public UntypedNode Fv { get; set; } #endif /// The nper property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Nper { get; set; } + public UntypedNode? Nper { get; set; } #nullable restore #else - public Json Nper { get; set; } + public UntypedNode Nper { get; set; } #endif /// The per property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Per { get; set; } + public UntypedNode? Per { get; set; } #nullable restore #else - public Json Per { get; set; } + public UntypedNode Per { get; set; } #endif /// The pv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pv { get; set; } + public UntypedNode? Pv { get; set; } #nullable restore #else - public Json Pv { get; set; } + public UntypedNode Pv { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Type { get; set; } + public UntypedNode? Type { get; set; } #nullable restore #else - public Json Type { get; set; } + public UntypedNode Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PpmtPostRequestBody() { @@ -71,12 +72,12 @@ public PpmtPostRequestBody() /// /// 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 PpmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ppmt.PpmtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PpmtPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ppmt.PpmtPostRequestBody(); } /// /// The deserialization information for the current model @@ -86,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "per", n => { Per = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "fv", n => { Fv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "nper", n => { Nper = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "per", n => { Per = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pv", n => { Pv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -101,13 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fv", Fv); - writer.WriteObjectValue("nper", Nper); - writer.WriteObjectValue("per", Per); - writer.WriteObjectValue("pv", Pv); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("type", Type); + writer.WriteObjectValue("fv", Fv); + writer.WriteObjectValue("nper", Nper); + writer.WriteObjectValue("per", Per); + writer.WriteObjectValue("pv", Pv); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.cs index 722a0fd1fb..ec6c70d7d6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Ppmt/PpmtRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Ppmt /// /// Provides operations to call the ppmt method. /// - public class PpmtRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PpmtRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action ppmt @@ -56,8 +59,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(PpmtPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ppmt.PpmtPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PpmtRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ppmt", 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 PpmtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/ppmt", rawUrl) @@ -100,11 +103,11 @@ public PpmtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(PpmtPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ppmt.PpmtPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PpmtPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Ppmt.PpmtPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PpmtPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Price/PricePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Price/PricePostRequestBody.cs index 1bb1a67f15..e1c6445d91 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Price/PricePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Price/PricePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Price { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PricePostRequestBody : IAdditionalDataHolder, IParsable + public partial class PricePostRequestBody : 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. @@ -16,61 +17,61 @@ public class PricePostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The redemption property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Redemption { get; set; } + public UntypedNode? Redemption { get; set; } #nullable restore #else - public Json Redemption { get; set; } + public UntypedNode Redemption { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// The yld property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Yld { get; set; } + public UntypedNode? Yld { get; set; } #nullable restore #else - public Json Yld { get; set; } + public UntypedNode Yld { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PricePostRequestBody() { @@ -79,12 +80,12 @@ public PricePostRequestBody() /// /// 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 PricePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Price.PricePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PricePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Price.PricePostRequestBody(); } /// /// The deserialization information for the current model @@ -94,13 +95,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "redemption", n => { Redemption = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "yld", n => { Yld = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "redemption", n => { Redemption = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "yld", n => { Yld = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -110,14 +111,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("redemption", Redemption); - writer.WriteObjectValue("settlement", Settlement); - writer.WriteObjectValue("yld", Yld); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("redemption", Redemption); + writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("yld", Yld); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.cs index f261fe5295..c72f25bed1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Price/PriceRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Price /// /// Provides operations to call the price method. /// - public class PriceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PriceRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action price @@ -56,8 +59,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(PricePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Price.PricePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PriceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/price", 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 PriceRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/price", rawUrl) @@ -100,11 +103,11 @@ public PriceRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(PricePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Price.PricePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PricePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Price.PricePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PricePostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscPostRequestBody.cs index 4ccc814fa6..2441b0b9b3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceDisc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PriceDiscPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PriceDiscPostRequestBody : 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. @@ -16,45 +17,45 @@ public class PriceDiscPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The discount property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Discount { get; set; } + public UntypedNode? Discount { get; set; } #nullable restore #else - public Json Discount { get; set; } + public UntypedNode Discount { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The redemption property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Redemption { get; set; } + public UntypedNode? Redemption { get; set; } #nullable restore #else - public Json Redemption { get; set; } + public UntypedNode Redemption { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PriceDiscPostRequestBody() { @@ -63,12 +64,12 @@ public PriceDiscPostRequestBody() /// /// 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 PriceDiscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceDisc.PriceDiscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PriceDiscPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceDisc.PriceDiscPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "discount", n => { Discount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "redemption", n => { Redemption = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "discount", n => { Discount = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "redemption", n => { Redemption = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("discount", Discount); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("redemption", Redemption); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("discount", Discount); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("redemption", Redemption); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.cs index 5ad7a04141..caebebe90a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceDisc/PriceDiscRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.PriceDisc /// /// Provides operations to call the priceDisc method. /// - public class PriceDiscRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PriceDiscRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action priceDisc @@ -56,8 +59,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(PriceDiscPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceDisc.PriceDiscPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PriceDiscRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/priceDisc", 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 PriceDiscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/priceDisc", rawUrl) @@ -100,11 +103,11 @@ public PriceDiscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(PriceDiscPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceDisc.PriceDiscPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PriceDiscPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceDisc.PriceDiscPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PriceDiscPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatPostRequestBody.cs index 896526c224..36540f99fb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceMat { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PriceMatPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PriceMatPostRequestBody : 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. @@ -16,53 +17,53 @@ public class PriceMatPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The issue property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Issue { get; set; } + public UntypedNode? Issue { get; set; } #nullable restore #else - public Json Issue { get; set; } + public UntypedNode Issue { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// The yld property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Yld { get; set; } + public UntypedNode? Yld { get; set; } #nullable restore #else - public Json Yld { get; set; } + public UntypedNode Yld { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PriceMatPostRequestBody() { @@ -71,12 +72,12 @@ public PriceMatPostRequestBody() /// /// 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 PriceMatPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceMat.PriceMatPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PriceMatPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceMat.PriceMatPostRequestBody(); } /// /// The deserialization information for the current model @@ -86,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "issue", n => { Issue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "yld", n => { Yld = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "issue", n => { Issue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "yld", n => { Yld = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -101,13 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("issue", Issue); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("settlement", Settlement); - writer.WriteObjectValue("yld", Yld); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("issue", Issue); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("yld", Yld); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.cs index 9bdd6bacc0..19b8bf4fcf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/PriceMat/PriceMatRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.PriceMat /// /// Provides operations to call the priceMat method. /// - public class PriceMatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PriceMatRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action priceMat @@ -56,8 +59,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(PriceMatPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceMat.PriceMatPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PriceMatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/priceMat", 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 PriceMatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/priceMat", rawUrl) @@ -100,11 +103,11 @@ public PriceMatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(PriceMatPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceMat.PriceMatPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PriceMatPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.PriceMat.PriceMatPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PriceMatPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductPostRequestBody.cs index 825b30220b..3457da7daa 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Product { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ProductPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ProductPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ProductPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProductPostRequestBody() { @@ -31,12 +32,12 @@ public ProductPostRequestBody() /// /// 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 ProductPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Product.ProductPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProductPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Product.ProductPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.cs index 9368b2e817..0838e2aec2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Product/ProductRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Product /// /// Provides operations to call the product method. /// - public class ProductRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProductRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action product @@ -56,8 +59,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(ProductPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Product.ProductPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ProductRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/product", 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 ProductRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/product", rawUrl) @@ -100,11 +103,11 @@ public ProductRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(ProductPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Product.ProductPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProductPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Product.ProductPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ProductPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperPostRequestBody.cs index 56e4642de8..5909c2882c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Proper { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ProperPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ProperPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ProperPostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProperPostRequestBody() { @@ -31,12 +32,12 @@ public ProperPostRequestBody() /// /// 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 ProperPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Proper.ProperPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProperPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Proper.ProperPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.cs index 657115888c..4a7dd414c2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Proper/ProperRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Proper /// /// Provides operations to call the proper method. /// - public class ProperRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProperRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action proper @@ -56,8 +59,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(ProperPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Proper.ProperPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ProperRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/proper", 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 ProperRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/proper", rawUrl) @@ -100,11 +103,11 @@ public ProperRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(ProperPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Proper.ProperPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProperPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Proper.ProperPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ProperPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvPostRequestBody.cs index 2a94b18ff6..c2e4c6b3f6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class PvPostRequestBody : 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. @@ -16,45 +17,45 @@ public class PvPostRequestBody : IAdditionalDataHolder, IParsable /// The fv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Fv { get; set; } + public UntypedNode? Fv { get; set; } #nullable restore #else - public Json Fv { get; set; } + public UntypedNode Fv { get; set; } #endif /// The nper property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Nper { get; set; } + public UntypedNode? Nper { get; set; } #nullable restore #else - public Json Nper { get; set; } + public UntypedNode Nper { get; set; } #endif /// The pmt property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pmt { get; set; } + public UntypedNode? Pmt { get; set; } #nullable restore #else - public Json Pmt { get; set; } + public UntypedNode Pmt { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Type { get; set; } + public UntypedNode? Type { get; set; } #nullable restore #else - public Json Type { get; set; } + public UntypedNode Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PvPostRequestBody() { @@ -63,12 +64,12 @@ public PvPostRequestBody() /// /// 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 PvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pv.PvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pv.PvPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pmt", n => { Pmt = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "fv", n => { Fv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "nper", n => { Nper = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pmt", n => { Pmt = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fv", Fv); - writer.WriteObjectValue("nper", Nper); - writer.WriteObjectValue("pmt", Pmt); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("type", Type); + writer.WriteObjectValue("fv", Fv); + writer.WriteObjectValue("nper", Nper); + writer.WriteObjectValue("pmt", Pmt); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.cs index 3e2337beba..334a3bc764 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Pv/PvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Pv /// /// Provides operations to call the pv method. /// - public class PvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action pv @@ -56,8 +59,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(PvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pv.PvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 PvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/pv", 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 PvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/pv", rawUrl) @@ -100,11 +103,11 @@ public PvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/it /// 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(PvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pv.PvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Pv.PvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(PvPostRequestBody body, Actio } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcPostRequestBody.cs index 656c35f3e8..389c5b68ba 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Exc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Quartile_ExcPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Quartile_ExcPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Quartile_ExcPostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// The quart property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Quart { get; set; } + public UntypedNode? Quart { get; set; } #nullable restore #else - public Json Quart { get; set; } + public UntypedNode Quart { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Quartile_ExcPostRequestBody() { @@ -39,12 +40,12 @@ public Quartile_ExcPostRequestBody() /// /// 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 Quartile_ExcPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Exc.Quartile_ExcPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Quartile_ExcPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Exc.Quartile_ExcPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "quart", n => { Quart = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "quart", n => { Quart = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); - writer.WriteObjectValue("quart", Quart); + writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("quart", Quart); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.cs index 2ef0062d03..bc3a0a9bd3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Exc/Quartile_ExcRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Quartile_Exc /// /// Provides operations to call the quartile_Exc method. /// - public class Quartile_ExcRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Quartile_ExcRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action quartile_Exc @@ -56,8 +59,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(Quartile_ExcPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Exc.Quartile_ExcPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Quartile_ExcRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/quartile_Exc", 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 Quartile_ExcRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/quartile_Exc", rawUrl) @@ -100,11 +103,11 @@ public Quartile_ExcRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(Quartile_ExcPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Exc.Quartile_ExcPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Quartile_ExcPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Exc.Quartile_ExcPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Quartile_ExcPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncPostRequestBody.cs index fe50fdb354..0f9f75c59e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Inc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Quartile_IncPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Quartile_IncPostRequestBody : 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. @@ -16,21 +17,21 @@ public class Quartile_IncPostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// The quart property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Quart { get; set; } + public UntypedNode? Quart { get; set; } #nullable restore #else - public Json Quart { get; set; } + public UntypedNode Quart { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Quartile_IncPostRequestBody() { @@ -39,12 +40,12 @@ public Quartile_IncPostRequestBody() /// /// 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 Quartile_IncPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Inc.Quartile_IncPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Quartile_IncPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Inc.Quartile_IncPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "quart", n => { Quart = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "quart", n => { Quart = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); - writer.WriteObjectValue("quart", Quart); + writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("quart", Quart); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.cs index 3ef6fa5dd9..e34168ded4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quartile_Inc/Quartile_IncRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Quartile_Inc /// /// Provides operations to call the quartile_Inc method. /// - public class Quartile_IncRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Quartile_IncRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action quartile_Inc @@ -56,8 +59,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(Quartile_IncPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Inc.Quartile_IncPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Quartile_IncRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/quartile_Inc", 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 Quartile_IncRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/quartile_Inc", rawUrl) @@ -100,11 +103,11 @@ public Quartile_IncRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(Quartile_IncPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Inc.Quartile_IncPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Quartile_IncPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quartile_Inc.Quartile_IncPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Quartile_IncPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientPostRequestBody.cs index f8afc4f0c3..e96b609e1a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quotient { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class QuotientPostRequestBody : IAdditionalDataHolder, IParsable + public partial class QuotientPostRequestBody : 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. @@ -16,21 +17,21 @@ public class QuotientPostRequestBody : IAdditionalDataHolder, IParsable /// The denominator property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Denominator { get; set; } + public UntypedNode? Denominator { get; set; } #nullable restore #else - public Json Denominator { get; set; } + public UntypedNode Denominator { get; set; } #endif /// The numerator property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Numerator { get; set; } + public UntypedNode? Numerator { get; set; } #nullable restore #else - public Json Numerator { get; set; } + public UntypedNode Numerator { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public QuotientPostRequestBody() { @@ -39,12 +40,12 @@ public QuotientPostRequestBody() /// /// 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 QuotientPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quotient.QuotientPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new QuotientPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quotient.QuotientPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "denominator", n => { Denominator = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numerator", n => { Numerator = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "denominator", n => { Denominator = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numerator", n => { Numerator = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("denominator", Denominator); - writer.WriteObjectValue("numerator", Numerator); + writer.WriteObjectValue("denominator", Denominator); + writer.WriteObjectValue("numerator", Numerator); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.cs index 627101b6b0..ae68e43d7b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Quotient/QuotientRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Quotient /// /// Provides operations to call the quotient method. /// - public class QuotientRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class QuotientRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action quotient @@ -56,8 +59,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(QuotientPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quotient.QuotientPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 QuotientRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/quotient", 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 QuotientRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/quotient", rawUrl) @@ -100,11 +103,11 @@ public QuotientRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(QuotientPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quotient.QuotientPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(QuotientPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Quotient.QuotientPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(QuotientPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansPostRequestBody.cs index 83fb5331a4..d299af74ea 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Radians { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RadiansPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RadiansPostRequestBody : 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. @@ -16,13 +17,13 @@ public class RadiansPostRequestBody : IAdditionalDataHolder, IParsable /// The angle property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Angle { get; set; } + public UntypedNode? Angle { get; set; } #nullable restore #else - public Json Angle { get; set; } + public UntypedNode Angle { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RadiansPostRequestBody() { @@ -31,12 +32,12 @@ public RadiansPostRequestBody() /// /// 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 RadiansPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Radians.RadiansPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RadiansPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Radians.RadiansPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "angle", n => { Angle = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "angle", n => { Angle = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("angle", Angle); + writer.WriteObjectValue("angle", Angle); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.cs index 04b7656b30..125d84d102 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Radians/RadiansRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Radians /// /// Provides operations to call the radians method. /// - public class RadiansRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RadiansRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action radians @@ -56,8 +59,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(RadiansPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Radians.RadiansPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RadiansRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/radians", 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 RadiansRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/radians", rawUrl) @@ -100,11 +103,11 @@ public RadiansRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(RadiansPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Radians.RadiansPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RadiansPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Radians.RadiansPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RadiansPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.cs index 4be96048ce..1ec74a2335 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rand/RandRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Rand /// /// Provides operations to call the rand method. /// - public class RandRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RandRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action rand @@ -66,14 +69,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 RandRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rand", 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 RandRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rand", rawUrl) @@ -100,3 +103,4 @@ public RequestInformation ToPostRequestInformation(Action -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RandBetween { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RandBetweenPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RandBetweenPostRequestBody : 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. @@ -16,21 +17,21 @@ public class RandBetweenPostRequestBody : IAdditionalDataHolder, IParsable /// The bottom property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Bottom { get; set; } + public UntypedNode? Bottom { get; set; } #nullable restore #else - public Json Bottom { get; set; } + public UntypedNode Bottom { get; set; } #endif /// The top property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Top { get; set; } + public UntypedNode? Top { get; set; } #nullable restore #else - public Json Top { get; set; } + public UntypedNode Top { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RandBetweenPostRequestBody() { @@ -39,12 +40,12 @@ public RandBetweenPostRequestBody() /// /// 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 RandBetweenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RandBetween.RandBetweenPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RandBetweenPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RandBetween.RandBetweenPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "bottom", n => { Bottom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "top", n => { Top = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "bottom", n => { Bottom = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "top", n => { Top = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("bottom", Bottom); - writer.WriteObjectValue("top", Top); + writer.WriteObjectValue("bottom", Bottom); + writer.WriteObjectValue("top", Top); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.cs index f8f10b5059..11ce552b9e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/RandBetween/RandBetweenRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.RandBetween /// /// Provides operations to call the randBetween method. /// - public class RandBetweenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RandBetweenRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action randBetween @@ -56,8 +59,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(RandBetweenPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RandBetween.RandBetweenPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RandBetweenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/randBetween", 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 RandBetweenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/randBetween", rawUrl) @@ -100,11 +103,11 @@ public RandBetweenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(RandBetweenPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RandBetween.RandBetweenPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RandBetweenPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RandBetween.RandBetweenPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RandBetweenPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgPostRequestBody.cs index 28edabcaf6..f982bf819e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Avg { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Rank_AvgPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Rank_AvgPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Rank_AvgPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The order property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Order { get; set; } + public UntypedNode? Order { get; set; } #nullable restore #else - public Json Order { get; set; } + public UntypedNode Order { get; set; } #endif /// The ref property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Ref { get; set; } + public UntypedNode? Ref { get; set; } #nullable restore #else - public Json Ref { get; set; } + public UntypedNode Ref { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Rank_AvgPostRequestBody() { @@ -47,12 +48,12 @@ public Rank_AvgPostRequestBody() /// /// 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 Rank_AvgPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Avg.Rank_AvgPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Rank_AvgPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Avg.Rank_AvgPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "order", n => { Order = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "ref", n => { Ref = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "order", n => { Order = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "ref", n => { Ref = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("order", Order); - writer.WriteObjectValue("ref", Ref); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("order", Order); + writer.WriteObjectValue("ref", Ref); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.cs index d4a2110bd8..93ef3256e6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Avg/Rank_AvgRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Rank_Avg /// /// Provides operations to call the rank_Avg method. /// - public class Rank_AvgRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Rank_AvgRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action rank_Avg @@ -56,8 +59,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(Rank_AvgPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Avg.Rank_AvgPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Rank_AvgRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rank_Avg", 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 Rank_AvgRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rank_Avg", rawUrl) @@ -100,11 +103,11 @@ public Rank_AvgRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(Rank_AvgPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Avg.Rank_AvgPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Rank_AvgPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Avg.Rank_AvgPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Rank_AvgPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqPostRequestBody.cs index 32c793f6ee..86428814d6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Eq { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Rank_EqPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Rank_EqPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Rank_EqPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The order property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Order { get; set; } + public UntypedNode? Order { get; set; } #nullable restore #else - public Json Order { get; set; } + public UntypedNode Order { get; set; } #endif /// The ref property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Ref { get; set; } + public UntypedNode? Ref { get; set; } #nullable restore #else - public Json Ref { get; set; } + public UntypedNode Ref { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Rank_EqPostRequestBody() { @@ -47,12 +48,12 @@ public Rank_EqPostRequestBody() /// /// 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 Rank_EqPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Eq.Rank_EqPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Rank_EqPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Eq.Rank_EqPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "order", n => { Order = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "ref", n => { Ref = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "order", n => { Order = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "ref", n => { Ref = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("order", Order); - writer.WriteObjectValue("ref", Ref); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("order", Order); + writer.WriteObjectValue("ref", Ref); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.cs index 5b05179844..1ccfa1ca87 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rank_Eq/Rank_EqRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Rank_Eq /// /// Provides operations to call the rank_Eq method. /// - public class Rank_EqRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Rank_EqRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action rank_Eq @@ -56,8 +59,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(Rank_EqPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Eq.Rank_EqPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Rank_EqRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rank_Eq", 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 Rank_EqRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rank_Eq", rawUrl) @@ -100,11 +103,11 @@ public Rank_EqRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(Rank_EqPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Eq.Rank_EqPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Rank_EqPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rank_Eq.Rank_EqPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Rank_EqPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RatePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RatePostRequestBody.cs index 65b0415147..3e8c7bd7ef 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RatePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RatePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rate { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RatePostRequestBody : IAdditionalDataHolder, IParsable + public partial class RatePostRequestBody : 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. @@ -16,53 +17,53 @@ public class RatePostRequestBody : IAdditionalDataHolder, IParsable /// The fv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Fv { get; set; } + public UntypedNode? Fv { get; set; } #nullable restore #else - public Json Fv { get; set; } + public UntypedNode Fv { get; set; } #endif /// The guess property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Guess { get; set; } + public UntypedNode? Guess { get; set; } #nullable restore #else - public Json Guess { get; set; } + public UntypedNode Guess { get; set; } #endif /// The nper property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Nper { get; set; } + public UntypedNode? Nper { get; set; } #nullable restore #else - public Json Nper { get; set; } + public UntypedNode Nper { get; set; } #endif /// The pmt property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pmt { get; set; } + public UntypedNode? Pmt { get; set; } #nullable restore #else - public Json Pmt { get; set; } + public UntypedNode Pmt { get; set; } #endif /// The pv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pv { get; set; } + public UntypedNode? Pv { get; set; } #nullable restore #else - public Json Pv { get; set; } + public UntypedNode Pv { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Type { get; set; } + public UntypedNode? Type { get; set; } #nullable restore #else - public Json Type { get; set; } + public UntypedNode Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RatePostRequestBody() { @@ -71,12 +72,12 @@ public RatePostRequestBody() /// /// 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 RatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rate.RatePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RatePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rate.RatePostRequestBody(); } /// /// The deserialization information for the current model @@ -86,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "guess", n => { Guess = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pmt", n => { Pmt = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "fv", n => { Fv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "guess", n => { Guess = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "nper", n => { Nper = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pmt", n => { Pmt = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pv", n => { Pv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "type", n => { Type = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -101,13 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fv", Fv); - writer.WriteObjectValue("guess", Guess); - writer.WriteObjectValue("nper", Nper); - writer.WriteObjectValue("pmt", Pmt); - writer.WriteObjectValue("pv", Pv); - writer.WriteObjectValue("type", Type); + writer.WriteObjectValue("fv", Fv); + writer.WriteObjectValue("guess", Guess); + writer.WriteObjectValue("nper", Nper); + writer.WriteObjectValue("pmt", Pmt); + writer.WriteObjectValue("pv", Pv); + writer.WriteObjectValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.cs index aeed0d77dd..2e38977333 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rate/RateRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Rate /// /// Provides operations to call the rate method. /// - public class RateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RateRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action rate @@ -56,8 +59,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(RatePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rate.RatePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rate", 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 RateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rate", rawUrl) @@ -100,11 +103,11 @@ public RateRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(RatePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rate.RatePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RatePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rate.RatePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RatePostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedPostRequestBody.cs index 1edc7b0853..4b9838db9d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Received { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ReceivedPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReceivedPostRequestBody : 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. @@ -16,45 +17,45 @@ public class ReceivedPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The discount property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Discount { get; set; } + public UntypedNode? Discount { get; set; } #nullable restore #else - public Json Discount { get; set; } + public UntypedNode Discount { get; set; } #endif /// The investment property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Investment { get; set; } + public UntypedNode? Investment { get; set; } #nullable restore #else - public Json Investment { get; set; } + public UntypedNode Investment { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReceivedPostRequestBody() { @@ -63,12 +64,12 @@ public ReceivedPostRequestBody() /// /// 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 ReceivedPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Received.ReceivedPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReceivedPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Received.ReceivedPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "discount", n => { Discount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "investment", n => { Investment = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "discount", n => { Discount = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "investment", n => { Investment = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("discount", Discount); - writer.WriteObjectValue("investment", Investment); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("discount", Discount); + writer.WriteObjectValue("investment", Investment); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.cs index 2dd699b151..0d091df094 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Received/ReceivedRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Received /// /// Provides operations to call the received method. /// - public class ReceivedRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReceivedRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action received @@ -56,8 +59,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(ReceivedPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Received.ReceivedPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ReceivedRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/received", 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 ReceivedRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/received", rawUrl) @@ -100,11 +103,11 @@ public ReceivedRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(ReceivedPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Received.ReceivedPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReceivedPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Received.ReceivedPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ReceivedPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplacePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplacePostRequestBody.cs index 2c33477842..326ac68a8e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplacePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplacePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Replace { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ReplacePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReplacePostRequestBody : 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. @@ -16,37 +17,37 @@ public class ReplacePostRequestBody : IAdditionalDataHolder, IParsable /// The newText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NewText { get; set; } + public UntypedNode? NewText { get; set; } #nullable restore #else - public Json NewText { get; set; } + public UntypedNode NewText { get; set; } #endif /// The numChars property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumChars { get; set; } + public UntypedNode? NumChars { get; set; } #nullable restore #else - public Json NumChars { get; set; } + public UntypedNode NumChars { get; set; } #endif /// The oldText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? OldText { get; set; } + public UntypedNode? OldText { get; set; } #nullable restore #else - public Json OldText { get; set; } + public UntypedNode OldText { get; set; } #endif /// The startNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartNum { get; set; } + public UntypedNode? StartNum { get; set; } #nullable restore #else - public Json StartNum { get; set; } + public UntypedNode StartNum { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReplacePostRequestBody() { @@ -55,12 +56,12 @@ public ReplacePostRequestBody() /// /// 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 ReplacePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Replace.ReplacePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReplacePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Replace.ReplacePostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "newText", n => { NewText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numChars", n => { NumChars = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "oldText", n => { OldText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startNum", n => { StartNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "newText", n => { NewText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numChars", n => { NumChars = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "oldText", n => { OldText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startNum", n => { StartNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("newText", NewText); - writer.WriteObjectValue("numChars", NumChars); - writer.WriteObjectValue("oldText", OldText); - writer.WriteObjectValue("startNum", StartNum); + writer.WriteObjectValue("newText", NewText); + writer.WriteObjectValue("numChars", NumChars); + writer.WriteObjectValue("oldText", OldText); + writer.WriteObjectValue("startNum", StartNum); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.cs index dd7164e14b..4a4bcb7135 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Replace/ReplaceRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Replace /// /// Provides operations to call the replace method. /// - public class ReplaceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReplaceRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action replace @@ -56,8 +59,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(ReplacePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Replace.ReplacePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ReplaceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/replace", 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 ReplaceRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/replace", rawUrl) @@ -100,11 +103,11 @@ public ReplaceRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(ReplacePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Replace.ReplacePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReplacePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Replace.ReplacePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ReplacePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBPostRequestBody.cs index 2553a45b3a..2f8581d5ed 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ReplaceB { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ReplaceBPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReplaceBPostRequestBody : 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. @@ -16,37 +17,37 @@ public class ReplaceBPostRequestBody : IAdditionalDataHolder, IParsable /// The newText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NewText { get; set; } + public UntypedNode? NewText { get; set; } #nullable restore #else - public Json NewText { get; set; } + public UntypedNode NewText { get; set; } #endif /// The numBytes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumBytes { get; set; } + public UntypedNode? NumBytes { get; set; } #nullable restore #else - public Json NumBytes { get; set; } + public UntypedNode NumBytes { get; set; } #endif /// The oldText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? OldText { get; set; } + public UntypedNode? OldText { get; set; } #nullable restore #else - public Json OldText { get; set; } + public UntypedNode OldText { get; set; } #endif /// The startNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartNum { get; set; } + public UntypedNode? StartNum { get; set; } #nullable restore #else - public Json StartNum { get; set; } + public UntypedNode StartNum { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReplaceBPostRequestBody() { @@ -55,12 +56,12 @@ public ReplaceBPostRequestBody() /// /// 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 ReplaceBPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ReplaceB.ReplaceBPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReplaceBPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ReplaceB.ReplaceBPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "newText", n => { NewText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "numBytes", n => { NumBytes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "oldText", n => { OldText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startNum", n => { StartNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "newText", n => { NewText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "numBytes", n => { NumBytes = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "oldText", n => { OldText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startNum", n => { StartNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("newText", NewText); - writer.WriteObjectValue("numBytes", NumBytes); - writer.WriteObjectValue("oldText", OldText); - writer.WriteObjectValue("startNum", StartNum); + writer.WriteObjectValue("newText", NewText); + writer.WriteObjectValue("numBytes", NumBytes); + writer.WriteObjectValue("oldText", OldText); + writer.WriteObjectValue("startNum", StartNum); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.cs index e8c0d9b3e8..956fde41b8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/ReplaceB/ReplaceBRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.ReplaceB /// /// Provides operations to call the replaceB method. /// - public class ReplaceBRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReplaceBRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action replaceB @@ -56,8 +59,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(ReplaceBPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ReplaceB.ReplaceBPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ReplaceBRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/replaceB", 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 ReplaceBRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/replaceB", rawUrl) @@ -100,11 +103,11 @@ public ReplaceBRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(ReplaceBPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ReplaceB.ReplaceBPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReplaceBPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.ReplaceB.ReplaceBPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ReplaceBPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptPostRequestBody.cs index 85cbba3c3f..77405a1db1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ReptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReptPostRequestBody : 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. @@ -16,21 +17,21 @@ public class ReptPostRequestBody : IAdditionalDataHolder, IParsable /// The numberTimes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumberTimes { get; set; } + public UntypedNode? NumberTimes { get; set; } #nullable restore #else - public Json NumberTimes { get; set; } + public UntypedNode NumberTimes { get; set; } #endif /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReptPostRequestBody() { @@ -39,12 +40,12 @@ public ReptPostRequestBody() /// /// 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 ReptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rept.ReptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReptPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rept.ReptPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numberTimes", n => { NumberTimes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numberTimes", n => { NumberTimes = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("numberTimes", NumberTimes); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("numberTimes", NumberTimes); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.cs index ffb052c50c..c01e5fe6c7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rept/ReptRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Rept /// /// Provides operations to call the rept method. /// - public class ReptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReptRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action rept @@ -56,8 +59,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(ReptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rept.ReptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ReptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rept", 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 ReptRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rept", rawUrl) @@ -100,11 +103,11 @@ public ReptRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(ReptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rept.ReptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rept.ReptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ReptPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightPostRequestBody.cs index 8a1a1baeb1..243c29698a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Right { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RightPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RightPostRequestBody : 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. @@ -16,21 +17,21 @@ public class RightPostRequestBody : IAdditionalDataHolder, IParsable /// The numChars property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumChars { get; set; } + public UntypedNode? NumChars { get; set; } #nullable restore #else - public Json NumChars { get; set; } + public UntypedNode NumChars { get; set; } #endif /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RightPostRequestBody() { @@ -39,12 +40,12 @@ public RightPostRequestBody() /// /// 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 RightPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Right.RightPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RightPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Right.RightPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numChars", n => { NumChars = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numChars", n => { NumChars = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("numChars", NumChars); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("numChars", NumChars); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.cs index ed2a742156..4f87744771 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Right/RightRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Right /// /// Provides operations to call the right method. /// - public class RightRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RightRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action right @@ -56,8 +59,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(RightPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Right.RightPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RightRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/right", 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 RightRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/right", rawUrl) @@ -100,11 +103,11 @@ public RightRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(RightPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Right.RightPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RightPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Right.RightPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RightPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbPostRequestBody.cs index 7026c1c302..d5dd6fe9a2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rightb { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RightbPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RightbPostRequestBody : 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. @@ -16,21 +17,21 @@ public class RightbPostRequestBody : IAdditionalDataHolder, IParsable /// The numBytes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumBytes { get; set; } + public UntypedNode? NumBytes { get; set; } #nullable restore #else - public Json NumBytes { get; set; } + public UntypedNode NumBytes { get; set; } #endif /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RightbPostRequestBody() { @@ -39,12 +40,12 @@ public RightbPostRequestBody() /// /// 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 RightbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rightb.RightbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RightbPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rightb.RightbPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numBytes", n => { NumBytes = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numBytes", n => { NumBytes = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("numBytes", NumBytes); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("numBytes", NumBytes); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.cs index 16e682eb82..fbd73885b1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rightb/RightbRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Rightb /// /// Provides operations to call the rightb method. /// - public class RightbRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RightbRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action rightb @@ -56,8 +59,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(RightbPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rightb.RightbPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RightbRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rightb", 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 RightbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rightb", rawUrl) @@ -100,11 +103,11 @@ public RightbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(RightbPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rightb.RightbPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RightbPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rightb.RightbPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RightbPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanPostRequestBody.cs index bf6eefd1d4..fb7432f1bf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Roman { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RomanPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RomanPostRequestBody : 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. @@ -16,21 +17,21 @@ public class RomanPostRequestBody : IAdditionalDataHolder, IParsable /// The form property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Form { get; set; } + public UntypedNode? Form { get; set; } #nullable restore #else - public Json Form { get; set; } + public UntypedNode Form { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RomanPostRequestBody() { @@ -39,12 +40,12 @@ public RomanPostRequestBody() /// /// 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 RomanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Roman.RomanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RomanPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Roman.RomanPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "form", n => { Form = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "form", n => { Form = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("form", Form); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("form", Form); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.cs index 6cad438d38..7402d2b2ca 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Roman/RomanRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Roman /// /// Provides operations to call the roman method. /// - public class RomanRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RomanRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action roman @@ -56,8 +59,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(RomanPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Roman.RomanPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RomanRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/roman", 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 RomanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/roman", rawUrl) @@ -100,11 +103,11 @@ public RomanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(RomanPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Roman.RomanPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RomanPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Roman.RomanPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RomanPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs index 25e209c009..3c75eb176b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Round { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RoundPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RoundPostRequestBody : 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. @@ -16,21 +17,21 @@ public class RoundPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The numDigits property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumDigits { get; set; } + public UntypedNode? NumDigits { get; set; } #nullable restore #else - public Json NumDigits { get; set; } + public UntypedNode NumDigits { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RoundPostRequestBody() { @@ -39,12 +40,12 @@ public RoundPostRequestBody() /// /// 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 RoundPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Round.RoundPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RoundPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Round.RoundPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numDigits", n => { NumDigits = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("numDigits", NumDigits); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("numDigits", NumDigits); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.cs index 4122e5e78e..7f7a991d03 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Round/RoundRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Round /// /// Provides operations to call the round method. /// - public class RoundRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoundRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action round @@ -56,8 +59,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(RoundPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Round.RoundPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RoundRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/round", 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 RoundRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/round", rawUrl) @@ -100,11 +103,11 @@ public RoundRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(RoundPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Round.RoundPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RoundPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Round.RoundPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RoundPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs index a2910fae8d..8b6da427ca 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundDown { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RoundDownPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RoundDownPostRequestBody : 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. @@ -16,21 +17,21 @@ public class RoundDownPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The numDigits property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumDigits { get; set; } + public UntypedNode? NumDigits { get; set; } #nullable restore #else - public Json NumDigits { get; set; } + public UntypedNode NumDigits { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RoundDownPostRequestBody() { @@ -39,12 +40,12 @@ public RoundDownPostRequestBody() /// /// 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 RoundDownPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundDown.RoundDownPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RoundDownPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundDown.RoundDownPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numDigits", n => { NumDigits = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("numDigits", NumDigits); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("numDigits", NumDigits); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.cs index 181aa76f09..d404b786aa 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundDown/RoundDownRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.RoundDown /// /// Provides operations to call the roundDown method. /// - public class RoundDownRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoundDownRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action roundDown @@ -56,8 +59,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(RoundDownPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundDown.RoundDownPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RoundDownRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/roundDown", 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 RoundDownRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/roundDown", rawUrl) @@ -100,11 +103,11 @@ public RoundDownRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(RoundDownPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundDown.RoundDownPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RoundDownPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundDown.RoundDownPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RoundDownPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs index 347aa371e6..1f0d38ff6c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundUp { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RoundUpPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RoundUpPostRequestBody : 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. @@ -16,21 +17,21 @@ public class RoundUpPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The numDigits property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumDigits { get; set; } + public UntypedNode? NumDigits { get; set; } #nullable restore #else - public Json NumDigits { get; set; } + public UntypedNode NumDigits { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RoundUpPostRequestBody() { @@ -39,12 +40,12 @@ public RoundUpPostRequestBody() /// /// 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 RoundUpPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundUp.RoundUpPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RoundUpPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundUp.RoundUpPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numDigits", n => { NumDigits = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("numDigits", NumDigits); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("numDigits", NumDigits); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.cs index 2edadcec98..37739a6c45 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/RoundUp/RoundUpRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.RoundUp /// /// Provides operations to call the roundUp method. /// - public class RoundUpRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoundUpRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action roundUp @@ -56,8 +59,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(RoundUpPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundUp.RoundUpPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RoundUpRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/roundUp", 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 RoundUpRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/roundUp", rawUrl) @@ -100,11 +103,11 @@ public RoundUpRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(RoundUpPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundUp.RoundUpPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RoundUpPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.RoundUp.RoundUpPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RoundUpPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsPostRequestBody.cs index 54d8b4e543..96672a850c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rows { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RowsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RowsPostRequestBody : 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. @@ -16,13 +17,13 @@ public class RowsPostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RowsPostRequestBody() { @@ -31,12 +32,12 @@ public RowsPostRequestBody() /// /// 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 RowsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rows.RowsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RowsPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rows.RowsPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("array", Array); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.cs index 83ae376e25..6f33bab649 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rows/RowsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Rows /// /// Provides operations to call the rows method. /// - public class RowsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action rows @@ -56,8 +59,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(RowsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rows.RowsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RowsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rows", 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 RowsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rows", rawUrl) @@ -100,11 +103,11 @@ public RowsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(RowsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rows.RowsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RowsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rows.RowsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RowsPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriPostRequestBody.cs index ed2d536622..03c4d9cf63 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rri { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RriPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RriPostRequestBody : 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. @@ -16,29 +17,29 @@ public class RriPostRequestBody : IAdditionalDataHolder, IParsable /// The fv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Fv { get; set; } + public UntypedNode? Fv { get; set; } #nullable restore #else - public Json Fv { get; set; } + public UntypedNode Fv { get; set; } #endif /// The nper property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Nper { get; set; } + public UntypedNode? Nper { get; set; } #nullable restore #else - public Json Nper { get; set; } + public UntypedNode Nper { get; set; } #endif /// The pv property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pv { get; set; } + public UntypedNode? Pv { get; set; } #nullable restore #else - public Json Pv { get; set; } + public UntypedNode Pv { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RriPostRequestBody() { @@ -47,12 +48,12 @@ public RriPostRequestBody() /// /// 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 RriPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rri.RriPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RriPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rri.RriPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fv", n => { Fv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "nper", n => { Nper = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pv", n => { Pv = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "fv", n => { Fv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "nper", n => { Nper = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pv", n => { Pv = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("fv", Fv); - writer.WriteObjectValue("nper", Nper); - writer.WriteObjectValue("pv", Pv); + writer.WriteObjectValue("fv", Fv); + writer.WriteObjectValue("nper", Nper); + writer.WriteObjectValue("pv", Pv); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.cs index 7652dfc5b7..3c4625887a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Rri/RriRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Rri /// /// Provides operations to call the rri method. /// - public class RriRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RriRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action rri @@ -56,8 +59,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(RriPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rri.RriPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RriRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rri", 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 RriRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/rri", rawUrl) @@ -100,11 +103,11 @@ public RriRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(RriPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rri.RriPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RriPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Rri.RriPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RriPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecPostRequestBody.cs index c9d1ff1805..5092c365fe 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sec { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SecPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SecPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SecPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecPostRequestBody() { @@ -31,12 +32,12 @@ public SecPostRequestBody() /// /// 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 SecPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sec.SecPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sec.SecPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.cs index afaae4d582..49a83e9323 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sec/SecRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Sec /// /// Provides operations to call the sec method. /// - public class SecRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SecRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sec @@ -56,8 +59,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(SecPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sec.SecPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SecRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sec", 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 SecRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sec", rawUrl) @@ -100,11 +103,11 @@ public SecRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(SecPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sec.SecPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SecPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sec.SecPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SecPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechPostRequestBody.cs index 82be4db4e2..a721bc8cfb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sech { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SechPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SechPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SechPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SechPostRequestBody() { @@ -31,12 +32,12 @@ public SechPostRequestBody() /// /// 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 SechPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sech.SechPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SechPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sech.SechPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.cs index bf21324af6..9d7481f6fe 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sech/SechRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Sech /// /// Provides operations to call the sech method. /// - public class SechRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SechRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sech @@ -56,8 +59,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(SechPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sech.SechPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SechRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sech", 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 SechRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sech", rawUrl) @@ -100,11 +103,11 @@ public SechRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(SechPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sech.SechPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SechPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sech.SechPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SechPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondPostRequestBody.cs index be531c7a74..ce75eccd96 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Second { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SecondPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SecondPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SecondPostRequestBody : IAdditionalDataHolder, IParsable /// The serialNumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SerialNumber { get; set; } + public UntypedNode? SerialNumber { get; set; } #nullable restore #else - public Json SerialNumber { get; set; } + public UntypedNode SerialNumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SecondPostRequestBody() { @@ -31,12 +32,12 @@ public SecondPostRequestBody() /// /// 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 SecondPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Second.SecondPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SecondPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Second.SecondPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "serialNumber", n => { SerialNumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("serialNumber", SerialNumber); + writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.cs index 2740df21e2..e7381bf718 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Second/SecondRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Second /// /// Provides operations to call the second method. /// - public class SecondRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SecondRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action second @@ -56,8 +59,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(SecondPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Second.SecondPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SecondRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/second", 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 SecondRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/second", rawUrl) @@ -100,11 +103,11 @@ public SecondRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(SecondPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Second.SecondPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SecondPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Second.SecondPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SecondPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumPostRequestBody.cs index 8f807ee5e3..98324131f0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SeriesSum { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SeriesSumPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SeriesSumPostRequestBody : 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. @@ -16,37 +17,37 @@ public class SeriesSumPostRequestBody : IAdditionalDataHolder, IParsable /// The coefficients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Coefficients { get; set; } + public UntypedNode? Coefficients { get; set; } #nullable restore #else - public Json Coefficients { get; set; } + public UntypedNode Coefficients { get; set; } #endif /// The m property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? M { get; set; } + public UntypedNode? M { get; set; } #nullable restore #else - public Json M { get; set; } + public UntypedNode M { get; set; } #endif /// The n property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? N { get; set; } + public UntypedNode? N { get; set; } #nullable restore #else - public Json N { get; set; } + public UntypedNode N { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SeriesSumPostRequestBody() { @@ -55,12 +56,12 @@ public SeriesSumPostRequestBody() /// /// 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 SeriesSumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SeriesSum.SeriesSumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SeriesSumPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SeriesSum.SeriesSumPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "coefficients", n => { Coefficients = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "m", n => { M = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "n", n => { N = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "coefficients", n => { Coefficients = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "m", n => { M = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "n", n => { N = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("coefficients", Coefficients); - writer.WriteObjectValue("m", M); - writer.WriteObjectValue("n", N); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("coefficients", Coefficients); + writer.WriteObjectValue("m", M); + writer.WriteObjectValue("n", N); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.cs index 2ec43934d1..8a0ecd354c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SeriesSum/SeriesSumRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.SeriesSum /// /// Provides operations to call the seriesSum method. /// - public class SeriesSumRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SeriesSumRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action seriesSum @@ -56,8 +59,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(SeriesSumPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SeriesSum.SeriesSumPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SeriesSumRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/seriesSum", 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 SeriesSumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/seriesSum", rawUrl) @@ -100,11 +103,11 @@ public SeriesSumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(SeriesSumPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SeriesSum.SeriesSumPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SeriesSumPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SeriesSum.SeriesSumPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SeriesSumPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetPostRequestBody.cs index 8790e31e2b..0904f7fa3b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheet { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SheetPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SheetPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SheetPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SheetPostRequestBody() { @@ -31,12 +32,12 @@ public SheetPostRequestBody() /// /// 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 SheetPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheet.SheetPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SheetPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheet.SheetPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.cs index 2a16435a7e..f89c564008 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheet/SheetRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Sheet /// /// Provides operations to call the sheet method. /// - public class SheetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SheetRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sheet @@ -56,8 +59,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(SheetPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheet.SheetPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sheet", 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 SheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sheet", rawUrl) @@ -100,11 +103,11 @@ public SheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(SheetPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheet.SheetPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SheetPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheet.SheetPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SheetPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsPostRequestBody.cs index aafde0d92e..83bca059e7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheets { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SheetsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SheetsPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SheetsPostRequestBody : IAdditionalDataHolder, IParsable /// The reference property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Reference { get; set; } + public UntypedNode? Reference { get; set; } #nullable restore #else - public Json Reference { get; set; } + public UntypedNode Reference { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SheetsPostRequestBody() { @@ -31,12 +32,12 @@ public SheetsPostRequestBody() /// /// 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 SheetsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheets.SheetsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SheetsPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheets.SheetsPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "reference", n => { Reference = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "reference", n => { Reference = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("reference", Reference); + writer.WriteObjectValue("reference", Reference); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.cs index b924dc450d..15b2211669 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sheets/SheetsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Sheets /// /// Provides operations to call the sheets method. /// - public class SheetsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SheetsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sheets @@ -56,8 +59,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(SheetsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheets.SheetsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SheetsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sheets", 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 SheetsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sheets", rawUrl) @@ -100,11 +103,11 @@ public SheetsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(SheetsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheets.SheetsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SheetsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sheets.SheetsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SheetsPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignPostRequestBody.cs index 0401dc71b9..0f77084643 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sign { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SignPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SignPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SignPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SignPostRequestBody() { @@ -31,12 +32,12 @@ public SignPostRequestBody() /// /// 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 SignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sign.SignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SignPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sign.SignPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.cs index d16cb318d7..49a2f62436 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sign/SignRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Sign /// /// Provides operations to call the sign method. /// - public class SignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SignRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sign @@ -56,8 +59,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(SignPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sign.SignPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sign", 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 SignRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sign", rawUrl) @@ -100,11 +103,11 @@ public SignRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(SignPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sign.SignPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SignPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sign.SignPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SignPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinPostRequestBody.cs index fbd727474c..32385808d4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sin { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SinPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SinPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SinPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SinPostRequestBody() { @@ -31,12 +32,12 @@ public SinPostRequestBody() /// /// 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 SinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sin.SinPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SinPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sin.SinPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.cs index ad2fa0aa59..77f7286bcf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sin/SinRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Sin /// /// Provides operations to call the sin method. /// - public class SinRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SinRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sin @@ -56,8 +59,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(SinPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sin.SinPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SinRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sin", 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 SinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sin", rawUrl) @@ -100,11 +103,11 @@ public SinRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(SinPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sin.SinPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SinPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sin.SinPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SinPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhPostRequestBody.cs index 7552ce89ef..7c34ea70af 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sinh { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SinhPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SinhPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SinhPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SinhPostRequestBody() { @@ -31,12 +32,12 @@ public SinhPostRequestBody() /// /// 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 SinhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sinh.SinhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SinhPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sinh.SinhPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.cs index 49623fffb7..2b1922effd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sinh/SinhRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Sinh /// /// Provides operations to call the sinh method. /// - public class SinhRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SinhRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sinh @@ -56,8 +59,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(SinhPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sinh.SinhPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SinhRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sinh", 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 SinhRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sinh", rawUrl) @@ -100,11 +103,11 @@ public SinhRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(SinhPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sinh.SinhPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SinhPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sinh.SinhPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SinhPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewPostRequestBody.cs index ffbbc43701..f8050d37f1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SkewPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SkewPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SkewPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SkewPostRequestBody() { @@ -31,12 +32,12 @@ public SkewPostRequestBody() /// /// 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 SkewPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew.SkewPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SkewPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew.SkewPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.cs index 23494c5e6e..4293dd63c8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew/SkewRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Skew /// /// Provides operations to call the skew method. /// - public class SkewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SkewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action skew @@ -56,8 +59,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(SkewPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew.SkewPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SkewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/skew", 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 SkewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/skew", rawUrl) @@ -100,11 +103,11 @@ public SkewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(SkewPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew.SkewPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SkewPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew.SkewPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SkewPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pPostRequestBody.cs index cd7cba82d7..897750b1db 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew_p { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Skew_pPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Skew_pPostRequestBody : 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. @@ -16,13 +17,13 @@ public class Skew_pPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Skew_pPostRequestBody() { @@ -31,12 +32,12 @@ public Skew_pPostRequestBody() /// /// 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 Skew_pPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew_p.Skew_pPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Skew_pPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew_p.Skew_pPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.cs index 8df1f37611..04b138ece2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Skew_p/Skew_pRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Skew_p /// /// Provides operations to call the skew_p method. /// - public class Skew_pRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Skew_pRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action skew_p @@ -56,8 +59,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(Skew_pPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew_p.Skew_pPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Skew_pRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/skew_p", 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 Skew_pRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/skew_p", rawUrl) @@ -100,11 +103,11 @@ public Skew_pRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(Skew_pPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew_p.Skew_pPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Skew_pPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Skew_p.Skew_pPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Skew_pPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnPostRequestBody.cs index 22ebdd60d1..a61579c34e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sln { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SlnPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SlnPostRequestBody : 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. @@ -16,29 +17,29 @@ public class SlnPostRequestBody : IAdditionalDataHolder, IParsable /// The cost property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cost { get; set; } + public UntypedNode? Cost { get; set; } #nullable restore #else - public Json Cost { get; set; } + public UntypedNode Cost { get; set; } #endif /// The life property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Life { get; set; } + public UntypedNode? Life { get; set; } #nullable restore #else - public Json Life { get; set; } + public UntypedNode Life { get; set; } #endif /// The salvage property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Salvage { get; set; } + public UntypedNode? Salvage { get; set; } #nullable restore #else - public Json Salvage { get; set; } + public UntypedNode Salvage { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SlnPostRequestBody() { @@ -47,12 +48,12 @@ public SlnPostRequestBody() /// /// 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 SlnPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sln.SlnPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SlnPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sln.SlnPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "life", n => { Life = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "salvage", n => { Salvage = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cost", n => { Cost = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "life", n => { Life = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "salvage", n => { Salvage = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cost", Cost); - writer.WriteObjectValue("life", Life); - writer.WriteObjectValue("salvage", Salvage); + writer.WriteObjectValue("cost", Cost); + writer.WriteObjectValue("life", Life); + writer.WriteObjectValue("salvage", Salvage); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.cs index 08c18d4bf1..9d347eaa94 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sln/SlnRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Sln /// /// Provides operations to call the sln method. /// - public class SlnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SlnRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sln @@ -56,8 +59,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(SlnPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sln.SlnPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SlnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sln", 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 SlnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sln", rawUrl) @@ -100,11 +103,11 @@ public SlnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(SlnPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sln.SlnPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SlnPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sln.SlnPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SlnPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallPostRequestBody.cs index 0a855028cd..37c83d63ab 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Small { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SmallPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SmallPostRequestBody : 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. @@ -16,21 +17,21 @@ public class SmallPostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// The k property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? K { get; set; } + public UntypedNode? K { get; set; } #nullable restore #else - public Json K { get; set; } + public UntypedNode K { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SmallPostRequestBody() { @@ -39,12 +40,12 @@ public SmallPostRequestBody() /// /// 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 SmallPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Small.SmallPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SmallPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Small.SmallPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "k", n => { K = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "k", n => { K = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); - writer.WriteObjectValue("k", K); + writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("k", K); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.cs index 2f11dc12b3..2b2cb1b245 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Small/SmallRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Small /// /// Provides operations to call the small method. /// - public class SmallRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SmallRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action small @@ -56,8 +59,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(SmallPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Small.SmallPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SmallRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/small", 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 SmallRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/small", rawUrl) @@ -100,11 +103,11 @@ public SmallRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(SmallPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Small.SmallPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SmallPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Small.SmallPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SmallPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtPostRequestBody.cs index 39cb368906..57e4e49514 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sqrt { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SqrtPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SqrtPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SqrtPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SqrtPostRequestBody() { @@ -31,12 +32,12 @@ public SqrtPostRequestBody() /// /// 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 SqrtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sqrt.SqrtPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SqrtPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sqrt.SqrtPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.cs index 460fd293c7..5287e49b64 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sqrt/SqrtRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Sqrt /// /// Provides operations to call the sqrt method. /// - public class SqrtRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SqrtRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sqrt @@ -56,8 +59,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(SqrtPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sqrt.SqrtPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SqrtRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sqrt", 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 SqrtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sqrt", rawUrl) @@ -100,11 +103,11 @@ public SqrtRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(SqrtPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sqrt.SqrtPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SqrtPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sqrt.SqrtPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SqrtPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiPostRequestBody.cs index 886d2d70ea..53362c9f93 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SqrtPi { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SqrtPiPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SqrtPiPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SqrtPiPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SqrtPiPostRequestBody() { @@ -31,12 +32,12 @@ public SqrtPiPostRequestBody() /// /// 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 SqrtPiPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SqrtPi.SqrtPiPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SqrtPiPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SqrtPi.SqrtPiPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.cs index ddabfe5da9..509462cfe0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SqrtPi/SqrtPiRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.SqrtPi /// /// Provides operations to call the sqrtPi method. /// - public class SqrtPiRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SqrtPiRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sqrtPi @@ -56,8 +59,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(SqrtPiPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SqrtPi.SqrtPiPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SqrtPiRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sqrtPi", 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 SqrtPiRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sqrtPi", rawUrl) @@ -100,11 +103,11 @@ public SqrtPiRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(SqrtPiPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SqrtPi.SqrtPiPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SqrtPiPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SqrtPi.SqrtPiPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SqrtPiPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevAPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevAPostRequestBody.cs index 0d4dcaed2e..a6e68c04cb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevAPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevAPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevA { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class StDevAPostRequestBody : IAdditionalDataHolder, IParsable + public partial class StDevAPostRequestBody : 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. @@ -16,13 +17,13 @@ public class StDevAPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public StDevAPostRequestBody() { @@ -31,12 +32,12 @@ public StDevAPostRequestBody() /// /// 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 StDevAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevA.StDevAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StDevAPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevA.StDevAPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.cs index ce4e3ec99a..703bff5438 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevA/StDevARequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.StDevA /// /// Provides operations to call the stDevA method. /// - public class StDevARequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StDevARequestBuilder : BaseCliRequestBuilder { /// /// Invoke action stDevA @@ -56,8 +59,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(StDevAPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevA.StDevAPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 StDevARequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/stDevA", 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 StDevARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/stDevA", rawUrl) @@ -100,11 +103,11 @@ public StDevARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(StDevAPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevA.StDevAPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(StDevAPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevA.StDevAPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(StDevAPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPAPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPAPostRequestBody.cs index ea50117cee..0f1f5842e6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPAPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPAPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevPA { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class StDevPAPostRequestBody : IAdditionalDataHolder, IParsable + public partial class StDevPAPostRequestBody : 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. @@ -16,13 +17,13 @@ public class StDevPAPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public StDevPAPostRequestBody() { @@ -31,12 +32,12 @@ public StDevPAPostRequestBody() /// /// 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 StDevPAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevPA.StDevPAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StDevPAPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevPA.StDevPAPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.cs index e997a46611..8358b3228d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDevPA/StDevPARequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.StDevPA /// /// Provides operations to call the stDevPA method. /// - public class StDevPARequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StDevPARequestBuilder : BaseCliRequestBuilder { /// /// Invoke action stDevPA @@ -56,8 +59,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(StDevPAPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevPA.StDevPAPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 StDevPARequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/stDevPA", 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 StDevPARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/stDevPA", rawUrl) @@ -100,11 +103,11 @@ public StDevPARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(StDevPAPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevPA.StDevPAPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(StDevPAPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDevPA.StDevPAPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(StDevPAPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PPostRequestBody.cs index 9d25dc67bc..cbba7f6e7c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_P { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class StDev_PPostRequestBody : IAdditionalDataHolder, IParsable + public partial class StDev_PPostRequestBody : 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. @@ -16,13 +17,13 @@ public class StDev_PPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public StDev_PPostRequestBody() { @@ -31,12 +32,12 @@ public StDev_PPostRequestBody() /// /// 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 StDev_PPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_P.StDev_PPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StDev_PPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_P.StDev_PPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.cs index 4c1e0b3433..b8fb122e3c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_P/StDev_PRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.StDev_P /// /// Provides operations to call the stDev_P method. /// - public class StDev_PRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StDev_PRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action stDev_P @@ -56,8 +59,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(StDev_PPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_P.StDev_PPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 StDev_PRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/stDev_P", 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 StDev_PRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/stDev_P", rawUrl) @@ -100,11 +103,11 @@ public StDev_PRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(StDev_PPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_P.StDev_PPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(StDev_PPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_P.StDev_PPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(StDev_PPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SPostRequestBody.cs index 69bd2fd651..8448a0d928 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_S { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class StDev_SPostRequestBody : IAdditionalDataHolder, IParsable + public partial class StDev_SPostRequestBody : 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. @@ -16,13 +17,13 @@ public class StDev_SPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public StDev_SPostRequestBody() { @@ -31,12 +32,12 @@ public StDev_SPostRequestBody() /// /// 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 StDev_SPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_S.StDev_SPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StDev_SPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_S.StDev_SPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.cs index a4ed4e5636..19b38df1f6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/StDev_S/StDev_SRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.StDev_S /// /// Provides operations to call the stDev_S method. /// - public class StDev_SRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StDev_SRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action stDev_S @@ -56,8 +59,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(StDev_SPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_S.StDev_SPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 StDev_SRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/stDev_S", 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 StDev_SRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/stDev_S", rawUrl) @@ -100,11 +103,11 @@ public StDev_SRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(StDev_SPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_S.StDev_SPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(StDev_SPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.StDev_S.StDev_SPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(StDev_SPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizePostRequestBody.cs index bf30218aad..ce161ac999 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Standardize { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class StandardizePostRequestBody : IAdditionalDataHolder, IParsable + public partial class StandardizePostRequestBody : 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. @@ -16,29 +17,29 @@ public class StandardizePostRequestBody : IAdditionalDataHolder, IParsable /// The mean property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Mean { get; set; } + public UntypedNode? Mean { get; set; } #nullable restore #else - public Json Mean { get; set; } + public UntypedNode Mean { get; set; } #endif /// The standardDev property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StandardDev { get; set; } + public UntypedNode? StandardDev { get; set; } #nullable restore #else - public Json StandardDev { get; set; } + public UntypedNode StandardDev { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public StandardizePostRequestBody() { @@ -47,12 +48,12 @@ public StandardizePostRequestBody() /// /// 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 StandardizePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Standardize.StandardizePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StandardizePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Standardize.StandardizePostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "mean", n => { Mean = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "standardDev", n => { StandardDev = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "mean", n => { Mean = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "standardDev", n => { StandardDev = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("mean", Mean); - writer.WriteObjectValue("standardDev", StandardDev); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("mean", Mean); + writer.WriteObjectValue("standardDev", StandardDev); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.cs index 6f316f4940..d537176753 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Standardize/StandardizeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Standardize /// /// Provides operations to call the standardize method. /// - public class StandardizeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StandardizeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action standardize @@ -56,8 +59,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(StandardizePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Standardize.StandardizePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 StandardizeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/standardize", 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 StandardizeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/standardize", rawUrl) @@ -100,11 +103,11 @@ public StandardizeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(StandardizePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Standardize.StandardizePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(StandardizePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Standardize.StandardizePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(StandardizePostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstitutePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstitutePostRequestBody.cs index 909d17caa0..826050e257 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstitutePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstitutePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Substitute { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SubstitutePostRequestBody : IAdditionalDataHolder, IParsable + public partial class SubstitutePostRequestBody : 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. @@ -16,37 +17,37 @@ public class SubstitutePostRequestBody : IAdditionalDataHolder, IParsable /// The instanceNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? InstanceNum { get; set; } + public UntypedNode? InstanceNum { get; set; } #nullable restore #else - public Json InstanceNum { get; set; } + public UntypedNode InstanceNum { get; set; } #endif /// The newText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NewText { get; set; } + public UntypedNode? NewText { get; set; } #nullable restore #else - public Json NewText { get; set; } + public UntypedNode NewText { get; set; } #endif /// The oldText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? OldText { get; set; } + public UntypedNode? OldText { get; set; } #nullable restore #else - public Json OldText { get; set; } + public UntypedNode OldText { get; set; } #endif /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SubstitutePostRequestBody() { @@ -55,12 +56,12 @@ public SubstitutePostRequestBody() /// /// 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 SubstitutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Substitute.SubstitutePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SubstitutePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Substitute.SubstitutePostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "instanceNum", n => { InstanceNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "newText", n => { NewText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "oldText", n => { OldText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "instanceNum", n => { InstanceNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "newText", n => { NewText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "oldText", n => { OldText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("instanceNum", InstanceNum); - writer.WriteObjectValue("newText", NewText); - writer.WriteObjectValue("oldText", OldText); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("instanceNum", InstanceNum); + writer.WriteObjectValue("newText", NewText); + writer.WriteObjectValue("oldText", OldText); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.cs index 2327830831..2eb02bb943 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Substitute/SubstituteRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Substitute /// /// Provides operations to call the substitute method. /// - public class SubstituteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubstituteRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action substitute @@ -56,8 +59,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(SubstitutePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Substitute.SubstitutePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SubstituteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/substitute", 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 SubstituteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/substitute", rawUrl) @@ -100,11 +103,11 @@ public SubstituteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(SubstitutePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Substitute.SubstitutePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SubstitutePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Substitute.SubstitutePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SubstitutePostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalPostRequestBody.cs index 0d84ac1a2d..51c3fdce41 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Subtotal { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SubtotalPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SubtotalPostRequestBody : 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. @@ -16,21 +17,21 @@ public class SubtotalPostRequestBody : IAdditionalDataHolder, IParsable /// The functionNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FunctionNum { get; set; } + public UntypedNode? FunctionNum { get; set; } #nullable restore #else - public Json FunctionNum { get; set; } + public UntypedNode FunctionNum { get; set; } #endif /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SubtotalPostRequestBody() { @@ -39,12 +40,12 @@ public SubtotalPostRequestBody() /// /// 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 SubtotalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Subtotal.SubtotalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SubtotalPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Subtotal.SubtotalPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "functionNum", n => { FunctionNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "functionNum", n => { FunctionNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("functionNum", FunctionNum); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("functionNum", FunctionNum); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.cs index 7234fb1be6..1a85587458 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Subtotal/SubtotalRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Subtotal /// /// Provides operations to call the subtotal method. /// - public class SubtotalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubtotalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action subtotal @@ -56,8 +59,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(SubtotalPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Subtotal.SubtotalPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SubtotalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/subtotal", 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 SubtotalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/subtotal", rawUrl) @@ -100,11 +103,11 @@ public SubtotalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(SubtotalPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Subtotal.SubtotalPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SubtotalPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Subtotal.SubtotalPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SubtotalPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumPostRequestBody.cs index 4cf2ab4746..521ed391a0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sum { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SumPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SumPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SumPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SumPostRequestBody() { @@ -31,12 +32,12 @@ public SumPostRequestBody() /// /// 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 SumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sum.SumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SumPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sum.SumPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.cs index 9ad3316db0..e5f0e8e1f6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Sum/SumRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Sum /// /// Provides operations to call the sum method. /// - public class SumRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SumRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sum @@ -56,8 +59,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(SumPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sum.SumPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SumRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sum", 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 SumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sum", rawUrl) @@ -100,11 +103,11 @@ public SumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(SumPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sum.SumPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SumPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Sum.SumPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SumPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfPostRequestBody.cs index cb0f23ceb6..deb75479bf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIf { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SumIfPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SumIfPostRequestBody : 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. @@ -16,29 +17,29 @@ public class SumIfPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Criteria { get; set; } + public UntypedNode? Criteria { get; set; } #nullable restore #else - public Json Criteria { get; set; } + public UntypedNode Criteria { get; set; } #endif /// The range property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Range { get; set; } + public UntypedNode? Range { get; set; } #nullable restore #else - public Json Range { get; set; } + public UntypedNode Range { get; set; } #endif /// The sumRange property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SumRange { get; set; } + public UntypedNode? SumRange { get; set; } #nullable restore #else - public Json SumRange { get; set; } + public UntypedNode SumRange { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SumIfPostRequestBody() { @@ -47,12 +48,12 @@ public SumIfPostRequestBody() /// /// 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 SumIfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIf.SumIfPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SumIfPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIf.SumIfPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "range", n => { Range = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "sumRange", n => { SumRange = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "range", n => { Range = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "sumRange", n => { SumRange = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); - writer.WriteObjectValue("range", Range); - writer.WriteObjectValue("sumRange", SumRange); + writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("range", Range); + writer.WriteObjectValue("sumRange", SumRange); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.cs index c489573bde..efa517f588 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIf/SumIfRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.SumIf /// /// Provides operations to call the sumIf method. /// - public class SumIfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SumIfRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sumIf @@ -56,8 +59,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(SumIfPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIf.SumIfPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SumIfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sumIf", 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 SumIfRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sumIf", rawUrl) @@ -100,11 +103,11 @@ public SumIfRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(SumIfPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIf.SumIfPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SumIfPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIf.SumIfPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SumIfPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsPostRequestBody.cs index 29aada6e24..8dacd300e3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIfs { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SumIfsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SumIfsPostRequestBody : 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. @@ -16,21 +17,21 @@ public class SumIfsPostRequestBody : IAdditionalDataHolder, IParsable /// The sumRange property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SumRange { get; set; } + public UntypedNode? SumRange { get; set; } #nullable restore #else - public Json SumRange { get; set; } + public UntypedNode SumRange { get; set; } #endif /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SumIfsPostRequestBody() { @@ -39,12 +40,12 @@ public SumIfsPostRequestBody() /// /// 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 SumIfsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIfs.SumIfsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SumIfsPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIfs.SumIfsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "sumRange", n => { SumRange = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "sumRange", n => { SumRange = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("sumRange", SumRange); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("sumRange", SumRange); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.cs index 611efa6ccc..fc5d4d662c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumIfs/SumIfsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.SumIfs /// /// Provides operations to call the sumIfs method. /// - public class SumIfsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SumIfsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sumIfs @@ -56,8 +59,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(SumIfsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIfs.SumIfsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SumIfsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sumIfs", 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 SumIfsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sumIfs", rawUrl) @@ -100,11 +103,11 @@ public SumIfsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(SumIfsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIfs.SumIfsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SumIfsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumIfs.SumIfsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SumIfsPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqPostRequestBody.cs index a8e155d9fd..7ebe7710fe 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumSq { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SumSqPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SumSqPostRequestBody : 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. @@ -16,13 +17,13 @@ public class SumSqPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SumSqPostRequestBody() { @@ -31,12 +32,12 @@ public SumSqPostRequestBody() /// /// 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 SumSqPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumSq.SumSqPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SumSqPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumSq.SumSqPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.cs index d5414311ec..918abc524e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/SumSq/SumSqRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.SumSq /// /// Provides operations to call the sumSq method. /// - public class SumSqRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SumSqRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action sumSq @@ -56,8 +59,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(SumSqPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumSq.SumSqPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SumSqRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sumSq", 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 SumSqRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/sumSq", rawUrl) @@ -100,11 +103,11 @@ public SumSqRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(SumSqPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumSq.SumSqPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SumSqPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.SumSq.SumSqPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SumSqPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydPostRequestBody.cs index c168d05fcd..23c4a514df 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Syd { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SydPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SydPostRequestBody : 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. @@ -16,37 +17,37 @@ public class SydPostRequestBody : IAdditionalDataHolder, IParsable /// The cost property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cost { get; set; } + public UntypedNode? Cost { get; set; } #nullable restore #else - public Json Cost { get; set; } + public UntypedNode Cost { get; set; } #endif /// The life property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Life { get; set; } + public UntypedNode? Life { get; set; } #nullable restore #else - public Json Life { get; set; } + public UntypedNode Life { get; set; } #endif /// The per property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Per { get; set; } + public UntypedNode? Per { get; set; } #nullable restore #else - public Json Per { get; set; } + public UntypedNode Per { get; set; } #endif /// The salvage property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Salvage { get; set; } + public UntypedNode? Salvage { get; set; } #nullable restore #else - public Json Salvage { get; set; } + public UntypedNode Salvage { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SydPostRequestBody() { @@ -55,12 +56,12 @@ public SydPostRequestBody() /// /// 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 SydPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Syd.SydPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SydPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Syd.SydPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "life", n => { Life = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "per", n => { Per = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "salvage", n => { Salvage = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cost", n => { Cost = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "life", n => { Life = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "per", n => { Per = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "salvage", n => { Salvage = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cost", Cost); - writer.WriteObjectValue("life", Life); - writer.WriteObjectValue("per", Per); - writer.WriteObjectValue("salvage", Salvage); + writer.WriteObjectValue("cost", Cost); + writer.WriteObjectValue("life", Life); + writer.WriteObjectValue("per", Per); + writer.WriteObjectValue("salvage", Salvage); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.cs index 57c46fb17e..c67d13e76c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Syd/SydRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Syd /// /// Provides operations to call the syd method. /// - public class SydRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SydRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action syd @@ -56,8 +59,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(SydPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Syd.SydPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 SydRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/syd", 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 SydRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/syd", rawUrl) @@ -100,11 +103,11 @@ public SydRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(SydPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Syd.SydPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SydPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Syd.SydPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(SydPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T/TPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T/TPostRequestBody.cs index 6f0d3f77a9..fb2bedc1d7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T/TPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T/TPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TPostRequestBody : 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. @@ -16,13 +17,13 @@ public class TPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TPostRequestBody() { @@ -31,12 +32,12 @@ public TPostRequestBody() /// /// 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 TPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T.TPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T.TPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.cs index 432d31af16..5af153869f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T/TRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.T /// /// Provides operations to call the t method. /// - public class TRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action t @@ -56,8 +59,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(TPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T.TPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t", 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 TRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t", rawUrl) @@ -100,11 +103,11 @@ public TRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ite /// 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(TPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T.TPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T.TPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TPostRequestBody body, Action } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistPostRequestBody.cs index 6fc4bdc21a..9b7723c0a3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class T_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class T_DistPostRequestBody : 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. @@ -16,29 +17,29 @@ public class T_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The degFreedom property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom { get; set; } + public UntypedNode? DegFreedom { get; set; } #nullable restore #else - public Json DegFreedom { get; set; } + public UntypedNode DegFreedom { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public T_DistPostRequestBody() { @@ -47,12 +48,12 @@ public T_DistPostRequestBody() /// /// 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 T_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist.T_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new T_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist.T_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "degFreedom", n => { DegFreedom = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("degFreedom", DegFreedom); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("degFreedom", DegFreedom); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.cs index e572feb889..7d08cf5b14 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist/T_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.T_Dist /// /// Provides operations to call the t_Dist method. /// - public class T_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class T_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action t_Dist @@ -56,8 +59,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(T_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist.T_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 T_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t_Dist", 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 T_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t_Dist", rawUrl) @@ -100,11 +103,11 @@ public T_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(T_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist.T_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(T_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist.T_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(T_DistPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TPostRequestBody.cs index a4744ba3d8..5a5e3bf4dd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_2T { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class T_Dist_2TPostRequestBody : IAdditionalDataHolder, IParsable + public partial class T_Dist_2TPostRequestBody : 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. @@ -16,21 +17,21 @@ public class T_Dist_2TPostRequestBody : IAdditionalDataHolder, IParsable /// The degFreedom property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom { get; set; } + public UntypedNode? DegFreedom { get; set; } #nullable restore #else - public Json DegFreedom { get; set; } + public UntypedNode DegFreedom { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public T_Dist_2TPostRequestBody() { @@ -39,12 +40,12 @@ public T_Dist_2TPostRequestBody() /// /// 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 T_Dist_2TPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_2T.T_Dist_2TPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new T_Dist_2TPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_2T.T_Dist_2TPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "degFreedom", n => { DegFreedom = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("degFreedom", DegFreedom); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("degFreedom", DegFreedom); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.cs index 9ed0894200..5f814e035f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_2T/T_Dist_2TRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.T_Dist_2T /// /// Provides operations to call the t_Dist_2T method. /// - public class T_Dist_2TRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class T_Dist_2TRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action t_Dist_2T @@ -56,8 +59,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(T_Dist_2TPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_2T.T_Dist_2TPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 T_Dist_2TRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t_Dist_2T", 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 T_Dist_2TRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t_Dist_2T", rawUrl) @@ -100,11 +103,11 @@ public T_Dist_2TRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(T_Dist_2TPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_2T.T_Dist_2TPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(T_Dist_2TPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_2T.T_Dist_2TPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(T_Dist_2TPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTPostRequestBody.cs index 703bc11d75..210d283a1d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_RT { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class T_Dist_RTPostRequestBody : IAdditionalDataHolder, IParsable + public partial class T_Dist_RTPostRequestBody : 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. @@ -16,21 +17,21 @@ public class T_Dist_RTPostRequestBody : IAdditionalDataHolder, IParsable /// The degFreedom property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom { get; set; } + public UntypedNode? DegFreedom { get; set; } #nullable restore #else - public Json DegFreedom { get; set; } + public UntypedNode DegFreedom { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public T_Dist_RTPostRequestBody() { @@ -39,12 +40,12 @@ public T_Dist_RTPostRequestBody() /// /// 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 T_Dist_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_RT.T_Dist_RTPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new T_Dist_RTPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_RT.T_Dist_RTPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "degFreedom", n => { DegFreedom = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("degFreedom", DegFreedom); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("degFreedom", DegFreedom); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.cs index 91fe8c9fe7..5c0f34e9fe 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Dist_RT/T_Dist_RTRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.T_Dist_RT /// /// Provides operations to call the t_Dist_RT method. /// - public class T_Dist_RTRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class T_Dist_RTRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action t_Dist_RT @@ -56,8 +59,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(T_Dist_RTPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_RT.T_Dist_RTPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 T_Dist_RTRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t_Dist_RT", 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 T_Dist_RTRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t_Dist_RT", rawUrl) @@ -100,11 +103,11 @@ public T_Dist_RTRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(T_Dist_RTPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_RT.T_Dist_RTPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(T_Dist_RTPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Dist_RT.T_Dist_RTPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(T_Dist_RTPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvPostRequestBody.cs index 8bd91ce2da..30c24e2ecb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class T_InvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class T_InvPostRequestBody : 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. @@ -16,21 +17,21 @@ public class T_InvPostRequestBody : IAdditionalDataHolder, IParsable /// The degFreedom property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom { get; set; } + public UntypedNode? DegFreedom { get; set; } #nullable restore #else - public Json DegFreedom { get; set; } + public UntypedNode DegFreedom { get; set; } #endif /// The probability property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Probability { get; set; } + public UntypedNode? Probability { get; set; } #nullable restore #else - public Json Probability { get; set; } + public UntypedNode Probability { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public T_InvPostRequestBody() { @@ -39,12 +40,12 @@ public T_InvPostRequestBody() /// /// 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 T_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv.T_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new T_InvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv.T_InvPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "degFreedom", n => { DegFreedom = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probability", n => { Probability = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("degFreedom", DegFreedom); - writer.WriteObjectValue("probability", Probability); + writer.WriteObjectValue("degFreedom", DegFreedom); + writer.WriteObjectValue("probability", Probability); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.cs index f0c3b58ae0..17c988dcb8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv/T_InvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.T_Inv /// /// Provides operations to call the t_Inv method. /// - public class T_InvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class T_InvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action t_Inv @@ -56,8 +59,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(T_InvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv.T_InvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 T_InvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t_Inv", 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 T_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t_Inv", rawUrl) @@ -100,11 +103,11 @@ public T_InvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(T_InvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv.T_InvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(T_InvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv.T_InvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(T_InvPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TPostRequestBody.cs index e8afabf67f..ec7a887fc9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv_2T { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class T_Inv_2TPostRequestBody : IAdditionalDataHolder, IParsable + public partial class T_Inv_2TPostRequestBody : 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. @@ -16,21 +17,21 @@ public class T_Inv_2TPostRequestBody : IAdditionalDataHolder, IParsable /// The degFreedom property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? DegFreedom { get; set; } + public UntypedNode? DegFreedom { get; set; } #nullable restore #else - public Json DegFreedom { get; set; } + public UntypedNode DegFreedom { get; set; } #endif /// The probability property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Probability { get; set; } + public UntypedNode? Probability { get; set; } #nullable restore #else - public Json Probability { get; set; } + public UntypedNode Probability { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public T_Inv_2TPostRequestBody() { @@ -39,12 +40,12 @@ public T_Inv_2TPostRequestBody() /// /// 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 T_Inv_2TPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv_2T.T_Inv_2TPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new T_Inv_2TPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv_2T.T_Inv_2TPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "degFreedom", n => { DegFreedom = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "degFreedom", n => { DegFreedom = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "probability", n => { Probability = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("degFreedom", DegFreedom); - writer.WriteObjectValue("probability", Probability); + writer.WriteObjectValue("degFreedom", DegFreedom); + writer.WriteObjectValue("probability", Probability); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.cs index bee01852b5..2b4c7dad88 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/T_Inv_2T/T_Inv_2TRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.T_Inv_2T /// /// Provides operations to call the t_Inv_2T method. /// - public class T_Inv_2TRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class T_Inv_2TRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action t_Inv_2T @@ -56,8 +59,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(T_Inv_2TPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv_2T.T_Inv_2TPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 T_Inv_2TRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t_Inv_2T", 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 T_Inv_2TRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/t_Inv_2T", rawUrl) @@ -100,11 +103,11 @@ public T_Inv_2TRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(T_Inv_2TPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv_2T.T_Inv_2TPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(T_Inv_2TPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.T_Inv_2T.T_Inv_2TPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(T_Inv_2TPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanPostRequestBody.cs index 664b9ad2c3..292ff383f5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tan { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TanPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TanPostRequestBody : 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. @@ -16,13 +17,13 @@ public class TanPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TanPostRequestBody() { @@ -31,12 +32,12 @@ public TanPostRequestBody() /// /// 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 TanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tan.TanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TanPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tan.TanPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.cs index 2f30a887b9..be5c4bd05f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tan/TanRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Tan /// /// Provides operations to call the tan method. /// - public class TanRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TanRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action tan @@ -56,8 +59,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(TanPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tan.TanPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TanRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tan", 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 TanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tan", rawUrl) @@ -100,11 +103,11 @@ public TanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(TanPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tan.TanPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TanPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tan.TanPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TanPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhPostRequestBody.cs index f69e7d39d0..d9d5de936a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tanh { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TanhPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TanhPostRequestBody : 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. @@ -16,13 +17,13 @@ public class TanhPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TanhPostRequestBody() { @@ -31,12 +32,12 @@ public TanhPostRequestBody() /// /// 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 TanhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tanh.TanhPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TanhPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tanh.TanhPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.cs index de8a30bd67..2b62663fc5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Tanh/TanhRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Tanh /// /// Provides operations to call the tanh method. /// - public class TanhRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TanhRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action tanh @@ -56,8 +59,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(TanhPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tanh.TanhPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TanhRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tanh", 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 TanhRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tanh", rawUrl) @@ -100,11 +103,11 @@ public TanhRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(TanhPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tanh.TanhPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TanhPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Tanh.TanhPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TanhPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqPostRequestBody.cs index 359c302f1e..ddb002e7f4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillEq { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TbillEqPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TbillEqPostRequestBody : 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. @@ -16,29 +17,29 @@ public class TbillEqPostRequestBody : IAdditionalDataHolder, IParsable /// The discount property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Discount { get; set; } + public UntypedNode? Discount { get; set; } #nullable restore #else - public Json Discount { get; set; } + public UntypedNode Discount { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TbillEqPostRequestBody() { @@ -47,12 +48,12 @@ public TbillEqPostRequestBody() /// /// 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 TbillEqPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillEq.TbillEqPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TbillEqPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillEq.TbillEqPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "discount", n => { Discount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "discount", n => { Discount = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("discount", Discount); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("discount", Discount); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.cs index fa23a73fce..2ca63764fa 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillEq/TbillEqRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.TbillEq /// /// Provides operations to call the tbillEq method. /// - public class TbillEqRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TbillEqRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action tbillEq @@ -56,8 +59,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(TbillEqPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillEq.TbillEqPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TbillEqRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tbillEq", 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 TbillEqRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tbillEq", rawUrl) @@ -100,11 +103,11 @@ public TbillEqRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(TbillEqPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillEq.TbillEqPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TbillEqPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillEq.TbillEqPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TbillEqPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPricePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPricePostRequestBody.cs index 22148a0be0..3685aa558e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPricePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPricePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillPrice { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TbillPricePostRequestBody : IAdditionalDataHolder, IParsable + public partial class TbillPricePostRequestBody : 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. @@ -16,29 +17,29 @@ public class TbillPricePostRequestBody : IAdditionalDataHolder, IParsable /// The discount property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Discount { get; set; } + public UntypedNode? Discount { get; set; } #nullable restore #else - public Json Discount { get; set; } + public UntypedNode Discount { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TbillPricePostRequestBody() { @@ -47,12 +48,12 @@ public TbillPricePostRequestBody() /// /// 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 TbillPricePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillPrice.TbillPricePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TbillPricePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillPrice.TbillPricePostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "discount", n => { Discount = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "discount", n => { Discount = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("discount", Discount); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("discount", Discount); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.cs index 58b6601c91..8f78d10a7d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillPrice/TbillPriceRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.TbillPrice /// /// Provides operations to call the tbillPrice method. /// - public class TbillPriceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TbillPriceRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action tbillPrice @@ -56,8 +59,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(TbillPricePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillPrice.TbillPricePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TbillPriceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tbillPrice", 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 TbillPriceRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tbillPrice", rawUrl) @@ -100,11 +103,11 @@ public TbillPriceRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(TbillPricePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillPrice.TbillPricePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TbillPricePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillPrice.TbillPricePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TbillPricePostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldPostRequestBody.cs index b22d5734c5..826ded5d2e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillYield { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TbillYieldPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TbillYieldPostRequestBody : 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. @@ -16,29 +17,29 @@ public class TbillYieldPostRequestBody : IAdditionalDataHolder, IParsable /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The pr property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pr { get; set; } + public UntypedNode? Pr { get; set; } #nullable restore #else - public Json Pr { get; set; } + public UntypedNode Pr { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TbillYieldPostRequestBody() { @@ -47,12 +48,12 @@ public TbillYieldPostRequestBody() /// /// 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 TbillYieldPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillYield.TbillYieldPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TbillYieldPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillYield.TbillYieldPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pr", n => { Pr = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pr", n => { Pr = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("pr", Pr); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("pr", Pr); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.cs index bc6a092be0..d7bfa11888 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TbillYield/TbillYieldRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.TbillYield /// /// Provides operations to call the tbillYield method. /// - public class TbillYieldRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TbillYieldRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action tbillYield @@ -56,8 +59,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(TbillYieldPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillYield.TbillYieldPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TbillYieldRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tbillYield", 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 TbillYieldRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/tbillYield", rawUrl) @@ -100,11 +103,11 @@ public TbillYieldRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(TbillYieldPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillYield.TbillYieldPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TbillYieldPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TbillYield.TbillYieldPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TbillYieldPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextPostRequestBody.cs index a236cf65df..45efbdaa89 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Text { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TextPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TextPostRequestBody : 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. @@ -16,21 +17,21 @@ public class TextPostRequestBody : IAdditionalDataHolder, IParsable /// The formatText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? FormatText { get; set; } + public UntypedNode? FormatText { get; set; } #nullable restore #else - public Json FormatText { get; set; } + public UntypedNode FormatText { get; set; } #endif /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TextPostRequestBody() { @@ -39,12 +40,12 @@ public TextPostRequestBody() /// /// 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 TextPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Text.TextPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TextPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Text.TextPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "formatText", n => { FormatText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "formatText", n => { FormatText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("formatText", FormatText); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("formatText", FormatText); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.cs index 93ecb14bce..36d16f161f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Text/TextRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Text /// /// Provides operations to call the text method. /// - public class TextRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TextRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action text @@ -56,8 +59,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(TextPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Text.TextPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TextRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/text", 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 TextRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/text", rawUrl) @@ -100,11 +103,11 @@ public TextRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(TextPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Text.TextPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TextPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Text.TextPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TextPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimePostRequestBody.cs index 078ece9855..05ed476c6e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Time { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TimePostRequestBody : IAdditionalDataHolder, IParsable + public partial class TimePostRequestBody : 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. @@ -16,29 +17,29 @@ public class TimePostRequestBody : IAdditionalDataHolder, IParsable /// The hour property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Hour { get; set; } + public UntypedNode? Hour { get; set; } #nullable restore #else - public Json Hour { get; set; } + public UntypedNode Hour { get; set; } #endif /// The minute property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Minute { get; set; } + public UntypedNode? Minute { get; set; } #nullable restore #else - public Json Minute { get; set; } + public UntypedNode Minute { get; set; } #endif /// The second property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Second { get; set; } + public UntypedNode? Second { get; set; } #nullable restore #else - public Json Second { get; set; } + public UntypedNode Second { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimePostRequestBody() { @@ -47,12 +48,12 @@ public TimePostRequestBody() /// /// 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 TimePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Time.TimePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Time.TimePostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "hour", n => { Hour = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "minute", n => { Minute = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "second", n => { Second = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "hour", n => { Hour = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "minute", n => { Minute = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "second", n => { Second = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("hour", Hour); - writer.WriteObjectValue("minute", Minute); - writer.WriteObjectValue("second", Second); + writer.WriteObjectValue("hour", Hour); + writer.WriteObjectValue("minute", Minute); + writer.WriteObjectValue("second", Second); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.cs index 0acd68b995..44798076a4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Time/TimeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Time /// /// Provides operations to call the time method. /// - public class TimeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action time @@ -56,8 +59,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(TimePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Time.TimePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TimeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/time", 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 TimeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/time", rawUrl) @@ -100,11 +103,11 @@ public TimeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(TimePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Time.TimePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TimePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Time.TimePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TimePostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevaluePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevaluePostRequestBody.cs index 73fa830c4b..fb7b1e1852 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevaluePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevaluePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Timevalue { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TimevaluePostRequestBody : IAdditionalDataHolder, IParsable + public partial class TimevaluePostRequestBody : 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. @@ -16,13 +17,13 @@ public class TimevaluePostRequestBody : IAdditionalDataHolder, IParsable /// The timeText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? TimeText { get; set; } + public UntypedNode? TimeText { get; set; } #nullable restore #else - public Json TimeText { get; set; } + public UntypedNode TimeText { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TimevaluePostRequestBody() { @@ -31,12 +32,12 @@ public TimevaluePostRequestBody() /// /// 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 TimevaluePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Timevalue.TimevaluePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TimevaluePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Timevalue.TimevaluePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "timeText", n => { TimeText = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "timeText", n => { TimeText = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("timeText", TimeText); + writer.WriteObjectValue("timeText", TimeText); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.cs index 749b20f03c..28e81cb115 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Timevalue/TimevalueRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Timevalue /// /// Provides operations to call the timevalue method. /// - public class TimevalueRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimevalueRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action timevalue @@ -56,8 +59,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(TimevaluePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Timevalue.TimevaluePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TimevalueRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/timevalue", 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 TimevalueRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/timevalue", rawUrl) @@ -100,11 +103,11 @@ public TimevalueRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(TimevaluePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Timevalue.TimevaluePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TimevaluePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Timevalue.TimevaluePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TimevaluePostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.cs index 9c43f28dc6..7656acb47c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Today/TodayRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Today /// /// Provides operations to call the today method. /// - public class TodayRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TodayRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action today @@ -66,14 +69,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 TodayRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/today", 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 TodayRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/today", rawUrl) @@ -100,3 +103,4 @@ public RequestInformation ToPostRequestInformation(Action -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trim { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TrimPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TrimPostRequestBody : 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. @@ -16,13 +17,13 @@ public class TrimPostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TrimPostRequestBody() { @@ -31,12 +32,12 @@ public TrimPostRequestBody() /// /// 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 TrimPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trim.TrimPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TrimPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trim.TrimPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.cs index 3c4296e9d6..ecb714ac3d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trim/TrimRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Trim /// /// Provides operations to call the trim method. /// - public class TrimRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TrimRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action trim @@ -56,8 +59,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(TrimPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trim.TrimPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TrimRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/trim", 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 TrimRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/trim", rawUrl) @@ -100,11 +103,11 @@ public TrimRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(TrimPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trim.TrimPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TrimPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trim.TrimPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TrimPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanPostRequestBody.cs index 9e70358fd5..f4296f0d18 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TrimMean { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TrimMeanPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TrimMeanPostRequestBody : 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. @@ -16,21 +17,21 @@ public class TrimMeanPostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// The percent property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Percent { get; set; } + public UntypedNode? Percent { get; set; } #nullable restore #else - public Json Percent { get; set; } + public UntypedNode Percent { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TrimMeanPostRequestBody() { @@ -39,12 +40,12 @@ public TrimMeanPostRequestBody() /// /// 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 TrimMeanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TrimMean.TrimMeanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TrimMeanPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TrimMean.TrimMeanPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "percent", n => { Percent = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "percent", n => { Percent = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); - writer.WriteObjectValue("percent", Percent); + writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("percent", Percent); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.cs index 43f10cee9f..60eba346f9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TrimMean/TrimMeanRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.TrimMean /// /// Provides operations to call the trimMean method. /// - public class TrimMeanRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TrimMeanRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action trimMean @@ -56,8 +59,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(TrimMeanPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TrimMean.TrimMeanPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TrimMeanRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/trimMean", 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 TrimMeanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/trimMean", rawUrl) @@ -100,11 +103,11 @@ public TrimMeanRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(TrimMeanPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TrimMean.TrimMeanPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TrimMeanPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TrimMean.TrimMeanPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TrimMeanPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.cs index 6638d454a3..f6469a43e5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/True/TrueRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.True /// /// Provides operations to call the true method. /// - public class TrueRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TrueRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action true @@ -66,14 +69,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 TrueRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/true", 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 TrueRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/true", rawUrl) @@ -100,3 +103,4 @@ public RequestInformation ToPostRequestInformation(Action -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trunc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TruncPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TruncPostRequestBody : 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. @@ -16,21 +17,21 @@ public class TruncPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// The numDigits property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NumDigits { get; set; } + public UntypedNode? NumDigits { get; set; } #nullable restore #else - public Json NumDigits { get; set; } + public UntypedNode NumDigits { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TruncPostRequestBody() { @@ -39,12 +40,12 @@ public TruncPostRequestBody() /// /// 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 TruncPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trunc.TruncPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TruncPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trunc.TruncPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "numDigits", n => { NumDigits = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); - writer.WriteObjectValue("numDigits", NumDigits); + writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("numDigits", NumDigits); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.cs index e853c5c91e..9c92cd5223 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Trunc /// /// Provides operations to call the trunc method. /// - public class TruncRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TruncRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action trunc @@ -56,8 +59,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(TruncPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trunc.TruncPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TruncRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/trunc", 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 TruncRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/trunc", rawUrl) @@ -100,11 +103,11 @@ public TruncRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(TruncPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trunc.TruncPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TruncPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Trunc.TruncPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TruncPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypePostRequestBody.cs index 96313f0e42..ee40f29fe5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TypeNamespace { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TypePostRequestBody : IAdditionalDataHolder, IParsable + public partial class TypePostRequestBody : 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. @@ -16,13 +17,13 @@ public class TypePostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Value { get; set; } + public UntypedNode? Value { get; set; } #nullable restore #else - public Json Value { get; set; } + public UntypedNode Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TypePostRequestBody() { @@ -31,12 +32,12 @@ public TypePostRequestBody() /// /// 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 TypePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TypeNamespace.TypePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TypePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TypeNamespace.TypePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "value", n => { Value = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("value", Value); + writer.WriteObjectValue("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypeRequestBuilder.cs index 6e8f938438..de3d799d6b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/TypeNamespace/TypeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.TypeNamespace /// /// Provides operations to call the type method. /// - public class TypeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TypeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action type @@ -56,8 +59,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(TypePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TypeNamespace.TypePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 TypeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/type", 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 TypeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/type", rawUrl) @@ -100,11 +103,11 @@ public TypeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(TypePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TypeNamespace.TypePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TypePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.TypeNamespace.TypePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(TypePostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharPostRequestBody.cs index 92a9149fec..d5903b206c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unichar { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnicharPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnicharPostRequestBody : 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. @@ -16,13 +17,13 @@ public class UnicharPostRequestBody : IAdditionalDataHolder, IParsable /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnicharPostRequestBody() { @@ -31,12 +32,12 @@ public UnicharPostRequestBody() /// /// 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 UnicharPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unichar.UnicharPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnicharPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unichar.UnicharPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.cs index 7676224947..649c3a3a6f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unichar/UnicharRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Unichar /// /// Provides operations to call the unichar method. /// - public class UnicharRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnicharRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action unichar @@ -56,8 +59,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(UnicharPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unichar.UnicharPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 UnicharRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/unichar", 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 UnicharRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/unichar", rawUrl) @@ -100,11 +103,11 @@ public UnicharRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(UnicharPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unichar.UnicharPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnicharPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unichar.UnicharPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(UnicharPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodePostRequestBody.cs index 7129af9f27..e0f646a749 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unicode { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnicodePostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnicodePostRequestBody : 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. @@ -16,13 +17,13 @@ public class UnicodePostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnicodePostRequestBody() { @@ -31,12 +32,12 @@ public UnicodePostRequestBody() /// /// 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 UnicodePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unicode.UnicodePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnicodePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unicode.UnicodePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.cs index a4a577f71c..108569cc45 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Unicode/UnicodeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Unicode /// /// Provides operations to call the unicode method. /// - public class UnicodeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnicodeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action unicode @@ -56,8 +59,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(UnicodePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unicode.UnicodePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 UnicodeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/unicode", 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 UnicodeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/unicode", rawUrl) @@ -100,11 +103,11 @@ public UnicodeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(UnicodePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unicode.UnicodePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnicodePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Unicode.UnicodePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(UnicodePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperPostRequestBody.cs index aba9824cad..747eb63d5e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Upper { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UpperPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UpperPostRequestBody : 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. @@ -16,13 +17,13 @@ public class UpperPostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UpperPostRequestBody() { @@ -31,12 +32,12 @@ public UpperPostRequestBody() /// /// 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 UpperPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Upper.UpperPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UpperPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Upper.UpperPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.cs index bfa8179b2b..e2ce6bc9bb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Upper/UpperRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Upper /// /// Provides operations to call the upper method. /// - public class UpperRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UpperRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action upper @@ -56,8 +59,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(UpperPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Upper.UpperPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 UpperRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/upper", 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 UpperRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/upper", rawUrl) @@ -100,11 +103,11 @@ public UpperRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(UpperPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Upper.UpperPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UpperPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Upper.UpperPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(UpperPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarPostRequestBody.cs index 094836345b..5234a17c6a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Usdollar { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UsdollarPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UsdollarPostRequestBody : 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. @@ -16,21 +17,21 @@ public class UsdollarPostRequestBody : IAdditionalDataHolder, IParsable /// The decimals property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Decimals { get; set; } + public UntypedNode? Decimals { get; set; } #nullable restore #else - public Json Decimals { get; set; } + public UntypedNode Decimals { get; set; } #endif /// The number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Number { get; set; } + public UntypedNode? Number { get; set; } #nullable restore #else - public Json Number { get; set; } + public UntypedNode Number { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UsdollarPostRequestBody() { @@ -39,12 +40,12 @@ public UsdollarPostRequestBody() /// /// 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 UsdollarPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Usdollar.UsdollarPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UsdollarPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Usdollar.UsdollarPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "decimals", n => { Decimals = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "decimals", n => { Decimals = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "number", n => { Number = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("decimals", Decimals); - writer.WriteObjectValue("number", Number); + writer.WriteObjectValue("decimals", Decimals); + writer.WriteObjectValue("number", Number); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.cs index b7fef5b4dd..79be6d2439 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Usdollar/UsdollarRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Usdollar /// /// Provides operations to call the usdollar method. /// - public class UsdollarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsdollarRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action usdollar @@ -56,8 +59,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(UsdollarPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Usdollar.UsdollarPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 UsdollarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/usdollar", 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 UsdollarRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/usdollar", rawUrl) @@ -100,11 +103,11 @@ public UsdollarRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(UsdollarPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Usdollar.UsdollarPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UsdollarPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Usdollar.UsdollarPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(UsdollarPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValuePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValuePostRequestBody.cs index 8ac89c2a3f..940a667d40 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValuePostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValuePostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Value { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValuePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValuePostRequestBody : 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. @@ -16,13 +17,13 @@ public class ValuePostRequestBody : IAdditionalDataHolder, IParsable /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Text { get; set; } + public UntypedNode? Text { get; set; } #nullable restore #else - public Json Text { get; set; } + public UntypedNode Text { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValuePostRequestBody() { @@ -31,12 +32,12 @@ public ValuePostRequestBody() /// /// 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 ValuePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Value.ValuePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValuePostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Value.ValuePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "text", n => { Text = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "text", n => { Text = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("text", Text); + writer.WriteObjectValue("text", Text); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.cs index a02978fbd1..c8c86fa9ce 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Value/ValueRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Value /// /// Provides operations to call the value method. /// - public class ValueRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValueRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action value @@ -56,8 +59,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(ValuePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Value.ValuePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 ValueRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/value", 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 ValueRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/value", rawUrl) @@ -100,11 +103,11 @@ public ValueRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ValuePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Value.ValuePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValuePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Value.ValuePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(ValuePostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarAPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarAPostRequestBody.cs index 5e31944179..3fcb7ad2e1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarAPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarAPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarA { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class VarAPostRequestBody : IAdditionalDataHolder, IParsable + public partial class VarAPostRequestBody : 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. @@ -16,13 +17,13 @@ public class VarAPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public VarAPostRequestBody() { @@ -31,12 +32,12 @@ public VarAPostRequestBody() /// /// 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 VarAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarA.VarAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VarAPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarA.VarAPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.cs index 9a9f613f4a..b8418e9d9f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarA/VarARequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.VarA /// /// Provides operations to call the varA method. /// - public class VarARequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VarARequestBuilder : BaseCliRequestBuilder { /// /// Invoke action varA @@ -56,8 +59,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(VarAPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarA.VarAPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 VarARequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/varA", 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 VarARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/varA", rawUrl) @@ -100,11 +103,11 @@ public VarARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(VarAPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarA.VarAPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(VarAPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarA.VarAPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(VarAPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPAPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPAPostRequestBody.cs index 171d3ec81a..bcbdefaf1e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPAPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPAPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarPA { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class VarPAPostRequestBody : IAdditionalDataHolder, IParsable + public partial class VarPAPostRequestBody : 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. @@ -16,13 +17,13 @@ public class VarPAPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public VarPAPostRequestBody() { @@ -31,12 +32,12 @@ public VarPAPostRequestBody() /// /// 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 VarPAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarPA.VarPAPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VarPAPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarPA.VarPAPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.cs index 3bbbe7a6a2..6a142dac34 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/VarPA/VarPARequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.VarPA /// /// Provides operations to call the varPA method. /// - public class VarPARequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VarPARequestBuilder : BaseCliRequestBuilder { /// /// Invoke action varPA @@ -56,8 +59,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(VarPAPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarPA.VarPAPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 VarPARequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/varPA", 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 VarPARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/varPA", rawUrl) @@ -100,11 +103,11 @@ public VarPARequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(VarPAPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarPA.VarPAPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(VarPAPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.VarPA.VarPAPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(VarPAPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PPostRequestBody.cs index 51fa2c5bd9..bc04847762 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_P { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Var_PPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Var_PPostRequestBody : 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. @@ -16,13 +17,13 @@ public class Var_PPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Var_PPostRequestBody() { @@ -31,12 +32,12 @@ public Var_PPostRequestBody() /// /// 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 Var_PPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_P.Var_PPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Var_PPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_P.Var_PPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.cs index 22f8e11725..d1f4820fe7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_P/Var_PRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Var_P /// /// Provides operations to call the var_P method. /// - public class Var_PRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Var_PRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action var_P @@ -56,8 +59,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(Var_PPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_P.Var_PPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Var_PRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/var_P", 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 Var_PRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/var_P", rawUrl) @@ -100,11 +103,11 @@ public Var_PRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(Var_PPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_P.Var_PPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Var_PPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_P.Var_PPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Var_PPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SPostRequestBody.cs index bebe301d96..7a63b1ffaa 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_S { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Var_SPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Var_SPostRequestBody : 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. @@ -16,13 +17,13 @@ public class Var_SPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Var_SPostRequestBody() { @@ -31,12 +32,12 @@ public Var_SPostRequestBody() /// /// 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 Var_SPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_S.Var_SPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Var_SPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_S.Var_SPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.cs index a916a13481..b3eea2b436 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Var_S/Var_SRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Var_S /// /// Provides operations to call the var_S method. /// - public class Var_SRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Var_SRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action var_S @@ -56,8 +59,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(Var_SPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_S.Var_SPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Var_SRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/var_S", 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 Var_SRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/var_S", rawUrl) @@ -100,11 +103,11 @@ public Var_SRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(Var_SPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_S.Var_SPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Var_SPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Var_S.Var_SPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Var_SPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbPostRequestBody.cs index 1fd3442233..e764edc6ee 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vdb { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class VdbPostRequestBody : IAdditionalDataHolder, IParsable + public partial class VdbPostRequestBody : 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. @@ -16,61 +17,61 @@ public class VdbPostRequestBody : IAdditionalDataHolder, IParsable /// The cost property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cost { get; set; } + public UntypedNode? Cost { get; set; } #nullable restore #else - public Json Cost { get; set; } + public UntypedNode Cost { get; set; } #endif /// The endPeriod property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EndPeriod { get; set; } + public UntypedNode? EndPeriod { get; set; } #nullable restore #else - public Json EndPeriod { get; set; } + public UntypedNode EndPeriod { get; set; } #endif /// The factor property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Factor { get; set; } + public UntypedNode? Factor { get; set; } #nullable restore #else - public Json Factor { get; set; } + public UntypedNode Factor { get; set; } #endif /// The life property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Life { get; set; } + public UntypedNode? Life { get; set; } #nullable restore #else - public Json Life { get; set; } + public UntypedNode Life { get; set; } #endif /// The noSwitch property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? NoSwitch { get; set; } + public UntypedNode? NoSwitch { get; set; } #nullable restore #else - public Json NoSwitch { get; set; } + public UntypedNode NoSwitch { get; set; } #endif /// The salvage property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Salvage { get; set; } + public UntypedNode? Salvage { get; set; } #nullable restore #else - public Json Salvage { get; set; } + public UntypedNode Salvage { get; set; } #endif /// The startPeriod property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartPeriod { get; set; } + public UntypedNode? StartPeriod { get; set; } #nullable restore #else - public Json StartPeriod { get; set; } + public UntypedNode StartPeriod { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public VdbPostRequestBody() { @@ -79,12 +80,12 @@ public VdbPostRequestBody() /// /// 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 VdbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vdb.VdbPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VdbPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vdb.VdbPostRequestBody(); } /// /// The deserialization information for the current model @@ -94,13 +95,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "cost", n => { Cost = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "endPeriod", n => { EndPeriod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "factor", n => { Factor = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "life", n => { Life = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "noSwitch", n => { NoSwitch = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "salvage", n => { Salvage = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startPeriod", n => { StartPeriod = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "cost", n => { Cost = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "endPeriod", n => { EndPeriod = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "factor", n => { Factor = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "life", n => { Life = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "noSwitch", n => { NoSwitch = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "salvage", n => { Salvage = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startPeriod", n => { StartPeriod = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -110,14 +111,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("cost", Cost); - writer.WriteObjectValue("endPeriod", EndPeriod); - writer.WriteObjectValue("factor", Factor); - writer.WriteObjectValue("life", Life); - writer.WriteObjectValue("noSwitch", NoSwitch); - writer.WriteObjectValue("salvage", Salvage); - writer.WriteObjectValue("startPeriod", StartPeriod); + writer.WriteObjectValue("cost", Cost); + writer.WriteObjectValue("endPeriod", EndPeriod); + writer.WriteObjectValue("factor", Factor); + writer.WriteObjectValue("life", Life); + writer.WriteObjectValue("noSwitch", NoSwitch); + writer.WriteObjectValue("salvage", Salvage); + writer.WriteObjectValue("startPeriod", StartPeriod); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.cs index f69d0cd826..1189cbc754 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vdb/VdbRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Vdb /// /// Provides operations to call the vdb method. /// - public class VdbRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VdbRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action vdb @@ -56,8 +59,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(VdbPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vdb.VdbPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 VdbRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/vdb", 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 VdbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/vdb", rawUrl) @@ -100,11 +103,11 @@ public VdbRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(VdbPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vdb.VdbPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(VdbPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vdb.VdbPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(VdbPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupPostRequestBody.cs index 1afc659b80..bebc5b48e1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vlookup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class VlookupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class VlookupPostRequestBody : 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. @@ -16,37 +17,37 @@ public class VlookupPostRequestBody : IAdditionalDataHolder, IParsable /// The colIndexNum property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ColIndexNum { get; set; } + public UntypedNode? ColIndexNum { get; set; } #nullable restore #else - public Json ColIndexNum { get; set; } + public UntypedNode ColIndexNum { get; set; } #endif /// The lookupValue property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? LookupValue { get; set; } + public UntypedNode? LookupValue { get; set; } #nullable restore #else - public Json LookupValue { get; set; } + public UntypedNode LookupValue { get; set; } #endif /// The rangeLookup property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? RangeLookup { get; set; } + public UntypedNode? RangeLookup { get; set; } #nullable restore #else - public Json RangeLookup { get; set; } + public UntypedNode RangeLookup { get; set; } #endif /// The tableArray property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? TableArray { get; set; } + public UntypedNode? TableArray { get; set; } #nullable restore #else - public Json TableArray { get; set; } + public UntypedNode TableArray { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public VlookupPostRequestBody() { @@ -55,12 +56,12 @@ public VlookupPostRequestBody() /// /// 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 VlookupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vlookup.VlookupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VlookupPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vlookup.VlookupPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "colIndexNum", n => { ColIndexNum = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "lookupValue", n => { LookupValue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rangeLookup", n => { RangeLookup = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "tableArray", n => { TableArray = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "colIndexNum", n => { ColIndexNum = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "lookupValue", n => { LookupValue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rangeLookup", n => { RangeLookup = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "tableArray", n => { TableArray = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("colIndexNum", ColIndexNum); - writer.WriteObjectValue("lookupValue", LookupValue); - writer.WriteObjectValue("rangeLookup", RangeLookup); - writer.WriteObjectValue("tableArray", TableArray); + writer.WriteObjectValue("colIndexNum", ColIndexNum); + writer.WriteObjectValue("lookupValue", LookupValue); + writer.WriteObjectValue("rangeLookup", RangeLookup); + writer.WriteObjectValue("tableArray", TableArray); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.cs index f26a5f50a7..eb55ccd477 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Vlookup/VlookupRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Vlookup /// /// Provides operations to call the vlookup method. /// - public class VlookupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VlookupRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action vlookup @@ -56,8 +59,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(VlookupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vlookup.VlookupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 VlookupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/vlookup", 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 VlookupRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/vlookup", rawUrl) @@ -100,11 +103,11 @@ public VlookupRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(VlookupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vlookup.VlookupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(VlookupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Vlookup.VlookupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(VlookupPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumPostRequestBody.cs index 324e6440c9..8b50fcc190 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WeekNum { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class WeekNumPostRequestBody : IAdditionalDataHolder, IParsable + public partial class WeekNumPostRequestBody : 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. @@ -16,21 +17,21 @@ public class WeekNumPostRequestBody : IAdditionalDataHolder, IParsable /// The returnType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ReturnType { get; set; } + public UntypedNode? ReturnType { get; set; } #nullable restore #else - public Json ReturnType { get; set; } + public UntypedNode ReturnType { get; set; } #endif /// The serialNumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SerialNumber { get; set; } + public UntypedNode? SerialNumber { get; set; } #nullable restore #else - public Json SerialNumber { get; set; } + public UntypedNode SerialNumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WeekNumPostRequestBody() { @@ -39,12 +40,12 @@ public WeekNumPostRequestBody() /// /// 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 WeekNumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WeekNum.WeekNumPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WeekNumPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WeekNum.WeekNumPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "returnType", n => { ReturnType = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "returnType", n => { ReturnType = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "serialNumber", n => { SerialNumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("returnType", ReturnType); - writer.WriteObjectValue("serialNumber", SerialNumber); + writer.WriteObjectValue("returnType", ReturnType); + writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.cs index f7e0d7d971..281f45a380 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WeekNum/WeekNumRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.WeekNum /// /// Provides operations to call the weekNum method. /// - public class WeekNumRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WeekNumRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action weekNum @@ -56,8 +59,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(WeekNumPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WeekNum.WeekNumPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 WeekNumRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/weekNum", 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 WeekNumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/weekNum", rawUrl) @@ -100,11 +103,11 @@ public WeekNumRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(WeekNumPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WeekNum.WeekNumPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WeekNumPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WeekNum.WeekNumPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(WeekNumPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayPostRequestBody.cs index eb97233e34..ecb621dbaf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weekday { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class WeekdayPostRequestBody : IAdditionalDataHolder, IParsable + public partial class WeekdayPostRequestBody : 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. @@ -16,21 +17,21 @@ public class WeekdayPostRequestBody : IAdditionalDataHolder, IParsable /// The returnType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? ReturnType { get; set; } + public UntypedNode? ReturnType { get; set; } #nullable restore #else - public Json ReturnType { get; set; } + public UntypedNode ReturnType { get; set; } #endif /// The serialNumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SerialNumber { get; set; } + public UntypedNode? SerialNumber { get; set; } #nullable restore #else - public Json SerialNumber { get; set; } + public UntypedNode SerialNumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WeekdayPostRequestBody() { @@ -39,12 +40,12 @@ public WeekdayPostRequestBody() /// /// 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 WeekdayPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weekday.WeekdayPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WeekdayPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weekday.WeekdayPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "returnType", n => { ReturnType = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "returnType", n => { ReturnType = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "serialNumber", n => { SerialNumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("returnType", ReturnType); - writer.WriteObjectValue("serialNumber", SerialNumber); + writer.WriteObjectValue("returnType", ReturnType); + writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.cs index 146c8416d8..2ba38fc5c1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weekday/WeekdayRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Weekday /// /// Provides operations to call the weekday method. /// - public class WeekdayRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WeekdayRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action weekday @@ -56,8 +59,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(WeekdayPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weekday.WeekdayPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 WeekdayRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/weekday", 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 WeekdayRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/weekday", rawUrl) @@ -100,11 +103,11 @@ public WeekdayRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(WeekdayPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weekday.WeekdayPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WeekdayPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weekday.WeekdayPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(WeekdayPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistPostRequestBody.cs index 34d5bedecb..a17ab57822 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weibull_Dist { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Weibull_DistPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Weibull_DistPostRequestBody : 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. @@ -16,37 +17,37 @@ public class Weibull_DistPostRequestBody : IAdditionalDataHolder, IParsable /// The alpha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Alpha { get; set; } + public UntypedNode? Alpha { get; set; } #nullable restore #else - public Json Alpha { get; set; } + public UntypedNode Alpha { get; set; } #endif /// The beta property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Beta { get; set; } + public UntypedNode? Beta { get; set; } #nullable restore #else - public Json Beta { get; set; } + public UntypedNode Beta { get; set; } #endif /// The cumulative property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Cumulative { get; set; } + public UntypedNode? Cumulative { get; set; } #nullable restore #else - public Json Cumulative { get; set; } + public UntypedNode Cumulative { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Weibull_DistPostRequestBody() { @@ -55,12 +56,12 @@ public Weibull_DistPostRequestBody() /// /// 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 Weibull_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weibull_Dist.Weibull_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Weibull_DistPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weibull_Dist.Weibull_DistPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "beta", n => { Beta = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "cumulative", n => { Cumulative = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "alpha", n => { Alpha = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "beta", n => { Beta = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "cumulative", n => { Cumulative = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("alpha", Alpha); - writer.WriteObjectValue("beta", Beta); - writer.WriteObjectValue("cumulative", Cumulative); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("alpha", Alpha); + writer.WriteObjectValue("beta", Beta); + writer.WriteObjectValue("cumulative", Cumulative); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.cs index 3511522bc4..1587d33609 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Weibull_Dist/Weibull_DistRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Weibull_Dist /// /// Provides operations to call the weibull_Dist method. /// - public class Weibull_DistRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Weibull_DistRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action weibull_Dist @@ -56,8 +59,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(Weibull_DistPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weibull_Dist.Weibull_DistPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Weibull_DistRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/weibull_Dist", 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 Weibull_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/weibull_Dist", rawUrl) @@ -100,11 +103,11 @@ public Weibull_DistRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(Weibull_DistPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weibull_Dist.Weibull_DistPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Weibull_DistPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Weibull_Dist.Weibull_DistPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Weibull_DistPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayPostRequestBody.cs index cdc5e06e16..65e4db24b9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class WorkDayPostRequestBody : IAdditionalDataHolder, IParsable + public partial class WorkDayPostRequestBody : 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. @@ -16,29 +17,29 @@ public class WorkDayPostRequestBody : IAdditionalDataHolder, IParsable /// The days property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Days { get; set; } + public UntypedNode? Days { get; set; } #nullable restore #else - public Json Days { get; set; } + public UntypedNode Days { get; set; } #endif /// The holidays property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Holidays { get; set; } + public UntypedNode? Holidays { get; set; } #nullable restore #else - public Json Holidays { get; set; } + public UntypedNode Holidays { get; set; } #endif /// The startDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartDate { get; set; } + public UntypedNode? StartDate { get; set; } #nullable restore #else - public Json StartDate { get; set; } + public UntypedNode StartDate { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkDayPostRequestBody() { @@ -47,12 +48,12 @@ public WorkDayPostRequestBody() /// /// 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 WorkDayPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay.WorkDayPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkDayPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay.WorkDayPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "days", n => { Days = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "holidays", n => { Holidays = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "days", n => { Days = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "holidays", n => { Holidays = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startDate", n => { StartDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("days", Days); - writer.WriteObjectValue("holidays", Holidays); - writer.WriteObjectValue("startDate", StartDate); + writer.WriteObjectValue("days", Days); + writer.WriteObjectValue("holidays", Holidays); + writer.WriteObjectValue("startDate", StartDate); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.cs index 576e90fb9f..d9426d9710 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay/WorkDayRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.WorkDay /// /// Provides operations to call the workDay method. /// - public class WorkDayRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkDayRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action workDay @@ -56,8 +59,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(WorkDayPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay.WorkDayPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 WorkDayRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/workDay", 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 WorkDayRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/workDay", rawUrl) @@ -100,11 +103,11 @@ public WorkDayRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(WorkDayPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay.WorkDayPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkDayPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay.WorkDayPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(WorkDayPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlPostRequestBody.cs index d574763737..999ce30428 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay_Intl { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class WorkDay_IntlPostRequestBody : IAdditionalDataHolder, IParsable + public partial class WorkDay_IntlPostRequestBody : 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. @@ -16,37 +17,37 @@ public class WorkDay_IntlPostRequestBody : IAdditionalDataHolder, IParsable /// The days property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Days { get; set; } + public UntypedNode? Days { get; set; } #nullable restore #else - public Json Days { get; set; } + public UntypedNode Days { get; set; } #endif /// The holidays property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Holidays { get; set; } + public UntypedNode? Holidays { get; set; } #nullable restore #else - public Json Holidays { get; set; } + public UntypedNode Holidays { get; set; } #endif /// The startDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartDate { get; set; } + public UntypedNode? StartDate { get; set; } #nullable restore #else - public Json StartDate { get; set; } + public UntypedNode StartDate { get; set; } #endif /// The weekend property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Weekend { get; set; } + public UntypedNode? Weekend { get; set; } #nullable restore #else - public Json Weekend { get; set; } + public UntypedNode Weekend { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WorkDay_IntlPostRequestBody() { @@ -55,12 +56,12 @@ public WorkDay_IntlPostRequestBody() /// /// 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 WorkDay_IntlPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay_Intl.WorkDay_IntlPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WorkDay_IntlPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay_Intl.WorkDay_IntlPostRequestBody(); } /// /// The deserialization information for the current model @@ -70,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "days", n => { Days = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "holidays", n => { Holidays = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "weekend", n => { Weekend = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "days", n => { Days = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "holidays", n => { Holidays = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startDate", n => { StartDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "weekend", n => { Weekend = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -83,11 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("days", Days); - writer.WriteObjectValue("holidays", Holidays); - writer.WriteObjectValue("startDate", StartDate); - writer.WriteObjectValue("weekend", Weekend); + writer.WriteObjectValue("days", Days); + writer.WriteObjectValue("holidays", Holidays); + writer.WriteObjectValue("startDate", StartDate); + writer.WriteObjectValue("weekend", Weekend); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.cs index 670847590a..01a5d9199a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/WorkDay_Intl/WorkDay_IntlRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.WorkDay_Intl /// /// Provides operations to call the workDay_Intl method. /// - public class WorkDay_IntlRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkDay_IntlRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action workDay_Intl @@ -56,8 +59,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(WorkDay_IntlPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay_Intl.WorkDay_IntlPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 WorkDay_IntlRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/workDay_Intl", 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 WorkDay_IntlRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/workDay_Intl", rawUrl) @@ -100,11 +103,11 @@ public WorkDay_IntlRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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(WorkDay_IntlPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay_Intl.WorkDay_IntlPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkDay_IntlPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.WorkDay_Intl.WorkDay_IntlPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(WorkDay_IntlPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrPostRequestBody.cs index 581268697a..9666ab5f8f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xirr { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class XirrPostRequestBody : IAdditionalDataHolder, IParsable + public partial class XirrPostRequestBody : 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. @@ -16,29 +17,29 @@ public class XirrPostRequestBody : IAdditionalDataHolder, IParsable /// The dates property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Dates { get; set; } + public UntypedNode? Dates { get; set; } #nullable restore #else - public Json Dates { get; set; } + public UntypedNode Dates { get; set; } #endif /// The guess property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Guess { get; set; } + public UntypedNode? Guess { get; set; } #nullable restore #else - public Json Guess { get; set; } + public UntypedNode Guess { get; set; } #endif /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public XirrPostRequestBody() { @@ -47,12 +48,12 @@ public XirrPostRequestBody() /// /// 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 XirrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xirr.XirrPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new XirrPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xirr.XirrPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "dates", n => { Dates = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "guess", n => { Guess = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "dates", n => { Dates = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "guess", n => { Guess = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dates", Dates); - writer.WriteObjectValue("guess", Guess); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("dates", Dates); + writer.WriteObjectValue("guess", Guess); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.cs index fcfb343c72..011ed9ff3b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xirr/XirrRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Xirr /// /// Provides operations to call the xirr method. /// - public class XirrRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class XirrRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action xirr @@ -56,8 +59,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(XirrPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xirr.XirrPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 XirrRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/xirr", 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 XirrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/xirr", rawUrl) @@ -100,11 +103,11 @@ public XirrRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(XirrPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xirr.XirrPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(XirrPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xirr.XirrPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(XirrPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvPostRequestBody.cs index 738add58b8..f58704f69f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xnpv { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class XnpvPostRequestBody : IAdditionalDataHolder, IParsable + public partial class XnpvPostRequestBody : 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. @@ -16,29 +17,29 @@ public class XnpvPostRequestBody : IAdditionalDataHolder, IParsable /// The dates property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Dates { get; set; } + public UntypedNode? Dates { get; set; } #nullable restore #else - public Json Dates { get; set; } + public UntypedNode Dates { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public XnpvPostRequestBody() { @@ -47,12 +48,12 @@ public XnpvPostRequestBody() /// /// 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 XnpvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xnpv.XnpvPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new XnpvPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xnpv.XnpvPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "dates", n => { Dates = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "dates", n => { Dates = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("dates", Dates); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("dates", Dates); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.cs index 6cfd5f662e..66b2329977 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xnpv/XnpvRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Xnpv /// /// Provides operations to call the xnpv method. /// - public class XnpvRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class XnpvRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action xnpv @@ -56,8 +59,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(XnpvPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xnpv.XnpvPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 XnpvRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/xnpv", 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 XnpvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/xnpv", rawUrl) @@ -100,11 +103,11 @@ public XnpvRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(XnpvPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xnpv.XnpvPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(XnpvPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xnpv.XnpvPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(XnpvPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorPostRequestBody.cs index a5d7ead02e..1ccf5713ca 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xor { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class XorPostRequestBody : IAdditionalDataHolder, IParsable + public partial class XorPostRequestBody : 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. @@ -16,13 +17,13 @@ public class XorPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public XorPostRequestBody() { @@ -31,12 +32,12 @@ public XorPostRequestBody() /// /// 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 XorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xor.XorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new XorPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xor.XorPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorRequestBuilder.cs index a80a985a00..514c07e886 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Xor/XorRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Xor /// /// Provides operations to call the xor method. /// - public class XorRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class XorRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action xor @@ -56,8 +59,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(XorPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xor.XorPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 XorRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/xor", 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 XorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/xor", rawUrl) @@ -100,11 +103,11 @@ public XorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(XorPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xor.XorPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(XorPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Xor.XorPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(XorPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearPostRequestBody.cs index 572e64d5e1..ee8394f094 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Year { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class YearPostRequestBody : IAdditionalDataHolder, IParsable + public partial class YearPostRequestBody : 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. @@ -16,13 +17,13 @@ public class YearPostRequestBody : IAdditionalDataHolder, IParsable /// The serialNumber property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SerialNumber { get; set; } + public UntypedNode? SerialNumber { get; set; } #nullable restore #else - public Json SerialNumber { get; set; } + public UntypedNode SerialNumber { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public YearPostRequestBody() { @@ -31,12 +32,12 @@ public YearPostRequestBody() /// /// 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 YearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Year.YearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new YearPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Year.YearPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "serialNumber", n => { SerialNumber = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "serialNumber", n => { SerialNumber = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("serialNumber", SerialNumber); + writer.WriteObjectValue("serialNumber", SerialNumber); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.cs index b0e5d83a63..b950d49c64 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Year/YearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Year /// /// Provides operations to call the year method. /// - public class YearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class YearRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action year @@ -56,8 +59,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(YearPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Year.YearPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 YearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/year", 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 YearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/year", rawUrl) @@ -100,11 +103,11 @@ public YearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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(YearPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Year.YearPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(YearPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Year.YearPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(YearPostRequestBody body, Act } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracPostRequestBody.cs index 2366c2bdf9..446b7309ba 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YearFrac { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class YearFracPostRequestBody : IAdditionalDataHolder, IParsable + public partial class YearFracPostRequestBody : 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. @@ -16,29 +17,29 @@ public class YearFracPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The endDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EndDate { get; set; } + public UntypedNode? EndDate { get; set; } #nullable restore #else - public Json EndDate { get; set; } + public UntypedNode EndDate { get; set; } #endif /// The startDate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartDate { get; set; } + public UntypedNode? StartDate { get; set; } #nullable restore #else - public Json StartDate { get; set; } + public UntypedNode StartDate { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public YearFracPostRequestBody() { @@ -47,12 +48,12 @@ public YearFracPostRequestBody() /// /// 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 YearFracPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YearFrac.YearFracPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new YearFracPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YearFrac.YearFracPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "endDate", n => { EndDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startDate", n => { StartDate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "endDate", n => { EndDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startDate", n => { StartDate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("endDate", EndDate); - writer.WriteObjectValue("startDate", StartDate); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("endDate", EndDate); + writer.WriteObjectValue("startDate", StartDate); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.cs index 96488d74ac..1a82cc297a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YearFrac/YearFracRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.YearFrac /// /// Provides operations to call the yearFrac method. /// - public class YearFracRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class YearFracRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action yearFrac @@ -56,8 +59,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(YearFracPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YearFrac.YearFracPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 YearFracRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/yearFrac", 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 YearFracRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/yearFrac", rawUrl) @@ -100,11 +103,11 @@ public YearFracRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(YearFracPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YearFrac.YearFracPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(YearFracPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YearFrac.YearFracPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(YearFracPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldPostRequestBody.cs index 9cf29d8243..835dc97cb3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Yield { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class YieldPostRequestBody : IAdditionalDataHolder, IParsable + public partial class YieldPostRequestBody : 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. @@ -16,61 +17,61 @@ public class YieldPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The frequency property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Frequency { get; set; } + public UntypedNode? Frequency { get; set; } #nullable restore #else - public Json Frequency { get; set; } + public UntypedNode Frequency { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The pr property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pr { get; set; } + public UntypedNode? Pr { get; set; } #nullable restore #else - public Json Pr { get; set; } + public UntypedNode Pr { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The redemption property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Redemption { get; set; } + public UntypedNode? Redemption { get; set; } #nullable restore #else - public Json Redemption { get; set; } + public UntypedNode Redemption { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public YieldPostRequestBody() { @@ -79,12 +80,12 @@ public YieldPostRequestBody() /// /// 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 YieldPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Yield.YieldPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new YieldPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Yield.YieldPostRequestBody(); } /// /// The deserialization information for the current model @@ -94,13 +95,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "frequency", n => { Frequency = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pr", n => { Pr = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "redemption", n => { Redemption = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "frequency", n => { Frequency = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pr", n => { Pr = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "redemption", n => { Redemption = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -110,14 +111,15 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("frequency", Frequency); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("pr", Pr); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("redemption", Redemption); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("frequency", Frequency); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("pr", Pr); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("redemption", Redemption); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldRequestBuilder.cs index 3b152b8f2f..b644859f83 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Yield/YieldRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Yield /// /// Provides operations to call the yield method. /// - public class YieldRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class YieldRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action yield @@ -56,8 +59,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(YieldPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Yield.YieldPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 YieldRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/yield", 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 YieldRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/yield", rawUrl) @@ -100,11 +103,11 @@ public YieldRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(YieldPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Yield.YieldPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(YieldPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Yield.YieldPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(YieldPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscPostRequestBody.cs index 693b2ee200..5c0a55dd90 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldDisc { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class YieldDiscPostRequestBody : IAdditionalDataHolder, IParsable + public partial class YieldDiscPostRequestBody : 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. @@ -16,45 +17,45 @@ public class YieldDiscPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The pr property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pr { get; set; } + public UntypedNode? Pr { get; set; } #nullable restore #else - public Json Pr { get; set; } + public UntypedNode Pr { get; set; } #endif /// The redemption property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Redemption { get; set; } + public UntypedNode? Redemption { get; set; } #nullable restore #else - public Json Redemption { get; set; } + public UntypedNode Redemption { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public YieldDiscPostRequestBody() { @@ -63,12 +64,12 @@ public YieldDiscPostRequestBody() /// /// 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 YieldDiscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldDisc.YieldDiscPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new YieldDiscPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldDisc.YieldDiscPostRequestBody(); } /// /// The deserialization information for the current model @@ -78,11 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pr", n => { Pr = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "redemption", n => { Redemption = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pr", n => { Pr = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "redemption", n => { Redemption = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,12 +93,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("pr", Pr); - writer.WriteObjectValue("redemption", Redemption); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("pr", Pr); + writer.WriteObjectValue("redemption", Redemption); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.cs index 3dd43fe78a..b7ab5e149e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldDisc/YieldDiscRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.YieldDisc /// /// Provides operations to call the yieldDisc method. /// - public class YieldDiscRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class YieldDiscRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action yieldDisc @@ -56,8 +59,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(YieldDiscPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldDisc.YieldDiscPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 YieldDiscRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/yieldDisc", 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 YieldDiscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/yieldDisc", rawUrl) @@ -100,11 +103,11 @@ public YieldDiscRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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 ToPostRequestInformation(YieldDiscPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldDisc.YieldDiscPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(YieldDiscPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldDisc.YieldDiscPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(YieldDiscPostRequestBody body } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatPostRequestBody.cs index 671dad50a3..0dfa12b7c4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldMat { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class YieldMatPostRequestBody : IAdditionalDataHolder, IParsable + public partial class YieldMatPostRequestBody : 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. @@ -16,53 +17,53 @@ public class YieldMatPostRequestBody : IAdditionalDataHolder, IParsable /// The basis property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Basis { get; set; } + public UntypedNode? Basis { get; set; } #nullable restore #else - public Json Basis { get; set; } + public UntypedNode Basis { get; set; } #endif /// The issue property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Issue { get; set; } + public UntypedNode? Issue { get; set; } #nullable restore #else - public Json Issue { get; set; } + public UntypedNode Issue { get; set; } #endif /// The maturity property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Maturity { get; set; } + public UntypedNode? Maturity { get; set; } #nullable restore #else - public Json Maturity { get; set; } + public UntypedNode Maturity { get; set; } #endif /// The pr property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Pr { get; set; } + public UntypedNode? Pr { get; set; } #nullable restore #else - public Json Pr { get; set; } + public UntypedNode Pr { get; set; } #endif /// The rate property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Rate { get; set; } + public UntypedNode? Rate { get; set; } #nullable restore #else - public Json Rate { get; set; } + public UntypedNode Rate { get; set; } #endif /// The settlement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Settlement { get; set; } + public UntypedNode? Settlement { get; set; } #nullable restore #else - public Json Settlement { get; set; } + public UntypedNode Settlement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public YieldMatPostRequestBody() { @@ -71,12 +72,12 @@ public YieldMatPostRequestBody() /// /// 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 YieldMatPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldMat.YieldMatPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new YieldMatPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldMat.YieldMatPostRequestBody(); } /// /// The deserialization information for the current model @@ -86,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "basis", n => { Basis = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "issue", n => { Issue = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "maturity", n => { Maturity = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "pr", n => { Pr = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "rate", n => { Rate = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "settlement", n => { Settlement = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "basis", n => { Basis = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "issue", n => { Issue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "maturity", n => { Maturity = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "pr", n => { Pr = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "rate", n => { Rate = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "settlement", n => { Settlement = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -101,13 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("basis", Basis); - writer.WriteObjectValue("issue", Issue); - writer.WriteObjectValue("maturity", Maturity); - writer.WriteObjectValue("pr", Pr); - writer.WriteObjectValue("rate", Rate); - writer.WriteObjectValue("settlement", Settlement); + writer.WriteObjectValue("basis", Basis); + writer.WriteObjectValue("issue", Issue); + writer.WriteObjectValue("maturity", Maturity); + writer.WriteObjectValue("pr", Pr); + writer.WriteObjectValue("rate", Rate); + writer.WriteObjectValue("settlement", Settlement); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.cs index 03d58c6b05..01687ee206 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/YieldMat/YieldMatRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.YieldMat /// /// Provides operations to call the yieldMat method. /// - public class YieldMatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class YieldMatRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action yieldMat @@ -56,8 +59,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(YieldMatPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldMat.YieldMatPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 YieldMatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/yieldMat", 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 YieldMatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/yieldMat", rawUrl) @@ -100,11 +103,11 @@ public YieldMatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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(YieldMatPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldMat.YieldMatPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(YieldMatPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.YieldMat.YieldMatPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(YieldMatPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestPostRequestBody.cs index d8a5e67b15..be2aebc204 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Z_Test { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Z_TestPostRequestBody : IAdditionalDataHolder, IParsable + public partial class Z_TestPostRequestBody : 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. @@ -16,29 +17,29 @@ public class Z_TestPostRequestBody : IAdditionalDataHolder, IParsable /// The array property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Array { get; set; } + public UntypedNode? Array { get; set; } #nullable restore #else - public Json Array { get; set; } + public UntypedNode Array { get; set; } #endif /// The sigma property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Sigma { get; set; } + public UntypedNode? Sigma { get; set; } #nullable restore #else - public Json Sigma { get; set; } + public UntypedNode Sigma { get; set; } #endif /// The x property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? X { get; set; } + public UntypedNode? X { get; set; } #nullable restore #else - public Json X { get; set; } + public UntypedNode X { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Z_TestPostRequestBody() { @@ -47,12 +48,12 @@ public Z_TestPostRequestBody() /// /// 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 Z_TestPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Z_Test.Z_TestPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Z_TestPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Z_Test.Z_TestPostRequestBody(); } /// /// The deserialization information for the current model @@ -62,9 +63,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "array", n => { Array = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "sigma", n => { Sigma = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "x", n => { X = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "array", n => { Array = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "sigma", n => { Sigma = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "x", n => { X = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -74,10 +75,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("array", Array); - writer.WriteObjectValue("sigma", Sigma); - writer.WriteObjectValue("x", X); + writer.WriteObjectValue("array", Array); + writer.WriteObjectValue("sigma", Sigma); + writer.WriteObjectValue("x", X); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.cs index 15e0e8d83f..ce75fcef60 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Z_Test/Z_TestRequestBuilder.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.Drives.Item.Items.Item.Workbook.Functions.Z_Test /// /// Provides operations to call the z_Test method. /// - public class Z_TestRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class Z_TestRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action z_Test @@ -56,8 +59,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(Z_TestPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Z_Test.Z_TestPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 Z_TestRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/z_Test", 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 Z_TestRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/functions/z_Test", rawUrl) @@ -100,11 +103,11 @@ public Z_TestRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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(Z_TestPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Z_Test.Z_TestPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Z_TestPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.Z_Test.Z_TestPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(Z_TestPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Add/AddPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Add/AddPostRequestBody.cs index cab72c5090..de26df90d7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Names/Add/AddPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Add/AddPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Names.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -32,13 +33,13 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The reference property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Reference { get; set; } + public UntypedNode? Reference { get; set; } #nullable restore #else - public Json Reference { get; set; } + public UntypedNode Reference { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -47,12 +48,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,7 +65,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "comment", n => { Comment = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "reference", n => { Reference = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "reference", n => { Reference = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -76,8 +77,9 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("reference", Reference); + writer.WriteObjectValue("reference", Reference); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.cs index ae7eda2a5b..0fc50fd3f8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Add/AddRequestBuilder.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.Drives.Item.Items.Item.Workbook.Names.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Adds a new name to the collection of the given scope using the user's locale for the formula. @@ -57,8 +60,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/add", rawUrl) @@ -101,11 +104,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs index 2e8d6aab68..0f7c856663 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Names.AddFormulaLocal { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddFormulaLocalPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddFormulaLocalPostRequestBody : 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. @@ -37,7 +39,7 @@ public class AddFormulaLocalPostRequestBody : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddFormulaLocalPostRequestBody() { @@ -46,12 +48,12 @@ public AddFormulaLocalPostRequestBody() /// /// 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 AddFormulaLocalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.AddFormulaLocal.AddFormulaLocalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddFormulaLocalPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.AddFormulaLocal.AddFormulaLocalPostRequestBody(); } /// /// The deserialization information for the current model @@ -80,3 +82,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs index b141dcb8ad..e7928badd4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.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.Drives.Item.Items.Item.Workbook.Names.AddFormulaLocal /// /// Provides operations to call the addFormulaLocal method. /// - public class AddFormulaLocalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddFormulaLocalRequestBuilder : BaseCliRequestBuilder { /// /// Adds a new name to the collection of the given scope using the user's locale for the formula. @@ -57,8 +60,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(AddFormulaLocalPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.AddFormulaLocal.AddFormulaLocalPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 AddFormulaLocalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/addFormulaLocal", 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 AddFormulaLocalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/addFormulaLocal", rawUrl) @@ -101,11 +104,11 @@ public AddFormulaLocalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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(AddFormulaLocalPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.AddFormulaLocal.AddFormulaLocalPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddFormulaLocalPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.AddFormulaLocal.AddFormulaLocalPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(AddFormulaLocalPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Count/CountRequestBuilder.cs index db8e8f8c50..7c375dd3e7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Names/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/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.Drives.Item.Items.Item.Workbook.Names.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..d00da694d2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..7fa2939c6a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..9e236b241e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..d2953660bd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Clear/ClearRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..8019f6f2ec --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..183ed8b104 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..85cf35e547 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..548478afcc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..0f923d4d19 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..8527a3c57a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..e878d0d2a8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..68f8276aed --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..6e25ef34af --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..eca952f178 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Format/FormatRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..c8ae788cdb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..36133a62fb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Insert/InsertRequestBuilder.cs @@ -0,0 +1,127 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..1d6c3d65e6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..575f9e0820 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..d9fcd7697e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..6b37526a9a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..014b0b1894 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..897d3c0bbe --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Merge/MergeRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..5ce0ec4794 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs index ebe90b80c6..bc6006e094 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Format.FormatRequestBuilder(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; + } /// /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. /// Find more info here @@ -73,14 +313,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", rawUrl) @@ -107,3 +672,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..c85883947b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..9b0e0b24ef --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..ddcc75b92b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..691e866f7e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..d36d84dd84 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..12b64447b2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Sort/SortRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..8b45d9bc12 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,101 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..d944ed3012 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..215e1a8c53 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..5ffbf55988 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..10094879c8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,153 @@ +// +#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.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs index 657430aad9..d622cbdf0d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/WorkbookNamedItemItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace; using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.Worksheet; 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.Drives.Item.Items.Item.Workbook.Names.Item /// /// Provides operations to manage the names property of the microsoft.graph.workbook entity. /// - public class WorkbookNamedItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookNamedItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property names for drives @@ -174,8 +177,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(WorkbookNamedItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookNamedItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -205,13 +208,49 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -222,7 +261,7 @@ public Command BuildWorksheetNavCommand() { var command = new Command("worksheet"); command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookNamedItem entity."; - var builder = new WorksheetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.Worksheet.WorksheetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -232,14 +271,14 @@ public Command BuildWorksheetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookNamedItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%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 WorkbookNamedItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +310,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); @@ -291,11 +330,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(WorkbookNamedItem body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookNamedItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookNamedItem body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookNamedItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +346,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookNamedItem body, Acti /// /// Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. /// - public class WorkbookNamedItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookNamedItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +372,4 @@ public class WorkbookNamedItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.cs index b78393dd95..4ce4a43a92 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/Item/Worksheet/WorksheetRequestBuilder.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,16 +21,17 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.Worksheet /// /// Provides operations to manage the worksheet property of the microsoft.graph.workbookNamedItem entity. /// - public class WorksheetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder { /// - /// Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + /// Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only."; + command.Description = "Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -86,31 +89,31 @@ 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/worksheet{?%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 WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", rawUrl) { } /// - /// Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + /// Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -119,9 +122,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + /// Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. /// - public class WorksheetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class WorksheetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs index 97b4d6819d..e1dd12ed6b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Add; using ApiSdk.Drives.Item.Items.Item.Workbook.Names.AddFormulaLocal; using ApiSdk.Drives.Item.Items.Item.Workbook.Names.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Names.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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Names /// /// Provides operations to manage the names property of the microsoft.graph.workbook entity. /// - public class NamesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NamesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the addFormulaLocal method. @@ -33,7 +36,7 @@ public Command BuildAddFormulaLocalNavCommand() { var command = new Command("add-formula-local"); command.Description = "Provides operations to call the addFormulaLocal method."; - var builder = new AddFormulaLocalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.AddFormulaLocal.AddFormulaLocalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -50,7 +53,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -67,7 +70,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookNamedItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.WorkbookNamedItemItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -83,7 +86,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.Drives.Item.Items.Item.Workbook.Names.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -127,8 +130,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(WorkbookNamedItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookNamedItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -258,14 +261,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 NamesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names{?%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 NamesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -278,11 +281,11 @@ public NamesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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); @@ -298,11 +301,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(WorkbookNamedItem body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookNamedItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookNamedItem body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookNamedItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -314,7 +317,8 @@ public RequestInformation ToPostRequestInformation(WorkbookNamedItem body, Actio /// /// Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. /// - public class NamesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NamesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -378,3 +382,4 @@ public class NamesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Operations/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Operations/Count/CountRequestBuilder.cs index dd20e050e5..01aa910eaf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Operations/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Operations/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.Drives.Item.Items.Item.Workbook.Operations.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 @@ -40,15 +43,21 @@ public Command BuildGetCommand() }; searchOption.IsRequired = false; command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); command.SetHandler(async (invocationContext) => { var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); @@ -63,17 +72,17 @@ 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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations/$count{?%24search}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations/$count{?%24search}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations/$count{?%24filter,%24search}", rawUrl) { } /// @@ -83,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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,8 +107,19 @@ 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 +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif /// Search items by search phrases #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -113,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.cs index caa5fa085f..9de371e1be 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Operations/Item/WorkbookOperationItemRequestBuilder.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.Drives.Item.Items.Item.Workbook.Operations.Item /// /// Provides operations to manage the operations property of the microsoft.graph.workbook entity. /// - public class WorkbookOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property operations for drives @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(WorkbookOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations/{workbookOperation%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 WorkbookOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations/{workbookOperation%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookOperation body, Acti /// /// The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. /// - public class WorkbookOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class WorkbookOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs index aa06507a5d..93a5ba3413 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Operations/OperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Operations.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Operations.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.Drives.Item.Items.Item.Workbook.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.workbook entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the operations property of the microsoft.graph.workbook entity. @@ -30,7 +33,7 @@ public class OperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new WorkbookOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Operations.Item.WorkbookOperationItemRequestBuilder(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.Drives.Item.Items.Item.Workbook.Operations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(WorkbookOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -126,10 +129,26 @@ public Command BuildListCommand() }; driveItemIdOption.IsRequired = true; command.AddOption(driveItemIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); var searchOption = new Option("--search", description: "Search items by search phrases") { }; searchOption.IsRequired = false; command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); var orderbyOption = new Option("--orderby", description: "Order items by property values") { Arity = ArgumentArity.ZeroOrMore }; @@ -154,7 +173,11 @@ public Command BuildListCommand() command.SetHandler(async (invocationContext) => { var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); var expand = invocationContext.ParseResult.GetValueForOption(expandOption); @@ -167,7 +190,11 @@ public Command BuildListCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; q.QueryParameters.Expand = expand; @@ -195,17 +222,17 @@ 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 OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations{?%24expand,%24orderby,%24search,%24select}", pathParameters) + public OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations{?%24expand,%24orderby,%24search,%24select}", rawUrl) + public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -215,11 +242,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(WorkbookOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,8 +278,12 @@ public RequestInformation ToPostRequestInformation(WorkbookOperation body, Actio /// /// The status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -262,6 +293,16 @@ public class OperationsRequestBuilderGetQueryParameters #else [QueryParameter("%24expand")] public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } #endif /// Order items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -293,6 +334,13 @@ public class OperationsRequestBuilderGetQueryParameters [QueryParameter("%24select")] public string[] Select { get; set; } #endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.cs index 6d350b6379..9a9355f450 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/RefreshSession/RefreshSessionRequestBuilder.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.Drives.Item.Items.Item.Workbook.RefreshSession /// /// Provides operations to call the refreshSession method. /// - public class RefreshSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshSessionRequestBuilder : BaseCliRequestBuilder { /// /// Use this API to refresh an existing workbook session. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefreshSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/refreshSession", 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 RefreshSessionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/refreshSession", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.SessionInfoResourceWithKey /// /// Provides operations to call the sessionInfoResource method. /// - public class SessionInfoResourceWithKeyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SessionInfoResourceWithKeyRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function sessionInfoResource @@ -72,14 +75,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 SessionInfoResourceWithKeyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/sessionInfoResource(key='{key}')", 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 SessionInfoResourceWithKeyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/sessionInfoResource(key='{key}')", rawUrl) @@ -106,3 +109,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.TableRowOperationResultWithKey /// /// Provides operations to call the tableRowOperationResult method. /// - public class TableRowOperationResultWithKeyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TableRowOperationResultWithKeyRequestBuilder : BaseCliRequestBuilder { /// /// This function is the last in a series of steps to create a workbookTableRow resource asynchronously. A best practice to create multiple table rows is to batch them in one create tableRow operation and carry out the operation asynchronously. An asynchronous request to create table rows involves the following steps:1. Issue an async Create tableRow request and get the query URL returned in the Location response header.2. Use the query URL returned from step 1 to issue the Get workbookOperation request and get the operation ID for step 3. Alternatively, for convenience, after you get a succeeded operationStatus result, you can get the query URL from the resourceLocation property of the workbookOperation returned in the response, and apply the query URL to step 3. 3. Use the query URL returned from step 2 as the GET request URL for this function tableRowOperationResult. A successful function call returns the new table rows in a workbookTableRow resource. This function does not do anything if called independently. @@ -73,14 +76,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 TableRowOperationResultWithKeyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tableRowOperationResult(key='{key}')", 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 TableRowOperationResultWithKeyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tableRowOperationResult(key='{key}')", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The hasHeaders property public bool? HasHeaders { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -32,12 +34,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs index 80c93eeadb..6b9d5b44ee 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// - /// Use this API to create a new Table. - /// Find more info here + /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Use this API to create a new Table.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0"; + command.Description = "Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -57,8 +60,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,32 +83,32 @@ 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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/add", rawUrl) { } /// - /// Use this API to create a new Table. + /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. /// /// 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 ToPostRequestInformation(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.cs index 0af6815677..8f0c90c7dd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Count { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountGetResponse : IAdditionalDataHolder, IParsable + public partial class CountGetResponse : 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. @@ -15,7 +17,7 @@ public class CountGetResponse : IAdditionalDataHolder, IParsable /// The value property public int? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountGetResponse() { @@ -24,12 +26,12 @@ public CountGetResponse() /// /// 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 CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Count.CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Count.CountGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.cs index 36881f1931..f7bd098076 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/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.Drives.Item.Items.Item.Workbook.Tables.Count /// /// Provides operations to call the count method. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function count @@ -65,14 +68,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/count()", 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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/count()", rawUrl) @@ -99,3 +102,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.ClearFilters /// /// Provides operations to call the clearFilters method. /// - public class ClearFiltersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearFiltersRequestBuilder : BaseCliRequestBuilder { /// /// Clears all the filters currently applied on the table. @@ -62,14 +65,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 ClearFiltersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/clearFilters", 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 ClearFiltersRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/clearFilters", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -26,13 +27,13 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -41,12 +42,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -58,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "index", n => { Index = n.GetIntValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -70,8 +71,9 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("index", Index); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.cs index efef0aabae..a76a83d031 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Add/AddRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Adds a new column to the table. @@ -62,8 +65,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/add", rawUrl) @@ -107,11 +110,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs index 3d8ea1b418..f8730ac148 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Add; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithIndex; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns /// /// Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -33,7 +36,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -50,7 +53,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookTableColumnItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.WorkbookTableColumnItemRequestBuilder(PathParameters); commands.Add(builder.BuildDataBodyRangeNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilterNavCommand()); @@ -69,7 +72,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to call the count method."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -118,8 +121,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(WorkbookTableColumn.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableColumn.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -149,7 +152,7 @@ public Command BuildItemAtWithIndexRbCommand() { var command = new Command("item-at-with-index"); command.Description = "Provides operations to call the itemAt method."; - var builder = new ItemAtWithIndexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithIndex.ItemAtWithIndexRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildDataBodyRangeNavCommand()); @@ -169,13 +172,13 @@ public Command BuildItemAtWithIndexRbCommand() return command; } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Represents a collection of all the columns in the table. Read-only."; + command.Description = "The list of all the columns in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -283,31 +286,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -323,11 +326,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(WorkbookTableColumn body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookTableColumn body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -337,9 +340,10 @@ public RequestInformation ToPostRequestInformation(WorkbookTableColumn body, Act return requestInfo; } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -403,3 +407,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.cs index 8d2801f70b..2ea9533c3d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Count { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountGetResponse : IAdditionalDataHolder, IParsable + public partial class CountGetResponse : 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. @@ -15,7 +17,7 @@ public class CountGetResponse : IAdditionalDataHolder, IParsable /// The value property public int? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountGetResponse() { @@ -24,12 +26,12 @@ public CountGetResponse() /// /// 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 CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Count.CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Count.CountGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.cs index 93ffaecd9b..1f270edc0c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Count /// /// Provides operations to call the count method. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function count @@ -71,14 +74,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/count()", 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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/count()", rawUrl) @@ -105,3 +108,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..d115f9d39f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..f1e49e9837 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..97233b982d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..074852f9c7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..5c23fc748a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..494f434d09 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..45e48fcad8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..5c4988dd72 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index 4439d9ecc1..3c554ae651 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBo /// /// Provides operations to call the dataBodyRange method. /// - public class DataBodyRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataBodyRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with the data body of the column. /// Find more info here @@ -79,14 +319,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DataBodyRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", 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 DataBodyRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", rawUrl) @@ -113,3 +678,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..e0c00afad6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..021e50b5ae --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..86ba701de9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..2f8654354b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..663999e120 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..6e91a5382c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..5633b40bfb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..fca0ed8b15 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..b0ad998ed0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..353074c0c2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..6e24304ad4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..bab8c2ed66 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..2483483c2b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..7bb275f873 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..40e700370c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..c606fa7f7c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..8d4e185ffe --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..86c22e7921 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..c9face77fd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..34ee0ab2e9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..8983dc290b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..65297ac13b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..c00502068e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..cd9efc9f3d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..7517ac8db5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs index 7bec26fafa..85f37a6ea7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.Apply { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ApplyPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkbookFilterCriteria? Criteria { get; set; } + public global::ApiSdk.Models.WorkbookFilterCriteria? Criteria { get; set; } #nullable restore #else - public WorkbookFilterCriteria Criteria { get; set; } + public global::ApiSdk.Models.WorkbookFilterCriteria Criteria { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyPostRequestBody() { @@ -31,12 +33,12 @@ public ApplyPostRequestBody() /// /// 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 ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.Apply.ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.Apply.ApplyPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(WorkbookFilterCriteria.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(global::ApiSdk.Models.WorkbookFilterCriteria.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("criteria", Criteria); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs index 14863651be..4589d2e0ca 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the apply method. /// - public class ApplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyRequestBuilder : BaseCliRequestBuilder { /// /// Apply the given filter criteria on the given column. @@ -58,8 +61,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(ApplyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.Apply.ApplyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 ApplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", 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 ApplyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", rawUrl) @@ -102,11 +105,11 @@ public ApplyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ApplyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.Apply.ApplyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.Apply.ApplyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs index 7eef3280af..968c9efc81 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyBottomItemsFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyBottomItemsFilterPostRequestBody : 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. @@ -15,7 +17,7 @@ public class ApplyBottomItemsFilterPostRequestBody : IAdditionalDataHolder, IPar /// The count property public int? Count { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyBottomItemsFilterPostRequestBody() { @@ -24,12 +26,12 @@ public ApplyBottomItemsFilterPostRequestBody() /// /// 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 ApplyBottomItemsFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyBottomItemsFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs index 233b6f4cc7..44ce8f4573 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the applyBottomItemsFilter method. /// - public class ApplyBottomItemsFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyBottomItemsFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyBottomItemsFilter @@ -57,8 +60,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(ApplyBottomItemsFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ApplyBottomItemsFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomItemsFilter", 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 ApplyBottomItemsFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomItemsFilter", rawUrl) @@ -101,11 +104,11 @@ public ApplyBottomItemsFilterRequestBuilder(string rawUrl) : base("{+baseurl}/dr /// 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(ApplyBottomItemsFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyBottomItemsFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ApplyBottomItemsFilterPostReq } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs index 737985c261..4c241cb476 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyBottomPercentFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyBottomPercentFilterPostRequestBody : 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. @@ -15,7 +17,7 @@ public class ApplyBottomPercentFilterPostRequestBody : IAdditionalDataHolder, IP /// The percent property public int? Percent { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyBottomPercentFilterPostRequestBody() { @@ -24,12 +26,12 @@ public ApplyBottomPercentFilterPostRequestBody() /// /// 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 ApplyBottomPercentFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyBottomPercentFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs index 1d50d0a48b..44d3b649cb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the applyBottomPercentFilter method. /// - public class ApplyBottomPercentFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyBottomPercentFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyBottomPercentFilter @@ -57,8 +60,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(ApplyBottomPercentFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ApplyBottomPercentFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomPercentFilter", 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 ApplyBottomPercentFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomPercentFilter", rawUrl) @@ -101,11 +104,11 @@ public ApplyBottomPercentFilterRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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(ApplyBottomPercentFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyBottomPercentFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ApplyBottomPercentFilterPostR } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs index ff1a3a573f..a7c2233b7b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyCellColorFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyCellColorFilterPostRequestBody : 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. @@ -21,7 +23,7 @@ public class ApplyCellColorFilterPostRequestBody : IAdditionalDataHolder, IParsa public string Color { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyCellColorFilterPostRequestBody() { @@ -30,12 +32,12 @@ public ApplyCellColorFilterPostRequestBody() /// /// 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 ApplyCellColorFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyCellColorFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs index fc47ff7c6f..429ed627e1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the applyCellColorFilter method. /// - public class ApplyCellColorFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyCellColorFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyCellColorFilter @@ -57,8 +60,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(ApplyCellColorFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ApplyCellColorFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCellColorFilter", 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 ApplyCellColorFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCellColorFilter", rawUrl) @@ -101,11 +104,11 @@ public ApplyCellColorFilterRequestBuilder(string rawUrl) : base("{+baseurl}/driv /// 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(ApplyCellColorFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyCellColorFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ApplyCellColorFilterPostReque } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs index 38fdd1a9cf..3cf096942d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCustomFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyCustomFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyCustomFilterPostRequestBody : 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. @@ -37,7 +39,7 @@ public class ApplyCustomFilterPostRequestBody : IAdditionalDataHolder, IParsable public string Oper { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyCustomFilterPostRequestBody() { @@ -46,12 +48,12 @@ public ApplyCustomFilterPostRequestBody() /// /// 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 ApplyCustomFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyCustomFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -80,3 +82,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs index 18f683919a..090c2a3046 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the applyCustomFilter method. /// - public class ApplyCustomFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyCustomFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyCustomFilter @@ -57,8 +60,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(ApplyCustomFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ApplyCustomFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCustomFilter", 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 ApplyCustomFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCustomFilter", rawUrl) @@ -101,11 +104,11 @@ public ApplyCustomFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/ /// 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(ApplyCustomFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyCustomFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ApplyCustomFilterPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs index 098f98e02a..ee43b74f98 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyDynamicFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyDynamicFilterPostRequestBody : 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. @@ -21,7 +23,7 @@ public class ApplyDynamicFilterPostRequestBody : IAdditionalDataHolder, IParsabl public string Criteria { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyDynamicFilterPostRequestBody() { @@ -30,12 +32,12 @@ public ApplyDynamicFilterPostRequestBody() /// /// 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 ApplyDynamicFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyDynamicFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs index e6d8d66131..b2807e3358 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the applyDynamicFilter method. /// - public class ApplyDynamicFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyDynamicFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyDynamicFilter @@ -57,8 +60,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(ApplyDynamicFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ApplyDynamicFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter", 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 ApplyDynamicFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter", rawUrl) @@ -101,11 +104,11 @@ public ApplyDynamicFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives /// 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(ApplyDynamicFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyDynamicFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ApplyDynamicFilterPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs index 71dd14b6b8..d24b246367 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyFontColorFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyFontColorFilterPostRequestBody : 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. @@ -21,7 +23,7 @@ public class ApplyFontColorFilterPostRequestBody : IAdditionalDataHolder, IParsa public string Color { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyFontColorFilterPostRequestBody() { @@ -30,12 +32,12 @@ public ApplyFontColorFilterPostRequestBody() /// /// 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 ApplyFontColorFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyFontColorFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs index 61fa7b3dc5..66c18d3a6d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the applyFontColorFilter method. /// - public class ApplyFontColorFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyFontColorFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyFontColorFilter @@ -57,8 +60,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(ApplyFontColorFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ApplyFontColorFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter", 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 ApplyFontColorFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter", rawUrl) @@ -101,11 +104,11 @@ public ApplyFontColorFilterRequestBuilder(string rawUrl) : base("{+baseurl}/driv /// 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(ApplyFontColorFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyFontColorFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ApplyFontColorFilterPostReque } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs index bb22001380..9eda6140b1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyIconFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyIconFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyIconFilterPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ApplyIconFilterPostRequestBody : IAdditionalDataHolder, IParsable /// The icon property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkbookIcon? Icon { get; set; } + public global::ApiSdk.Models.WorkbookIcon? Icon { get; set; } #nullable restore #else - public WorkbookIcon Icon { get; set; } + public global::ApiSdk.Models.WorkbookIcon Icon { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyIconFilterPostRequestBody() { @@ -31,12 +33,12 @@ public ApplyIconFilterPostRequestBody() /// /// 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 ApplyIconFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyIconFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "icon", n => { Icon = n.GetObjectValue(WorkbookIcon.CreateFromDiscriminatorValue); } }, + { "icon", n => { Icon = n.GetObjectValue(global::ApiSdk.Models.WorkbookIcon.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("icon", Icon); + writer.WriteObjectValue("icon", Icon); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs index 2adc75a045..4236721216 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the applyIconFilter method. /// - public class ApplyIconFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyIconFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyIconFilter @@ -57,8 +60,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(ApplyIconFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ApplyIconFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyIconFilter", 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 ApplyIconFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyIconFilter", rawUrl) @@ -101,11 +104,11 @@ public ApplyIconFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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(ApplyIconFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyIconFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ApplyIconFilterPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs index a05cb71b8b..589988884e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyTopItemsFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyTopItemsFilterPostRequestBody : 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. @@ -15,7 +17,7 @@ public class ApplyTopItemsFilterPostRequestBody : IAdditionalDataHolder, IParsab /// The count property public int? Count { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyTopItemsFilterPostRequestBody() { @@ -24,12 +26,12 @@ public ApplyTopItemsFilterPostRequestBody() /// /// 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 ApplyTopItemsFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyTopItemsFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs index 9add869414..d3d57050d0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the applyTopItemsFilter method. /// - public class ApplyTopItemsFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyTopItemsFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyTopItemsFilter @@ -57,8 +60,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(ApplyTopItemsFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ApplyTopItemsFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopItemsFilter", 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 ApplyTopItemsFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopItemsFilter", rawUrl) @@ -101,11 +104,11 @@ public ApplyTopItemsFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drive /// 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(ApplyTopItemsFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyTopItemsFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ApplyTopItemsFilterPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs index 62b0bdad77..1aefafd2a9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyTopPercentFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyTopPercentFilterPostRequestBody : 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. @@ -15,7 +17,7 @@ public class ApplyTopPercentFilterPostRequestBody : IAdditionalDataHolder, IPars /// The percent property public int? Percent { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyTopPercentFilterPostRequestBody() { @@ -24,12 +26,12 @@ public ApplyTopPercentFilterPostRequestBody() /// /// 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 ApplyTopPercentFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyTopPercentFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs index e9d6bbf866..9cb9e71a92 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the applyTopPercentFilter method. /// - public class ApplyTopPercentFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyTopPercentFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyTopPercentFilter @@ -57,8 +60,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(ApplyTopPercentFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ApplyTopPercentFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopPercentFilter", 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 ApplyTopPercentFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopPercentFilter", rawUrl) @@ -101,11 +104,11 @@ public ApplyTopPercentFilterRequestBuilder(string rawUrl) : base("{+baseurl}/dri /// 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(ApplyTopPercentFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyTopPercentFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ApplyTopPercentFilterPostRequ } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs index 415f7d7f41..73c72c83f6 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyValuesFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyValuesFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyValuesFilterPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ApplyValuesFilterPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyValuesFilterPostRequestBody() { @@ -31,12 +32,12 @@ public ApplyValuesFilterPostRequestBody() /// /// 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 ApplyValuesFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyValuesFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs index ffc9df35d6..6e3e00d28b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the applyValuesFilter method. /// - public class ApplyValuesFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyValuesFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyValuesFilter @@ -57,8 +60,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(ApplyValuesFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ApplyValuesFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyValuesFilter", 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 ApplyValuesFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyValuesFilter", rawUrl) @@ -101,11 +104,11 @@ public ApplyValuesFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/ /// 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(ApplyValuesFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyValuesFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ApplyValuesFilterPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs index 962db950f7..b9b42c0c39 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the filter on the given column. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.Apply; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter; @@ -13,6 +14,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.Clear; 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; @@ -31,7 +33,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter /// /// Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. /// - public class FilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the applyBottomItemsFilter method. @@ -41,7 +44,7 @@ public Command BuildApplyBottomItemsFilterNavCommand() { var command = new Command("apply-bottom-items-filter"); command.Description = "Provides operations to call the applyBottomItemsFilter method."; - var builder = new ApplyBottomItemsFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -58,7 +61,7 @@ public Command BuildApplyBottomPercentFilterNavCommand() { var command = new Command("apply-bottom-percent-filter"); command.Description = "Provides operations to call the applyBottomPercentFilter method."; - var builder = new ApplyBottomPercentFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -75,7 +78,7 @@ public Command BuildApplyCellColorFilterNavCommand() { var command = new Command("apply-cell-color-filter"); command.Description = "Provides operations to call the applyCellColorFilter method."; - var builder = new ApplyCellColorFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -92,7 +95,7 @@ public Command BuildApplyCustomFilterNavCommand() { var command = new Command("apply-custom-filter"); command.Description = "Provides operations to call the applyCustomFilter method."; - var builder = new ApplyCustomFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -109,7 +112,7 @@ public Command BuildApplyDynamicFilterNavCommand() { var command = new Command("apply-dynamic-filter"); command.Description = "Provides operations to call the applyDynamicFilter method."; - var builder = new ApplyDynamicFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -126,7 +129,7 @@ public Command BuildApplyFontColorFilterNavCommand() { var command = new Command("apply-font-color-filter"); command.Description = "Provides operations to call the applyFontColorFilter method."; - var builder = new ApplyFontColorFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -143,7 +146,7 @@ public Command BuildApplyIconFilterNavCommand() { var command = new Command("apply-icon-filter"); command.Description = "Provides operations to call the applyIconFilter method."; - var builder = new ApplyIconFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -160,7 +163,7 @@ public Command BuildApplyNavCommand() { var command = new Command("apply"); command.Description = "Provides operations to call the apply method."; - var builder = new ApplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.Apply.ApplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -177,7 +180,7 @@ public Command BuildApplyTopItemsFilterNavCommand() { var command = new Command("apply-top-items-filter"); command.Description = "Provides operations to call the applyTopItemsFilter method."; - var builder = new ApplyTopItemsFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -194,7 +197,7 @@ public Command BuildApplyTopPercentFilterNavCommand() { var command = new Command("apply-top-percent-filter"); command.Description = "Provides operations to call the applyTopPercentFilter method."; - var builder = new ApplyTopPercentFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -211,7 +214,7 @@ public Command BuildApplyValuesFilterNavCommand() { var command = new Command("apply-values-filter"); command.Description = "Provides operations to call the applyValuesFilter method."; - var builder = new ApplyValuesFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -228,7 +231,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -291,13 +294,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the filter applied to the column. Read-only."; + command.Description = "The filter applied to the column. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -405,8 +408,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(WorkbookFilter.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookFilter.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -430,14 +433,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 FilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%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 FilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24expand,%24select}", rawUrl) @@ -463,17 +466,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -489,11 +492,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(WorkbookFilter body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookFilter body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookFilter body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookFilter body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -503,9 +506,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookFilter body, Action< return requestInfo; } /// - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// - public class FilterRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -530,3 +534,4 @@ public class FilterRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..7c6307f81f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..752b7626cb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..2e26a2125c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..cc9fae32b6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..d1a818d2dc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..cad8255b8d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..6d6d76ed7b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..f6bc2a123f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..31de1c06b9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..7990d114f4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..69fcb7f943 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..fbf20a201b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..034dbbfc1a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..748d00b8c1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index 239b23c6c4..4dec8cbc31 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Header /// /// Provides operations to call the headerRowRange method. /// - public class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with the header row of the column. /// Find more info here @@ -79,14 +319,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public HeaderRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", 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 HeaderRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", rawUrl) @@ -113,3 +678,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..bf6a604849 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..d43616b23d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..b9fb8a00c4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..572419e79b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..cbe603a337 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..1b55f99fb4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..102ced81ce --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..c09ec90f75 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..b45fa852d1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..30bc4d199a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..c4b1c12aa1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..1a9cc60e28 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..6c50e71778 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..bef0c0135c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..c546ce6e55 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..81c0370df4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..5654645934 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..c0570be9f0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..f5a1954495 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..cf0ab9f142 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..15f72e8023 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..f0c23e8587 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..8464ccdaba --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..b0034497a4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..53db54deab --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..b7a017ddf7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..99ee24ec1e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..608f3c122a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..31fb9c3728 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..1a28cddbc4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..6874c0e8f9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..5db4de72d9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..31e60a0ad0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..5be8d0f476 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..3004a63932 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..6f3d1581d6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..8a99ea7a80 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..5281f1338c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..fc0721738f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..00a9c28f98 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..5cb28f939f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..65e401f0a3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..ff6d5eda95 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs index b2386674d2..0b64f47595 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeN /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with the entire column. /// Find more info here @@ -79,14 +319,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", rawUrl) @@ -113,3 +678,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..52ba317732 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..d56c027894 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..1fa5119715 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..4dfa5ad700 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..4290f00f66 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..d8703e9876 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..4887d6157d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..ef17cb0dc0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..ac31b67358 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..160a4e778b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..ba2cde0535 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..395a2e3c41 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..468f6a4944 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..0869fac3c8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..2a70675a97 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..1c55834fdd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..c8654e41c6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..7e9bb254b8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..edc7b07c35 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..69ff32c315 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..4e31c41622 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..8e9d0c6bb9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..8d3391171f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..da203a2fbc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..cf27effc43 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..4ae1a535b5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..29c4972c2d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..db468114ba --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..57dbe697b8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..647dfab0ec --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..8f9cc970f9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..a1168780b9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..c75c6e954e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..04b50511bc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..940379fb85 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..9b1a225e2b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..62380359a0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..3d74a72e05 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..246c6d85fd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..87d35f2d46 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..6263d0665d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index c61e9cb0d3..09c2881dfe 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalR /// /// Provides operations to call the totalRowRange method. /// - public class TotalRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TotalRowRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with the totals row of the column. /// Find more info here @@ -79,14 +319,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TotalRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", 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 TotalRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", rawUrl) @@ -113,3 +678,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..98c3c16ace --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..7226ef53ec --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..1c28dd827c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..7a1f31a6b4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs index 7dfcc5c1b6..48c6d7e406 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange; @@ -6,6 +7,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange; 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 +26,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item /// /// Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. /// - public class WorkbookTableColumnItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableColumnItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the dataBodyRange method. @@ -34,13 +37,49 @@ public Command BuildDataBodyRangeNavCommand() { var command = new Command("data-body-range"); command.Description = "Provides operations to call the dataBodyRange method."; - var builder = new DataBodyRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.DataBodyRange.DataBodyRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -104,7 +143,7 @@ public Command BuildFilterNavCommand() { var command = new Command("filter"); command.Description = "Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity."; - var builder = new FilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.Filter.FilterRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildApplyBottomItemsFilterNavCommand()); @@ -133,13 +172,13 @@ public Command BuildFilterNavCommand() return command; } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents a collection of all the columns in the table. Read-only."; + command.Description = "The list of all the columns in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -210,13 +249,49 @@ public Command BuildHeaderRowRangeNavCommand() { var command = new Command("header-row-range"); command.Description = "Provides operations to call the headerRowRange method."; - var builder = new HeaderRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.HeaderRowRange.HeaderRowRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -264,8 +339,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(WorkbookTableColumn.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableColumn.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -296,13 +371,49 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -313,24 +424,60 @@ public Command BuildTotalRowRangeNavCommand() { var command = new Command("total-row-range"); command.Description = "Provides operations to call the totalRowRange method."; - var builder = new TotalRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Item.TotalRowRange.TotalRowRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookTableColumnItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%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 WorkbookTableColumnItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24expand,%24select}", rawUrl) @@ -356,17 +503,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -382,11 +529,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(WorkbookTableColumn body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookTableColumn body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -396,9 +543,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableColumn body, Ac return requestInfo; } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// - public class WorkbookTableColumnItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableColumnItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -423,3 +571,4 @@ public class WorkbookTableColumnItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/DataBodyRange/DataBodyRangeRequestBuilder.cs index 0f7e48bc16..1106cad0fb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/DataBodyRange/DataBodyRangeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithI /// /// Provides operations to call the dataBodyRange method. /// - public class DataBodyRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataBodyRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with the data body of the column. @@ -79,14 +82,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 DataBodyRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()", 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 DataBodyRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()", rawUrl) @@ -113,3 +116,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithI /// /// Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. /// - public class FilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property filter for drives @@ -75,13 +78,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the filter applied to the column. Read-only."; + command.Description = "The filter applied to the column. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -189,8 +192,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(WorkbookFilter.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookFilter.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%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 FilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%24expand,%24select}", rawUrl) @@ -247,17 +250,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -273,11 +276,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(WorkbookFilter body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookFilter body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookFilter body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookFilter body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,9 +290,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookFilter body, Action< return requestInfo; } /// - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// - public class FilterRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FilterRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index c9689f8edd..a1b6331e62 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ItemAtWithIndex/HeaderRowRange/HeaderRowRangeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithI /// /// Provides operations to call the headerRowRange method. /// - public class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with the header row of the column. @@ -79,14 +82,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 HeaderRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()", 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 HeaderRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()", rawUrl) @@ -113,3 +116,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithIndex.DataBodyRange; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithIndex.Filter; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithIndex.HeaderRowRange; @@ -6,6 +7,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithIndex.TotalRowRange; 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 +26,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithI /// /// Provides operations to call the itemAt method. /// - public class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the dataBodyRange method. @@ -34,7 +37,7 @@ public Command BuildDataBodyRangeNavCommand() { var command = new Command("data-body-range"); command.Description = "Provides operations to call the dataBodyRange method."; - var builder = new DataBodyRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithIndex.DataBodyRange.DataBodyRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildFilterNavCommand() { var command = new Command("filter"); command.Description = "Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity."; - var builder = new FilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithIndex.Filter.FilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -127,7 +130,7 @@ public Command BuildHeaderRowRangeNavCommand() { var command = new Command("header-row-range"); command.Description = "Provides operations to call the headerRowRange method."; - var builder = new HeaderRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithIndex.HeaderRowRange.HeaderRowRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -144,7 +147,7 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithIndex.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -161,7 +164,7 @@ public Command BuildTotalRowRangeNavCommand() { var command = new Command("total-row-range"); command.Description = "Provides operations to call the totalRowRange method."; - var builder = new TotalRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithIndex.TotalRowRange.TotalRowRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -171,14 +174,14 @@ public Command BuildTotalRowRangeNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ItemAtWithIndexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})", 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 ItemAtWithIndexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})", rawUrl) @@ -205,3 +208,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithI /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with the entire column. @@ -79,14 +82,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 RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()", rawUrl) @@ -113,3 +116,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ItemAtWithI /// /// Provides operations to call the totalRowRange method. /// - public class TotalRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TotalRowRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with the totals row of the column. @@ -79,14 +82,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 TotalRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()", 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 TotalRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()", rawUrl) @@ -113,3 +116,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.Item.ConvertToRange /// /// Provides operations to call the convertToRange method. /// - public class ConvertToRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConvertToRangeRequestBuilder : BaseCliRequestBuilder { /// /// Converts the table into a normal range of cells. All data is preserved. @@ -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 ConvertToRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/convertToRange", 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 ConvertToRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/convertToRange", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..82aa9fc125 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..9c5cd2a38d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..8de84990b5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..08078685b3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..f76c8657b9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..a0dab53ae5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..5599fd7f0e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..f67abd7246 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index b2fd60722e..b4d8c9d948 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange /// /// Provides operations to call the dataBodyRange method. /// - public class DataBodyRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataBodyRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with the data body of the table. /// Find more info here @@ -73,14 +313,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DataBodyRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()", 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 DataBodyRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()", rawUrl) @@ -107,3 +672,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..1e75519106 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..6d1b320d2d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..dba2fcbc56 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..751def90c9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..f7ce2a2429 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..35f32ef445 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,127 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..27e554f1a0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..645257d853 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..2f422449ab --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..8605c2820e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..1e4efae425 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..240bf44a06 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..da61118df1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..e4da5c463b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..2b9c86b38a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..918c7d359a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..cf638b4acc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..913731ae0c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..759e220ffb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..9903184aa9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..db9e4c151a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,101 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..a59c96f373 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..5c45cd1aed --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..252bc33820 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..5ed3cfaf4a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,153 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..c147e462e3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..5f115279ae --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..2c4ac5e3cf --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..3b5165697a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..05eaa112c0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..9feee29ade --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..1df576b841 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..2b9fd25fa0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..5c459921a8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..6f79831f4e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..7de2c4fbb4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..eea527154e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..cf41cb5e0d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..d2bc69eb0b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index 1d8af87d82..55429f62fc 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange /// /// Provides operations to call the headerRowRange method. /// - public class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with header row of the table. /// Find more info here @@ -73,14 +313,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public HeaderRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()", 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 HeaderRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()", rawUrl) @@ -107,3 +672,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..20d74dc8fe --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,127 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..6756dd9156 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..6b6a817f7f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..223f162bc3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..f82f8e0d3f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..fa69a98f42 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..ea7ee88570 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..9e95ec6de9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..155219b386 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..bbed4bdf9e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..7dd0075bf1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..328b075ba4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..e3347e5d4b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..97d8c258ee --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..6952758593 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..2eb65cbb0e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,101 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..4eeac62bf1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..626f2fb8f7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..deb1323535 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..139d4e285f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,153 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..83452a4055 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..27a57823d4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..49d38719dd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..496ce687c9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Clear/ClearRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..01352a86c2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..709698f334 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..df8be3b092 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..155d8f11f6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..2af485ae4d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..760cad9d4e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..b74cdfc931 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..2a6f2fe376 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..6ab0651e25 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..5b607a8d9c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Format/FormatRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..534e3ccf1a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..c79733bf50 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Insert/InsertRequestBuilder.cs @@ -0,0 +1,127 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..abe35c92c5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..93cb44feb3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..e106ebef2e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..63ebeed5dd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..eab949bd7c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..b73df943e3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Merge/MergeRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..fb5f1bfa9d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs index 183d994ee8..c9f3741ae9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Format.FormatRequestBuilder(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; + } /// /// Get the range object associated with the entire table. /// Find more info here @@ -73,14 +313,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()", rawUrl) @@ -107,3 +672,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..2d11e44763 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..d6d23ccff7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..aec163667f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..872678a59e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..a028718ebf --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..6e766f0353 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Sort/SortRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..77ffae7527 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,101 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..918a664472 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..716efcd753 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..755382986c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..f75ffe91d5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,153 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs index f97d033d6f..df893aab78 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.ReapplyFilters /// /// Provides operations to call the reapplyFilters method. /// - public class ReapplyFiltersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReapplyFiltersRequestBuilder : BaseCliRequestBuilder { /// /// Reapplies all the filters currently on the table. @@ -62,14 +65,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 ReapplyFiltersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/reapplyFilters", 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 ReapplyFiltersRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/reapplyFilters", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -18,13 +19,13 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -33,12 +34,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -49,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "index", n => { Index = n.GetIntValue(); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -60,8 +61,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("index", Index); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.cs index 1c3348f510..4af104c613 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Add/AddRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. @@ -62,8 +65,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/add", rawUrl) @@ -107,11 +110,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.cs index a40c3d9dc9..d0f3d602bb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Count { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountGetResponse : IAdditionalDataHolder, IParsable + public partial class CountGetResponse : 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. @@ -15,7 +17,7 @@ public class CountGetResponse : IAdditionalDataHolder, IParsable /// The value property public int? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountGetResponse() { @@ -24,12 +26,12 @@ public CountGetResponse() /// /// 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 CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Count.CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Count.CountGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.cs index 8d4869c769..b40062c5dc 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Count /// /// Provides operations to call the count method. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function count @@ -71,14 +74,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/count()", 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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/count()", rawUrl) @@ -105,3 +108,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..6dc608d807 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..373760afb1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..8d961d3a8e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..a6c8daea59 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..9f392ede7c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..5b7949bce4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..177cbc2f16 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..0c39ad94a8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..820fbd3691 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..45a1511a57 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..bb56c8dd36 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..feaaebb4ae --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..6b54348c23 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..e9bee22824 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..c00bee4ee6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..346e64e610 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..aac7317032 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..0a27230899 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..8aa65b35cd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..b346499150 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..082ccdbdb6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..46ad062dfa --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs index fae697a377..24316c0aac 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeName /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Format.FormatRequestBuilder(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; + } /// /// Invoke function range /// @@ -78,14 +318,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", rawUrl) @@ -112,3 +677,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..546b430b7f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..0f151dd249 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..bf2627b5fc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..1cadd1fbeb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..73d074000a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..ac8aee1b74 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..23301b1ad7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..93e9688191 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..01343812cf --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..10d24c195a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..1fb9f3e16f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs index af8fabd3e6..f5c15b0135 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace; 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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item /// /// Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. /// - public class WorkbookTableRowItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableRowItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property rows for drives @@ -76,13 +79,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents a collection of all the rows in the table. Read-only."; + command.Description = "The list of all the rows in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -190,8 +193,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(WorkbookTableRow.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableRow.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,24 +225,60 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookTableRowItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%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 WorkbookTableRowItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24expand,%24select}", rawUrl) @@ -265,17 +304,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -291,11 +330,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(WorkbookTableRow body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookTableRow body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -305,9 +344,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableRow body, Actio return requestInfo; } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// - public class WorkbookTableRowItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableRowItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +372,4 @@ public class WorkbookTableRowItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index d10a05c3e9..68a1eba000 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.ItemAtWithIndex.RangeNamespace; 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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.ItemAtWithInde /// /// Provides operations to call the itemAt method. /// - public class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder { /// /// Gets a row based on its position in the collection. @@ -87,7 +90,7 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.ItemAtWithIndex.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -97,14 +100,14 @@ public Command BuildRangeNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ItemAtWithIndexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})", 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 ItemAtWithIndexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})", rawUrl) @@ -131,3 +134,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.ItemAtWithInde /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function range @@ -78,14 +81,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 RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", rawUrl) @@ -112,3 +115,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Add; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.ItemAtWithIndex; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows /// /// Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. /// - public class RowsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -33,7 +36,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -50,7 +53,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookTableRowItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Item.WorkbookTableRowItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -65,7 +68,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to call the count method."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -114,8 +117,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(WorkbookTableRow.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableRow.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -145,7 +148,7 @@ public Command BuildItemAtWithIndexRbCommand() { var command = new Command("item-at-with-index"); command.Description = "Provides operations to call the itemAt method."; - var builder = new ItemAtWithIndexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.ItemAtWithIndex.ItemAtWithIndexRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -161,13 +164,13 @@ public Command BuildItemAtWithIndexRbCommand() return command; } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Represents a collection of all the rows in the table. Read-only."; + command.Description = "The list of all the rows in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -275,31 +278,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RowsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows{?%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 RowsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -315,11 +318,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(WorkbookTableRow body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookTableRow body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -329,9 +332,10 @@ public RequestInformation ToPostRequestInformation(WorkbookTableRow body, Action return requestInfo; } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// - public class RowsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -395,3 +399,4 @@ public class RowsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs index ab931560da..d70b5982ba 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyPostRequestBody.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.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Apply { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyPostRequestBody : 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. @@ -16,10 +18,10 @@ public class ApplyPostRequestBody : IAdditionalDataHolder, IParsable /// The fields property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Fields { get; set; } + public List? Fields { get; set; } #nullable restore #else - public List Fields { get; set; } + public List Fields { get; set; } #endif /// The matchCase property public bool? MatchCase { get; set; } @@ -32,7 +34,7 @@ public class ApplyPostRequestBody : IAdditionalDataHolder, IParsable public string Method { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyPostRequestBody() { @@ -41,12 +43,12 @@ public ApplyPostRequestBody() /// /// 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 ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Apply.ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Apply.ApplyPostRequestBody(); } /// /// The deserialization information for the current model @@ -56,7 +58,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fields", n => { Fields = n.GetCollectionOfObjectValues(WorkbookSortField.CreateFromDiscriminatorValue)?.ToList(); } }, + { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::ApiSdk.Models.WorkbookSortField.CreateFromDiscriminatorValue)?.AsList(); } }, { "matchCase", n => { MatchCase = n.GetBoolValue(); } }, { "method", n => { Method = n.GetStringValue(); } }, }; @@ -68,10 +70,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("fields", Fields); + writer.WriteCollectionOfObjectValues("fields", Fields); writer.WriteBoolValue("matchCase", MatchCase); writer.WriteStringValue("method", Method); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs index 3bde538d35..c36e97881d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Apply/ApplyRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Apply /// /// Provides operations to call the apply method. /// - public class ApplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyRequestBuilder : BaseCliRequestBuilder { /// /// Perform a sort operation. @@ -53,8 +56,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(ApplyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Apply.ApplyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 ApplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/apply", 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 ApplyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/apply", rawUrl) @@ -96,11 +99,11 @@ public ApplyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ApplyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Apply.ApplyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Apply.ApplyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.cs index cc6572babc..5ab21551b9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Sort/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Clear /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. @@ -62,14 +65,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/clear", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Reapply /// /// Provides operations to call the reapply method. /// - public class ReapplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReapplyRequestBuilder : BaseCliRequestBuilder { /// /// Reapplies the current sorting parameters to the table. @@ -62,14 +65,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 ReapplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/reapply", 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 ReapplyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/reapply", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Apply; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Clear; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Reapply; 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.Drives.Item.Items.Item.Workbook.Tables.Item.Sort /// /// Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. /// - public class SortRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the apply method. @@ -32,7 +35,7 @@ public Command BuildApplyNavCommand() { var command = new Command("apply"); command.Description = "Provides operations to call the apply method."; - var builder = new ApplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Apply.ApplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -49,7 +52,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -106,13 +109,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents the sorting for the table. Read-only."; + command.Description = "The sorting for the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -209,8 +212,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(WorkbookTableSort.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableSort.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,7 +243,7 @@ public Command BuildReapplyNavCommand() { var command = new Command("reapply"); command.Description = "Provides operations to call the reapply method."; - var builder = new ReapplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.Reapply.ReapplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -250,14 +253,14 @@ public Command BuildReapplyNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort{?%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 SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort{?%24expand,%24select}", rawUrl) @@ -283,17 +286,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -309,11 +312,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(WorkbookTableSort body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableSort body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookTableSort body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableSort body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -323,9 +326,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableSort body, Acti return requestInfo; } /// - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// - public class SortRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +354,4 @@ public class SortRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..e23d99b4ef --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..d1245c45f6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..acf0e3571a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..5f35f38f1e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..d463a52fcc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..1104c3223f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..ec029b2f4d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..858a37d706 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..3f8b61971b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..116bd56380 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..c1a6e8b4d5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..5f0caab64d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..f98194b62f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..9481a4ccee --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..e4d9762af7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..26d3aa1ffd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,127 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..afe24266ec --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..6b9b656acf --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..8c74d90d83 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..8ef064d510 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..96b38499e0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..2819f169e3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..f4b664611a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..705234c0fb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..e91356c537 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..9f15829a06 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..4a0b524eab --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..5b30ce5b73 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..716235a21a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..873e162f99 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index a0f456c506..fb766b2cfe 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange /// /// Provides operations to call the totalRowRange method. /// - public class TotalRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TotalRowRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with totals row of the table. /// Find more info here @@ -73,14 +313,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TotalRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()", 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 TotalRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()", rawUrl) @@ -107,3 +672,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..1a67702c55 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..aa04e6dd3d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..98cfda58ae --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..976bf51b95 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,153 @@ +// +#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.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs index c74263ee7d..e1e79b629e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/WorkbookTableItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.ClearFilters; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.ConvertToRange; @@ -12,6 +13,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Worksheet; 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; @@ -30,7 +32,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item /// /// Provides operations to manage the tables property of the microsoft.graph.workbook entity. /// - public class WorkbookTableItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clearFilters method. @@ -40,7 +43,7 @@ public Command BuildClearFiltersNavCommand() { var command = new Command("clear-filters"); command.Description = "Provides operations to call the clearFilters method."; - var builder = new ClearFiltersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.ClearFilters.ClearFiltersRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -57,7 +60,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.workbookTable entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); @@ -86,7 +89,7 @@ public Command BuildConvertToRangeNavCommand() { var command = new Command("convert-to-range"); command.Description = "Provides operations to call the convertToRange method."; - var builder = new ConvertToRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.ConvertToRange.ConvertToRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -103,13 +106,49 @@ public Command BuildDataBodyRangeNavCommand() { var command = new Command("data-body-range"); command.Description = "Provides operations to call the dataBodyRange method."; - var builder = new DataBodyRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.DataBodyRange.DataBodyRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -231,13 +270,49 @@ public Command BuildHeaderRowRangeNavCommand() { var command = new Command("header-row-range"); command.Description = "Provides operations to call the headerRowRange method."; - var builder = new HeaderRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.HeaderRowRange.HeaderRowRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -280,8 +355,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(WorkbookTable.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTable.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -311,13 +386,49 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -328,7 +439,7 @@ public Command BuildReapplyFiltersNavCommand() { var command = new Command("reapply-filters"); command.Description = "Provides operations to call the reapplyFilters method."; - var builder = new ReapplyFiltersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.ReapplyFilters.ReapplyFiltersRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -345,7 +456,7 @@ public Command BuildRowsNavCommand() { var command = new Command("rows"); command.Description = "Provides operations to manage the rows property of the microsoft.graph.workbookTable entity."; - var builder = new RowsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.RowsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); @@ -374,7 +485,7 @@ public Command BuildSortNavCommand() { var command = new Command("sort"); command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookTable entity."; - var builder = new SortRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Sort.SortRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildApplyNavCommand()); @@ -401,13 +512,49 @@ public Command BuildTotalRowRangeNavCommand() { var command = new Command("total-row-range"); command.Description = "Provides operations to call the totalRowRange method."; - var builder = new TotalRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.TotalRowRange.TotalRowRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -418,7 +565,7 @@ public Command BuildWorksheetNavCommand() { var command = new Command("worksheet"); command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity."; - var builder = new WorksheetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.Worksheet.WorksheetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -428,14 +575,14 @@ public Command BuildWorksheetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookTableItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%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 WorkbookTableItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}{?%24expand,%24select}", rawUrl) @@ -467,11 +614,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); @@ -487,11 +634,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(WorkbookTable body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTable body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookTable body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTable body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -503,7 +650,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookTable body, Action /// Represents a collection of tables associated with the workbook. Read-only. /// - public class WorkbookTableItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -528,3 +676,4 @@ public class WorkbookTableItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.cs index 3e8f8192f9..0338c50d1f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Worksheet/WorksheetRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.Item.Worksheet /// /// Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. /// - public class WorksheetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder { /// /// The worksheet containing the current table. Read-only. @@ -86,14 +89,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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/worksheet{?%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 WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/worksheet{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The worksheet containing the current table. Read-only. /// - public class WorksheetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class WorksheetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ClearFilters/ClearFiltersRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ClearFilters/ClearFiltersRequestBuilder.cs index 6e30051eb5..0e0707137f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ClearFilters/ClearFiltersRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ClearFilters/ClearFiltersRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.ClearFil /// /// Provides operations to call the clearFilters method. /// - public class ClearFiltersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearFiltersRequestBuilder : BaseCliRequestBuilder { /// /// Clears all the filters currently applied on the table. @@ -62,14 +65,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 ClearFiltersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/clearFilters", 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 ClearFiltersRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/clearFilters", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#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,16 +21,17 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.Columns /// /// Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents a collection of all the columns in the table. Read-only."; + command.Description = "The list of all the columns in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -175,8 +178,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(WorkbookTableColumn.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableColumn.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,31 +202,31 @@ 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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -239,11 +242,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(WorkbookTableColumn body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookTableColumn body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,9 +256,10 @@ public RequestInformation ToPostRequestInformation(WorkbookTableColumn body, Act return requestInfo; } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ConvertToRange/ConvertToRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ConvertToRange/ConvertToRangeRequestBuilder.cs index 4ff2ce4303..eff73ede6f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ConvertToRange/ConvertToRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/ConvertToRange/ConvertToRangeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.ConvertT /// /// Provides operations to call the convertToRange method. /// - public class ConvertToRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConvertToRangeRequestBuilder : BaseCliRequestBuilder { /// /// Converts the table into a normal range of cells. All data is preserved. @@ -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 ConvertToRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/convertToRange", 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 ConvertToRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/convertToRange", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.DataBody /// /// Provides operations to call the dataBodyRange method. /// - public class DataBodyRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataBodyRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with the data body of the table. @@ -73,14 +76,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 DataBodyRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/dataBodyRange()", 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 DataBodyRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/dataBodyRange()", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.HeaderRo /// /// Provides operations to call the headerRowRange method. /// - public class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with header row of the table. @@ -73,14 +76,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 HeaderRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/headerRowRange()", 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 HeaderRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/headerRowRange()", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.ClearFilters; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.Columns; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.ConvertToRange; @@ -12,6 +13,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.Worksheet; 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; @@ -30,7 +32,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex /// /// Provides operations to call the itemAt method. /// - public class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clearFilters method. @@ -40,7 +43,7 @@ public Command BuildClearFiltersNavCommand() { var command = new Command("clear-filters"); command.Description = "Provides operations to call the clearFilters method."; - var builder = new ClearFiltersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.ClearFilters.ClearFiltersRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -57,7 +60,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.workbookTable entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -75,7 +78,7 @@ public Command BuildConvertToRangeNavCommand() { var command = new Command("convert-to-range"); command.Description = "Provides operations to call the convertToRange method."; - var builder = new ConvertToRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.ConvertToRange.ConvertToRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -92,7 +95,7 @@ public Command BuildDataBodyRangeNavCommand() { var command = new Command("data-body-range"); command.Description = "Provides operations to call the dataBodyRange method."; - var builder = new DataBodyRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.DataBodyRange.DataBodyRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -159,7 +162,7 @@ public Command BuildHeaderRowRangeNavCommand() { var command = new Command("header-row-range"); command.Description = "Provides operations to call the headerRowRange method."; - var builder = new HeaderRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.HeaderRowRange.HeaderRowRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -176,7 +179,7 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -193,7 +196,7 @@ public Command BuildReapplyFiltersNavCommand() { var command = new Command("reapply-filters"); command.Description = "Provides operations to call the reapplyFilters method."; - var builder = new ReapplyFiltersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.ReapplyFilters.ReapplyFiltersRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -210,7 +213,7 @@ public Command BuildRowsNavCommand() { var command = new Command("rows"); command.Description = "Provides operations to manage the rows property of the microsoft.graph.workbookTable entity."; - var builder = new RowsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.Rows.RowsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -228,7 +231,7 @@ public Command BuildSortNavCommand() { var command = new Command("sort"); command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookTable entity."; - var builder = new SortRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.Sort.SortRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -247,7 +250,7 @@ public Command BuildTotalRowRangeNavCommand() { var command = new Command("total-row-range"); command.Description = "Provides operations to call the totalRowRange method."; - var builder = new TotalRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.TotalRowRange.TotalRowRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -264,7 +267,7 @@ public Command BuildWorksheetNavCommand() { var command = new Command("worksheet"); command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity."; - var builder = new WorksheetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.Worksheet.WorksheetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -274,14 +277,14 @@ public Command BuildWorksheetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ItemAtWithIndexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})", 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 ItemAtWithIndexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})", rawUrl) @@ -308,3 +311,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.RangeNam /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { /// /// Get the range object associated with the entire table. @@ -73,14 +76,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 RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/range()", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.ReapplyF /// /// Provides operations to call the reapplyFilters method. /// - public class ReapplyFiltersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReapplyFiltersRequestBuilder : BaseCliRequestBuilder { /// /// Reapplies all the filters currently on the table. @@ -62,14 +65,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 ReapplyFiltersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/reapplyFilters", 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 ReapplyFiltersRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/reapplyFilters", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#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,16 +21,17 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.Rows /// /// Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. /// - public class RowsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsRequestBuilder : BaseCliRequestBuilder { /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents a collection of all the rows in the table. Read-only."; + command.Description = "The list of all the rows in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -175,8 +178,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(WorkbookTableRow.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableRow.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,31 +202,31 @@ 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 RowsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/rows{?%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 RowsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -239,11 +242,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(WorkbookTableRow body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookTableRow body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,9 +256,10 @@ public RequestInformation ToPostRequestInformation(WorkbookTableRow body, Action return requestInfo; } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// - public class RowsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class RowsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Sort/SortRequestBuilder.cs index 2ef4adec5d..8580625f0d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Sort/SortRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Sort/SortRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.Sort /// /// Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. /// - public class SortRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property sort for drives @@ -69,13 +72,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents the sorting for the table. Read-only."; + command.Description = "The sorting for the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(WorkbookTableSort.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableSort.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/sort{?%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 SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/sort{?%24expand,%24select}", rawUrl) @@ -229,17 +232,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookTableSort body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableSort body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookTableSort body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableSort body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -269,9 +272,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableSort body, Acti return requestInfo; } /// - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// - public class SortRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class SortRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/TotalRowRange/TotalRowRangeRequestBuilder.cs index 0f20096bbe..d08b490028 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/TotalRowRange/TotalRowRangeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.TotalRow /// /// Provides operations to call the totalRowRange method. /// - public class TotalRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TotalRowRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with totals row of the table. @@ -73,14 +76,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 TotalRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/totalRowRange()", 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 TotalRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/totalRowRange()", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.Workshee /// /// Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. /// - public class WorksheetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder { /// /// The worksheet containing the current table. Read-only. @@ -86,14 +89,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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/worksheet{?%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 WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/worksheet{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The worksheet containing the current table. Read-only. /// - public class WorksheetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class WorksheetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs index 6a24a7cbd7..9320ea9809 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Add; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item; using ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Tables /// /// Provides operations to manage the tables property of the microsoft.graph.workbook entity. /// - public class TablesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TablesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -33,7 +36,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -50,7 +53,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookTableItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Item.WorkbookTableItemRequestBuilder(PathParameters); commands.Add(builder.BuildClearFiltersNavCommand()); commands.Add(builder.BuildColumnsNavCommand()); commands.Add(builder.BuildConvertToRangeNavCommand()); @@ -75,7 +78,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to call the count method."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -119,8 +122,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(WorkbookTable.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTable.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -149,7 +152,7 @@ public Command BuildItemAtWithIndexRbCommand() { var command = new Command("item-at-with-index"); command.Description = "Provides operations to call the itemAt method."; - var builder = new ItemAtWithIndexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.ItemAtWithIndex.ItemAtWithIndexRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearFiltersNavCommand()); @@ -283,14 +286,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 TablesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables{?%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 TablesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -303,11 +306,11 @@ public TablesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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); @@ -323,11 +326,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(WorkbookTable body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTable body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookTable body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTable body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -339,7 +342,8 @@ public RequestInformation ToPostRequestInformation(WorkbookTable body, Action /// Represents a collection of tables associated with the workbook. Read-only. /// - public class TablesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TablesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -403,3 +407,4 @@ public class TablesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.cs index 4914827813..842b3a2aa3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/WorkbookRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Application; using ApiSdk.Drives.Item.Items.Item.Workbook.CloseSession; using ApiSdk.Drives.Item.Items.Item.Workbook.Comments; @@ -13,6 +14,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets; 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; @@ -31,7 +33,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook /// /// Provides operations to manage the workbook property of the microsoft.graph.driveItem entity. /// - public class WorkbookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the application property of the microsoft.graph.workbook entity. @@ -41,7 +44,7 @@ public Command BuildApplicationNavCommand() { var command = new Command("application"); command.Description = "Provides operations to manage the application property of the microsoft.graph.workbook entity."; - var builder = new ApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Application.ApplicationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCalculateNavCommand()); @@ -66,7 +69,7 @@ public Command BuildCloseSessionNavCommand() { var command = new Command("close-session"); command.Description = "Provides operations to call the closeSession method."; - var builder = new CloseSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.CloseSession.CloseSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -83,7 +86,7 @@ public Command BuildCommentsNavCommand() { var command = new Command("comments"); command.Description = "Provides operations to manage the comments property of the microsoft.graph.workbook entity."; - var builder = new CommentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Comments.CommentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -110,7 +113,7 @@ public Command BuildCreateSessionNavCommand() { var command = new Command("create-session"); command.Description = "Provides operations to call the createSession method."; - var builder = new CreateSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.CreateSession.CreateSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -168,7 +171,7 @@ public Command BuildFunctionsNavCommand() { var command = new Command("functions"); command.Description = "Provides operations to manage the functions property of the microsoft.graph.workbook entity."; - var builder = new FunctionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Functions.FunctionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAbsNavCommand()); @@ -616,7 +619,7 @@ public Command BuildNamesNavCommand() { var command = new Command("names"); command.Description = "Provides operations to manage the names property of the microsoft.graph.workbook entity."; - var builder = new NamesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Names.NamesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddFormulaLocalNavCommand()); @@ -645,7 +648,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.workbook entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -699,8 +702,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.Workbook.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Workbook.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -729,7 +732,7 @@ public Command BuildRefreshSessionNavCommand() { var command = new Command("refresh-session"); command.Description = "Provides operations to call the refreshSession method."; - var builder = new RefreshSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.RefreshSession.RefreshSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -746,7 +749,7 @@ public Command BuildSessionInfoResourceWithKeyRbCommand() { var command = new Command("session-info-resource-with-key"); command.Description = "Provides operations to call the sessionInfoResource method."; - var builder = new SessionInfoResourceWithKeyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.SessionInfoResourceWithKey.SessionInfoResourceWithKeyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -763,7 +766,7 @@ public Command BuildTableRowOperationResultWithKeyRbCommand() { var command = new Command("table-row-operation-result-with-key"); command.Description = "Provides operations to call the tableRowOperationResult method."; - var builder = new TableRowOperationResultWithKeyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.TableRowOperationResultWithKey.TableRowOperationResultWithKeyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -780,7 +783,7 @@ public Command BuildTablesNavCommand() { var command = new Command("tables"); command.Description = "Provides operations to manage the tables property of the microsoft.graph.workbook entity."; - var builder = new TablesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Tables.TablesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); @@ -809,7 +812,7 @@ public Command BuildWorksheetsNavCommand() { var command = new Command("worksheets"); command.Description = "Provides operations to manage the worksheets property of the microsoft.graph.workbook entity."; - var builder = new WorksheetsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.WorksheetsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); @@ -830,14 +833,14 @@ public Command BuildWorksheetsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook{?%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 WorkbookRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook{?%24expand,%24select}", rawUrl) @@ -869,11 +872,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); @@ -889,11 +892,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.Workbook body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Workbook body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Workbook body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Workbook body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -905,7 +908,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Workbook body, /// /// For files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. /// - public class WorkbookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -930,3 +934,4 @@ public class WorkbookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddPostRequestBody.cs index ea3bfae2b8..1a16f8489c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -21,7 +23,7 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -30,12 +32,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.cs index 9de371d9f3..02a1b4a48e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Add/AddRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. @@ -57,8 +60,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/add", rawUrl) @@ -101,11 +104,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Count/CountRequestBuilder.cs index 47ac5b41e7..8aa8c66f87 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/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.Drives.Item.Items.Item.Workbook.Worksheets.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..c83f1a9d43 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs index ef3a09b157..4a93561934 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -1,6 +1,38 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnWithColumn1; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowWithRow1; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Worksheet; 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,8 +51,198 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWith /// /// Provides operations to call the cell method. /// - public class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumn1RbCommand() + { + var command = new Command("column-with-column1"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnWithColumn1.ColumnWithColumn1RequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Format.FormatRequestBuilder(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; + } /// /// Gets the range object containing the single cell based on row and column numbers. The cell can be outside the bounds of its parent range, so long as it's stays within the worksheet grid. /// Find more info here @@ -85,14 +307,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRow1RbCommand() + { + var command = new Command("row-with-row1"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowWithRow1.RowWithRow1RequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})", 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 CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})", rawUrl) @@ -119,3 +666,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..d0a35ede49 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Clear/ClearRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnWithColumn1/ColumnWithColumn1RequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnWithColumn1/ColumnWithColumn1RequestBuilder.cs new file mode 100644 index 0000000000..3eeda0769a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnWithColumn1/ColumnWithColumn1RequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnWithColumn1 +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumn1RequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var column1Option = new Option("--column1", description: "Usage: column={column1}") { + }; + column1Option.IsRequired = true; + command.AddOption(column1Option); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var column1 = invocationContext.ParseResult.GetValueForOption(column1Option); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + if (column1 is not null) requestInfo.PathParameters.Add("column1", column1); + 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 ColumnWithColumn1RequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/column(column={column1})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumn1RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/column(column={column1})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..95ce4b1db6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..ade692c1dc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..5228c5eac4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..abe20ac927 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..ca6705310a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..1e4fc56882 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..1bfd4a0249 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..1dd5b28f8c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..577ab0a101 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Format/FormatRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..35b9fdfdd4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..e2c453500b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Insert/InsertRequestBuilder.cs @@ -0,0 +1,139 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..238da46adb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..68c315467b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..07a0acc91c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..8f15b23e36 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..fb8b8938bc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..10fc9b8bcc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Merge/MergeRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..87eb507903 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..f1c07e26f9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowWithRow1/RowWithRow1RequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowWithRow1/RowWithRow1RequestBuilder.cs new file mode 100644 index 0000000000..73f4684582 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowWithRow1/RowWithRow1RequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowWithRow1 +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRow1RequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var row1Option = new Option("--row1", description: "Usage: row={row1}") { + }; + row1Option.IsRequired = true; + command.AddOption(row1Option); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var row1 = invocationContext.ParseResult.GetValueForOption(row1Option); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + if (row1 is not null) requestInfo.PathParameters.Add("row1", row1); + 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 RowWithRow1RequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/row(row={row1})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRow1RequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/row(row={row1})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..aba0f5f0ab --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..9933fb808f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..111371c4de --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..94c4bfc65d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..2b02296e3b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Sort/SortRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..232279848e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,113 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..8127890988 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..0a90aad2de --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..1b802434ed --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..4cdc7f01e9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/CellWithRowWithColumn/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,165 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddPostRequestBody.cs index cfa629d1f1..3386e5b343 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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,10 +25,10 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The sourceData property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SourceData { get; set; } + public UntypedNode? SourceData { get; set; } #nullable restore #else - public Json SourceData { get; set; } + public UntypedNode SourceData { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -38,7 +39,7 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -47,12 +48,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -63,7 +64,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "seriesBy", n => { SeriesBy = n.GetStringValue(); } }, - { "sourceData", n => { SourceData = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "sourceData", n => { SourceData = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, { "type", n => { Type = n.GetStringValue(); } }, }; } @@ -75,9 +76,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("seriesBy", SeriesBy); - writer.WriteObjectValue("sourceData", SourceData); + writer.WriteObjectValue("sourceData", SourceData); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.cs index da782160cd..ac12ee51bb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Add/AddRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Creates a new chart. @@ -62,8 +65,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/add", rawUrl) @@ -107,11 +110,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs index 7d41d881ec..2ba0203cc3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Add; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item; @@ -6,6 +7,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName; 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 +26,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts /// /// Provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity. /// - public class ChartsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChartsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -34,7 +37,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookChartItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.WorkbookChartItemRequestBuilder(PathParameters); commands.Add(builder.BuildAxesNavCommand()); commands.Add(builder.BuildDataLabelsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -78,7 +81,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to call the count method."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -127,8 +130,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(WorkbookChart.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChart.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -158,7 +161,7 @@ public Command BuildItemAtWithIndexRbCommand() { var command = new Command("item-at-with-index"); command.Description = "Provides operations to call the itemAt method."; - var builder = new ItemAtWithIndexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ItemAtWithIndexRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAxesNavCommand()); @@ -193,7 +196,7 @@ public Command BuildItemWithNameRbCommand() { var command = new Command("item-with-name"); command.Description = "Provides operations to call the item method."; - var builder = new ItemWithNameRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ItemWithNameRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAxesNavCommand()); @@ -221,13 +224,13 @@ public Command BuildItemWithNameRbCommand() return command; } /// - /// Returns collection of charts that are part of the worksheet. Read-only. + /// The list of charts that are part of the worksheet. Read-only. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Returns collection of charts that are part of the worksheet. Read-only."; + command.Description = "The list of charts that are part of the worksheet. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -335,31 +338,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ChartsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts{?%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 ChartsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Returns collection of charts that are part of the worksheet. Read-only. + /// The list of charts that are part of the worksheet. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -375,11 +378,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(WorkbookChart body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChart body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookChart body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChart body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -389,9 +392,10 @@ public RequestInformation ToPostRequestInformation(WorkbookChart body, Action - /// Returns collection of charts that are part of the worksheet. Read-only. + /// The list of charts that are part of the worksheet. Read-only. /// - public class ChartsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChartsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -455,3 +459,4 @@ public class ChartsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.cs index 6cbf797a8e..759af87f29 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Count { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountGetResponse : IAdditionalDataHolder, IParsable + public partial class CountGetResponse : 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. @@ -15,7 +17,7 @@ public class CountGetResponse : IAdditionalDataHolder, IParsable /// The value property public int? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountGetResponse() { @@ -24,12 +26,12 @@ public CountGetResponse() /// /// 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 CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Count.CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Count.CountGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.cs index 0705eb0c98..8bfb83e1d5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Count /// /// Provides operations to call the count method. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function count @@ -71,14 +74,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/count()", 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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/count()", rawUrl) @@ -105,3 +108,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. /// - public class AxesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AxesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the categoryAxis property of the microsoft.graph.workbookChartAxes entity. @@ -32,7 +35,7 @@ public Command BuildCategoryAxisNavCommand() { var command = new Command("category-axis"); command.Description = "Provides operations to manage the categoryAxis property of the microsoft.graph.workbookChartAxes entity."; - var builder = new CategoryAxisRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.CategoryAxisRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -220,8 +223,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(WorkbookChartAxes.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxes.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -252,7 +255,7 @@ public Command BuildSeriesAxisNavCommand() { var command = new Command("series-axis"); command.Description = "Provides operations to manage the seriesAxis property of the microsoft.graph.workbookChartAxes entity."; - var builder = new SeriesAxisRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.SeriesAxisRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -280,7 +283,7 @@ public Command BuildValueAxisNavCommand() { var command = new Command("value-axis"); command.Description = "Provides operations to manage the valueAxis property of the microsoft.graph.workbookChartAxes entity."; - var builder = new ValueAxisRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.ValueAxisRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -301,14 +304,14 @@ public Command BuildValueAxisNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AxesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes{?%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 AxesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes{?%24expand,%24select}", rawUrl) @@ -340,11 +343,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); @@ -360,11 +363,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(WorkbookChartAxes body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxes body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxes body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxes body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -376,7 +379,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxes body, Acti /// /// Represents chart axes. Read-only. /// - public class AxesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AxesRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -401,3 +405,4 @@ public class AxesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.cs index f1de2e3761..0407c49bbd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/CategoryAxisRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Format; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MajorGridlines; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MinorGridlines; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Title; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the categoryAxis property of the microsoft.graph.workbookChartAxes entity. /// - public class CategoryAxisRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoryAxisRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property categoryAxis for drives @@ -86,7 +89,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -182,7 +185,7 @@ public Command BuildMajorGridlinesNavCommand() { var command = new Command("major-gridlines"); command.Description = "Provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity."; - var builder = new MajorGridlinesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MajorGridlines.MajorGridlinesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -207,7 +210,7 @@ public Command BuildMinorGridlinesNavCommand() { var command = new Command("minor-gridlines"); command.Description = "Provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity."; - var builder = new MinorGridlinesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MinorGridlines.MinorGridlinesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -269,8 +272,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(WorkbookChartAxis.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxis.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -301,7 +304,7 @@ public Command BuildTitleNavCommand() { var command = new Command("title"); command.Description = "Provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity."; - var builder = new TitleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Title.TitleRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -319,14 +322,14 @@ public Command BuildTitleNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CategoryAxisRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis{?%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 CategoryAxisRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis{?%24expand,%24select}", rawUrl) @@ -358,11 +361,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); @@ -378,11 +381,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(WorkbookChartAxis body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxis body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxis body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxis body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -394,7 +397,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxis body, Acti /// /// Represents the category axis in a chart. Read-only. /// - public class CategoryAxisRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoryAxisRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -419,3 +423,4 @@ public class CategoryAxisRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.cs index 9105404545..3c3e4a2a04 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Font/FontRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. /// - public class FontRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property font for drives @@ -189,8 +192,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(WorkbookChartFont.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFont.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FontRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/font{?%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 FontRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/font{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartFont body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti /// /// Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. /// - public class FontRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FontRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.cs index b46ace4d30..2f9b5e17ff 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/FormatRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Format.Font; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Format.Line; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -84,7 +87,7 @@ public Command BuildFontNavCommand() { var command = new Command("font"); command.Description = "Provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity."; - var builder = new FontRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Format.Font.FontRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -173,7 +176,7 @@ public Command BuildLineNavCommand() { var command = new Command("line"); command.Description = "Provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity."; - var builder = new LineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Format.Line.LineRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -235,8 +238,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(WorkbookChartAxisFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxisFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -260,14 +263,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format{?%24expand,%24select}", rawUrl) @@ -299,11 +302,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); @@ -319,11 +322,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(WorkbookChartAxisFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxisFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -335,7 +338,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisFormat body /// /// Represents the formatting of a chart object, which includes line and font formatting. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -360,3 +364,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.cs index 036b2cc7cc..86f8f43cf1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Format/Line/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the line format of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Format.Line.Clear; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. /// - public class LineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -30,7 +33,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Format.Line.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,8 +210,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(WorkbookChartLineFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLineFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 LineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line{?%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 LineRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body /// /// Represents chart line formatting. Read-only. /// - public class LineRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class LineRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.cs index 5d9769eb13..996c5023d0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/FormatRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MajorGridlines.Format.Line; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -153,7 +156,7 @@ public Command BuildLineNavCommand() { var command = new Command("line"); command.Description = "Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity."; - var builder = new LineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MajorGridlines.Format.Line.LineRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -215,8 +218,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(WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat /// /// Represents the formatting of chart gridlines. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 1a87e0f575..8804bfc3a0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the line format of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MajorGridlines.Format.Line.Clear; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. /// - public class LineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -30,7 +33,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MajorGridlines.Format.Line.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,8 +210,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(WorkbookChartLineFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLineFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 LineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line{?%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 LineRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body /// /// Represents chart line formatting. Read-only. /// - public class LineRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class LineRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs index bdec78b1ca..3720c9f7d3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MajorGridlines.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. /// - public class MajorGridlinesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MajorGridlinesRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property majorGridlines for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MajorGridlines.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -215,8 +218,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(WorkbookChartGridlines.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlines.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 MajorGridlinesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines{?%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 MajorGridlinesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlines body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, /// /// Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. /// - public class MajorGridlinesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MajorGridlinesRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class MajorGridlinesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.cs index 29422c0efd..a3b91fcf06 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/FormatRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MinorGridlines.Format.Line; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -153,7 +156,7 @@ public Command BuildLineNavCommand() { var command = new Command("line"); command.Description = "Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity."; - var builder = new LineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MinorGridlines.Format.Line.LineRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -215,8 +218,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(WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat /// /// Represents the formatting of chart gridlines. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index c6d3995aec..2ee4e9f118 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the line format of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MinorGridlines.Format.Line.Clear; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. /// - public class LineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -30,7 +33,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MinorGridlines.Format.Line.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,8 +210,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(WorkbookChartLineFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLineFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 LineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line{?%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 LineRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body /// /// Represents chart line formatting. Read-only. /// - public class LineRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class LineRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs index 52c1db18e1..49571d8b0b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MinorGridlines.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. /// - public class MinorGridlinesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MinorGridlinesRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property minorGridlines for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.MinorGridlines.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -215,8 +218,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(WorkbookChartGridlines.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlines.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 MinorGridlinesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines{?%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 MinorGridlinesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlines body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, /// /// Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. /// - public class MinorGridlinesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MinorGridlinesRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class MinorGridlinesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.cs index 413dbe66ac..16fd9c9038 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/Font/FontRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. /// - public class FontRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property font for drives @@ -189,8 +192,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(WorkbookChartFont.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFont.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FontRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format/font{?%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 FontRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format/font{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartFont body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti /// /// Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. /// - public class FontRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FontRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.cs index ed1849fc9e..2b333d5d24 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/Format/FormatRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Title.Format.Font; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -83,7 +86,7 @@ public Command BuildFontNavCommand() { var command = new Command("font"); command.Description = "Provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity."; - var builder = new FontRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Title.Format.Font.FontRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -209,8 +212,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(WorkbookChartAxisTitleFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxisTitleFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(WorkbookChartAxisTitleFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitleFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitleFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitleFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitleFormat /// /// Represents the formatting of chart axis title. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs index 15002795f5..25bebc81dd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/CategoryAxis/Title/TitleRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Title.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. /// - public class TitleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property title for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.CategoryAxis.Title.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -215,8 +218,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(WorkbookChartAxisTitle.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxisTitle.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 TitleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title{?%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 TitleRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartAxisTitle body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitle body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitle body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitle body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitle body, /// /// Represents the axis title. Read-only. /// - public class TitleRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class TitleRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.cs index 0f576488af..e64252dc06 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Font/FontRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. /// - public class FontRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property font for drives @@ -189,8 +192,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(WorkbookChartFont.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFont.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FontRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/font{?%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 FontRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/font{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartFont body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti /// /// Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. /// - public class FontRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FontRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.cs index 7b4bce545a..0784b4311d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/FormatRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Format.Font; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Format.Line; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -84,7 +87,7 @@ public Command BuildFontNavCommand() { var command = new Command("font"); command.Description = "Provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity."; - var builder = new FontRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Format.Font.FontRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -173,7 +176,7 @@ public Command BuildLineNavCommand() { var command = new Command("line"); command.Description = "Provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity."; - var builder = new LineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Format.Line.LineRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -235,8 +238,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(WorkbookChartAxisFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxisFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -260,14 +263,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format{?%24expand,%24select}", rawUrl) @@ -299,11 +302,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); @@ -319,11 +322,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(WorkbookChartAxisFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxisFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -335,7 +338,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisFormat body /// /// Represents the formatting of a chart object, which includes line and font formatting. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -360,3 +364,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.cs index a55b8718ba..fa300a1d40 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Format/Line/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the line format of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Format.Line.Clear; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. /// - public class LineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -30,7 +33,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Format.Line.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,8 +210,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(WorkbookChartLineFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLineFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 LineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line{?%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 LineRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body /// /// Represents chart line formatting. Read-only. /// - public class LineRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class LineRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.cs index 1233568265..1594ba91e2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/FormatRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MajorGridlines.Format.Line; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -153,7 +156,7 @@ public Command BuildLineNavCommand() { var command = new Command("line"); command.Description = "Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity."; - var builder = new LineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MajorGridlines.Format.Line.LineRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -215,8 +218,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(WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat /// /// Represents the formatting of chart gridlines. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index 31f1088bc7..406c707dbb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the line format of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MajorGridlines.Format.Line.Clear; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. /// - public class LineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -30,7 +33,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MajorGridlines.Format.Line.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,8 +210,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(WorkbookChartLineFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLineFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 LineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line{?%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 LineRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body /// /// Represents chart line formatting. Read-only. /// - public class LineRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class LineRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs index e97bd874ab..307032be66 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MajorGridlines.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. /// - public class MajorGridlinesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MajorGridlinesRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property majorGridlines for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MajorGridlines.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -215,8 +218,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(WorkbookChartGridlines.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlines.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 MajorGridlinesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines{?%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 MajorGridlinesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlines body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, /// /// Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. /// - public class MajorGridlinesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MajorGridlinesRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class MajorGridlinesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.cs index 7027521a77..10f2fd9123 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/FormatRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MinorGridlines.Format.Line; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -153,7 +156,7 @@ public Command BuildLineNavCommand() { var command = new Command("line"); command.Description = "Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity."; - var builder = new LineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MinorGridlines.Format.Line.LineRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -215,8 +218,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(WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat /// /// Represents the formatting of chart gridlines. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index b589057917..5f0723f8ff 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the line format of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MinorGridlines.Format.Line.Clear; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. /// - public class LineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -30,7 +33,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MinorGridlines.Format.Line.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,8 +210,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(WorkbookChartLineFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLineFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 LineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line{?%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 LineRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body /// /// Represents chart line formatting. Read-only. /// - public class LineRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class LineRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs index d538c8a40b..5711616382 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MinorGridlines.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. /// - public class MinorGridlinesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MinorGridlinesRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property minorGridlines for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MinorGridlines.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -215,8 +218,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(WorkbookChartGridlines.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlines.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 MinorGridlinesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines{?%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 MinorGridlinesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlines body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, /// /// Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. /// - public class MinorGridlinesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MinorGridlinesRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class MinorGridlinesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.cs index 1d92c30204..31a5d85a27 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/SeriesAxisRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Format; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MajorGridlines; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MinorGridlines; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Title; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the seriesAxis property of the microsoft.graph.workbookChartAxes entity. /// - public class SeriesAxisRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SeriesAxisRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property seriesAxis for drives @@ -86,7 +89,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -182,7 +185,7 @@ public Command BuildMajorGridlinesNavCommand() { var command = new Command("major-gridlines"); command.Description = "Provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity."; - var builder = new MajorGridlinesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MajorGridlines.MajorGridlinesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -207,7 +210,7 @@ public Command BuildMinorGridlinesNavCommand() { var command = new Command("minor-gridlines"); command.Description = "Provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity."; - var builder = new MinorGridlinesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.MinorGridlines.MinorGridlinesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -269,8 +272,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(WorkbookChartAxis.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxis.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -301,7 +304,7 @@ public Command BuildTitleNavCommand() { var command = new Command("title"); command.Description = "Provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity."; - var builder = new TitleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Title.TitleRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -319,14 +322,14 @@ public Command BuildTitleNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SeriesAxisRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis{?%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 SeriesAxisRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis{?%24expand,%24select}", rawUrl) @@ -358,11 +361,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); @@ -378,11 +381,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(WorkbookChartAxis body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxis body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxis body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxis body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -394,7 +397,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxis body, Acti /// /// Represents the series axis of a 3-dimensional chart. Read-only. /// - public class SeriesAxisRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SeriesAxisRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -419,3 +423,4 @@ public class SeriesAxisRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.cs index 5aa0513a4d..cfb24a0cad 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/Font/FontRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. /// - public class FontRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property font for drives @@ -189,8 +192,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(WorkbookChartFont.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFont.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FontRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format/font{?%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 FontRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format/font{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartFont body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti /// /// Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. /// - public class FontRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FontRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.cs index 43872b7d8e..80f96b1e07 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/Format/FormatRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Title.Format.Font; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -83,7 +86,7 @@ public Command BuildFontNavCommand() { var command = new Command("font"); command.Description = "Provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity."; - var builder = new FontRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Title.Format.Font.FontRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -209,8 +212,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(WorkbookChartAxisTitleFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxisTitleFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(WorkbookChartAxisTitleFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitleFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitleFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitleFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitleFormat /// /// Represents the formatting of chart axis title. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs index 04669acf43..447d4a6cd9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/SeriesAxis/Title/TitleRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Title.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. /// - public class TitleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property title for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.SeriesAxis.Title.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -215,8 +218,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(WorkbookChartAxisTitle.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxisTitle.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 TitleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title{?%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 TitleRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartAxisTitle body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitle body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitle body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitle body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitle body, /// /// Represents the axis title. Read-only. /// - public class TitleRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class TitleRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.cs index 989f970d71..6b35cd9806 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Font/FontRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. /// - public class FontRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property font for drives @@ -189,8 +192,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(WorkbookChartFont.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFont.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FontRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/font{?%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 FontRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/font{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartFont body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti /// /// Represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. /// - public class FontRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FontRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.cs index 2f13e1984c..dd25e01ae2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/FormatRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Format.Font; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Format.Line; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -84,7 +87,7 @@ public Command BuildFontNavCommand() { var command = new Command("font"); command.Description = "Provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity."; - var builder = new FontRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Format.Font.FontRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -173,7 +176,7 @@ public Command BuildLineNavCommand() { var command = new Command("line"); command.Description = "Provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity."; - var builder = new LineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Format.Line.LineRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -235,8 +238,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(WorkbookChartAxisFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxisFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -260,14 +263,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format{?%24expand,%24select}", rawUrl) @@ -299,11 +302,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); @@ -319,11 +322,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(WorkbookChartAxisFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxisFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -335,7 +338,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisFormat body /// /// Represents the formatting of a chart object, which includes line and font formatting. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -360,3 +364,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.cs index fdf251c00d..155dc9dc28 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Format/Line/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the line format of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Format.Line.Clear; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. /// - public class LineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -30,7 +33,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Format.Line.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,8 +210,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(WorkbookChartLineFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLineFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 LineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line{?%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 LineRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body /// /// Represents chart line formatting. Read-only. /// - public class LineRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class LineRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.cs index 310ffeb35b..2f478bbe90 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/FormatRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MajorGridlines.Format.Line; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -153,7 +156,7 @@ public Command BuildLineNavCommand() { var command = new Command("line"); command.Description = "Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity."; - var builder = new LineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MajorGridlines.Format.Line.LineRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -215,8 +218,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(WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat /// /// Represents the formatting of chart gridlines. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index c232c41bc2..abf633c3e8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/Format/Line/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the line format of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MajorGridlines.Format.Line.Clear; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. /// - public class LineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -30,7 +33,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MajorGridlines.Format.Line.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,8 +210,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(WorkbookChartLineFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLineFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 LineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line{?%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 LineRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body /// /// Represents chart line formatting. Read-only. /// - public class LineRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class LineRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs index 9e1907b149..6fa0bbc6ac 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MajorGridlines/MajorGridlinesRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MajorGridlines.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. /// - public class MajorGridlinesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MajorGridlinesRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property majorGridlines for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MajorGridlines.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -215,8 +218,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(WorkbookChartGridlines.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlines.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 MajorGridlinesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines{?%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 MajorGridlinesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlines body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, /// /// Returns a gridlines object that represents the major gridlines for the specified axis. Read-only. /// - public class MajorGridlinesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MajorGridlinesRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class MajorGridlinesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.cs index eb4823f236..afd2013948 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/FormatRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MinorGridlines.Format.Line; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -153,7 +156,7 @@ public Command BuildLineNavCommand() { var command = new Command("line"); command.Description = "Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity."; - var builder = new LineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MinorGridlines.Format.Line.LineRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -215,8 +218,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(WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlinesFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlinesFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlinesFormat /// /// Represents the formatting of chart gridlines. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs index a9c791300c..4253a64134 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/Format/Line/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the line format of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MinorGridlines.Format.Line.Clear; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. /// - public class LineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -30,7 +33,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MinorGridlines.Format.Line.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,8 +210,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(WorkbookChartLineFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLineFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 LineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line{?%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 LineRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body /// /// Represents chart line formatting. Read-only. /// - public class LineRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class LineRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs index 776827aafb..ecb2bd1321 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/MinorGridlines/MinorGridlinesRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MinorGridlines.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. /// - public class MinorGridlinesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MinorGridlinesRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property minorGridlines for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MinorGridlines.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -215,8 +218,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(WorkbookChartGridlines.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartGridlines.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 MinorGridlinesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines{?%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 MinorGridlinesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartGridlines body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartGridlines body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartGridlines body, /// /// Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. /// - public class MinorGridlinesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MinorGridlinesRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class MinorGridlinesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.cs index 4cc16cb74e..551b2f5e9b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/Font/FontRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. /// - public class FontRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property font for drives @@ -189,8 +192,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(WorkbookChartFont.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFont.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FontRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format/font{?%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 FontRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format/font{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartFont body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti /// /// Represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. /// - public class FontRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FontRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.cs index e9dcd4fe03..a397d0ced8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/Format/FormatRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Title.Format.Font; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -83,7 +86,7 @@ public Command BuildFontNavCommand() { var command = new Command("font"); command.Description = "Provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity."; - var builder = new FontRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Title.Format.Font.FontRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -209,8 +212,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(WorkbookChartAxisTitleFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxisTitleFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(WorkbookChartAxisTitleFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitleFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitleFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitleFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitleFormat /// /// Represents the formatting of chart axis title. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs index c8674038c3..356bb5f3e9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/Title/TitleRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Title.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. /// - public class TitleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property title for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Title.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -215,8 +218,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(WorkbookChartAxisTitle.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxisTitle.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +243,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 TitleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title{?%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 TitleRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title{?%24expand,%24select}", rawUrl) @@ -279,11 +282,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); @@ -299,11 +302,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(WorkbookChartAxisTitle body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitle body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitle body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxisTitle body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxisTitle body, /// /// Represents the axis title. Read-only. /// - public class TitleRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -340,3 +344,4 @@ public class TitleRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs index 66d8b55c22..7cd679be45 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Axes/ValueAxis/ValueAxisRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Format; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MajorGridlines; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MinorGridlines; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Title; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axe /// /// Provides operations to manage the valueAxis property of the microsoft.graph.workbookChartAxes entity. /// - public class ValueAxisRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValueAxisRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property valueAxis for drives @@ -86,7 +89,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -182,7 +185,7 @@ public Command BuildMajorGridlinesNavCommand() { var command = new Command("major-gridlines"); command.Description = "Provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity."; - var builder = new MajorGridlinesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MajorGridlines.MajorGridlinesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -207,7 +210,7 @@ public Command BuildMinorGridlinesNavCommand() { var command = new Command("minor-gridlines"); command.Description = "Provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity."; - var builder = new MinorGridlinesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.MinorGridlines.MinorGridlinesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -269,8 +272,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(WorkbookChartAxis.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxis.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -301,7 +304,7 @@ public Command BuildTitleNavCommand() { var command = new Command("title"); command.Description = "Provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity."; - var builder = new TitleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.ValueAxis.Title.TitleRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -319,14 +322,14 @@ public Command BuildTitleNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ValueAxisRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis{?%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 ValueAxisRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis{?%24expand,%24select}", rawUrl) @@ -358,11 +361,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); @@ -378,11 +381,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(WorkbookChartAxis body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxis body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxis body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxis body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -394,7 +397,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxis body, Acti /// /// Represents the value axis in an axis. Read-only. /// - public class ValueAxisRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValueAxisRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -419,3 +423,4 @@ public class ValueAxisRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs index 6db369a5e7..abe3fcb98f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/DataLabelsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Dat /// /// Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. /// - public class DataLabelsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataLabelsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property dataLabels for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartDataLabels entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -216,8 +219,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(WorkbookChartDataLabels.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartDataLabels.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -241,14 +244,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 DataLabelsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels{?%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 DataLabelsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels{?%24expand,%24select}", rawUrl) @@ -280,11 +283,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); @@ -300,11 +303,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(WorkbookChartDataLabels body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartDataLabels body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartDataLabels body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartDataLabels body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -316,7 +319,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartDataLabels body /// /// Represents the data labels on the chart. Read-only. /// - public class DataLabelsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataLabelsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -341,3 +345,4 @@ public class DataLabelsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.cs index a68939aecb..b340e988b4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Dat /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the fill color of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill.Clear; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill.SetSolidColor; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Dat /// /// Provides operations to manage the fill property of the microsoft.graph.workbookChartDataLabelFormat entity. /// - public class FillRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -31,7 +34,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -208,8 +211,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(WorkbookChartFill.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFill.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,7 +243,7 @@ public Command BuildSetSolidColorNavCommand() { var command = new Command("set-solid-color"); command.Description = "Provides operations to call the setSolidColor method."; - var builder = new SetSolidColorRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill.SetSolidColor.SetSolidColorRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -250,14 +253,14 @@ public Command BuildSetSolidColorNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public FillRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill{?%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 FillRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill{?%24expand,%24select}", rawUrl) @@ -289,11 +292,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); @@ -309,11 +312,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(WorkbookChartFill body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -325,7 +328,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti /// /// Represents the fill format of the current chart data label. Read-only. /// - public class FillRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +354,4 @@ public class FillRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index 50f71a1dc8..cc29eb27ea 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill.SetSolidColor { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetSolidColorPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable public string Color { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetSolidColorPostRequestBody() { @@ -30,12 +32,12 @@ public SetSolidColorPostRequestBody() /// /// 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 SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetSolidColorPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index 4993fc8e9d..4b3db80b2e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Dat /// /// Provides operations to call the setSolidColor method. /// - public class SetSolidColorRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetSolidColorRequestBuilder : BaseCliRequestBuilder { /// /// Sets the fill formatting of a chart element to a uniform color. @@ -58,8 +61,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(SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 SetSolidColorRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/setSolidColor", 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 SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/setSolidColor", rawUrl) @@ -102,11 +105,11 @@ public SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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(SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.cs index 1a59005c00..95a392b1c3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/Font/FontRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Dat /// /// Provides operations to manage the font property of the microsoft.graph.workbookChartDataLabelFormat entity. /// - public class FontRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property font for drives @@ -189,8 +192,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(WorkbookChartFont.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFont.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FontRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/font{?%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 FontRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/font{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartFont body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti /// /// Represents the font attributes (font name, font size, color, etc.) for a chart data label. Read-only. /// - public class FontRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FontRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.cs index 551dd3dff0..1f740a3985 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/DataLabels/Format/FormatRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Font; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Dat /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartDataLabels entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -84,7 +87,7 @@ public Command BuildFillNavCommand() { var command = new Command("fill"); command.Description = "Provides operations to manage the fill property of the microsoft.graph.workbookChartDataLabelFormat entity."; - var builder = new FillRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Fill.FillRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -110,7 +113,7 @@ public Command BuildFontNavCommand() { var command = new Command("font"); command.Description = "Provides operations to manage the font property of the microsoft.graph.workbookChartDataLabelFormat entity."; - var builder = new FontRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.Format.Font.FontRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -236,8 +239,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(WorkbookChartDataLabelFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartDataLabelFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -261,14 +264,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format{?%24expand,%24select}", rawUrl) @@ -300,11 +303,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); @@ -320,11 +323,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(WorkbookChartDataLabelFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartDataLabelFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartDataLabelFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartDataLabelFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -336,7 +339,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartDataLabelFormat /// /// Represents the format of chart data labels, which includes fill and font formatting. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -361,3 +365,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.cs index 62e714ca1d..bdec20770f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.For /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the fill color of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill.Clear; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill.SetSolidColor; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.For /// /// Provides operations to manage the fill property of the microsoft.graph.workbookChartAreaFormat entity. /// - public class FillRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -31,7 +34,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -208,8 +211,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(WorkbookChartFill.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFill.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,7 +243,7 @@ public Command BuildSetSolidColorNavCommand() { var command = new Command("set-solid-color"); command.Description = "Provides operations to call the setSolidColor method."; - var builder = new SetSolidColorRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill.SetSolidColor.SetSolidColorRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -250,14 +253,14 @@ public Command BuildSetSolidColorNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public FillRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill{?%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 FillRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill{?%24expand,%24select}", rawUrl) @@ -289,11 +292,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); @@ -309,11 +312,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(WorkbookChartFill body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -325,7 +328,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti /// /// Represents the fill format of an object, which includes background formatting information. Read-only. /// - public class FillRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +354,4 @@ public class FillRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index b743ee7e4a..f8db89940e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill.SetSolidColor { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetSolidColorPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable public string Color { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetSolidColorPostRequestBody() { @@ -30,12 +32,12 @@ public SetSolidColorPostRequestBody() /// /// 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 SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetSolidColorPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index 164877ddfe..bdbefdae15 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.For /// /// Provides operations to call the setSolidColor method. /// - public class SetSolidColorRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetSolidColorRequestBuilder : BaseCliRequestBuilder { /// /// Sets the fill formatting of a chart element to a uniform color. @@ -58,8 +61,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(SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 SetSolidColorRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/setSolidColor", 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 SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/setSolidColor", rawUrl) @@ -102,11 +105,11 @@ public SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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(SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.cs index 5815eb2245..b34e3c969a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/Font/FontRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.For /// /// Provides operations to manage the font property of the microsoft.graph.workbookChartAreaFormat entity. /// - public class FontRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property font for drives @@ -189,8 +192,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(WorkbookChartFont.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFont.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FontRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/font{?%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 FontRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/font{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartFont body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti /// /// Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. /// - public class FontRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FontRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.cs index 1aa36a9fb7..4dccdf1047 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Format/FormatRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Font; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.For /// /// Provides operations to manage the format property of the microsoft.graph.workbookChart entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -84,7 +87,7 @@ public Command BuildFillNavCommand() { var command = new Command("fill"); command.Description = "Provides operations to manage the fill property of the microsoft.graph.workbookChartAreaFormat entity."; - var builder = new FillRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Fill.FillRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -110,7 +113,7 @@ public Command BuildFontNavCommand() { var command = new Command("font"); command.Description = "Provides operations to manage the font property of the microsoft.graph.workbookChartAreaFormat entity."; - var builder = new FontRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.Font.FontRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -236,8 +239,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(WorkbookChartAreaFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAreaFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -261,14 +264,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format{?%24expand,%24select}", rawUrl) @@ -300,11 +303,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); @@ -320,11 +323,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(WorkbookChartAreaFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAreaFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAreaFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAreaFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -336,7 +339,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAreaFormat body /// /// Encapsulates the format properties for the chart area. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -361,3 +365,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.cs index bd185a201a..017bc99324 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Image { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageGetResponse : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageGetResponse() { @@ -30,12 +32,12 @@ public ImageGetResponse() /// /// 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 ImageGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Image.ImageGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Image.ImageGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.cs index 9db760a4e3..868cb52a17 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Image/ImageRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ima /// /// Provides operations to call the image method. /// - public class ImageRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -77,14 +80,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 ImageRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image()", 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 ImageRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image()", rawUrl) @@ -111,3 +114,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidth { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageWithWidthGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageWithWidthGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageWithWidthGetResponse : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageWithWidthGetResponse() { @@ -30,12 +32,12 @@ public ImageWithWidthGetResponse() /// /// 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 ImageWithWidthGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidth.ImageWithWidthGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageWithWidthGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidth.ImageWithWidthGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.cs index e202e2fe40..2ee70eecb7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidth/ImageWithWidthRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ima /// /// Provides operations to call the image method. /// - public class ImageWithWidthRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageWithWidthRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -83,14 +86,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 ImageWithWidthRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width})", 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 ImageWithWidthRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width})", rawUrl) @@ -117,3 +120,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeight { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageWithWidthWithHeightGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageWithWidthWithHeightGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageWithWidthWithHeightGetResponse : IAdditionalDataHolder, IParsa public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageWithWidthWithHeightGetResponse() { @@ -30,12 +32,12 @@ public ImageWithWidthWithHeightGetResponse() /// /// 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 ImageWithWidthWithHeightGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeight.ImageWithWidthWithHeightGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageWithWidthWithHeightGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeight.ImageWithWidthWithHeightGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs index c48bdb123b..8dc8ad72ac 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ima /// /// Provides operations to call the image method. /// - public class ImageWithWidthWithHeightRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageWithWidthWithHeightRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -89,14 +92,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 ImageWithWidthWithHeightRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width},height={height})", 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 ImageWithWidthWithHeightRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width},height={height})", rawUrl) @@ -123,3 +126,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeightWithFittingMode { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageWithWidthWithHeightWithFittingModeGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageWithWidthWithHeightWithFittingModeGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageWithWidthWithHeightWithFittingModeGetResponse : IAdditionalDat public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageWithWidthWithHeightWithFittingModeGetResponse() { @@ -30,12 +32,12 @@ public ImageWithWidthWithHeightWithFittingModeGetResponse() /// /// 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 ImageWithWidthWithHeightWithFittingModeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeightWithFittingMode.ImageWithWidthWithHeightWithFittingModeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageWithWidthWithHeightWithFittingModeGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeightWithFittingMode.ImageWithWidthWithHeightWithFittingModeGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs index 3c3b6f699b..4a3216d65e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ima /// /// Provides operations to call the image method. /// - public class ImageWithWidthWithHeightWithFittingModeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageWithWidthWithHeightWithFittingModeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -95,14 +98,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 ImageWithWidthWithHeightWithFittingModeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width},height={height},fittingMode='{fittingMode}')", 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 ImageWithWidthWithHeightWithFittingModeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width},height={height},fittingMode='{fittingMode}')", rawUrl) @@ -129,3 +132,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Leg /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the fill color of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill.Clear; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill.SetSolidColor; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Leg /// /// Provides operations to manage the fill property of the microsoft.graph.workbookChartLegendFormat entity. /// - public class FillRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -31,7 +34,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -208,8 +211,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(WorkbookChartFill.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFill.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,7 +243,7 @@ public Command BuildSetSolidColorNavCommand() { var command = new Command("set-solid-color"); command.Description = "Provides operations to call the setSolidColor method."; - var builder = new SetSolidColorRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill.SetSolidColor.SetSolidColorRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -250,14 +253,14 @@ public Command BuildSetSolidColorNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public FillRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill{?%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 FillRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill{?%24expand,%24select}", rawUrl) @@ -289,11 +292,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); @@ -309,11 +312,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(WorkbookChartFill body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -325,7 +328,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti /// /// Represents the fill format of an object, which includes background formating information. Read-only. /// - public class FillRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +354,4 @@ public class FillRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index 6b7905205e..3a77c256f0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill.SetSolidColor { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetSolidColorPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable public string Color { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetSolidColorPostRequestBody() { @@ -30,12 +32,12 @@ public SetSolidColorPostRequestBody() /// /// 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 SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetSolidColorPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index d063213bde..a5dfdf5ab3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Leg /// /// Provides operations to call the setSolidColor method. /// - public class SetSolidColorRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetSolidColorRequestBuilder : BaseCliRequestBuilder { /// /// Sets the fill formatting of a chart element to a uniform color. @@ -58,8 +61,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(SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 SetSolidColorRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/setSolidColor", 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 SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/setSolidColor", rawUrl) @@ -102,11 +105,11 @@ public SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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(SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.cs index 00c32b1e2e..bee327fcb5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/Font/FontRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Leg /// /// Provides operations to manage the font property of the microsoft.graph.workbookChartLegendFormat entity. /// - public class FontRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property font for drives @@ -189,8 +192,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(WorkbookChartFont.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFont.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FontRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/font{?%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 FontRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/font{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartFont body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti /// /// Represents the font attributes such as font name, font size, color, etc. of a chart legend. Read-only. /// - public class FontRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FontRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.cs index ce80dcd932..59415f5b80 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/Format/FormatRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Font; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Leg /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartLegend entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -84,7 +87,7 @@ public Command BuildFillNavCommand() { var command = new Command("fill"); command.Description = "Provides operations to manage the fill property of the microsoft.graph.workbookChartLegendFormat entity."; - var builder = new FillRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Fill.FillRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -110,7 +113,7 @@ public Command BuildFontNavCommand() { var command = new Command("font"); command.Description = "Provides operations to manage the font property of the microsoft.graph.workbookChartLegendFormat entity."; - var builder = new FontRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.Font.FontRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -236,8 +239,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(WorkbookChartLegendFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLegendFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -261,14 +264,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format{?%24expand,%24select}", rawUrl) @@ -300,11 +303,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); @@ -320,11 +323,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(WorkbookChartLegendFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLegendFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLegendFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLegendFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -336,7 +339,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLegendFormat bo /// /// Represents the formatting of a chart legend, which includes fill and font formatting. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -361,3 +365,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs index d95005b021..2165adbd23 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Legend/LegendRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Leg /// /// Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. /// - public class LegendRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LegendRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property legend for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartLegend entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -216,8 +219,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(WorkbookChartLegend.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLegend.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -241,14 +244,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 LegendRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend{?%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 LegendRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend{?%24expand,%24select}", rawUrl) @@ -280,11 +283,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); @@ -300,11 +303,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(WorkbookChartLegend body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLegend body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLegend body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLegend body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -316,7 +319,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLegend body, Ac /// /// Represents the legend for the chart. Read-only. /// - public class LegendRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LegendRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -341,3 +345,4 @@ public class LegendRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.cs index 7446822bc8..9459c308ec 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Count { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountGetResponse : IAdditionalDataHolder, IParsable + public partial class CountGetResponse : 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. @@ -15,7 +17,7 @@ public class CountGetResponse : IAdditionalDataHolder, IParsable /// The value property public int? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountGetResponse() { @@ -24,12 +26,12 @@ public CountGetResponse() /// /// 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 CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Count.CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Count.CountGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.cs index 836edf2672..f459ed72cf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to call the count method. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function count @@ -77,14 +80,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/count()", 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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/count()", rawUrl) @@ -111,3 +114,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the fill color of a chart element. @@ -74,14 +77,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/clear", rawUrl) @@ -108,3 +111,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill.Clear; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill.SetSolidColor; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the fill property of the microsoft.graph.workbookChartSeriesFormat entity. /// - public class FillRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -31,7 +34,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -225,8 +228,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(WorkbookChartFill.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFill.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -258,7 +261,7 @@ public Command BuildSetSolidColorNavCommand() { var command = new Command("set-solid-color"); command.Description = "Provides operations to call the setSolidColor method."; - var builder = new SetSolidColorRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill.SetSolidColor.SetSolidColorRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -268,14 +271,14 @@ public Command BuildSetSolidColorNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public FillRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill{?%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 FillRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill{?%24expand,%24select}", rawUrl) @@ -307,11 +310,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); @@ -327,11 +330,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(WorkbookChartFill body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -343,7 +346,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti /// /// Represents the fill format of a chart series, which includes background formatting information. Read-only. /// - public class FillRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -368,3 +372,4 @@ public class FillRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index 2913a1427f..ab7378dfb0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill.SetSolidColor { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetSolidColorPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable public string Color { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetSolidColorPostRequestBody() { @@ -30,12 +32,12 @@ public SetSolidColorPostRequestBody() /// /// 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 SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetSolidColorPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index 690f5f7d63..ccf1e92cd4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to call the setSolidColor method. /// - public class SetSolidColorRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetSolidColorRequestBuilder : BaseCliRequestBuilder { /// /// Sets the fill formatting of a chart element to a uniform color. @@ -63,8 +66,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(SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -87,14 +90,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 SetSolidColorRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/setSolidColor", 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 SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/setSolidColor", rawUrl) @@ -108,11 +111,11 @@ public SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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(SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -123,3 +126,4 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.cs index e79f384d3d..374d03d190 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/FormatRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Line; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -90,7 +93,7 @@ public Command BuildFillNavCommand() { var command = new Command("fill"); command.Description = "Provides operations to manage the fill property of the microsoft.graph.workbookChartSeriesFormat entity."; - var builder = new FillRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Fill.FillRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -109,13 +112,13 @@ public Command BuildFillNavCommand() return command; } /// - /// Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + /// The formatting of a chart series, which includes fill and line formatting. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents the formatting of a chart series, which includes fill and line formatting. Read-only."; + command.Description = "The formatting of a chart series, which includes fill and line formatting. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -192,7 +195,7 @@ public Command BuildLineNavCommand() { var command = new Command("line"); command.Description = "Provides operations to manage the line property of the microsoft.graph.workbookChartSeriesFormat entity."; - var builder = new LineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Line.LineRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -259,8 +262,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(WorkbookChartSeriesFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartSeriesFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -285,14 +288,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format{?%24expand,%24select}", rawUrl) @@ -318,17 +321,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + /// The formatting of a chart series, which includes fill and line formatting. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -344,11 +347,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(WorkbookChartSeriesFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartSeriesFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartSeriesFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartSeriesFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -358,9 +361,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartSeriesFormat bo return requestInfo; } /// - /// Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + /// The formatting of a chart series, which includes fill and line formatting. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -385,3 +389,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.cs index 8e56ca47d4..021d941107 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Format/Line/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the line format of a chart element. @@ -74,14 +77,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line/clear", rawUrl) @@ -108,3 +111,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Line.Clear; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the line property of the microsoft.graph.workbookChartSeriesFormat entity. /// - public class LineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -30,7 +33,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.Line.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -224,8 +227,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(WorkbookChartLineFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLineFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -250,14 +253,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 LineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line{?%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 LineRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line{?%24expand,%24select}", rawUrl) @@ -289,11 +292,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); @@ -309,11 +312,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(WorkbookChartLineFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLineFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -325,7 +328,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLineFormat body /// /// Represents line formatting. Read-only. /// - public class LineRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LineRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +354,4 @@ public class LineRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.cs index d99cc26ec6..f6e8ff49e8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Count { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountGetResponse : IAdditionalDataHolder, IParsable + public partial class CountGetResponse : 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. @@ -15,7 +17,7 @@ public class CountGetResponse : IAdditionalDataHolder, IParsable /// The value property public int? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountGetResponse() { @@ -24,12 +26,12 @@ public CountGetResponse() /// /// 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 CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Count.CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Count.CountGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.cs index 2f0dc4b231..dde995367b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to call the count method. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function count @@ -83,14 +86,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/count()", 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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/count()", rawUrl) @@ -117,3 +120,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the fill color of a chart element. @@ -80,14 +83,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/clear", rawUrl) @@ -114,3 +117,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill.Clear; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill.SetSolidColor; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the fill property of the microsoft.graph.workbookChartPointFormat entity. /// - public class FillRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -31,7 +34,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -242,8 +245,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(WorkbookChartFill.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFill.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -276,7 +279,7 @@ public Command BuildSetSolidColorNavCommand() { var command = new Command("set-solid-color"); command.Description = "Provides operations to call the setSolidColor method."; - var builder = new SetSolidColorRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill.SetSolidColor.SetSolidColorRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -286,14 +289,14 @@ public Command BuildSetSolidColorNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public FillRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill{?%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 FillRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill{?%24expand,%24select}", rawUrl) @@ -325,11 +328,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); @@ -345,11 +348,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(WorkbookChartFill body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -361,7 +364,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti /// /// Represents the fill format of a chart, which includes background formatting information. Read-only. /// - public class FillRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -386,3 +390,4 @@ public class FillRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index 0b8fa12612..8e129292be 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill.SetSolidColor { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetSolidColorPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable public string Color { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetSolidColorPostRequestBody() { @@ -30,12 +32,12 @@ public SetSolidColorPostRequestBody() /// /// 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 SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetSolidColorPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index f633242a87..65b00bed09 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to call the setSolidColor method. /// - public class SetSolidColorRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetSolidColorRequestBuilder : BaseCliRequestBuilder { /// /// Sets the fill formatting of a chart element to a uniform color. @@ -68,8 +71,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(SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -93,14 +96,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 SetSolidColorRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/setSolidColor", 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 SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/setSolidColor", rawUrl) @@ -114,11 +117,11 @@ public SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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(SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -129,3 +132,4 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.cs index c48013580d..e5cec2ae00 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/Format/FormatRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -95,7 +98,7 @@ public Command BuildFillNavCommand() { var command = new Command("fill"); command.Description = "Provides operations to manage the fill property of the microsoft.graph.workbookChartPointFormat entity."; - var builder = new FillRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.Fill.FillRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -114,13 +117,13 @@ public Command BuildFillNavCommand() return command; } /// - /// Encapsulates the format properties chart point. Read-only. + /// The format properties of the chart point. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Encapsulates the format properties chart point. Read-only."; + command.Description = "The format properties of the chart point. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -250,8 +253,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(WorkbookChartPointFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartPointFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,14 +280,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format{?%24expand,%24select}", rawUrl) @@ -310,17 +313,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Encapsulates the format properties chart point. Read-only. + /// The format properties of the chart point. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -336,11 +339,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(WorkbookChartPointFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartPointFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartPointFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartPointFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -350,9 +353,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartPointFormat bod return requestInfo; } /// - /// Encapsulates the format properties chart point. Read-only. + /// The format properties of the chart point. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -377,3 +381,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs index c100f8b7c9..a69a35f433 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/Item/WorkbookChartPointItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. /// - public class WorkbookChartPointItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookChartPointItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property points for drives @@ -95,7 +98,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -113,13 +116,13 @@ public Command BuildFormatNavCommand() return command; } /// - /// Represents a collection of all points in the series. Read-only. + /// A collection of all points in the series. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents a collection of all points in the series. Read-only."; + command.Description = "A collection of all points in the series. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -249,8 +252,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(WorkbookChartPoint.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartPoint.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -276,14 +279,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 WorkbookChartPointItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%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 WorkbookChartPointItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}{?%24expand,%24select}", rawUrl) @@ -309,17 +312,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents a collection of all points in the series. Read-only. + /// A collection of all points in the series. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -335,11 +338,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(WorkbookChartPoint body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartPoint body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartPoint body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartPoint body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -349,9 +352,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartPoint body, Act return requestInfo; } /// - /// Represents a collection of all points in the series. Read-only. + /// A collection of all points in the series. Read-only. /// - public class WorkbookChartPointItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookChartPointItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -376,3 +380,4 @@ public class WorkbookChartPointItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/Format/FormatRequestBuilder.cs index 3b13e09f53..0dc1b91dcc 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/Format/FormatRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -87,13 +90,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Encapsulates the format properties chart point. Read-only. + /// The format properties of the chart point. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Encapsulates the format properties chart point. Read-only."; + command.Description = "The format properties of the chart point. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -223,8 +226,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(WorkbookChartPointFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartPointFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -250,14 +253,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})/format{?%24expand,%24select}", rawUrl) @@ -283,17 +286,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Encapsulates the format properties chart point. Read-only. + /// The format properties of the chart point. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -309,11 +312,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(WorkbookChartPointFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartPointFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartPointFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartPointFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -323,9 +326,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartPointFormat bod return requestInfo; } /// - /// Encapsulates the format properties chart point. Read-only. + /// The format properties of the chart point. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +354,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index bd86fb47b5..ebb2ce1549 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.ItemAtWithIndex.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to call the itemAt method. /// - public class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. @@ -30,7 +33,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.ItemAtWithIndex.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -111,14 +114,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 ItemAtWithIndexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})", 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 ItemAtWithIndexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})", rawUrl) @@ -145,3 +148,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.ItemAtWithIndex; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. /// - public class PointsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PointsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookChartPointItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Item.WorkbookChartPointItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFormatNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to call the count method."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -106,8 +109,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(WorkbookChartPoint.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartPoint.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -139,7 +142,7 @@ public Command BuildItemAtWithIndexRbCommand() { var command = new Command("item-at-with-index"); command.Description = "Provides operations to call the itemAt method."; - var builder = new ItemAtWithIndexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.ItemAtWithIndex.ItemAtWithIndexRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildFormatNavCommand()); @@ -155,13 +158,13 @@ public Command BuildItemAtWithIndexRbCommand() return command; } /// - /// Represents a collection of all points in the series. Read-only. + /// A collection of all points in the series. Read-only. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Represents a collection of all points in the series. Read-only."; + command.Description = "A collection of all points in the series. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -281,31 +284,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PointsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%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 PointsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Represents a collection of all points in the series. Read-only. + /// A collection of all points in the series. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -321,11 +324,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(WorkbookChartPoint body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChartPoint body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookChartPoint body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChartPoint body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -335,9 +338,10 @@ public RequestInformation ToPostRequestInformation(WorkbookChartPoint body, Acti return requestInfo; } /// - /// Represents a collection of all points in the series. Read-only. + /// A collection of all points in the series. Read-only. /// - public class PointsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PointsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -401,3 +405,4 @@ public class PointsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs index 6c35a075db..31b8631514 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the series property of the microsoft.graph.workbookChart entity. /// - public class WorkbookChartSeriesItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookChartSeriesItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property series for drives @@ -90,7 +93,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -234,8 +237,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(WorkbookChartSeries.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartSeries.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -267,7 +270,7 @@ public Command BuildPointsNavCommand() { var command = new Command("points"); command.Description = "Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity."; - var builder = new PointsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.PointsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -288,14 +291,14 @@ public Command BuildPointsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookChartSeriesItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%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 WorkbookChartSeriesItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}{?%24expand,%24select}", rawUrl) @@ -327,11 +330,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); @@ -347,11 +350,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(WorkbookChartSeries body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartSeries body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartSeries body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartSeries body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -363,7 +366,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartSeries body, Ac /// /// Represents either a single series or collection of series in the chart. Read-only. /// - public class WorkbookChartSeriesItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookChartSeriesItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -388,3 +392,4 @@ public class WorkbookChartSeriesItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Format/FormatRequestBuilder.cs index f638dd5ebe..e495a1740b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Format/FormatRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -81,13 +84,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + /// The formatting of a chart series, which includes fill and line formatting. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents the formatting of a chart series, which includes fill and line formatting. Read-only."; + command.Description = "The formatting of a chart series, which includes fill and line formatting. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -206,8 +209,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(WorkbookChartSeriesFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartSeriesFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/format{?%24expand,%24select}", rawUrl) @@ -265,17 +268,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + /// The formatting of a chart series, which includes fill and line formatting. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookChartSeriesFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartSeriesFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartSeriesFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartSeriesFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -305,9 +308,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartSeriesFormat bo return requestInfo; } /// - /// Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + /// The formatting of a chart series, which includes fill and line formatting. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index c99f379414..441c253b8f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.ItemAtWithIndex.Format; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.ItemAtWithIndex.Points; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to call the itemAt method. /// - public class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. @@ -31,7 +34,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.ItemAtWithIndex.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -113,7 +116,7 @@ public Command BuildPointsNavCommand() { var command = new Command("points"); command.Description = "Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity."; - var builder = new PointsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.ItemAtWithIndex.Points.PointsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -124,14 +127,14 @@ public Command BuildPointsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ItemAtWithIndexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})", 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 ItemAtWithIndexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})", rawUrl) @@ -158,3 +161,4 @@ public RequestInformation ToGetRequestInformation(Action +#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,16 +21,17 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. /// - public class PointsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PointsRequestBuilder : BaseCliRequestBuilder { /// - /// Represents a collection of all points in the series. Read-only. + /// A collection of all points in the series. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents a collection of all points in the series. Read-only."; + command.Description = "A collection of all points in the series. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -197,8 +200,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(WorkbookChartPoint.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartPoint.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -223,31 +226,31 @@ 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 PointsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/points{?%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 PointsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Represents a collection of all points in the series. Read-only. + /// A collection of all points in the series. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -263,11 +266,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(WorkbookChartPoint body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChartPoint body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookChartPoint body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChartPoint body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,9 +280,10 @@ public RequestInformation ToPostRequestInformation(WorkbookChartPoint body, Acti return requestInfo; } /// - /// Represents a collection of all points in the series. Read-only. + /// A collection of all points in the series. Read-only. /// - public class PointsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PointsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -343,3 +347,4 @@ public class PointsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs index ecc4d1cf7c..bd29409747 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.ItemAtWithIndex; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Ser /// /// Provides operations to manage the series property of the microsoft.graph.workbookChart entity. /// - public class SeriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SeriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the series property of the microsoft.graph.workbookChart entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookChartSeriesItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.WorkbookChartSeriesItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFormatNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -48,7 +51,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to call the count method."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(WorkbookChartSeries.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartSeries.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -134,7 +137,7 @@ public Command BuildItemAtWithIndexRbCommand() { var command = new Command("item-at-with-index"); command.Description = "Provides operations to call the itemAt method."; - var builder = new ItemAtWithIndexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.ItemAtWithIndex.ItemAtWithIndexRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildFormatNavCommand()); @@ -271,14 +274,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 SeriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series{?%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 SeriesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -291,11 +294,11 @@ public SeriesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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); @@ -311,11 +314,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(WorkbookChartSeries body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChartSeries body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookChartSeries body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChartSeries body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPostRequestInformation(WorkbookChartSeries body, Act /// /// Represents either a single series or collection of series in the chart. Read-only. /// - public class SeriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SeriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -391,3 +395,4 @@ public class SeriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataPostRequestBody.cs index 4e3ba1b265..5ec872691e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetData { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetDataPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetDataPostRequestBody : 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,13 +25,13 @@ public class SetDataPostRequestBody : IAdditionalDataHolder, IParsable /// The sourceData property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SourceData { get; set; } + public UntypedNode? SourceData { get; set; } #nullable restore #else - public Json SourceData { get; set; } + public UntypedNode SourceData { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetDataPostRequestBody() { @@ -39,12 +40,12 @@ public SetDataPostRequestBody() /// /// 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 SetDataPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetData.SetDataPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetDataPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetData.SetDataPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "seriesBy", n => { SeriesBy = n.GetStringValue(); } }, - { "sourceData", n => { SourceData = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "sourceData", n => { SourceData = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -66,8 +67,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("seriesBy", SeriesBy); - writer.WriteObjectValue("sourceData", SourceData); + writer.WriteObjectValue("sourceData", SourceData); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.cs index bb173b5ab4..91d8af60b5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetData/SetDataRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Set /// /// Provides operations to call the setData method. /// - public class SetDataRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetDataRequestBuilder : BaseCliRequestBuilder { /// /// Resets the source data for the chart. @@ -58,8 +61,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(SetDataPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetData.SetDataPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 SetDataRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setData", 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 SetDataRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setData", rawUrl) @@ -102,11 +105,11 @@ public SetDataRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(SetDataPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetData.SetDataPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetDataPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetData.SetDataPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(SetDataPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionPostRequestBody.cs index d750fbb33a..55c56c72b0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetPosition { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetPositionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetPositionPostRequestBody : 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. @@ -16,21 +17,21 @@ public class SetPositionPostRequestBody : IAdditionalDataHolder, IParsable /// The endCell property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EndCell { get; set; } + public UntypedNode? EndCell { get; set; } #nullable restore #else - public Json EndCell { get; set; } + public UntypedNode EndCell { get; set; } #endif /// The startCell property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartCell { get; set; } + public UntypedNode? StartCell { get; set; } #nullable restore #else - public Json StartCell { get; set; } + public UntypedNode StartCell { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetPositionPostRequestBody() { @@ -39,12 +40,12 @@ public SetPositionPostRequestBody() /// /// 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 SetPositionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetPosition.SetPositionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetPositionPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetPosition.SetPositionPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "endCell", n => { EndCell = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startCell", n => { StartCell = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "endCell", n => { EndCell = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startCell", n => { StartCell = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("endCell", EndCell); - writer.WriteObjectValue("startCell", StartCell); + writer.WriteObjectValue("endCell", EndCell); + writer.WriteObjectValue("startCell", StartCell); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.cs index 7b9329bd90..ba6d23e6b7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/SetPosition/SetPositionRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Set /// /// Provides operations to call the setPosition method. /// - public class SetPositionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetPositionRequestBuilder : BaseCliRequestBuilder { /// /// Positions the chart relative to cells on the worksheet. @@ -58,8 +61,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(SetPositionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetPosition.SetPositionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 SetPositionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setPosition", 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 SetPositionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setPosition", rawUrl) @@ -102,11 +105,11 @@ public SetPositionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(SetPositionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetPosition.SetPositionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetPositionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetPosition.SetPositionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(SetPositionPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.cs index e9ecf02779..2cf6007a44 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Tit /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the fill color of a chart element. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill.Clear; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill.SetSolidColor; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Tit /// /// Provides operations to manage the fill property of the microsoft.graph.workbookChartTitleFormat entity. /// - public class FillRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clear method. @@ -31,7 +34,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -208,8 +211,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(WorkbookChartFill.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFill.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,7 +243,7 @@ public Command BuildSetSolidColorNavCommand() { var command = new Command("set-solid-color"); command.Description = "Provides operations to call the setSolidColor method."; - var builder = new SetSolidColorRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill.SetSolidColor.SetSolidColorRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -250,14 +253,14 @@ public Command BuildSetSolidColorNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public FillRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill{?%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 FillRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill{?%24expand,%24select}", rawUrl) @@ -289,11 +292,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); @@ -309,11 +312,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(WorkbookChartFill body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFill body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -325,7 +328,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFill body, Acti /// /// Represents the fill format of an object, which includes background formatting information. Read-only. /// - public class FillRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FillRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +354,4 @@ public class FillRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs index 91eae4136f..442ddc266e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill.SetSolidColor { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetSolidColorPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetSolidColorPostRequestBody : IAdditionalDataHolder, IParsable public string Color { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetSolidColorPostRequestBody() { @@ -30,12 +32,12 @@ public SetSolidColorPostRequestBody() /// /// 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 SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetSolidColorPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs index 1395a85c48..91fc35105b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Fill/SetSolidColor/SetSolidColorRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Tit /// /// Provides operations to call the setSolidColor method. /// - public class SetSolidColorRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetSolidColorRequestBuilder : BaseCliRequestBuilder { /// /// Sets the fill formatting of a chart element to a uniform color. @@ -58,8 +61,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(SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 SetSolidColorRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/setSolidColor", 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 SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/setSolidColor", rawUrl) @@ -102,11 +105,11 @@ public SetSolidColorRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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(SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill.SetSolidColor.SetSolidColorPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(SetSolidColorPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.cs index 8760f8b352..401e8fe3ce 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/Font/FontRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Tit /// /// Provides operations to manage the font property of the microsoft.graph.workbookChartTitleFormat entity. /// - public class FontRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property font for drives @@ -189,8 +192,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(WorkbookChartFont.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartFont.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FontRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/font{?%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 FontRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/font{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartFont body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartFont body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartFont body, Acti /// /// Represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. /// - public class FontRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FontRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FontRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.cs index f96a7d3373..4b7dd63345 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/Format/FormatRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Font; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Tit /// /// Provides operations to manage the format property of the microsoft.graph.workbookChartTitle entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -84,7 +87,7 @@ public Command BuildFillNavCommand() { var command = new Command("fill"); command.Description = "Provides operations to manage the fill property of the microsoft.graph.workbookChartTitleFormat entity."; - var builder = new FillRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Fill.FillRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearNavCommand()); @@ -110,7 +113,7 @@ public Command BuildFontNavCommand() { var command = new Command("font"); command.Description = "Provides operations to manage the font property of the microsoft.graph.workbookChartTitleFormat entity."; - var builder = new FontRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.Font.FontRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -122,13 +125,13 @@ public Command BuildFontNavCommand() return command; } /// - /// Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + /// The formatting of a chart title, which includes fill and font formatting. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents the formatting of a chart title, which includes fill and font formatting. Read-only."; + command.Description = "The formatting of a chart title, which includes fill and font formatting. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -236,8 +239,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(WorkbookChartTitleFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartTitleFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -261,14 +264,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format{?%24expand,%24select}", rawUrl) @@ -294,17 +297,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + /// The formatting of a chart title, which includes fill and font formatting. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -320,11 +323,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(WorkbookChartTitleFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartTitleFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartTitleFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartTitleFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -334,9 +337,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartTitleFormat bod return requestInfo; } /// - /// Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + /// The formatting of a chart title, which includes fill and font formatting. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -361,3 +365,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs index d69bd316d4..1ed01d81e7 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Title/TitleRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Tit /// /// Provides operations to manage the title property of the microsoft.graph.workbookChart entity. /// - public class TitleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property title for drives @@ -83,7 +86,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChartTitle entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -216,8 +219,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(WorkbookChartTitle.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartTitle.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -241,14 +244,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 TitleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title{?%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 TitleRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title{?%24expand,%24select}", rawUrl) @@ -280,11 +283,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); @@ -300,11 +303,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(WorkbookChartTitle body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartTitle body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartTitle body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartTitle body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -316,7 +319,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartTitle body, Act /// /// Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. /// - public class TitleRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -341,3 +345,4 @@ public class TitleRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs index d5a7bc2523..1e4aff48fd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/WorkbookChartItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format; @@ -14,6 +15,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Worksheet; 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; @@ -32,7 +34,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item /// /// Provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity. /// - public class WorkbookChartItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookChartItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. @@ -42,7 +45,7 @@ public Command BuildAxesNavCommand() { var command = new Command("axes"); command.Description = "Provides operations to manage the axes property of the microsoft.graph.workbookChart entity."; - var builder = new AxesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Axes.AxesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCategoryAxisNavCommand()); @@ -69,7 +72,7 @@ public Command BuildDataLabelsNavCommand() { var command = new Command("data-labels"); command.Description = "Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity."; - var builder = new DataLabelsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.DataLabels.DataLabelsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -147,7 +150,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChart entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -166,13 +169,13 @@ public Command BuildFormatNavCommand() return command; } /// - /// Returns collection of charts that are part of the worksheet. Read-only. + /// The list of charts that are part of the worksheet. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Returns collection of charts that are part of the worksheet. Read-only."; + command.Description = "The list of charts that are part of the worksheet. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -243,7 +246,7 @@ public Command BuildImageNavCommand() { var command = new Command("image"); command.Description = "Provides operations to call the image method."; - var builder = new ImageRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Image.ImageRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -260,7 +263,7 @@ public Command BuildImageWithWidthRbCommand() { var command = new Command("image-with-width"); command.Description = "Provides operations to call the image method."; - var builder = new ImageWithWidthRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidth.ImageWithWidthRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -277,7 +280,7 @@ public Command BuildImageWithWidthWithHeightRbCommand() { var command = new Command("image-with-width-with-height"); command.Description = "Provides operations to call the image method."; - var builder = new ImageWithWidthWithHeightRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeight.ImageWithWidthWithHeightRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildImageWithWidthWithHeightWithFittingModeRbCommand() { var command = new Command("image-with-width-with-height-with-fitting-mode"); command.Description = "Provides operations to call the image method."; - var builder = new ImageWithWidthWithHeightWithFittingModeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.ImageWithWidthWithHeightWithFittingMode.ImageWithWidthWithHeightWithFittingModeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -311,7 +314,7 @@ public Command BuildLegendNavCommand() { var command = new Command("legend"); command.Description = "Provides operations to manage the legend property of the microsoft.graph.workbookChart entity."; - var builder = new LegendRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Legend.LegendRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -373,8 +376,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(WorkbookChart.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChart.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -405,7 +408,7 @@ public Command BuildSeriesNavCommand() { var command = new Command("series"); command.Description = "Provides operations to manage the series property of the microsoft.graph.workbookChart entity."; - var builder = new SeriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.SeriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -433,7 +436,7 @@ public Command BuildSetDataNavCommand() { var command = new Command("set-data"); command.Description = "Provides operations to call the setData method."; - var builder = new SetDataRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetData.SetDataRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -450,7 +453,7 @@ public Command BuildSetPositionNavCommand() { var command = new Command("set-position"); command.Description = "Provides operations to call the setPosition method."; - var builder = new SetPositionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.SetPosition.SetPositionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -467,7 +470,7 @@ public Command BuildTitleNavCommand() { var command = new Command("title"); command.Description = "Provides operations to manage the title property of the microsoft.graph.workbookChart entity."; - var builder = new TitleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Title.TitleRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -492,7 +495,7 @@ public Command BuildWorksheetNavCommand() { var command = new Command("worksheet"); command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity."; - var builder = new WorksheetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Worksheet.WorksheetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -502,14 +505,14 @@ public Command BuildWorksheetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookChartItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%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 WorkbookChartItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}{?%24expand,%24select}", rawUrl) @@ -535,17 +538,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns collection of charts that are part of the worksheet. Read-only. + /// The list of charts that are part of the worksheet. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -561,11 +564,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(WorkbookChart body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChart body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChart body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChart body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -575,9 +578,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookChart body, Action - /// Returns collection of charts that are part of the worksheet. Read-only. + /// The list of charts that are part of the worksheet. Read-only. /// - public class WorkbookChartItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookChartItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -602,3 +606,4 @@ public class WorkbookChartItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.cs index 204c801e10..b1053ee89d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Worksheet/WorksheetRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Wor /// /// Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. /// - public class WorksheetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder { /// /// The worksheet containing the current chart. Read-only. @@ -92,14 +95,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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/worksheet{?%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 WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/worksheet{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The worksheet containing the current chart. Read-only. /// - public class WorksheetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class WorksheetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Axes/AxesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Axes/AxesRequestBuilder.cs index 538cedb125..d53c72c761 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Axes/AxesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Axes/AxesRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. /// - public class AxesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AxesRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property axes for drives @@ -189,8 +192,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(WorkbookChartAxes.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxes.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 AxesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/axes{?%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 AxesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/axes{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartAxes body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxes body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxes body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxes body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxes body, Acti /// /// Represents chart axes. Read-only. /// - public class AxesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AxesRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class AxesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/DataLabels/DataLabelsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/DataLabels/DataLabelsRequestBuilder.cs index b60f222348..0132cd0056 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/DataLabels/DataLabelsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/DataLabels/DataLabelsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. /// - public class DataLabelsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataLabelsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property dataLabels for drives @@ -189,8 +192,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(WorkbookChartDataLabels.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartDataLabels.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 DataLabelsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/dataLabels{?%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 DataLabelsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/dataLabels{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartDataLabels body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartDataLabels body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartDataLabels body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartDataLabels body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartDataLabels body /// /// Represents the data labels on the chart. Read-only. /// - public class DataLabelsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataLabelsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class DataLabelsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Format/FormatRequestBuilder.cs index 21aa61d595..9a19ac2653 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Format/FormatRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to manage the format property of the microsoft.graph.workbookChart entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -189,8 +192,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(WorkbookChartAreaFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAreaFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/format{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartAreaFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAreaFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAreaFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAreaFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAreaFormat body /// /// Encapsulates the format properties for the chart area. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Image/ImageGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Image/ImageGetResponse.cs index 95317ef577..2c7ce9eb68 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Image/ImageGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Image/ImageGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Image { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageGetResponse : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageGetResponse() { @@ -30,12 +32,12 @@ public ImageGetResponse() /// /// 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 ImageGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Image.ImageGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Image.ImageGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Image/ImageRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Image/ImageRequestBuilder.cs index 5f3193f288..9f5c15ffad 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Image/ImageRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Image/ImageRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to call the image method. /// - public class ImageRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -77,14 +80,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 ImageRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image()", 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 ImageRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image()", rawUrl) @@ -111,3 +114,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidth { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageWithWidthGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageWithWidthGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageWithWidthGetResponse : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageWithWidthGetResponse() { @@ -30,12 +32,12 @@ public ImageWithWidthGetResponse() /// /// 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 ImageWithWidthGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidth.ImageWithWidthGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageWithWidthGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidth.ImageWithWidthGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidth/ImageWithWidthRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidth/ImageWithWidthRequestBuilder.cs index b55ab7e2f0..590b86652d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidth/ImageWithWidthRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidth/ImageWithWidthRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to call the image method. /// - public class ImageWithWidthRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageWithWidthRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -83,14 +86,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 ImageWithWidthRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width})", 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 ImageWithWidthRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width})", rawUrl) @@ -117,3 +120,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidthWithHeight { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageWithWidthWithHeightGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageWithWidthWithHeightGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageWithWidthWithHeightGetResponse : IAdditionalDataHolder, IParsa public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageWithWidthWithHeightGetResponse() { @@ -30,12 +32,12 @@ public ImageWithWidthWithHeightGetResponse() /// /// 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 ImageWithWidthWithHeightGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidthWithHeight.ImageWithWidthWithHeightGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageWithWidthWithHeightGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidthWithHeight.ImageWithWidthWithHeightGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs index 1eb9361927..28a5b6bf27 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to call the image method. /// - public class ImageWithWidthWithHeightRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageWithWidthWithHeightRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -89,14 +92,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 ImageWithWidthWithHeightRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height})", 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 ImageWithWidthWithHeightRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height})", rawUrl) @@ -123,3 +126,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidthWithHeightWithFittingMode { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageWithWidthWithHeightWithFittingModeGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageWithWidthWithHeightWithFittingModeGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageWithWidthWithHeightWithFittingModeGetResponse : IAdditionalDat public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageWithWidthWithHeightWithFittingModeGetResponse() { @@ -30,12 +32,12 @@ public ImageWithWidthWithHeightWithFittingModeGetResponse() /// /// 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 ImageWithWidthWithHeightWithFittingModeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidthWithHeightWithFittingMode.ImageWithWidthWithHeightWithFittingModeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageWithWidthWithHeightWithFittingModeGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidthWithHeightWithFittingMode.ImageWithWidthWithHeightWithFittingModeGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs index d306a1c477..0cfaee0604 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to call the image method. /// - public class ImageWithWidthWithHeightWithFittingModeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageWithWidthWithHeightWithFittingModeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -95,14 +98,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 ImageWithWidthWithHeightWithFittingModeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height},fittingMode='{fittingMode}')", 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 ImageWithWidthWithHeightWithFittingModeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height},fittingMode='{fittingMode}')", rawUrl) @@ -129,3 +132,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Axes; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.DataLabels; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Format; @@ -14,6 +15,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Worksheet; 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; @@ -32,7 +34,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to call the itemAt method. /// - public class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. @@ -42,7 +45,7 @@ public Command BuildAxesNavCommand() { var command = new Command("axes"); command.Description = "Provides operations to manage the axes property of the microsoft.graph.workbookChart entity."; - var builder = new AxesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Axes.AxesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -61,7 +64,7 @@ public Command BuildDataLabelsNavCommand() { var command = new Command("data-labels"); command.Description = "Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity."; - var builder = new DataLabelsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.DataLabels.DataLabelsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -80,7 +83,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChart entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -156,7 +159,7 @@ public Command BuildImageNavCommand() { var command = new Command("image"); command.Description = "Provides operations to call the image method."; - var builder = new ImageRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Image.ImageRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -173,7 +176,7 @@ public Command BuildImageWithWidthRbCommand() { var command = new Command("image-with-width"); command.Description = "Provides operations to call the image method."; - var builder = new ImageWithWidthRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidth.ImageWithWidthRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -190,7 +193,7 @@ public Command BuildImageWithWidthWithHeightRbCommand() { var command = new Command("image-with-width-with-height"); command.Description = "Provides operations to call the image method."; - var builder = new ImageWithWidthWithHeightRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidthWithHeight.ImageWithWidthWithHeightRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -207,7 +210,7 @@ public Command BuildImageWithWidthWithHeightWithFittingModeRbCommand() { var command = new Command("image-with-width-with-height-with-fitting-mode"); command.Description = "Provides operations to call the image method."; - var builder = new ImageWithWidthWithHeightWithFittingModeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.ImageWithWidthWithHeightWithFittingMode.ImageWithWidthWithHeightWithFittingModeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -224,7 +227,7 @@ public Command BuildLegendNavCommand() { var command = new Command("legend"); command.Description = "Provides operations to manage the legend property of the microsoft.graph.workbookChart entity."; - var builder = new LegendRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Legend.LegendRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -243,7 +246,7 @@ public Command BuildSeriesNavCommand() { var command = new Command("series"); command.Description = "Provides operations to manage the series property of the microsoft.graph.workbookChart entity."; - var builder = new SeriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Series.SeriesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -261,7 +264,7 @@ public Command BuildSetDataNavCommand() { var command = new Command("set-data"); command.Description = "Provides operations to call the setData method."; - var builder = new SetDataRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetData.SetDataRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -278,7 +281,7 @@ public Command BuildSetPositionNavCommand() { var command = new Command("set-position"); command.Description = "Provides operations to call the setPosition method."; - var builder = new SetPositionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetPosition.SetPositionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -295,7 +298,7 @@ public Command BuildTitleNavCommand() { var command = new Command("title"); command.Description = "Provides operations to manage the title property of the microsoft.graph.workbookChart entity."; - var builder = new TitleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Title.TitleRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -314,7 +317,7 @@ public Command BuildWorksheetNavCommand() { var command = new Command("worksheet"); command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity."; - var builder = new WorksheetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.Worksheet.WorksheetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -324,14 +327,14 @@ public Command BuildWorksheetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ItemAtWithIndexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})", 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 ItemAtWithIndexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})", rawUrl) @@ -358,3 +361,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. /// - public class LegendRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LegendRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property legend for drives @@ -189,8 +192,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(WorkbookChartLegend.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLegend.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 LegendRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/legend{?%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 LegendRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/legend{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartLegend body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLegend body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLegend body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLegend body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLegend body, Ac /// /// Represents the legend for the chart. Read-only. /// - public class LegendRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LegendRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class LegendRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Series/SeriesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Series/SeriesRequestBuilder.cs index a875765203..c18f71c08d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Series/SeriesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Series/SeriesRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to manage the series property of the microsoft.graph.workbookChart entity. /// - public class SeriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SeriesRequestBuilder : BaseCliRequestBuilder { /// /// Represents either a single series or collection of series in the chart. Read-only. @@ -186,8 +189,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(WorkbookChartSeries.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartSeries.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 SeriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/series{?%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 SeriesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -231,11 +234,11 @@ public SeriesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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); @@ -251,11 +254,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(WorkbookChartSeries body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChartSeries body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookChartSeries body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChartSeries body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(WorkbookChartSeries body, Act /// /// Represents either a single series or collection of series in the chart. Read-only. /// - public class SeriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SeriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class SeriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetData/SetDataPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetData/SetDataPostRequestBody.cs index 7114fca93b..ccff35897f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetData/SetDataPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetData/SetDataPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetData { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetDataPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetDataPostRequestBody : 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,13 +25,13 @@ public class SetDataPostRequestBody : IAdditionalDataHolder, IParsable /// The sourceData property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SourceData { get; set; } + public UntypedNode? SourceData { get; set; } #nullable restore #else - public Json SourceData { get; set; } + public UntypedNode SourceData { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetDataPostRequestBody() { @@ -39,12 +40,12 @@ public SetDataPostRequestBody() /// /// 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 SetDataPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetData.SetDataPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetDataPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetData.SetDataPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "seriesBy", n => { SeriesBy = n.GetStringValue(); } }, - { "sourceData", n => { SourceData = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "sourceData", n => { SourceData = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -66,8 +67,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("seriesBy", SeriesBy); - writer.WriteObjectValue("sourceData", SourceData); + writer.WriteObjectValue("sourceData", SourceData); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetData/SetDataRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetData/SetDataRequestBuilder.cs index ed5871a555..251471a8d1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetData/SetDataRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetData/SetDataRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to call the setData method. /// - public class SetDataRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetDataRequestBuilder : BaseCliRequestBuilder { /// /// Resets the source data for the chart. @@ -58,8 +61,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(SetDataPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetData.SetDataPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 SetDataRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setData", 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 SetDataRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setData", rawUrl) @@ -102,11 +105,11 @@ public SetDataRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(SetDataPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetData.SetDataPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetDataPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetData.SetDataPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(SetDataPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetPosition/SetPositionPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetPosition/SetPositionPostRequestBody.cs index 745b0df0a6..86ab1a227f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetPosition/SetPositionPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetPosition/SetPositionPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetPosition { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetPositionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetPositionPostRequestBody : 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. @@ -16,21 +17,21 @@ public class SetPositionPostRequestBody : IAdditionalDataHolder, IParsable /// The endCell property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EndCell { get; set; } + public UntypedNode? EndCell { get; set; } #nullable restore #else - public Json EndCell { get; set; } + public UntypedNode EndCell { get; set; } #endif /// The startCell property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartCell { get; set; } + public UntypedNode? StartCell { get; set; } #nullable restore #else - public Json StartCell { get; set; } + public UntypedNode StartCell { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetPositionPostRequestBody() { @@ -39,12 +40,12 @@ public SetPositionPostRequestBody() /// /// 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 SetPositionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetPosition.SetPositionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetPositionPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetPosition.SetPositionPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "endCell", n => { EndCell = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startCell", n => { StartCell = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "endCell", n => { EndCell = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startCell", n => { StartCell = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("endCell", EndCell); - writer.WriteObjectValue("startCell", StartCell); + writer.WriteObjectValue("endCell", EndCell); + writer.WriteObjectValue("startCell", StartCell); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetPosition/SetPositionRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetPosition/SetPositionRequestBuilder.cs index fda2bcae8c..2b447a742c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetPosition/SetPositionRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/SetPosition/SetPositionRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to call the setPosition method. /// - public class SetPositionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetPositionRequestBuilder : BaseCliRequestBuilder { /// /// Positions the chart relative to cells on the worksheet. @@ -58,8 +61,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(SetPositionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetPosition.SetPositionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 SetPositionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setPosition", 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 SetPositionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setPosition", rawUrl) @@ -102,11 +105,11 @@ public SetPositionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(SetPositionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetPosition.SetPositionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetPositionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWithIndex.SetPosition.SetPositionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(SetPositionPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Title/TitleRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Title/TitleRequestBuilder.cs index ca6ecb95b3..83063ba431 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Title/TitleRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Title/TitleRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to manage the title property of the microsoft.graph.workbookChart entity. /// - public class TitleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property title for drives @@ -189,8 +192,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(WorkbookChartTitle.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartTitle.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 TitleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/title{?%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 TitleRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/title{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartTitle body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartTitle body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartTitle body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartTitle body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartTitle body, Act /// /// Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. /// - public class TitleRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class TitleRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Worksheet/WorksheetRequestBuilder.cs index 371a5f29c2..216b6ef183 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Worksheet/WorksheetRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Worksheet/WorksheetRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemAtWi /// /// Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. /// - public class WorksheetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder { /// /// The worksheet containing the current chart. Read-only. @@ -92,14 +95,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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/worksheet{?%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 WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/worksheet{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The worksheet containing the current chart. Read-only. /// - public class WorksheetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class WorksheetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Axes/AxesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Axes/AxesRequestBuilder.cs index aafe80e2d6..32b470fd69 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Axes/AxesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Axes/AxesRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. /// - public class AxesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AxesRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property axes for drives @@ -189,8 +192,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(WorkbookChartAxes.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAxes.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 AxesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/axes{?%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 AxesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/axes{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartAxes body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxes body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAxes body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAxes body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAxes body, Acti /// /// Represents chart axes. Read-only. /// - public class AxesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AxesRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class AxesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/DataLabels/DataLabelsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/DataLabels/DataLabelsRequestBuilder.cs index 021dce60d1..0529a424c2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/DataLabels/DataLabelsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/DataLabels/DataLabelsRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. /// - public class DataLabelsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataLabelsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property dataLabels for drives @@ -189,8 +192,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(WorkbookChartDataLabels.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartDataLabels.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 DataLabelsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/dataLabels{?%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 DataLabelsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/dataLabels{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartDataLabels body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartDataLabels body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartDataLabels body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartDataLabels body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartDataLabels body /// /// Represents the data labels on the chart. Read-only. /// - public class DataLabelsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataLabelsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class DataLabelsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Format/FormatRequestBuilder.cs index 4e4985548f..da5c3713a3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Format/FormatRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Format/FormatRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to manage the format property of the microsoft.graph.workbookChart entity. /// - public class FormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property format for drives @@ -189,8 +192,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(WorkbookChartAreaFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartAreaFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/format{?%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 FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/format{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartAreaFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAreaFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartAreaFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartAreaFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartAreaFormat body /// /// Encapsulates the format properties for the chart area. Read-only. /// - public class FormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Image/ImageGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Image/ImageGetResponse.cs index 15b45c7ca5..5a3953a053 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Image/ImageGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Image/ImageGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Image { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageGetResponse : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageGetResponse() { @@ -30,12 +32,12 @@ public ImageGetResponse() /// /// 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 ImageGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Image.ImageGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Image.ImageGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Image/ImageRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Image/ImageRequestBuilder.cs index 06a02456ff..0af0eb864d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Image/ImageRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Image/ImageRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to call the image method. /// - public class ImageRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -77,14 +80,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 ImageRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image()", 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 ImageRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image()", rawUrl) @@ -111,3 +114,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidth { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageWithWidthGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageWithWidthGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageWithWidthGetResponse : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageWithWidthGetResponse() { @@ -30,12 +32,12 @@ public ImageWithWidthGetResponse() /// /// 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 ImageWithWidthGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidth.ImageWithWidthGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageWithWidthGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidth.ImageWithWidthGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidth/ImageWithWidthRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidth/ImageWithWidthRequestBuilder.cs index f43554d6cf..cca9f405a0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidth/ImageWithWidthRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidth/ImageWithWidthRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to call the image method. /// - public class ImageWithWidthRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageWithWidthRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -83,14 +86,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 ImageWithWidthRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width})", 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 ImageWithWidthRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width})", rawUrl) @@ -117,3 +120,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidthWithHeight { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageWithWidthWithHeightGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageWithWidthWithHeightGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageWithWidthWithHeightGetResponse : IAdditionalDataHolder, IParsa public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageWithWidthWithHeightGetResponse() { @@ -30,12 +32,12 @@ public ImageWithWidthWithHeightGetResponse() /// /// 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 ImageWithWidthWithHeightGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidthWithHeight.ImageWithWidthWithHeightGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageWithWidthWithHeightGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidthWithHeight.ImageWithWidthWithHeightGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs index 535f79ebf8..29206390a2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidthWithHeight/ImageWithWidthWithHeightRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to call the image method. /// - public class ImageWithWidthWithHeightRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageWithWidthWithHeightRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -89,14 +92,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 ImageWithWidthWithHeightRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height})", 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 ImageWithWidthWithHeightRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height})", rawUrl) @@ -123,3 +126,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidthWithHeightWithFittingMode { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImageWithWidthWithHeightWithFittingModeGetResponse : IAdditionalDataHolder, IParsable + public partial class ImageWithWidthWithHeightWithFittingModeGetResponse : 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. @@ -21,7 +23,7 @@ public class ImageWithWidthWithHeightWithFittingModeGetResponse : IAdditionalDat public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ImageWithWidthWithHeightWithFittingModeGetResponse() { @@ -30,12 +32,12 @@ public ImageWithWidthWithHeightWithFittingModeGetResponse() /// /// 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 ImageWithWidthWithHeightWithFittingModeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidthWithHeightWithFittingMode.ImageWithWidthWithHeightWithFittingModeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImageWithWidthWithHeightWithFittingModeGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidthWithHeightWithFittingMode.ImageWithWidthWithHeightWithFittingModeGetResponse(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs index ba18bc1488..2a0075d402 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/ImageWithWidthWithHeightWithFittingMode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to call the image method. /// - public class ImageWithWidthWithHeightWithFittingModeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ImageWithWidthWithHeightWithFittingModeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function image @@ -95,14 +98,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 ImageWithWidthWithHeightWithFittingModeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height},fittingMode='{fittingMode}')", 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 ImageWithWidthWithHeightWithFittingModeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height},fittingMode='{fittingMode}')", rawUrl) @@ -129,3 +132,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Axes; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.DataLabels; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Format; @@ -14,6 +15,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Worksheet; 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; @@ -32,7 +34,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to call the item method. /// - public class ItemWithNameRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemWithNameRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the axes property of the microsoft.graph.workbookChart entity. @@ -42,7 +45,7 @@ public Command BuildAxesNavCommand() { var command = new Command("axes"); command.Description = "Provides operations to manage the axes property of the microsoft.graph.workbookChart entity."; - var builder = new AxesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Axes.AxesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -61,7 +64,7 @@ public Command BuildDataLabelsNavCommand() { var command = new Command("data-labels"); command.Description = "Provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity."; - var builder = new DataLabelsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.DataLabels.DataLabelsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -80,7 +83,7 @@ public Command BuildFormatNavCommand() { var command = new Command("format"); command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookChart entity."; - var builder = new FormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Format.FormatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -155,7 +158,7 @@ public Command BuildImageNavCommand() { var command = new Command("image"); command.Description = "Provides operations to call the image method."; - var builder = new ImageRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Image.ImageRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -172,7 +175,7 @@ public Command BuildImageWithWidthRbCommand() { var command = new Command("image-with-width"); command.Description = "Provides operations to call the image method."; - var builder = new ImageWithWidthRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidth.ImageWithWidthRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -189,7 +192,7 @@ public Command BuildImageWithWidthWithHeightRbCommand() { var command = new Command("image-with-width-with-height"); command.Description = "Provides operations to call the image method."; - var builder = new ImageWithWidthWithHeightRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidthWithHeight.ImageWithWidthWithHeightRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -206,7 +209,7 @@ public Command BuildImageWithWidthWithHeightWithFittingModeRbCommand() { var command = new Command("image-with-width-with-height-with-fitting-mode"); command.Description = "Provides operations to call the image method."; - var builder = new ImageWithWidthWithHeightWithFittingModeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.ImageWithWidthWithHeightWithFittingMode.ImageWithWidthWithHeightWithFittingModeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -223,7 +226,7 @@ public Command BuildLegendNavCommand() { var command = new Command("legend"); command.Description = "Provides operations to manage the legend property of the microsoft.graph.workbookChart entity."; - var builder = new LegendRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Legend.LegendRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -242,7 +245,7 @@ public Command BuildSeriesNavCommand() { var command = new Command("series"); command.Description = "Provides operations to manage the series property of the microsoft.graph.workbookChart entity."; - var builder = new SeriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Series.SeriesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -260,7 +263,7 @@ public Command BuildSetDataNavCommand() { var command = new Command("set-data"); command.Description = "Provides operations to call the setData method."; - var builder = new SetDataRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetData.SetDataRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -277,7 +280,7 @@ public Command BuildSetPositionNavCommand() { var command = new Command("set-position"); command.Description = "Provides operations to call the setPosition method."; - var builder = new SetPositionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetPosition.SetPositionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildTitleNavCommand() { var command = new Command("title"); command.Description = "Provides operations to manage the title property of the microsoft.graph.workbookChart entity."; - var builder = new TitleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Title.TitleRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -313,7 +316,7 @@ public Command BuildWorksheetNavCommand() { var command = new Command("worksheet"); command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity."; - var builder = new WorksheetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.Worksheet.WorksheetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -323,14 +326,14 @@ public Command BuildWorksheetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ItemWithNameRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')", 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 ItemWithNameRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')", rawUrl) @@ -357,3 +360,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to manage the legend property of the microsoft.graph.workbookChart entity. /// - public class LegendRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LegendRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property legend for drives @@ -189,8 +192,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(WorkbookChartLegend.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartLegend.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 LegendRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/legend{?%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 LegendRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/legend{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartLegend body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLegend body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartLegend body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartLegend body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartLegend body, Ac /// /// Represents the legend for the chart. Read-only. /// - public class LegendRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LegendRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class LegendRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Series/SeriesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Series/SeriesRequestBuilder.cs index 20794ba893..1f430b5c7a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Series/SeriesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Series/SeriesRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to manage the series property of the microsoft.graph.workbookChart entity. /// - public class SeriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SeriesRequestBuilder : BaseCliRequestBuilder { /// /// Represents either a single series or collection of series in the chart. Read-only. @@ -186,8 +189,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(WorkbookChartSeries.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartSeries.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 SeriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/series{?%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 SeriesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -231,11 +234,11 @@ public SeriesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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); @@ -251,11 +254,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(WorkbookChartSeries body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChartSeries body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookChartSeries body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookChartSeries body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(WorkbookChartSeries body, Act /// /// Represents either a single series or collection of series in the chart. Read-only. /// - public class SeriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SeriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class SeriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetData/SetDataPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetData/SetDataPostRequestBody.cs index f4659e88e3..cf5f1aa0e9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetData/SetDataPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetData/SetDataPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetData { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetDataPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetDataPostRequestBody : 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,13 +25,13 @@ public class SetDataPostRequestBody : IAdditionalDataHolder, IParsable /// The sourceData property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? SourceData { get; set; } + public UntypedNode? SourceData { get; set; } #nullable restore #else - public Json SourceData { get; set; } + public UntypedNode SourceData { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetDataPostRequestBody() { @@ -39,12 +40,12 @@ public SetDataPostRequestBody() /// /// 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 SetDataPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetData.SetDataPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetDataPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetData.SetDataPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +56,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "seriesBy", n => { SeriesBy = n.GetStringValue(); } }, - { "sourceData", n => { SourceData = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "sourceData", n => { SourceData = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -66,8 +67,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("seriesBy", SeriesBy); - writer.WriteObjectValue("sourceData", SourceData); + writer.WriteObjectValue("sourceData", SourceData); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetData/SetDataRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetData/SetDataRequestBuilder.cs index fba14f281b..6cc3994c56 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetData/SetDataRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetData/SetDataRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to call the setData method. /// - public class SetDataRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetDataRequestBuilder : BaseCliRequestBuilder { /// /// Resets the source data for the chart. @@ -58,8 +61,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(SetDataPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetData.SetDataPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 SetDataRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setData", 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 SetDataRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setData", rawUrl) @@ -102,11 +105,11 @@ public SetDataRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(SetDataPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetData.SetDataPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetDataPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetData.SetDataPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(SetDataPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetPosition/SetPositionPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetPosition/SetPositionPostRequestBody.cs index b6d4ebec20..9b78b15ee4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetPosition/SetPositionPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetPosition/SetPositionPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetPosition { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetPositionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetPositionPostRequestBody : 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. @@ -16,21 +17,21 @@ public class SetPositionPostRequestBody : IAdditionalDataHolder, IParsable /// The endCell property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? EndCell { get; set; } + public UntypedNode? EndCell { get; set; } #nullable restore #else - public Json EndCell { get; set; } + public UntypedNode EndCell { get; set; } #endif /// The startCell property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? StartCell { get; set; } + public UntypedNode? StartCell { get; set; } #nullable restore #else - public Json StartCell { get; set; } + public UntypedNode StartCell { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetPositionPostRequestBody() { @@ -39,12 +40,12 @@ public SetPositionPostRequestBody() /// /// 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 SetPositionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetPosition.SetPositionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetPositionPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetPosition.SetPositionPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "endCell", n => { EndCell = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, - { "startCell", n => { StartCell = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "endCell", n => { EndCell = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "startCell", n => { StartCell = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -65,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("endCell", EndCell); - writer.WriteObjectValue("startCell", StartCell); + writer.WriteObjectValue("endCell", EndCell); + writer.WriteObjectValue("startCell", StartCell); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetPosition/SetPositionRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetPosition/SetPositionRequestBuilder.cs index 583df94ddd..e4f8cd57f1 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetPosition/SetPositionRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/SetPosition/SetPositionRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to call the setPosition method. /// - public class SetPositionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetPositionRequestBuilder : BaseCliRequestBuilder { /// /// Positions the chart relative to cells on the worksheet. @@ -58,8 +61,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(SetPositionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetPosition.SetPositionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 SetPositionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setPosition", 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 SetPositionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setPosition", rawUrl) @@ -102,11 +105,11 @@ public SetPositionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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(SetPositionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetPosition.SetPositionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetPositionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWithName.SetPosition.SetPositionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(SetPositionPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Title/TitleRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Title/TitleRequestBuilder.cs index 525f1c982c..4328d2f942 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Title/TitleRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Title/TitleRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to manage the title property of the microsoft.graph.workbookChart entity. /// - public class TitleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property title for drives @@ -189,8 +192,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(WorkbookChartTitle.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookChartTitle.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 TitleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/title{?%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 TitleRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/title{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(WorkbookChartTitle body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartTitle body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookChartTitle body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookChartTitle body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookChartTitle body, Act /// /// Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. /// - public class TitleRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TitleRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class TitleRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Worksheet/WorksheetRequestBuilder.cs index 24e2f23511..635ee707db 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Worksheet/WorksheetRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Worksheet/WorksheetRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ItemWith /// /// Provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. /// - public class WorksheetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder { /// /// The worksheet containing the current chart. Read-only. @@ -92,14 +95,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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/worksheet{?%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 WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/worksheet{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The worksheet containing the current chart. Read-only. /// - public class WorksheetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class WorksheetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddPostRequestBody.cs index f20e2238db..992f03228b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -32,13 +33,13 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The reference property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Reference { get; set; } + public UntypedNode? Reference { get; set; } #nullable restore #else - public Json Reference { get; set; } + public UntypedNode Reference { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -47,12 +48,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,7 +65,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "comment", n => { Comment = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "reference", n => { Reference = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "reference", n => { Reference = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -76,8 +77,9 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("comment", Comment); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("reference", Reference); + writer.WriteObjectValue("reference", Reference); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.cs index af88b9363e..0f1ac2f4be 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Add/AddRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Adds a new name to the collection of the given scope using the user's locale for the formula. @@ -62,8 +65,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/add", rawUrl) @@ -107,11 +110,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs index 398c35c3c5..0359cb1bd2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.AddFormulaLocal { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddFormulaLocalPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddFormulaLocalPostRequestBody : 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. @@ -37,7 +39,7 @@ public class AddFormulaLocalPostRequestBody : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddFormulaLocalPostRequestBody() { @@ -46,12 +48,12 @@ public AddFormulaLocalPostRequestBody() /// /// 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 AddFormulaLocalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.AddFormulaLocal.AddFormulaLocalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddFormulaLocalPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.AddFormulaLocal.AddFormulaLocalPostRequestBody(); } /// /// The deserialization information for the current model @@ -80,3 +82,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs index 6b741a8ba8..1090564478 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/AddFormulaLocal/AddFormulaLocalRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.AddFormul /// /// Provides operations to call the addFormulaLocal method. /// - public class AddFormulaLocalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddFormulaLocalRequestBuilder : BaseCliRequestBuilder { /// /// Adds a new name to the collection of the given scope using the user's locale for the formula. @@ -62,8 +65,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(AddFormulaLocalPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.AddFormulaLocal.AddFormulaLocalPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AddFormulaLocalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/addFormulaLocal", 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 AddFormulaLocalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/addFormulaLocal", rawUrl) @@ -107,11 +110,11 @@ public AddFormulaLocalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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(AddFormulaLocalPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.AddFormulaLocal.AddFormulaLocalPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddFormulaLocalPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.AddFormulaLocal.AddFormulaLocalPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddFormulaLocalPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Count/CountRequestBuilder.cs index a1cdf8597b..63223d65f8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.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 @@ -75,14 +78,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..091c338f65 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..4fa58d1a4b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..adcafd9a31 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..e41afd8057 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..df10c48fd1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..d6f16647c9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..0a22e14710 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..7573d313b3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..addd48aa59 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..ac368778e8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..a17dc8662c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..b9a0e213bc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..696b36d440 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..fe48858ee3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..356f103d93 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..b2c76524b3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..8a0eac3867 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..82701b70a9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..be1ed91631 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..ea2fd5451b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..81c73b25af --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..d1085e1626 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..dcbd665a74 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs index 570aca59eb..8a6dfaf9f2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.Rang /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Format.FormatRequestBuilder(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; + } /// /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. /// Find more info here @@ -79,14 +319,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", rawUrl) @@ -113,3 +678,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..423cbd435b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..c7b8dc571f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..9f72e60872 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..12f9a41551 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..ef844d7b86 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..97e649c994 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..d739adbcf7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..d3886c219d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..b0d35b561c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..1720ed621f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..6c340e486e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookNamedItemIdOption = new Option("--workbook-named-item-id", description: "The unique identifier of workbookNamedItem") { + }; + workbookNamedItemIdOption.IsRequired = true; + command.AddOption(workbookNamedItemIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookNamedItemId = invocationContext.ParseResult.GetValueForOption(workbookNamedItemIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookNamedItemId is not null) requestInfo.PathParameters.Add("workbookNamedItem%2Did", workbookNamedItemId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.cs index e9762756a0..4def9a7313 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/WorkbookNamedItemItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.Worksheet; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item /// /// Provides operations to manage the names property of the microsoft.graph.workbookWorksheet entity. /// - public class WorkbookNamedItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookNamedItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property names for drives @@ -77,13 +80,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Returns collection of names that are associated with the worksheet. Read-only. + /// The list of names that are associated with the worksheet. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Returns collection of names that are associated with the worksheet. Read-only."; + command.Description = "The list of names that are associated with the worksheet. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -191,8 +194,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(WorkbookNamedItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookNamedItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -223,13 +226,49 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -240,7 +279,7 @@ public Command BuildWorksheetNavCommand() { var command = new Command("worksheet"); command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookNamedItem entity."; - var builder = new WorksheetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.Worksheet.WorksheetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -250,14 +289,14 @@ public Command BuildWorksheetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookNamedItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%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 WorkbookNamedItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}{?%24expand,%24select}", rawUrl) @@ -283,17 +322,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns collection of names that are associated with the worksheet. Read-only. + /// The list of names that are associated with the worksheet. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -309,11 +348,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(WorkbookNamedItem body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookNamedItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookNamedItem body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookNamedItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -323,9 +362,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookNamedItem body, Acti return requestInfo; } /// - /// Returns collection of names that are associated with the worksheet. Read-only. + /// The list of names that are associated with the worksheet. Read-only. /// - public class WorkbookNamedItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookNamedItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +390,4 @@ public class WorkbookNamedItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.cs index 1a24c285e1..f923ab0232 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/Worksheet/WorksheetRequestBuilder.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,16 +21,17 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.Work /// /// Provides operations to manage the worksheet property of the microsoft.graph.workbookNamedItem entity. /// - public class WorksheetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder { /// - /// Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + /// Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only."; + command.Description = "Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -92,31 +95,31 @@ 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/worksheet{?%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 WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", rawUrl) { } /// - /// Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + /// Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -125,9 +128,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + /// Returns the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. /// - public class WorksheetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class WorksheetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs index 076d43cfa2..0b6202bc26 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/NamesRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Add; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.AddFormulaLocal; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names /// /// Provides operations to manage the names property of the microsoft.graph.workbookWorksheet entity. /// - public class NamesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NamesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the addFormulaLocal method. @@ -33,7 +36,7 @@ public Command BuildAddFormulaLocalNavCommand() { var command = new Command("add-formula-local"); command.Description = "Provides operations to call the addFormulaLocal method."; - var builder = new AddFormulaLocalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.AddFormulaLocal.AddFormulaLocalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -50,7 +53,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -67,7 +70,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookNamedItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.WorkbookNamedItemItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -83,7 +86,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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -132,8 +135,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(WorkbookNamedItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookNamedItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -156,13 +159,13 @@ public Command BuildCreateCommand() return command; } /// - /// Returns collection of names that are associated with the worksheet. Read-only. + /// The list of names that are associated with the worksheet. Read-only. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Returns collection of names that are associated with the worksheet. Read-only."; + command.Description = "The list of names that are associated with the worksheet. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -270,31 +273,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public NamesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names{?%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 NamesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Returns collection of names that are associated with the worksheet. Read-only. + /// The list of names that are associated with the worksheet. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -310,11 +313,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(WorkbookNamedItem body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookNamedItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookNamedItem body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookNamedItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -324,9 +327,10 @@ public RequestInformation ToPostRequestInformation(WorkbookNamedItem body, Actio return requestInfo; } /// - /// Returns collection of names that are associated with the worksheet. Read-only. + /// The list of names that are associated with the worksheet. Read-only. /// - public class NamesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NamesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -390,3 +394,4 @@ public class NamesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Count/CountRequestBuilder.cs index 3774efcd2e..67935074af 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/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.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Cou /// /// 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 @@ -75,14 +78,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/$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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.cs index 5f996dbd38..c21d1ff6ea 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Refresh/RefreshRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Ite /// /// Provides operations to call the refresh method. /// - public class RefreshRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilder : BaseCliRequestBuilder { /// /// Refreshes the PivotTable. @@ -68,14 +71,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 RefreshRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/refresh", 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 RefreshRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/refresh", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Item.Refresh; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Item.Worksheet; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Ite /// /// Provides operations to manage the pivotTables property of the microsoft.graph.workbookWorksheet entity. /// - public class WorkbookPivotTableItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookPivotTableItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property pivotTables for drives @@ -77,13 +80,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Collection of PivotTables that are part of the worksheet. + /// The list of piot tables that are part of the worksheet. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Collection of PivotTables that are part of the worksheet."; + command.Description = "The list of piot tables that are part of the worksheet."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -191,8 +194,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(WorkbookPivotTable.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookPivotTable.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -223,7 +226,7 @@ public Command BuildRefreshNavCommand() { var command = new Command("refresh"); command.Description = "Provides operations to call the refresh method."; - var builder = new RefreshRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Item.Refresh.RefreshRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -240,7 +243,7 @@ public Command BuildWorksheetNavCommand() { var command = new Command("worksheet"); command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookPivotTable entity."; - var builder = new WorksheetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Item.Worksheet.WorksheetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -250,14 +253,14 @@ public Command BuildWorksheetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookPivotTableItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%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 WorkbookPivotTableItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}{?%24expand,%24select}", rawUrl) @@ -283,17 +286,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Collection of PivotTables that are part of the worksheet. + /// The list of piot tables that are part of the worksheet. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -309,11 +312,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(WorkbookPivotTable body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookPivotTable body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookPivotTable body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookPivotTable body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -323,9 +326,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookPivotTable body, Act return requestInfo; } /// - /// Collection of PivotTables that are part of the worksheet. + /// The list of piot tables that are part of the worksheet. /// - public class WorkbookPivotTableItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookPivotTableItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +354,4 @@ public class WorkbookPivotTableItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.cs index d09925620a..26c1e9a95e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/Item/Worksheet/WorksheetRequestBuilder.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,16 +21,17 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Ite /// /// Provides operations to manage the worksheet property of the microsoft.graph.workbookPivotTable entity. /// - public class WorksheetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder { /// - /// The worksheet containing the current PivotTable. Read-only. + /// The worksheet that contains the current pivot table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The worksheet containing the current PivotTable. Read-only."; + command.Description = "The worksheet that contains the current pivot table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -92,31 +95,31 @@ 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/worksheet{?%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 WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/worksheet{?%24expand,%24select}", rawUrl) { } /// - /// The worksheet containing the current PivotTable. Read-only. + /// The worksheet that contains the current pivot table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -125,9 +128,10 @@ public RequestInformation ToGetRequestInformation(Action - /// The worksheet containing the current PivotTable. Read-only. + /// The worksheet that contains the current pivot table. Read-only. /// - public class WorksheetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class WorksheetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs index a6ebc0c90e..af08170b5c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/PivotTablesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Item; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.RefreshAll; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables /// /// Provides operations to manage the pivotTables property of the microsoft.graph.workbookWorksheet entity. /// - public class PivotTablesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PivotTablesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pivotTables property of the microsoft.graph.workbookWorksheet entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookPivotTableItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Item.WorkbookPivotTableItemRequestBuilder(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.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -97,8 +100,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(WorkbookPivotTable.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookPivotTable.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -121,13 +124,13 @@ public Command BuildCreateCommand() return command; } /// - /// Collection of PivotTables that are part of the worksheet. + /// The list of piot tables that are part of the worksheet. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Collection of PivotTables that are part of the worksheet."; + command.Description = "The list of piot tables that are part of the worksheet."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -242,7 +245,7 @@ public Command BuildRefreshAllNavCommand() { var command = new Command("refresh-all"); command.Description = "Provides operations to call the refreshAll method."; - var builder = new RefreshAllRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.RefreshAll.RefreshAllRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -252,31 +255,31 @@ public Command BuildRefreshAllNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PivotTablesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables{?%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 PivotTablesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Collection of PivotTables that are part of the worksheet. + /// The list of piot tables that are part of the worksheet. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -292,11 +295,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(WorkbookPivotTable body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookPivotTable body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookPivotTable body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookPivotTable body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -306,9 +309,10 @@ public RequestInformation ToPostRequestInformation(WorkbookPivotTable body, Acti return requestInfo; } /// - /// Collection of PivotTables that are part of the worksheet. + /// The list of piot tables that are part of the worksheet. /// - public class PivotTablesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PivotTablesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -372,3 +376,4 @@ public class PivotTablesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.cs index 4fcdfce3f6..1c2bea329f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/PivotTables/RefreshAll/RefreshAllRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.Ref /// /// Provides operations to call the refreshAll method. /// - public class RefreshAllRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshAllRequestBuilder : BaseCliRequestBuilder { /// /// Refreshes the PivotTable within a given worksheet. @@ -62,14 +65,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 RefreshAllRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/refreshAll", 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 RefreshAllRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/refreshAll", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Protect { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ProtectPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ProtectPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ProtectPostRequestBody : IAdditionalDataHolder, IParsable /// The options property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkbookWorksheetProtectionOptions? Options { get; set; } + public global::ApiSdk.Models.WorkbookWorksheetProtectionOptions? Options { get; set; } #nullable restore #else - public WorkbookWorksheetProtectionOptions Options { get; set; } + public global::ApiSdk.Models.WorkbookWorksheetProtectionOptions Options { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ProtectPostRequestBody() { @@ -31,12 +33,12 @@ public ProtectPostRequestBody() /// /// 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 ProtectPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Protect.ProtectPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtectPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Protect.ProtectPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "options", n => { Options = n.GetObjectValue(WorkbookWorksheetProtectionOptions.CreateFromDiscriminatorValue); } }, + { "options", n => { Options = n.GetObjectValue(global::ApiSdk.Models.WorkbookWorksheetProtectionOptions.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("options", Options); + writer.WriteObjectValue("options", Options); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.cs index 13beaa22fa..848210f1d3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Protect/ProtectRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Prot /// /// Provides operations to call the protect method. /// - public class ProtectRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProtectRequestBuilder : BaseCliRequestBuilder { /// /// Protect a worksheet. It throws if the worksheet has been protected. @@ -53,8 +56,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(ProtectPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Protect.ProtectPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 ProtectRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/protect", 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 ProtectRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/protect", rawUrl) @@ -96,11 +99,11 @@ public ProtectRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(ProtectPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Protect.ProtectPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProtectPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Protect.ProtectPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(ProtectPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs index 0f7c0c4377..8f2b57bf27 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/ProtectionRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Protect; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Unprotect; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection /// /// Provides operations to manage the protection property of the microsoft.graph.workbookWorksheet entity. /// - public class ProtectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProtectionRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property protection for drives @@ -71,13 +74,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Returns sheet protection object for a worksheet. Read-only. + /// The sheet protection object for a worksheet. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Returns sheet protection object for a worksheet. Read-only."; + command.Description = "The sheet protection object for a worksheet. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -174,8 +177,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(WorkbookWorksheetProtection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookWorksheetProtection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -205,7 +208,7 @@ public Command BuildProtectNavCommand() { var command = new Command("protect"); command.Description = "Provides operations to call the protect method."; - var builder = new ProtectRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Protect.ProtectRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -222,7 +225,7 @@ public Command BuildUnprotectNavCommand() { var command = new Command("unprotect"); command.Description = "Provides operations to call the unprotect method."; - var builder = new UnprotectRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Unprotect.UnprotectRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildUnprotectNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ProtectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection{?%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 ProtectionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection{?%24expand,%24select}", rawUrl) @@ -265,17 +268,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns sheet protection object for a worksheet. Read-only. + /// The sheet protection object for a worksheet. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookWorksheetProtection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookWorksheetProtection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookWorksheetProtection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookWorksheetProtection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -305,9 +308,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookWorksheetProtection return requestInfo; } /// - /// Returns sheet protection object for a worksheet. Read-only. + /// The sheet protection object for a worksheet. Read-only. /// - public class ProtectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProtectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class ProtectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.cs index 7e615f14d6..ef92663124 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Protection/Unprotect/UnprotectRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.Unpr /// /// Provides operations to call the unprotect method. /// - public class UnprotectRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnprotectRequestBuilder : BaseCliRequestBuilder { /// /// Unprotect a worksheet @@ -62,14 +65,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 UnprotectRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/unprotect", 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 UnprotectRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/unprotect", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..425fc7b983 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..ce2c356d37 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..25aa50e9bb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Clear/ClearRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..aa49a2913f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..6c7e03f868 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..52cdf0675e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..f7d1a7e34b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..7d4443679c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..92f04ba1f9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..38c52238ed --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..cbce62f0da --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..2d4d982168 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..3e53be12ed --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Format/FormatRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..e3bdc91c74 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..cc5c4ddfec --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Insert/InsertRequestBuilder.cs @@ -0,0 +1,127 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..9838cc2882 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..c244bab438 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..149ca83e79 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..66e74ae3ed --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..02df3999f5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..e7fc0e647f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Merge/MergeRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..862c0b395e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RangeRequestBuilder.cs index e9c7add446..97e0223a1c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Format.FormatRequestBuilder(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; + } /// /// Invoke function range /// @@ -72,14 +312,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()", rawUrl) @@ -106,3 +671,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..c72cdd7600 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..9051474af8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..68d8915508 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..bbf2c8c45e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..54032f8ccf --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..5d53f87d76 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Sort/SortRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..f9f1295a91 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,101 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..f729888ed3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..fd6cfc18d4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..424e3d0134 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..7b1bde1be4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,153 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..704d28bfa5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..176b2e872f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..6bfea4a911 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..ef4eda683b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..1cbd17a087 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..c1aed8c919 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..97d92de309 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..26734c20a0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..2a1f24295d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..3f5c1e7e6c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..96f8fa2d97 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..9759ee05a2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..d7aacba491 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..438d148ba4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..5aebd14f62 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..8fef3fd058 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..ea6d5c9482 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..eb07540a8c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..ef8a11933c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..7a8d29596d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..dfab9dcee8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..658d1b5539 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..1d07d81828 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.cs index 702b904409..d24a024b06 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RangeWithAddressRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddres /// /// Provides operations to call the range method. /// - public class RangeWithAddressRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeWithAddressRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Format.FormatRequestBuilder(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; + } /// /// Invoke function range /// @@ -78,14 +318,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RangeWithAddressRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')", 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 RangeWithAddressRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')", rawUrl) @@ -112,3 +677,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..1d08ae575b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..4a8ea17fdb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..899cf6da7e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..f6be442242 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..08e2c06085 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..90268e12e4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..98dbe1446b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..0d332decc6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..2dd71ce810 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..cb2f5359ef --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..76df82e34c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/RangeWithAddress/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var addressOption = new Option("--address", description: "Usage: address='{address}'") { + }; + addressOption.IsRequired = true; + command.AddOption(addressOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var address = invocationContext.ParseResult.GetValueForOption(addressOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (address is not null) requestInfo.PathParameters.Add("address", address); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddPostRequestBody.cs index 1142fb0b79..f47cfb7106 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The hasHeaders property public bool? HasHeaders { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -32,12 +34,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs index 4c4bed7dae..1624cad36e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// - /// Use this API to create a new Table. - /// Find more info here + /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Use this API to create a new Table.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0"; + command.Description = "Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -62,8 +65,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", rawUrl) { } /// - /// Use this API to create a new Table. + /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. /// /// 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 ToPostRequestInformation(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.cs index a77f365fec..3763d942a5 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Count { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountGetResponse : IAdditionalDataHolder, IParsable + public partial class CountGetResponse : 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. @@ -15,7 +17,7 @@ public class CountGetResponse : IAdditionalDataHolder, IParsable /// The value property public int? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountGetResponse() { @@ -24,12 +26,12 @@ public CountGetResponse() /// /// 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 CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Count.CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Count.CountGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.cs index d2cef7d2f7..33c7d779bf 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Count /// /// Provides operations to call the count method. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function count @@ -71,14 +74,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/count()", 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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/count()", rawUrl) @@ -105,3 +108,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Cle /// /// Provides operations to call the clearFilters method. /// - public class ClearFiltersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearFiltersRequestBuilder : BaseCliRequestBuilder { /// /// Clears all the filters currently applied on the table. @@ -68,14 +71,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 ClearFiltersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/clearFilters", 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 ClearFiltersRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/clearFilters", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -26,13 +27,13 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -41,12 +42,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -58,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "index", n => { Index = n.GetIntValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -70,8 +71,9 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("index", Index); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.cs index 6d538e85ef..e865a56ad9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Add/AddRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Adds a new column to the table. @@ -67,8 +70,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/add", rawUrl) @@ -113,11 +116,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs index 151a6210c2..92633a41cc 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Add; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ItemAtWithIndex; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -33,7 +36,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -50,7 +53,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookTableColumnItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.WorkbookTableColumnItemRequestBuilder(PathParameters); commands.Add(builder.BuildDataBodyRangeNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFilterNavCommand()); @@ -69,7 +72,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to call the count method."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -123,8 +126,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(WorkbookTableColumn.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableColumn.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -155,7 +158,7 @@ public Command BuildItemAtWithIndexRbCommand() { var command = new Command("item-at-with-index"); command.Description = "Provides operations to call the itemAt method."; - var builder = new ItemAtWithIndexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ItemAtWithIndex.ItemAtWithIndexRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildDataBodyRangeNavCommand()); @@ -175,13 +178,13 @@ public Command BuildItemAtWithIndexRbCommand() return command; } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Represents a collection of all the columns in the table. Read-only."; + command.Description = "The list of all the columns in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -295,31 +298,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -335,11 +338,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(WorkbookTableColumn body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookTableColumn body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -349,9 +352,10 @@ public RequestInformation ToPostRequestInformation(WorkbookTableColumn body, Act return requestInfo; } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -415,3 +419,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.cs index db2523e2aa..8ddd725f7d 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Count { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountGetResponse : IAdditionalDataHolder, IParsable + public partial class CountGetResponse : 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. @@ -15,7 +17,7 @@ public class CountGetResponse : IAdditionalDataHolder, IParsable /// The value property public int? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountGetResponse() { @@ -24,12 +26,12 @@ public CountGetResponse() /// /// 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 CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Count.CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Count.CountGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.cs index 9f61940a22..d2765f89ed 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the count method. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function count @@ -77,14 +80,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/count()", 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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/count()", rawUrl) @@ -111,3 +114,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..4bcfdbd040 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..96c404d2e8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..e65208b4b1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..53b70236e0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..1172e41c94 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..f194334f03 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..abed45934e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..4edbc52525 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index fb6078f88a..ec269c956a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the dataBodyRange method. /// - public class DataBodyRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataBodyRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with the data body of the column. /// Find more info here @@ -85,14 +325,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DataBodyRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", 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 DataBodyRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", rawUrl) @@ -119,3 +684,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..6f4f83d5b8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..82cec62cbd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..82d4abdfa9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..d7af98e5f8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..e332fa632a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..d71b93cc38 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,139 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..50d8e44407 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..3eb0e0d7a5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..698760421d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..0947e2bc1c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..ab6a709a45 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..9ad60b9447 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..f58acb7a22 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..5b117d85c3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..24feb667dd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..ea89c3ce8f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..6eff20fe90 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..eb64425de2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..b863ef93b7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..2e80f4e81e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..7551367ff4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,113 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..2bcd4b4377 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..e0a9990e2c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..1804f62846 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..094ef2f470 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,165 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs index 989a8000ed..27b80ed3a0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyPostRequestBody.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.Apply { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ApplyPostRequestBody : IAdditionalDataHolder, IParsable /// The criteria property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkbookFilterCriteria? Criteria { get; set; } + public global::ApiSdk.Models.WorkbookFilterCriteria? Criteria { get; set; } #nullable restore #else - public WorkbookFilterCriteria Criteria { get; set; } + public global::ApiSdk.Models.WorkbookFilterCriteria Criteria { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyPostRequestBody() { @@ -31,12 +33,12 @@ public ApplyPostRequestBody() /// /// 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 ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.Apply.ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.Apply.ApplyPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "criteria", n => { Criteria = n.GetObjectValue(WorkbookFilterCriteria.CreateFromDiscriminatorValue); } }, + { "criteria", n => { Criteria = n.GetObjectValue(global::ApiSdk.Models.WorkbookFilterCriteria.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("criteria", Criteria); + writer.WriteObjectValue("criteria", Criteria); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs index c92c3b4ec3..ecec4c7a4e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Apply/ApplyRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the apply method. /// - public class ApplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyRequestBuilder : BaseCliRequestBuilder { /// /// Apply the given filter criteria on the given column. @@ -63,8 +66,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(ApplyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.Apply.ApplyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -87,14 +90,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 ApplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", 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 ApplyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", rawUrl) @@ -108,11 +111,11 @@ public ApplyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ApplyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.Apply.ApplyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.Apply.ApplyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -123,3 +126,4 @@ public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs index a53d9d5e3b..5e19cc3917 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyBottomItemsFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyBottomItemsFilterPostRequestBody : 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. @@ -15,7 +17,7 @@ public class ApplyBottomItemsFilterPostRequestBody : IAdditionalDataHolder, IPar /// The count property public int? Count { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyBottomItemsFilterPostRequestBody() { @@ -24,12 +26,12 @@ public ApplyBottomItemsFilterPostRequestBody() /// /// 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 ApplyBottomItemsFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyBottomItemsFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs index 8994297672..d26b448b76 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomItemsFilter/ApplyBottomItemsFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the applyBottomItemsFilter method. /// - public class ApplyBottomItemsFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyBottomItemsFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyBottomItemsFilter @@ -62,8 +65,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(ApplyBottomItemsFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 ApplyBottomItemsFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomItemsFilter", 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 ApplyBottomItemsFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomItemsFilter", rawUrl) @@ -107,11 +110,11 @@ public ApplyBottomItemsFilterRequestBuilder(string rawUrl) : base("{+baseurl}/dr /// 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(ApplyBottomItemsFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyBottomItemsFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(ApplyBottomItemsFilterPostReq } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs index 23d76905b1..27e1af7d80 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyBottomPercentFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyBottomPercentFilterPostRequestBody : 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. @@ -15,7 +17,7 @@ public class ApplyBottomPercentFilterPostRequestBody : IAdditionalDataHolder, IP /// The percent property public int? Percent { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyBottomPercentFilterPostRequestBody() { @@ -24,12 +26,12 @@ public ApplyBottomPercentFilterPostRequestBody() /// /// 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 ApplyBottomPercentFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyBottomPercentFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs index 3bf3b4a342..729daa4491 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyBottomPercentFilter/ApplyBottomPercentFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the applyBottomPercentFilter method. /// - public class ApplyBottomPercentFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyBottomPercentFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyBottomPercentFilter @@ -62,8 +65,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(ApplyBottomPercentFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 ApplyBottomPercentFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomPercentFilter", 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 ApplyBottomPercentFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomPercentFilter", rawUrl) @@ -107,11 +110,11 @@ public ApplyBottomPercentFilterRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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(ApplyBottomPercentFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyBottomPercentFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(ApplyBottomPercentFilterPostR } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs index 0022f6fc8e..3fcb69de15 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyCellColorFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyCellColorFilterPostRequestBody : 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. @@ -21,7 +23,7 @@ public class ApplyCellColorFilterPostRequestBody : IAdditionalDataHolder, IParsa public string Color { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyCellColorFilterPostRequestBody() { @@ -30,12 +32,12 @@ public ApplyCellColorFilterPostRequestBody() /// /// 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 ApplyCellColorFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyCellColorFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs index 85f22a5575..9d1c5a6fda 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCellColorFilter/ApplyCellColorFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the applyCellColorFilter method. /// - public class ApplyCellColorFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyCellColorFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyCellColorFilter @@ -62,8 +65,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(ApplyCellColorFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 ApplyCellColorFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCellColorFilter", 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 ApplyCellColorFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCellColorFilter", rawUrl) @@ -107,11 +110,11 @@ public ApplyCellColorFilterRequestBuilder(string rawUrl) : base("{+baseurl}/driv /// 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(ApplyCellColorFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyCellColorFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(ApplyCellColorFilterPostReque } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs index 5bcf6fce70..5bdb35a32c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCustomFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyCustomFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyCustomFilterPostRequestBody : 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. @@ -37,7 +39,7 @@ public class ApplyCustomFilterPostRequestBody : IAdditionalDataHolder, IParsable public string Oper { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyCustomFilterPostRequestBody() { @@ -46,12 +48,12 @@ public ApplyCustomFilterPostRequestBody() /// /// 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 ApplyCustomFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyCustomFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -80,3 +82,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs index 5503dda703..6513ddbab0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyCustomFilter/ApplyCustomFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the applyCustomFilter method. /// - public class ApplyCustomFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyCustomFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyCustomFilter @@ -62,8 +65,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(ApplyCustomFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 ApplyCustomFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCustomFilter", 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 ApplyCustomFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCustomFilter", rawUrl) @@ -107,11 +110,11 @@ public ApplyCustomFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/ /// 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(ApplyCustomFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyCustomFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(ApplyCustomFilterPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs index b8b27098ce..61f1a2984f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyDynamicFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyDynamicFilterPostRequestBody : 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. @@ -21,7 +23,7 @@ public class ApplyDynamicFilterPostRequestBody : IAdditionalDataHolder, IParsabl public string Criteria { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyDynamicFilterPostRequestBody() { @@ -30,12 +32,12 @@ public ApplyDynamicFilterPostRequestBody() /// /// 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 ApplyDynamicFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyDynamicFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs index 65345d40eb..82af5d01eb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyDynamicFilter/ApplyDynamicFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the applyDynamicFilter method. /// - public class ApplyDynamicFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyDynamicFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyDynamicFilter @@ -62,8 +65,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(ApplyDynamicFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 ApplyDynamicFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter", 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 ApplyDynamicFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter", rawUrl) @@ -107,11 +110,11 @@ public ApplyDynamicFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives /// 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(ApplyDynamicFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyDynamicFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(ApplyDynamicFilterPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs index 894330bfb4..a475ac9e9b 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyFontColorFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyFontColorFilterPostRequestBody : 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. @@ -21,7 +23,7 @@ public class ApplyFontColorFilterPostRequestBody : IAdditionalDataHolder, IParsa public string Color { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyFontColorFilterPostRequestBody() { @@ -30,12 +32,12 @@ public ApplyFontColorFilterPostRequestBody() /// /// 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 ApplyFontColorFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyFontColorFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs index d2c74722a0..fa465e561f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyFontColorFilter/ApplyFontColorFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the applyFontColorFilter method. /// - public class ApplyFontColorFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyFontColorFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyFontColorFilter @@ -62,8 +65,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(ApplyFontColorFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 ApplyFontColorFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter", 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 ApplyFontColorFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter", rawUrl) @@ -107,11 +110,11 @@ public ApplyFontColorFilterRequestBuilder(string rawUrl) : base("{+baseurl}/driv /// 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(ApplyFontColorFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyFontColorFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(ApplyFontColorFilterPostReque } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs index 5279072901..a4a0f72e1f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterPostRequestBody.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyIconFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyIconFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyIconFilterPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ApplyIconFilterPostRequestBody : IAdditionalDataHolder, IParsable /// The icon property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WorkbookIcon? Icon { get; set; } + public global::ApiSdk.Models.WorkbookIcon? Icon { get; set; } #nullable restore #else - public WorkbookIcon Icon { get; set; } + public global::ApiSdk.Models.WorkbookIcon Icon { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyIconFilterPostRequestBody() { @@ -31,12 +33,12 @@ public ApplyIconFilterPostRequestBody() /// /// 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 ApplyIconFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyIconFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "icon", n => { Icon = n.GetObjectValue(WorkbookIcon.CreateFromDiscriminatorValue); } }, + { "icon", n => { Icon = n.GetObjectValue(global::ApiSdk.Models.WorkbookIcon.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("icon", Icon); + writer.WriteObjectValue("icon", Icon); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs index d0ac8c58e6..f22d9c4beb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyIconFilter/ApplyIconFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the applyIconFilter method. /// - public class ApplyIconFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyIconFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyIconFilter @@ -62,8 +65,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(ApplyIconFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 ApplyIconFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyIconFilter", 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 ApplyIconFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyIconFilter", rawUrl) @@ -107,11 +110,11 @@ public ApplyIconFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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(ApplyIconFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyIconFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(ApplyIconFilterPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs index ef26810a54..c741ffd8e4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyTopItemsFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyTopItemsFilterPostRequestBody : 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. @@ -15,7 +17,7 @@ public class ApplyTopItemsFilterPostRequestBody : IAdditionalDataHolder, IParsab /// The count property public int? Count { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyTopItemsFilterPostRequestBody() { @@ -24,12 +26,12 @@ public ApplyTopItemsFilterPostRequestBody() /// /// 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 ApplyTopItemsFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyTopItemsFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs index 986478a7de..16f5cb4880 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopItemsFilter/ApplyTopItemsFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the applyTopItemsFilter method. /// - public class ApplyTopItemsFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyTopItemsFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyTopItemsFilter @@ -62,8 +65,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(ApplyTopItemsFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 ApplyTopItemsFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopItemsFilter", 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 ApplyTopItemsFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopItemsFilter", rawUrl) @@ -107,11 +110,11 @@ public ApplyTopItemsFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drive /// 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(ApplyTopItemsFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyTopItemsFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(ApplyTopItemsFilterPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs index 4791a69e8a..77f593be03 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyTopPercentFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyTopPercentFilterPostRequestBody : 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. @@ -15,7 +17,7 @@ public class ApplyTopPercentFilterPostRequestBody : IAdditionalDataHolder, IPars /// The percent property public int? Percent { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyTopPercentFilterPostRequestBody() { @@ -24,12 +26,12 @@ public ApplyTopPercentFilterPostRequestBody() /// /// 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 ApplyTopPercentFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyTopPercentFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs index a578d0fb98..0da9f62134 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyTopPercentFilter/ApplyTopPercentFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the applyTopPercentFilter method. /// - public class ApplyTopPercentFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyTopPercentFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyTopPercentFilter @@ -62,8 +65,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(ApplyTopPercentFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 ApplyTopPercentFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopPercentFilter", 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 ApplyTopPercentFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopPercentFilter", rawUrl) @@ -107,11 +110,11 @@ public ApplyTopPercentFilterRequestBuilder(string rawUrl) : base("{+baseurl}/dri /// 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(ApplyTopPercentFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyTopPercentFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(ApplyTopPercentFilterPostRequ } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs index 651bc56dbe..5e08e37fd2 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterPostRequestBody.cs @@ -1,14 +1,15 @@ // -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyValuesFilter { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyValuesFilterPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyValuesFilterPostRequestBody : 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. @@ -16,13 +17,13 @@ public class ApplyValuesFilterPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyValuesFilterPostRequestBody() { @@ -31,12 +32,12 @@ public ApplyValuesFilterPostRequestBody() /// /// 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 ApplyValuesFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyValuesFilterPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs index fb55fd2de4..1c5a2901ee 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/ApplyValuesFilter/ApplyValuesFilterRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the applyValuesFilter method. /// - public class ApplyValuesFilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyValuesFilterRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action applyValuesFilter @@ -62,8 +65,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(ApplyValuesFilterPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 ApplyValuesFilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyValuesFilter", 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 ApplyValuesFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyValuesFilter", rawUrl) @@ -107,11 +110,11 @@ public ApplyValuesFilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/ /// 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(ApplyValuesFilterPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyValuesFilterPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(ApplyValuesFilterPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs index edbb8731e7..5cbd338685 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/Filter/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clear the filter on the given column. @@ -74,14 +77,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", rawUrl) @@ -108,3 +111,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.Apply; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter; @@ -13,6 +14,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.Clear; 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; @@ -31,7 +33,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. /// - public class FilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the applyBottomItemsFilter method. @@ -41,7 +44,7 @@ public Command BuildApplyBottomItemsFilterNavCommand() { var command = new Command("apply-bottom-items-filter"); command.Description = "Provides operations to call the applyBottomItemsFilter method."; - var builder = new ApplyBottomItemsFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomItemsFilter.ApplyBottomItemsFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -58,7 +61,7 @@ public Command BuildApplyBottomPercentFilterNavCommand() { var command = new Command("apply-bottom-percent-filter"); command.Description = "Provides operations to call the applyBottomPercentFilter method."; - var builder = new ApplyBottomPercentFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyBottomPercentFilter.ApplyBottomPercentFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -75,7 +78,7 @@ public Command BuildApplyCellColorFilterNavCommand() { var command = new Command("apply-cell-color-filter"); command.Description = "Provides operations to call the applyCellColorFilter method."; - var builder = new ApplyCellColorFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCellColorFilter.ApplyCellColorFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -92,7 +95,7 @@ public Command BuildApplyCustomFilterNavCommand() { var command = new Command("apply-custom-filter"); command.Description = "Provides operations to call the applyCustomFilter method."; - var builder = new ApplyCustomFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyCustomFilter.ApplyCustomFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -109,7 +112,7 @@ public Command BuildApplyDynamicFilterNavCommand() { var command = new Command("apply-dynamic-filter"); command.Description = "Provides operations to call the applyDynamicFilter method."; - var builder = new ApplyDynamicFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyDynamicFilter.ApplyDynamicFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -126,7 +129,7 @@ public Command BuildApplyFontColorFilterNavCommand() { var command = new Command("apply-font-color-filter"); command.Description = "Provides operations to call the applyFontColorFilter method."; - var builder = new ApplyFontColorFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyFontColorFilter.ApplyFontColorFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -143,7 +146,7 @@ public Command BuildApplyIconFilterNavCommand() { var command = new Command("apply-icon-filter"); command.Description = "Provides operations to call the applyIconFilter method."; - var builder = new ApplyIconFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyIconFilter.ApplyIconFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -160,7 +163,7 @@ public Command BuildApplyNavCommand() { var command = new Command("apply"); command.Description = "Provides operations to call the apply method."; - var builder = new ApplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.Apply.ApplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -177,7 +180,7 @@ public Command BuildApplyTopItemsFilterNavCommand() { var command = new Command("apply-top-items-filter"); command.Description = "Provides operations to call the applyTopItemsFilter method."; - var builder = new ApplyTopItemsFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopItemsFilter.ApplyTopItemsFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -194,7 +197,7 @@ public Command BuildApplyTopPercentFilterNavCommand() { var command = new Command("apply-top-percent-filter"); command.Description = "Provides operations to call the applyTopPercentFilter method."; - var builder = new ApplyTopPercentFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyTopPercentFilter.ApplyTopPercentFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -211,7 +214,7 @@ public Command BuildApplyValuesFilterNavCommand() { var command = new Command("apply-values-filter"); command.Description = "Provides operations to call the applyValuesFilter method."; - var builder = new ApplyValuesFilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.ApplyValuesFilter.ApplyValuesFilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -228,7 +231,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -297,13 +300,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the filter applied to the column. Read-only."; + command.Description = "The filter applied to the column. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -422,8 +425,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(WorkbookFilter.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookFilter.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -448,14 +451,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 FilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%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 FilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24expand,%24select}", rawUrl) @@ -481,17 +484,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -507,11 +510,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(WorkbookFilter body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookFilter body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookFilter body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookFilter body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -521,9 +524,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookFilter body, Action< return requestInfo; } /// - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// - public class FilterRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -548,3 +552,4 @@ public class FilterRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..0eca71da2b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..8b85214f6d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..d1029a0d64 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..114e8cfa85 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..e069aa2cac --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..5ea6e4bd8d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..a68b637f93 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..f1bb2dc71e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..8424f0e3ca --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..aeb456f503 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..5cb8a5d9c8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..06efb6e069 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..a9d61f2211 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..75819f4083 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index 0554648cf2..34945b8235 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the headerRowRange method. /// - public class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with the header row of the column. /// Find more info here @@ -85,14 +325,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public HeaderRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", 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 HeaderRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", rawUrl) @@ -119,3 +684,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..4c836d2a3a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,139 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..6c99bf2dfc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..2bd2e0a735 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..047f5f639c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..23a1489b73 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..442ad57b50 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..68bfe67893 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..5989fd3be3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..78f9de35b5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..494a7aedf7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..3666d24b60 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..6de2d5e8f7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..de3ca6be52 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..0141fad03b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..bab91d4611 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..f3cd9021f1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,113 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..d248ade4f8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..018df76a9f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..39f60a2d4e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..b6c1c8a383 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,165 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..0a671c11eb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..611c91d7f5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..4eb8080725 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..8a71dab97c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Clear/ClearRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..16a03a42bd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..7106e5dcef --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..4e55ed1b15 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..dcaa781722 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..6302ff8d03 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..fb728d11a7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..39d5a0ab5e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..0da1e6b15b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..a76508a05c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..08ef1e8325 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Format/FormatRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..df4c937f6b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..bde484f04b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Insert/InsertRequestBuilder.cs @@ -0,0 +1,139 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..ec706b6e0e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..610433755b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..18040c6bc0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..ab18c1162d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..563313f6e3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..6a537a5ce8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Merge/MergeRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..aab7d32788 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs index 38639a5440..007ec9583a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with the entire column. /// Find more info here @@ -85,14 +325,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", rawUrl) @@ -119,3 +684,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..e09bde8689 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..eb77e20356 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..a1049e0e3f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..d7cc994ee0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..7c3884a088 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..d11019e47a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Sort/SortRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..d213e10d4d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,113 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..0e76034fef --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..01a3c6ec5d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..e76312cd9f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..094264e5d0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,165 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..067927c7f4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..ea3ae1c3ef --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..b8a9a48935 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..eed5511b93 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..f780c28223 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..94cc016e24 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..a681ea41d8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..07fa5c9ab2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..6d46e16c84 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..dedd1b0c3e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..3d67e11b04 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..06be4fe1a9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..5de9a3598e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..67666500bc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..2382296ed6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..2993eab643 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,139 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..2e9089383b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..313163d675 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..1fcafcd58d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..e21a4a6070 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..67cde40752 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..4730bb8fdc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..2dce93390f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..5fa276f069 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..5f12bb1ecd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..35f105fe88 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..b58679d698 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..ad266bf177 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..39e92472a7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..a7c1641785 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index a99bbb8770..b459c819e9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the totalRowRange method. /// - public class TotalRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TotalRowRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with the totals row of the column. /// Find more info here @@ -85,14 +325,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TotalRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", 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 TotalRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", rawUrl) @@ -119,3 +684,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..a7cf4d7999 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..9669acab94 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..a2e3621533 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..d5e2eaebe2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,165 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableColumnIdOption = new Option("--workbook-table-column-id", description: "The unique identifier of workbookTableColumn") { + }; + workbookTableColumnIdOption.IsRequired = true; + command.AddOption(workbookTableColumnIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableColumnId = invocationContext.ParseResult.GetValueForOption(workbookTableColumnIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableColumnId is not null) requestInfo.PathParameters.Add("workbookTableColumn%2Did", workbookTableColumnId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs index 351e750d63..25be58ce02 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/Item/WorkbookTableColumnItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange; @@ -6,6 +7,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange; 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 +26,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. /// - public class WorkbookTableColumnItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableColumnItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the dataBodyRange method. @@ -34,13 +37,49 @@ public Command BuildDataBodyRangeNavCommand() { var command = new Command("data-body-range"); command.Description = "Provides operations to call the dataBodyRange method."; - var builder = new DataBodyRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.DataBodyRange.DataBodyRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -110,7 +149,7 @@ public Command BuildFilterNavCommand() { var command = new Command("filter"); command.Description = "Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity."; - var builder = new FilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.Filter.FilterRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildApplyBottomItemsFilterNavCommand()); @@ -139,13 +178,13 @@ public Command BuildFilterNavCommand() return command; } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents a collection of all the columns in the table. Read-only."; + command.Description = "The list of all the columns in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -222,13 +261,49 @@ public Command BuildHeaderRowRangeNavCommand() { var command = new Command("header-row-range"); command.Description = "Provides operations to call the headerRowRange method."; - var builder = new HeaderRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.HeaderRowRange.HeaderRowRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -281,8 +356,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(WorkbookTableColumn.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableColumn.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -314,13 +389,49 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -331,24 +442,60 @@ public Command BuildTotalRowRangeNavCommand() { var command = new Command("total-row-range"); command.Description = "Provides operations to call the totalRowRange method."; - var builder = new TotalRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Item.TotalRowRange.TotalRowRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookTableColumnItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%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 WorkbookTableColumnItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24expand,%24select}", rawUrl) @@ -374,17 +521,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -400,11 +547,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(WorkbookTableColumn body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookTableColumn body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -414,9 +561,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableColumn body, Ac return requestInfo; } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// - public class WorkbookTableColumnItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableColumnItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -441,3 +589,4 @@ public class WorkbookTableColumnItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/DataBodyRange/DataBodyRangeRequestBuilder.cs index e97833d73e..d0a86f946e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/DataBodyRange/DataBodyRangeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the dataBodyRange method. /// - public class DataBodyRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataBodyRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with the data body of the column. @@ -85,14 +88,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 DataBodyRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()", 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 DataBodyRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()", rawUrl) @@ -119,3 +122,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. /// - public class FilterRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property filter for drives @@ -81,13 +84,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the filter applied to the column. Read-only."; + command.Description = "The filter applied to the column. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -206,8 +209,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(WorkbookFilter.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookFilter.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 FilterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%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 FilterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%24expand,%24select}", rawUrl) @@ -265,17 +268,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WorkbookFilter body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookFilter body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookFilter body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookFilter body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -305,9 +308,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookFilter body, Action< return requestInfo; } /// - /// Retrieve the filter applied to the column. Read-only. + /// The filter applied to the column. Read-only. /// - public class FilterRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class FilterRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index 14450dcbc2..88b910ab5f 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ItemAtWithIndex/HeaderRowRange/HeaderRowRangeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the headerRowRange method. /// - public class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with the header row of the column. @@ -85,14 +88,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 HeaderRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()", 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 HeaderRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()", rawUrl) @@ -119,3 +122,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ItemAtWithIndex.DataBodyRange; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ItemAtWithIndex.Filter; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ItemAtWithIndex.HeaderRowRange; @@ -6,6 +7,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ItemAtWithIndex.TotalRowRange; 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 +26,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the itemAt method. /// - public class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the dataBodyRange method. @@ -34,7 +37,7 @@ public Command BuildDataBodyRangeNavCommand() { var command = new Command("data-body-range"); command.Description = "Provides operations to call the dataBodyRange method."; - var builder = new DataBodyRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ItemAtWithIndex.DataBodyRange.DataBodyRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildFilterNavCommand() { var command = new Command("filter"); command.Description = "Provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity."; - var builder = new FilterRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ItemAtWithIndex.Filter.FilterRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -133,7 +136,7 @@ public Command BuildHeaderRowRangeNavCommand() { var command = new Command("header-row-range"); command.Description = "Provides operations to call the headerRowRange method."; - var builder = new HeaderRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ItemAtWithIndex.HeaderRowRange.HeaderRowRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -150,7 +153,7 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ItemAtWithIndex.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -167,7 +170,7 @@ public Command BuildTotalRowRangeNavCommand() { var command = new Command("total-row-range"); command.Description = "Provides operations to call the totalRowRange method."; - var builder = new TotalRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ItemAtWithIndex.TotalRowRange.TotalRowRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -177,14 +180,14 @@ public Command BuildTotalRowRangeNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ItemAtWithIndexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})", 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 ItemAtWithIndexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})", rawUrl) @@ -211,3 +214,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with the entire column. @@ -85,14 +88,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 RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()", rawUrl) @@ -119,3 +122,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Col /// /// Provides operations to call the totalRowRange method. /// - public class TotalRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TotalRowRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with the totals row of the column. @@ -85,14 +88,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 TotalRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()", 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 TotalRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()", rawUrl) @@ -119,3 +122,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Con /// /// Provides operations to call the convertToRange method. /// - public class ConvertToRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConvertToRangeRequestBuilder : BaseCliRequestBuilder { /// /// Converts the table into a normal range of cells. All data is preserved. @@ -79,14 +82,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 ConvertToRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/convertToRange", 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 ConvertToRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/convertToRange", rawUrl) @@ -113,3 +116,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..3d31a80016 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..3e21797479 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..5b3787e269 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..5902b04379 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..cedbf3da2b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..27f42e8e71 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..3330b9fe7a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..58aa3988a2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs index a87951cb24..7064587128 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/DataBodyRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Dat /// /// Provides operations to call the dataBodyRange method. /// - public class DataBodyRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataBodyRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with the data body of the table. /// Find more info here @@ -79,14 +319,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DataBodyRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()", 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 DataBodyRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()", rawUrl) @@ -113,3 +678,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..a282a8df0a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..ea96972449 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..b09fdd8bdd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..06b392e428 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..0ce19344f6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..b5c3798618 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..3b732ea52c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..dcdbb66f05 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..42e2000f04 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..e04b225934 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..f720fce6e8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..bff280c6e6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..f82c8decdb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..4dbd1fc6d5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..def733d371 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..0ab30f8d30 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..197a4b0ad2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..1f9cc7091f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..fffd8620d5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..792ab76ac7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..edfcc33d4a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..2f7e226117 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..25ad2eb40f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..cf014321da --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..3ae2fdb6cd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/DataBodyRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..730a1a6325 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..242e02733d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..01ed240eb6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..5bd2875cd9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..7ef4e5fdb0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..6550fc1ae5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..7fdbee6ba6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..91ca9d0241 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..5dd07df034 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..7923be7a36 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..456ecc1d9b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..118d401739 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..3afae02c99 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..a203d18882 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs index c9739003a6..22dba2707c 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/HeaderRowRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Hea /// /// Provides operations to call the headerRowRange method. /// - public class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with header row of the table. /// Find more info here @@ -79,14 +319,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public HeaderRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()", 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 HeaderRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()", rawUrl) @@ -113,3 +678,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..e7c062e944 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..a1b53bc665 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..77a6f58efe --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..208eb834c4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..3e153720e9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..8c3e82ed0e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..d236075865 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..1ac53073cb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..e91b3d7164 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..ea1d3fd1a0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..a6a995b4d7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..3d0dd676b8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..d8fecb770b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..103092b423 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..08e290e6c4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..97f5456cd4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..b8ad010133 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..8dcdc68359 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..609062cea6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..92356fafb7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/HeaderRowRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..bddd483f17 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..ad9ff5ebda --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..426a677a6e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..a139c84af3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..583cf5a10b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..a688ba6548 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..e33e00e943 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..aec8b33150 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..0b73acfa71 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..a4a9a2feb3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..c9409669e2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..955e08147b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..206c53c0b1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..83e676a691 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..7365f81072 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..294b7199dc --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..9b4af826de --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..28e04a5cd1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..29f90c77bf --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..33e2e9d9e8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..4e168f661b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..5e57cf0105 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..7decaea81e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs index c33e62db7f..b416683149 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Ran /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Format.FormatRequestBuilder(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; + } /// /// Get the range object associated with the entire table. /// Find more info here @@ -79,14 +319,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()", rawUrl) @@ -113,3 +678,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..6605f02b35 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..0ba115e3ce --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..6b275c8d55 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..ab4797d05f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..eb25a84309 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..03cfe689e7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..be456accd4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..b36b485143 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..56fdb09d4e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..85ca309d21 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..c97d2efc8f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs index df842cb36c..3c90de4a05 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/ReapplyFilters/ReapplyFiltersRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rea /// /// Provides operations to call the reapplyFilters method. /// - public class ReapplyFiltersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReapplyFiltersRequestBuilder : BaseCliRequestBuilder { /// /// Reapplies all the filters currently on the table. @@ -68,14 +71,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 ReapplyFiltersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/reapplyFilters", 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 ReapplyFiltersRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/reapplyFilters", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action -using ApiSdk.Models; +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -18,13 +19,13 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Json? Values { get; set; } + public UntypedNode? Values { get; set; } #nullable restore #else - public Json Values { get; set; } + public UntypedNode Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -33,12 +34,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -49,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "index", n => { Index = n.GetIntValue(); } }, - { "values", n => { Values = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + { "values", n => { Values = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// @@ -60,8 +61,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("index", Index); - writer.WriteObjectValue("values", Values); + writer.WriteObjectValue("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.cs index 7cc8a8b755..7db1a51420 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Add/AddRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Row /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. @@ -67,8 +70,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/add", rawUrl) @@ -113,11 +116,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/i /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.cs index bb1d015b84..411dee619a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Count { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountGetResponse : IAdditionalDataHolder, IParsable + public partial class CountGetResponse : 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. @@ -15,7 +17,7 @@ public class CountGetResponse : IAdditionalDataHolder, IParsable /// The value property public int? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CountGetResponse() { @@ -24,12 +26,12 @@ public CountGetResponse() /// /// 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 CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Count.CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountGetResponse(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Count.CountGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.cs index 357ce15f1c..c84235ec69 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Row /// /// Provides operations to call the count method. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function count @@ -77,14 +80,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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/count()", 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}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/count()", rawUrl) @@ -111,3 +114,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..49d6611fc0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..5d3f311134 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..c3200d5e8b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Clear/ClearRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..d465c9a6f4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..943303c6b9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..4c14767a76 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..ca7541b911 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..20642da525 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..5813869411 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..1eafbdb3e5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..1fa1bf439b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..fe9bd8b857 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..64184f0383 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Format/FormatRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..d5a93e9345 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..666500ed4e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Insert/InsertRequestBuilder.cs @@ -0,0 +1,139 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..b06798e3d5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..50cf4fc90c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..2cd564768c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..04b430cab4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..86d743ddf4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..e9a5f503cd --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Merge/MergeRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..8fe91b7d51 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs index 431c6c776b..fc3b39e06e 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Row /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Format.FormatRequestBuilder(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; + } /// /// Invoke function range /// @@ -84,14 +324,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", rawUrl) @@ -118,3 +683,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..d7eaa7b050 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..8dfd0b315f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..b5ad252b0d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..fda16ebc5b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..9ee9c916f3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..1394f7da50 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Sort/SortRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..a8b1507b7b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,113 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..8168834c5c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..7aab48c994 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..f1621ccbde --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..31022b2b04 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/RangeNamespace/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,165 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var workbookTableRowIdOption = new Option("--workbook-table-row-id", description: "The unique identifier of workbookTableRow") { + }; + workbookTableRowIdOption.IsRequired = true; + command.AddOption(workbookTableRowIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var workbookTableRowId = invocationContext.ParseResult.GetValueForOption(workbookTableRowIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (workbookTableRowId is not null) requestInfo.PathParameters.Add("workbookTableRow%2Did", workbookTableRowId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs index 825ac870e9..46fb721a2a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/Item/WorkbookTableRowItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Row /// /// Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. /// - public class WorkbookTableRowItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableRowItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property rows for drives @@ -82,13 +85,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents a collection of all the rows in the table. Read-only."; + command.Description = "The list of all the rows in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -207,8 +210,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(WorkbookTableRow.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableRow.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,24 +243,60 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookTableRowItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%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 WorkbookTableRowItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24expand,%24select}", rawUrl) @@ -283,17 +322,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -309,11 +348,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(WorkbookTableRow body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookTableRow body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -323,9 +362,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableRow body, Actio return requestInfo; } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// - public class WorkbookTableRowItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableRowItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +390,4 @@ public class WorkbookTableRowItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs index d059282ab9..910095a5cc 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/ItemAtWithIndex/ItemAtWithIndexRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.ItemAtWithIndex.RangeNamespace; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Row /// /// Provides operations to call the itemAt method. /// - public class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder { /// /// Gets a row based on its position in the collection. @@ -93,7 +96,7 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.ItemAtWithIndex.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -103,14 +106,14 @@ public Command BuildRangeNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ItemAtWithIndexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})", 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 ItemAtWithIndexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})", rawUrl) @@ -137,3 +140,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Row /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function range @@ -84,14 +87,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 RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", rawUrl) @@ -118,3 +121,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Add; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.ItemAtWithIndex; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Row /// /// Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. /// - public class RowsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -33,7 +36,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -50,7 +53,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookTableRowItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Item.WorkbookTableRowItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -65,7 +68,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to call the count method."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -119,8 +122,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(WorkbookTableRow.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableRow.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -151,7 +154,7 @@ public Command BuildItemAtWithIndexRbCommand() { var command = new Command("item-at-with-index"); command.Description = "Provides operations to call the itemAt method."; - var builder = new ItemAtWithIndexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.ItemAtWithIndex.ItemAtWithIndexRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -167,13 +170,13 @@ public Command BuildItemAtWithIndexRbCommand() return command; } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Represents a collection of all the rows in the table. Read-only."; + command.Description = "The list of all the rows in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -287,31 +290,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RowsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows{?%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 RowsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -327,11 +330,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(WorkbookTableRow body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookTableRow body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -341,9 +344,10 @@ public RequestInformation ToPostRequestInformation(WorkbookTableRow body, Action return requestInfo; } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// - public class RowsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -407,3 +411,4 @@ public class RowsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs index 1545f3de3b..344016d8ba 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyPostRequestBody.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Apply { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ApplyPostRequestBody : 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. @@ -16,10 +18,10 @@ public class ApplyPostRequestBody : IAdditionalDataHolder, IParsable /// The fields property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Fields { get; set; } + public List? Fields { get; set; } #nullable restore #else - public List Fields { get; set; } + public List Fields { get; set; } #endif /// The matchCase property public bool? MatchCase { get; set; } @@ -32,7 +34,7 @@ public class ApplyPostRequestBody : IAdditionalDataHolder, IParsable public string Method { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ApplyPostRequestBody() { @@ -41,12 +43,12 @@ public ApplyPostRequestBody() /// /// 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 ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Apply.ApplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplyPostRequestBody(); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Apply.ApplyPostRequestBody(); } /// /// The deserialization information for the current model @@ -56,7 +58,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "fields", n => { Fields = n.GetCollectionOfObjectValues(WorkbookSortField.CreateFromDiscriminatorValue)?.ToList(); } }, + { "fields", n => { Fields = n.GetCollectionOfObjectValues(global::ApiSdk.Models.WorkbookSortField.CreateFromDiscriminatorValue)?.AsList(); } }, { "matchCase", n => { MatchCase = n.GetBoolValue(); } }, { "method", n => { Method = n.GetStringValue(); } }, }; @@ -68,10 +70,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("fields", Fields); + writer.WriteCollectionOfObjectValues("fields", Fields); writer.WriteBoolValue("matchCase", MatchCase); writer.WriteStringValue("method", Method); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs index 838e72f03b..3506d05cd8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Apply/ApplyRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sor /// /// Provides operations to call the apply method. /// - public class ApplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyRequestBuilder : BaseCliRequestBuilder { /// /// Perform a sort operation. @@ -58,8 +61,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(ApplyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Apply.ApplyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 ApplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/apply", 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 ApplyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/apply", rawUrl) @@ -102,11 +105,11 @@ public ApplyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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(ApplyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Apply.ApplyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Apply.ApplyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(ApplyPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.cs index d82dfd3eee..6655380f4a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Sort/Clear/ClearRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sor /// /// Provides operations to call the clear method. /// - public class ClearRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder { /// /// Clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. @@ -68,14 +71,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 ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/clear", 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 ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/clear", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sor /// /// Provides operations to call the reapply method. /// - public class ReapplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReapplyRequestBuilder : BaseCliRequestBuilder { /// /// Reapplies the current sorting parameters to the table. @@ -68,14 +71,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 ReapplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/reapply", 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 ReapplyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/reapply", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Apply; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Clear; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Reapply; 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sor /// /// Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. /// - public class SortRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the apply method. @@ -32,7 +35,7 @@ public Command BuildApplyNavCommand() { var command = new Command("apply"); command.Description = "Provides operations to call the apply method."; - var builder = new ApplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Apply.ApplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -49,7 +52,7 @@ public Command BuildClearNavCommand() { var command = new Command("clear"); command.Description = "Provides operations to call the clear method."; - var builder = new ClearRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Clear.ClearRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -112,13 +115,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents the sorting for the table. Read-only."; + command.Description = "The sorting for the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -226,8 +229,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(WorkbookTableSort.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableSort.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -258,7 +261,7 @@ public Command BuildReapplyNavCommand() { var command = new Command("reapply"); command.Description = "Provides operations to call the reapply method."; - var builder = new ReapplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.Reapply.ReapplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -268,14 +271,14 @@ public Command BuildReapplyNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort{?%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 SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort{?%24expand,%24select}", rawUrl) @@ -301,17 +304,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -327,11 +330,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(WorkbookTableSort body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableSort body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookTableSort body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableSort body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -341,9 +344,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableSort body, Acti return requestInfo; } /// - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// - public class SortRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -368,3 +372,4 @@ public class SortRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..1e42067fa8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..257e81687c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..3ac99ca3d9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..94663df696 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..2771bf5ed0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..279ed0e262 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..55805055c9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..c36522b9af --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..1624a0e788 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..acf30c9793 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..1b75ca2643 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..ca3da4e613 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..5a7b5bda9b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..09b64a923d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..204a60be15 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..219e431bc2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..3c27e3f85e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..d1cdf59526 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..fc42b7b2c5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..7344385edb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..80e9a1be53 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..f38a031f93 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..48e1c4688e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..f23065a679 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..9aee25959d --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..87d210d4bf --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..f3828126a4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..a3cacb86d3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..3949c544a6 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..1bde4ecc2b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs index 137a089718..cef152f31a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/TotalRowRangeRequestBuilder.cs @@ -1,6 +1,39 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.UsedRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.UsedRangeWithValuesOnly; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Worksheet; 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,8 +52,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Tot /// /// Provides operations to call the totalRowRange method. /// - public class TotalRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TotalRowRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Format.FormatRequestBuilder(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; + } /// /// Gets the range object associated with totals row of the table. /// Find more info here @@ -79,14 +319,339 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeNavCommand() + { + var command = new Command("used-range"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.UsedRange.UsedRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the usedRange method. + /// + /// A + public Command BuildUsedRangeWithValuesOnlyRbCommand() + { + var command = new Command("used-range-with-values-only"); + command.Description = "Provides operations to call the usedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TotalRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()", 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 TotalRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()", rawUrl) @@ -113,3 +678,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs new file mode 100644 index 0000000000..99a8b93acf --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/UsedRange/UsedRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.UsedRange +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/usedRange()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/usedRange()", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs new file mode 100644 index 0000000000..d6b3f0d40c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.UsedRangeWithValuesOnly +{ + /// + /// Provides operations to call the usedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function usedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function usedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", rawUrl) + { + } + /// + /// Invoke function usedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs new file mode 100644 index 0000000000..ad04bc84df --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/VisibleView/VisibleViewRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..c45c9525d7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/TotalRowRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var workbookTableIdOption = new Option("--workbook-table-id", description: "The unique identifier of workbookTable") { + }; + workbookTableIdOption.IsRequired = true; + command.AddOption(workbookTableIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var workbookTableId = invocationContext.ParseResult.GetValueForOption(workbookTableIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (workbookTableId is not null) requestInfo.PathParameters.Add("workbookTable%2Did", workbookTableId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.cs index 72022921f4..e0af2d7659 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/WorkbookTableItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.ClearFilters; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.ConvertToRange; @@ -12,6 +13,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Worksheet; 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; @@ -30,7 +32,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item /// /// Provides operations to manage the tables property of the microsoft.graph.workbookWorksheet entity. /// - public class WorkbookTableItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clearFilters method. @@ -40,7 +43,7 @@ public Command BuildClearFiltersNavCommand() { var command = new Command("clear-filters"); command.Description = "Provides operations to call the clearFilters method."; - var builder = new ClearFiltersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.ClearFilters.ClearFiltersRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -57,7 +60,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.workbookTable entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); @@ -86,7 +89,7 @@ public Command BuildConvertToRangeNavCommand() { var command = new Command("convert-to-range"); command.Description = "Provides operations to call the convertToRange method."; - var builder = new ConvertToRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.ConvertToRange.ConvertToRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -103,13 +106,49 @@ public Command BuildDataBodyRangeNavCommand() { var command = new Command("data-body-range"); command.Description = "Provides operations to call the dataBodyRange method."; - var builder = new DataBodyRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.DataBodyRange.DataBodyRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -166,13 +205,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Collection of tables that are part of the worksheet. Read-only. + /// The list of tables that are part of the worksheet. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Collection of tables that are part of the worksheet. Read-only."; + command.Description = "The list of tables that are part of the worksheet. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -243,13 +282,49 @@ public Command BuildHeaderRowRangeNavCommand() { var command = new Command("header-row-range"); command.Description = "Provides operations to call the headerRowRange method."; - var builder = new HeaderRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.HeaderRowRange.HeaderRowRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -297,8 +372,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(WorkbookTable.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTable.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -329,13 +404,49 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -346,7 +457,7 @@ public Command BuildReapplyFiltersNavCommand() { var command = new Command("reapply-filters"); command.Description = "Provides operations to call the reapplyFilters method."; - var builder = new ReapplyFiltersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.ReapplyFilters.ReapplyFiltersRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -363,7 +474,7 @@ public Command BuildRowsNavCommand() { var command = new Command("rows"); command.Description = "Provides operations to manage the rows property of the microsoft.graph.workbookTable entity."; - var builder = new RowsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.RowsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); @@ -392,7 +503,7 @@ public Command BuildSortNavCommand() { var command = new Command("sort"); command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookTable entity."; - var builder = new SortRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Sort.SortRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildApplyNavCommand()); @@ -419,13 +530,49 @@ public Command BuildTotalRowRangeNavCommand() { var command = new Command("total-row-range"); command.Description = "Provides operations to call the totalRowRange method."; - var builder = new TotalRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.TotalRowRange.TotalRowRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -436,7 +583,7 @@ public Command BuildWorksheetNavCommand() { var command = new Command("worksheet"); command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity."; - var builder = new WorksheetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Worksheet.WorksheetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -446,14 +593,14 @@ public Command BuildWorksheetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookTableItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%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 WorkbookTableItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}{?%24expand,%24select}", rawUrl) @@ -479,17 +626,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Collection of tables that are part of the worksheet. Read-only. + /// The list of tables that are part of the worksheet. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -505,11 +652,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(WorkbookTable body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTable body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookTable body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTable body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -519,9 +666,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookTable body, Action - /// Collection of tables that are part of the worksheet. Read-only. + /// The list of tables that are part of the worksheet. Read-only. /// - public class WorkbookTableItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookTableItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -546,3 +694,4 @@ public class WorkbookTableItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.cs index 558c3daccb..30f2cd2228 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Worksheet/WorksheetRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Wor /// /// Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. /// - public class WorksheetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder { /// /// The worksheet containing the current table. Read-only. @@ -92,14 +95,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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/worksheet{?%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 WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/worksheet{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The worksheet containing the current table. Read-only. /// - public class WorksheetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class WorksheetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ClearFilters/ClearFiltersRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ClearFilters/ClearFiltersRequestBuilder.cs index 40871b77d6..74e71ad6a8 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ClearFilters/ClearFiltersRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ClearFilters/ClearFiltersRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to call the clearFilters method. /// - public class ClearFiltersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearFiltersRequestBuilder : BaseCliRequestBuilder { /// /// Clears all the filters currently applied on the table. @@ -68,14 +71,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 ClearFiltersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/clearFilters", 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 ClearFiltersRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/clearFilters", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#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,16 +21,17 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to manage the columns property of the microsoft.graph.workbookTable entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents a collection of all the columns in the table. Read-only."; + command.Description = "The list of all the columns in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -186,8 +189,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(WorkbookTableColumn.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableColumn.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,31 +214,31 @@ 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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -251,11 +254,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(WorkbookTableColumn body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookTableColumn body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableColumn body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,9 +268,10 @@ public RequestInformation ToPostRequestInformation(WorkbookTableColumn body, Act return requestInfo; } /// - /// Represents a collection of all the columns in the table. Read-only. + /// The list of all the columns in the table. Read-only. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ConvertToRange/ConvertToRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ConvertToRange/ConvertToRangeRequestBuilder.cs index 598de977cc..54a8adc2d9 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ConvertToRange/ConvertToRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/ConvertToRange/ConvertToRangeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to call the convertToRange method. /// - public class ConvertToRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConvertToRangeRequestBuilder : BaseCliRequestBuilder { /// /// Converts the table into a normal range of cells. All data is preserved. @@ -79,14 +82,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 ConvertToRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/convertToRange", 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 ConvertToRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/convertToRange", rawUrl) @@ -113,3 +116,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to call the dataBodyRange method. /// - public class DataBodyRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DataBodyRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with the data body of the table. @@ -79,14 +82,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 DataBodyRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/dataBodyRange()", 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 DataBodyRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/dataBodyRange()", rawUrl) @@ -113,3 +116,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to call the headerRowRange method. /// - public class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HeaderRowRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with header row of the table. @@ -79,14 +82,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 HeaderRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/headerRowRange()", 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 HeaderRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/headerRowRange()", rawUrl) @@ -113,3 +116,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.ClearFilters; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.Columns; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.ConvertToRange; @@ -12,6 +13,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.Worksheet; 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; @@ -30,7 +32,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to call the itemAt method. /// - public class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemAtWithIndexRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the clearFilters method. @@ -40,7 +43,7 @@ public Command BuildClearFiltersNavCommand() { var command = new Command("clear-filters"); command.Description = "Provides operations to call the clearFilters method."; - var builder = new ClearFiltersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.ClearFilters.ClearFiltersRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -57,7 +60,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.workbookTable entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -75,7 +78,7 @@ public Command BuildConvertToRangeNavCommand() { var command = new Command("convert-to-range"); command.Description = "Provides operations to call the convertToRange method."; - var builder = new ConvertToRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.ConvertToRange.ConvertToRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -92,7 +95,7 @@ public Command BuildDataBodyRangeNavCommand() { var command = new Command("data-body-range"); command.Description = "Provides operations to call the dataBodyRange method."; - var builder = new DataBodyRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.DataBodyRange.DataBodyRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -165,7 +168,7 @@ public Command BuildHeaderRowRangeNavCommand() { var command = new Command("header-row-range"); command.Description = "Provides operations to call the headerRowRange method."; - var builder = new HeaderRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.HeaderRowRange.HeaderRowRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -182,7 +185,7 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -199,7 +202,7 @@ public Command BuildReapplyFiltersNavCommand() { var command = new Command("reapply-filters"); command.Description = "Provides operations to call the reapplyFilters method."; - var builder = new ReapplyFiltersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.ReapplyFilters.ReapplyFiltersRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -216,7 +219,7 @@ public Command BuildRowsNavCommand() { var command = new Command("rows"); command.Description = "Provides operations to manage the rows property of the microsoft.graph.workbookTable entity."; - var builder = new RowsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.Rows.RowsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -234,7 +237,7 @@ public Command BuildSortNavCommand() { var command = new Command("sort"); command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookTable entity."; - var builder = new SortRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.Sort.SortRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -253,7 +256,7 @@ public Command BuildTotalRowRangeNavCommand() { var command = new Command("total-row-range"); command.Description = "Provides operations to call the totalRowRange method."; - var builder = new TotalRowRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.TotalRowRange.TotalRowRangeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -270,7 +273,7 @@ public Command BuildWorksheetNavCommand() { var command = new Command("worksheet"); command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity."; - var builder = new WorksheetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.Worksheet.WorksheetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -280,14 +283,14 @@ public Command BuildWorksheetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ItemAtWithIndexRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})", 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 ItemAtWithIndexRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})", rawUrl) @@ -314,3 +317,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to call the range method. /// - public class RangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RangeRequestBuilder : BaseCliRequestBuilder { /// /// Get the range object associated with the entire table. @@ -79,14 +82,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 RangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/range()", 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 RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/range()", rawUrl) @@ -113,3 +116,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to call the reapplyFilters method. /// - public class ReapplyFiltersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReapplyFiltersRequestBuilder : BaseCliRequestBuilder { /// /// Reapplies all the filters currently on the table. @@ -68,14 +71,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 ReapplyFiltersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/reapplyFilters", 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 ReapplyFiltersRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/reapplyFilters", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#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,16 +21,17 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to manage the rows property of the microsoft.graph.workbookTable entity. /// - public class RowsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsRequestBuilder : BaseCliRequestBuilder { /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents a collection of all the rows in the table. Read-only."; + command.Description = "The list of all the rows in the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -186,8 +189,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(WorkbookTableRow.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableRow.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,31 +214,31 @@ 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 RowsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/rows{?%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 RowsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -251,11 +254,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(WorkbookTableRow body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookTableRow body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTableRow body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,9 +268,10 @@ public RequestInformation ToPostRequestInformation(WorkbookTableRow body, Action return requestInfo; } /// - /// Represents a collection of all the rows in the table. Read-only. + /// The list of all the rows in the table. Read-only. /// - public class RowsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class RowsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Sort/SortRequestBuilder.cs index fc084b5443..5e85d6a2ba 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Sort/SortRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Sort/SortRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to manage the sort property of the microsoft.graph.workbookTable entity. /// - public class SortRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property sort for drives @@ -75,13 +78,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents the sorting for the table. Read-only."; + command.Description = "The sorting for the table. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -189,8 +192,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(WorkbookTableSort.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTableSort.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/sort{?%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 SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/sort{?%24expand,%24select}", rawUrl) @@ -247,17 +250,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -273,11 +276,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(WorkbookTableSort body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableSort body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookTableSort body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookTableSort body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,9 +290,10 @@ public RequestInformation ToPatchRequestInformation(WorkbookTableSort body, Acti return requestInfo; } /// - /// Represents the sorting for the table. Read-only. + /// The sorting for the table. Read-only. /// - public class SortRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class SortRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/TotalRowRange/TotalRowRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/TotalRowRange/TotalRowRangeRequestBuilder.cs index 1205355cbc..27cf2c1593 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/TotalRowRange/TotalRowRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/TotalRowRange/TotalRowRangeRequestBuilder.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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to call the totalRowRange method. /// - public class TotalRowRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TotalRowRangeRequestBuilder : BaseCliRequestBuilder { /// /// Gets the range object associated with totals row of the table. @@ -79,14 +82,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 TotalRowRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/totalRowRange()", 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 TotalRowRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/totalRowRange()", rawUrl) @@ -113,3 +116,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWi /// /// Provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. /// - public class WorksheetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder { /// /// The worksheet containing the current table. Read-only. @@ -92,14 +95,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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/worksheet{?%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 WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/worksheet{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The worksheet containing the current table. Read-only. /// - public class WorksheetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class WorksheetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs index f7d1fdcdf0..a07ce663cd 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/TablesRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Add; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables /// /// Provides operations to manage the tables property of the microsoft.graph.workbookWorksheet entity. /// - public class TablesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TablesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -33,7 +36,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -50,7 +53,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookTableItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.WorkbookTableItemRequestBuilder(PathParameters); commands.Add(builder.BuildClearFiltersNavCommand()); commands.Add(builder.BuildColumnsNavCommand()); commands.Add(builder.BuildConvertToRangeNavCommand()); @@ -75,7 +78,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to call the count method."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -124,8 +127,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(WorkbookTable.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookTable.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -155,7 +158,7 @@ public Command BuildItemAtWithIndexRbCommand() { var command = new Command("item-at-with-index"); command.Description = "Provides operations to call the itemAt method."; - var builder = new ItemAtWithIndexRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.ItemAtWithIndex.ItemAtWithIndexRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClearFiltersNavCommand()); @@ -181,13 +184,13 @@ public Command BuildItemAtWithIndexRbCommand() return command; } /// - /// Collection of tables that are part of the worksheet. Read-only. + /// The list of tables that are part of the worksheet. Read-only. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Collection of tables that are part of the worksheet. Read-only."; + command.Description = "The list of tables that are part of the worksheet. Read-only."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -295,31 +298,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TablesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables{?%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 TablesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Collection of tables that are part of the worksheet. Read-only. + /// The list of tables that are part of the worksheet. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -335,11 +338,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(WorkbookTable body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTable body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookTable body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookTable body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -349,9 +352,10 @@ public RequestInformation ToPostRequestInformation(WorkbookTable body, Action - /// Collection of tables that are part of the worksheet. Read-only. + /// The list of tables that are part of the worksheet. Read-only. /// - public class TablesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TablesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -415,3 +419,4 @@ public class TablesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..e099cbd2f8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..3ffb07bcb5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..71ba6d2632 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..e2f5ece100 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Clear/ClearRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..47329b4552 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..083059300b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..d32b53f3b5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..4216ff5138 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..83cec84e04 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..31b6b93966 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..0f877edc4f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..c2d283d0e3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..3ca475ab34 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..fa100426de --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Format/FormatRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..c229ec9f7c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..50f4c2ca1b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Insert/InsertRequestBuilder.cs @@ -0,0 +1,127 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..73fa9ed975 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..7704798922 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..ff06682fc4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..8bc180c776 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..9564a1747e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..fd130f8661 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Merge/MergeRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..089aa91ec4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..a9c5c97a5b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..4766f1fb8e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..e33eb73fb5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..97695e1d97 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..a8fdef569e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,112 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..8dbe941607 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..0eadb29b0f --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Sort/SortRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..7bb014e38b --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,101 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.cs index f76c3d519e..cced7b7754 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/UsedRangeRequestBuilder.cs @@ -1,6 +1,37 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Worksheet; 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,8 +50,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange /// /// Provides operations to call the usedRange method. /// - public class UsedRangeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Format.FormatRequestBuilder(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; + } /// /// Invoke function usedRange /// @@ -72,14 +310,305 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UsedRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()", 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 UsedRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()", rawUrl) @@ -106,3 +635,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..29861d95ef --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRange/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,153 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..59786c63f7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/BoundingRectWithAnotherRange/BoundingRectWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.BoundingRectWithAnotherRange +{ + /// + /// Provides operations to call the boundingRect method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BoundingRectWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function boundingRect + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function boundingRect"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 BoundingRectWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/boundingRect(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public BoundingRectWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/boundingRect(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function boundingRect + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..d273a50ca1 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/CellWithRowWithColumn/CellWithRowWithColumnRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.CellWithRowWithColumn +{ + /// + /// Provides operations to call the cell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CellWithRowWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function cell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function cell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + if (row is not null) requestInfo.PathParameters.Add("row", row); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 CellWithRowWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/cell(row={row},column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CellWithRowWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/cell(row={row},column={column})", rawUrl) + { + } + /// + /// Invoke function cell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Clear/ClearPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Clear/ClearPostRequestBody.cs new file mode 100644 index 0000000000..30987f9b1a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Clear/ClearPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Clear +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClearPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The applyTo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyTo { get; set; } +#nullable restore +#else + public string ApplyTo { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClearPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Clear.ClearPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Clear.ClearPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "applyTo", n => { ApplyTo = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("applyTo", ApplyTo); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Clear/ClearRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Clear/ClearRequestBuilder.cs new file mode 100644 index 0000000000..eed5fb7de7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Clear/ClearRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Clear +{ + /// + /// Provides operations to call the clear method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClearRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clear + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clear"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Clear.ClearPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ClearRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/clear", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClearRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/clear", rawUrl) + { + } + /// + /// Invoke action clear + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Clear.ClearPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Clear.ClearPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs new file mode 100644 index 0000000000..50009a03c8 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnWithColumn/ColumnWithColumnRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnWithColumn +{ + /// + /// Provides operations to call the column method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnWithColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function column + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function column"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var columnOption = new Option("--column", description: "Usage: column={column}") { + }; + columnOption.IsRequired = true; + command.AddOption(columnOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var column = invocationContext.ParseResult.GetValueForOption(columnOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + if (column is not null) requestInfo.PathParameters.Add("column", column); + 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 ColumnWithColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/column(column={column})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnWithColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/column(column={column})", rawUrl) + { + } + /// + /// Invoke function column + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsAfter/ColumnsAfterRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsAfter/ColumnsAfterRequestBuilder.cs new file mode 100644 index 0000000000..ae92030fef --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsAfter/ColumnsAfterRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsAfter +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 ColumnsAfterRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsAfter()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsAfter()", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs new file mode 100644 index 0000000000..4c3887696c --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsAfterWithCount/ColumnsAfterWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsAfterWithCount +{ + /// + /// Provides operations to call the columnsAfter method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsAfterWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsAfter + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsAfter"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsAfterWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsAfter(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsAfterWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsAfter(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsAfter + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsBefore/ColumnsBeforeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsBefore/ColumnsBeforeRequestBuilder.cs new file mode 100644 index 0000000000..9ec6efe9bf --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsBefore/ColumnsBeforeRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsBefore +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 ColumnsBeforeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsBefore()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsBefore()", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs new file mode 100644 index 0000000000..e9b3e4afdf --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ColumnsBeforeWithCount/ColumnsBeforeWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsBeforeWithCount +{ + /// + /// Provides operations to call the columnsBefore method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsBeforeWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function columnsBefore + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function columnsBefore"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 ColumnsBeforeWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsBefore(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ColumnsBeforeWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsBefore(count={count})", rawUrl) + { + } + /// + /// Invoke function columnsBefore + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Delete/DeletePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Delete/DeletePostRequestBody.cs new file mode 100644 index 0000000000..f712f8cf74 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Delete/DeletePostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Delete +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeletePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DeletePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Delete.DeletePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Delete.DeletePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Delete/DeleteRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Delete/DeleteRequestBuilder.cs new file mode 100644 index 0000000000..56fdf1f0a4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Delete/DeleteRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Delete +{ + /// + /// Provides operations to call the delete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action delete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action delete"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Delete.DeletePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/delete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DeleteRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/delete", rawUrl) + { + } + /// + /// Invoke action delete + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Delete.DeletePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Delete.DeletePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/EntireColumn/EntireColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/EntireColumn/EntireColumnRequestBuilder.cs new file mode 100644 index 0000000000..75d595e7df --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/EntireColumn/EntireColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.EntireColumn +{ + /// + /// Provides operations to call the entireColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 EntireColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/entireColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/entireColumn()", rawUrl) + { + } + /// + /// Invoke function entireColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/EntireRow/EntireRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/EntireRow/EntireRowRequestBuilder.cs new file mode 100644 index 0000000000..f9fa8687eb --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/EntireRow/EntireRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.EntireRow +{ + /// + /// Provides operations to call the entireRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EntireRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function entireRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function entireRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 EntireRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/entireRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EntireRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/entireRow()", rawUrl) + { + } + /// + /// Invoke function entireRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Format/FormatRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Format/FormatRequestBuilder.cs new file mode 100644 index 0000000000..8f60df30e0 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Format/FormatRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Format +{ + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property format for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property format for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 the navigation property format in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property format in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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.WorkbookRangeFormat.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 FormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/format{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public FormatRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/format{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property format for drives + /// + /// 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + /// 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 the navigation property format in drives + /// + /// 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.WorkbookRangeFormat body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeFormat 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; + } + /// + /// Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FormatRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Insert/InsertPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Insert/InsertPostRequestBody.cs new file mode 100644 index 0000000000..448368c4c2 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Insert/InsertPostRequestBody.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Insert +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InsertPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shift property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Shift { get; set; } +#nullable restore +#else + public string Shift { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InsertPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Insert.InsertPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Insert.InsertPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shift", n => { Shift = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("shift", Shift); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Insert/InsertRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Insert/InsertRequestBuilder.cs new file mode 100644 index 0000000000..6464951e70 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Insert/InsertRequestBuilder.cs @@ -0,0 +1,133 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Insert +{ + /// + /// Provides operations to call the insert method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsertRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action insert + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action insert"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Insert.InsertPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 InsertRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/insert", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public InsertRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/insert", rawUrl) + { + } + /// + /// Invoke action insert + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Insert.InsertPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Insert.InsertPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs new file mode 100644 index 0000000000..744b1033f7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/IntersectionWithAnotherRange/IntersectionWithAnotherRangeRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.IntersectionWithAnotherRange +{ + /// + /// Provides operations to call the intersection method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IntersectionWithAnotherRangeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function intersection + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function intersection"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var anotherRangeOption = new Option("--another-range", description: "Usage: anotherRange='{anotherRange}'") { + }; + anotherRangeOption.IsRequired = true; + command.AddOption(anotherRangeOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var anotherRange = invocationContext.ParseResult.GetValueForOption(anotherRangeOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + if (anotherRange is not null) requestInfo.PathParameters.Add("anotherRange", anotherRange); + 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 IntersectionWithAnotherRangeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/intersection(anotherRange='{anotherRange}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public IntersectionWithAnotherRangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/intersection(anotherRange='{anotherRange}')", rawUrl) + { + } + /// + /// Invoke function intersection + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/LastCell/LastCellRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/LastCell/LastCellRequestBuilder.cs new file mode 100644 index 0000000000..77e79182ed --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/LastCell/LastCellRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.LastCell +{ + /// + /// Provides operations to call the lastCell method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastCellRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastCell + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastCell"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 LastCellRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastCell()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastCellRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastCell()", rawUrl) + { + } + /// + /// Invoke function lastCell + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/LastColumn/LastColumnRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/LastColumn/LastColumnRequestBuilder.cs new file mode 100644 index 0000000000..f593e174d5 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/LastColumn/LastColumnRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.LastColumn +{ + /// + /// Provides operations to call the lastColumn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastColumnRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastColumn + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastColumn"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 LastColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastColumn()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastColumn()", rawUrl) + { + } + /// + /// Invoke function lastColumn + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/LastRow/LastRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/LastRow/LastRowRequestBuilder.cs new file mode 100644 index 0000000000..6be2020fe7 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/LastRow/LastRowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.LastRow +{ + /// + /// Provides operations to call the lastRow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function lastRow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function lastRow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 LastRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastRow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public LastRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastRow()", rawUrl) + { + } + /// + /// Invoke function lastRow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Merge/MergePostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Merge/MergePostRequestBody.cs new file mode 100644 index 0000000000..3f4230ef95 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Merge/MergePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Merge +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MergePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The across property + public bool? Across { get; set; } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public MergePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Merge.MergePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Merge.MergePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "across", n => { Across = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("across", Across); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Merge/MergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Merge/MergeRequestBuilder.cs new file mode 100644 index 0000000000..c0c03c97d9 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Merge/MergeRequestBuilder.cs @@ -0,0 +1,122 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Merge +{ + /// + /// Provides operations to call the merge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action merge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action merge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Merge.MergePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public MergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/merge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/merge", rawUrl) + { + } + /// + /// Invoke action merge + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Merge.MergePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Merge.MergePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs new file mode 100644 index 0000000000..d8345367f3 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/OffsetRangeWithRowOffsetWithColumnOffset/OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.OffsetRangeWithRowOffsetWithColumnOffset +{ + /// + /// Provides operations to call the offsetRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function offsetRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function offsetRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var rowOffsetOption = new Option("--row-offset", description: "Usage: rowOffset={rowOffset}") { + }; + rowOffsetOption.IsRequired = true; + command.AddOption(rowOffsetOption); + var columnOffsetOption = new Option("--column-offset", description: "Usage: columnOffset={columnOffset}") { + }; + columnOffsetOption.IsRequired = true; + command.AddOption(columnOffsetOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var rowOffset = invocationContext.ParseResult.GetValueForOption(rowOffsetOption); + var columnOffset = invocationContext.ParseResult.GetValueForOption(columnOffsetOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + if (rowOffset is not null) requestInfo.PathParameters.Add("rowOffset", rowOffset); + if (columnOffset is not null) requestInfo.PathParameters.Add("columnOffset", columnOffset); + 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 OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", rawUrl) + { + } + /// + /// Invoke function offsetRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs new file mode 100644 index 0000000000..15b8ac21b4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/ResizedRangeWithDeltaRowsWithDeltaColumns/ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ResizedRangeWithDeltaRowsWithDeltaColumns +{ + /// + /// Provides operations to call the resizedRange method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function resizedRange + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function resizedRange"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var deltaRowsOption = new Option("--delta-rows", description: "Usage: deltaRows={deltaRows}") { + }; + deltaRowsOption.IsRequired = true; + command.AddOption(deltaRowsOption); + var deltaColumnsOption = new Option("--delta-columns", description: "Usage: deltaColumns={deltaColumns}") { + }; + deltaColumnsOption.IsRequired = true; + command.AddOption(deltaColumnsOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var deltaRows = invocationContext.ParseResult.GetValueForOption(deltaRowsOption); + var deltaColumns = invocationContext.ParseResult.GetValueForOption(deltaColumnsOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + if (deltaRows is not null) requestInfo.PathParameters.Add("deltaRows", deltaRows); + if (deltaColumns is not null) requestInfo.PathParameters.Add("deltaColumns", deltaColumns); + 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 ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", rawUrl) + { + } + /// + /// Invoke function resizedRange + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowWithRow/RowWithRowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowWithRow/RowWithRowRequestBuilder.cs new file mode 100644 index 0000000000..1d669b9939 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowWithRow/RowWithRowRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowWithRow +{ + /// + /// Provides operations to call the row method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowWithRowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function row + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function row"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var rowOption = new Option("--row", description: "Usage: row={row}") { + }; + rowOption.IsRequired = true; + command.AddOption(rowOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var row = invocationContext.ParseResult.GetValueForOption(rowOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + if (row is not null) requestInfo.PathParameters.Add("row", row); + 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 RowWithRowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/row(row={row})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowWithRowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/row(row={row})", rawUrl) + { + } + /// + /// Invoke function row + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsAbove/RowsAboveRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsAbove/RowsAboveRequestBuilder.cs new file mode 100644 index 0000000000..561cabacaa --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsAbove/RowsAboveRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsAbove +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 RowsAboveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsAbove()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsAbove()", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs new file mode 100644 index 0000000000..abdcec51f4 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsAboveWithCount/RowsAboveWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsAboveWithCount +{ + /// + /// Provides operations to call the rowsAbove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsAboveWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsAbove + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsAbove"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsAboveWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsAbove(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsAboveWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsAbove(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsAbove + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsBelow/RowsBelowRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsBelow/RowsBelowRequestBuilder.cs new file mode 100644 index 0000000000..f7df5da27a --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsBelow/RowsBelowRequestBuilder.cs @@ -0,0 +1,118 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsBelow +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 RowsBelowRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsBelow()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsBelow()", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs new file mode 100644 index 0000000000..f764c5a92e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/RowsBelowWithCount/RowsBelowWithCountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsBelowWithCount +{ + /// + /// Provides operations to call the rowsBelow method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RowsBelowWithCountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function rowsBelow + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function rowsBelow"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var countOption = new Option("--count", description: "Usage: count={count}") { + }; + countOption.IsRequired = true; + command.AddOption(countOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + if (count is not null) requestInfo.PathParameters.Add("count", count); + 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 RowsBelowWithCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsBelow(count={count})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RowsBelowWithCountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsBelow(count={count})", rawUrl) + { + } + /// + /// Invoke function rowsBelow + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Sort/SortRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Sort/SortRequestBuilder.cs new file mode 100644 index 0000000000..ed3e196387 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Sort/SortRequestBuilder.cs @@ -0,0 +1,321 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Sort +{ + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property sort for drives + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property sort for drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 the navigation property sort in drives + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property sort in drives"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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.WorkbookRangeSort.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 SortRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/sort{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public SortRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/sort{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sort for drives + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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 the navigation property sort in drives + /// + /// 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.WorkbookRangeSort body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookRangeSort 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SortRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Unmerge/UnmergeRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Unmerge/UnmergeRequestBuilder.cs new file mode 100644 index 0000000000..060b94d56e --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Unmerge/UnmergeRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#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; +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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Unmerge +{ + /// + /// Provides operations to call the unmerge method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmergeRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action unmerge + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action unmerge"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnmergeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/unmerge", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnmergeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/unmerge", rawUrl) + { + } + /// + /// Invoke action unmerge + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs index fe644cd0b2..f60de97a9a 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/UsedRangeWithValuesOnlyRequestBuilder.cs @@ -1,6 +1,37 @@ // +#pragma warning disable CS0618 +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.BoundingRectWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.CellWithRowWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Clear; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnWithColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsAfter; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsAfterWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsBefore; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsBeforeWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Delete; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.EntireColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.EntireRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Format; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Insert; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.IntersectionWithAnotherRange; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.LastCell; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.LastColumn; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.LastRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Merge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.OffsetRangeWithRowOffsetWithColumnOffset; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ResizedRangeWithDeltaRowsWithDeltaColumns; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowWithRow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsAbove; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsAboveWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsBelow; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsBelowWithCount; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Sort; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Unmerge; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.VisibleView; +using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Worksheet; 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,8 +50,215 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithVa /// /// Provides operations to call the usedRange method. /// - public class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsedRangeWithValuesOnlyRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to call the boundingRect method. + /// + /// A + public Command BuildBoundingRectWithAnotherRangeRbCommand() + { + var command = new Command("bounding-rect-with-another-range"); + command.Description = "Provides operations to call the boundingRect method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.BoundingRectWithAnotherRange.BoundingRectWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the cell method. + /// + /// A + public Command BuildCellWithRowWithColumnRbCommand() + { + var command = new Command("cell-with-row-with-column"); + command.Description = "Provides operations to call the cell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the clear method. + /// + /// A + public Command BuildClearNavCommand() + { + var command = new Command("clear"); + command.Description = "Provides operations to call the clear method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Clear.ClearRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterNavCommand() + { + var command = new Command("columns-after"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsAfter.ColumnsAfterRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsAfter method. + /// + /// A + public Command BuildColumnsAfterWithCountRbCommand() + { + var command = new Command("columns-after-with-count"); + command.Description = "Provides operations to call the columnsAfter method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsAfterWithCount.ColumnsAfterWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeNavCommand() + { + var command = new Command("columns-before"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsBefore.ColumnsBeforeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the columnsBefore method. + /// + /// A + public Command BuildColumnsBeforeWithCountRbCommand() + { + var command = new Command("columns-before-with-count"); + command.Description = "Provides operations to call the columnsBefore method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnsBeforeWithCount.ColumnsBeforeWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the column method. + /// + /// A + public Command BuildColumnWithColumnRbCommand() + { + var command = new Command("column-with-column"); + command.Description = "Provides operations to call the column method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ColumnWithColumn.ColumnWithColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the delete method. + /// + /// A + public Command BuildDeletePathNavCommand() + { + var command = new Command("delete-path"); + command.Description = "Provides operations to call the delete method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Delete.DeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireColumn method. + /// + /// A + public Command BuildEntireColumnNavCommand() + { + var command = new Command("entire-column"); + command.Description = "Provides operations to call the entireColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.EntireColumn.EntireColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the entireRow method. + /// + /// A + public Command BuildEntireRowNavCommand() + { + var command = new Command("entire-row"); + command.Description = "Provides operations to call the entireRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.EntireRow.EntireRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the format property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildFormatNavCommand() + { + var command = new Command("format"); + command.Description = "Provides operations to manage the format property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Format.FormatRequestBuilder(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; + } /// /// Invoke function usedRange /// @@ -78,14 +316,305 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the insert method. + /// + /// A + public Command BuildInsertNavCommand() + { + var command = new Command("insert"); + command.Description = "Provides operations to call the insert method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Insert.InsertRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the intersection method. + /// + /// A + public Command BuildIntersectionWithAnotherRangeRbCommand() + { + var command = new Command("intersection-with-another-range"); + command.Description = "Provides operations to call the intersection method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.IntersectionWithAnotherRange.IntersectionWithAnotherRangeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastCell method. + /// + /// A + public Command BuildLastCellNavCommand() + { + var command = new Command("last-cell"); + command.Description = "Provides operations to call the lastCell method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.LastCell.LastCellRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastColumn method. + /// + /// A + public Command BuildLastColumnNavCommand() + { + var command = new Command("last-column"); + command.Description = "Provides operations to call the lastColumn method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.LastColumn.LastColumnRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the lastRow method. + /// + /// A + public Command BuildLastRowNavCommand() + { + var command = new Command("last-row"); + command.Description = "Provides operations to call the lastRow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.LastRow.LastRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the merge method. + /// + /// A + public Command BuildMergeNavCommand() + { + var command = new Command("merge"); + command.Description = "Provides operations to call the merge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Merge.MergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the offsetRange method. + /// + /// A + public Command BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand() + { + var command = new Command("offset-range-with-row-offset-with-column-offset"); + command.Description = "Provides operations to call the offsetRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.OffsetRangeWithRowOffsetWithColumnOffset.OffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the resizedRange method. + /// + /// A + public Command BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand() + { + var command = new Command("resized-range-with-delta-rows-with-delta-columns"); + command.Description = "Provides operations to call the resizedRange method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.ResizedRangeWithDeltaRowsWithDeltaColumns.ResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveNavCommand() + { + var command = new Command("rows-above"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsAbove.RowsAboveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsAbove method. + /// + /// A + public Command BuildRowsAboveWithCountRbCommand() + { + var command = new Command("rows-above-with-count"); + command.Description = "Provides operations to call the rowsAbove method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsAboveWithCount.RowsAboveWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowNavCommand() + { + var command = new Command("rows-below"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsBelow.RowsBelowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the rowsBelow method. + /// + /// A + public Command BuildRowsBelowWithCountRbCommand() + { + var command = new Command("rows-below-with-count"); + command.Description = "Provides operations to call the rowsBelow method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowsBelowWithCount.RowsBelowWithCountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the row method. + /// + /// A + public Command BuildRowWithRowRbCommand() + { + var command = new Command("row-with-row"); + command.Description = "Provides operations to call the row method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.RowWithRow.RowWithRowRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the sort property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildSortNavCommand() + { + var command = new Command("sort"); + command.Description = "Provides operations to manage the sort property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Sort.SortRequestBuilder(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 call the unmerge method. + /// + /// A + public Command BuildUnmergeNavCommand() + { + var command = new Command("unmerge"); + command.Description = "Provides operations to call the unmerge method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Unmerge.UnmergeRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the visibleView method. + /// + /// A + public Command BuildVisibleViewNavCommand() + { + var command = new Command("visible-view"); + command.Description = "Provides operations to call the visibleView method."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.VisibleView.VisibleViewRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + /// A + public Command BuildWorksheetNavCommand() + { + var command = new Command("worksheet"); + command.Description = "Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity."; + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Worksheet.WorksheetRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UsedRangeWithValuesOnlyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})", 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 UsedRangeWithValuesOnlyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})", rawUrl) @@ -112,3 +641,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.VisibleView +{ + /// + /// Provides operations to call the visibleView method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VisibleViewRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke function visibleView + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Invoke function visibleView"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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 => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 VisibleViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/visibleView()", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public VisibleViewRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/visibleView()", rawUrl) + { + } + /// + /// Invoke function visibleView + /// + /// 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; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Worksheet/WorksheetRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Worksheet/WorksheetRequestBuilder.cs new file mode 100644 index 0000000000..ea21e4c851 --- /dev/null +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/UsedRangeWithValuesOnly/Worksheet/WorksheetRequestBuilder.cs @@ -0,0 +1,159 @@ +// +#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.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.Worksheet +{ + /// + /// Provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilder : BaseCliRequestBuilder + { + /// + /// The worksheet containing the current range. Read-only. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The worksheet containing the current range. Read-only."; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var driveItemIdOption = new Option("--drive-item-id", description: "The unique identifier of driveItem") { + }; + driveItemIdOption.IsRequired = true; + command.AddOption(driveItemIdOption); + var workbookWorksheetIdOption = new Option("--workbook-worksheet-id", description: "The unique identifier of workbookWorksheet") { + }; + workbookWorksheetIdOption.IsRequired = true; + command.AddOption(workbookWorksheetIdOption); + var valuesOnlyOption = new Option("--values-only", description: "Usage: valuesOnly={valuesOnly}") { + }; + valuesOnlyOption.IsRequired = true; + command.AddOption(valuesOnlyOption); + 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 driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var driveItemId = invocationContext.ParseResult.GetValueForOption(driveItemIdOption); + var workbookWorksheetId = invocationContext.ParseResult.GetValueForOption(workbookWorksheetIdOption); + var valuesOnly = invocationContext.ParseResult.GetValueForOption(valuesOnlyOption); + 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; + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (driveItemId is not null) requestInfo.PathParameters.Add("driveItem%2Did", driveItemId); + if (workbookWorksheetId is not null) requestInfo.PathParameters.Add("workbookWorksheet%2Did", workbookWorksheetId); + if (valuesOnly is not null) requestInfo.PathParameters.Add("valuesOnly", valuesOnly); + 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 WorksheetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/worksheet{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public WorksheetRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/worksheet{?%24expand,%24select}", rawUrl) + { + } + /// + /// The worksheet containing the current range. Read-only. + /// + /// 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; + } + /// + /// The worksheet containing the current range. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetRequestBuilderGetQueryParameters + { + /// 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/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs index 61ee2a74a5..6834bbfc24 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/WorkbookWorksheetItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names; @@ -11,6 +12,7 @@ using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly; 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; @@ -29,7 +31,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item /// /// Provides operations to manage the worksheets property of the microsoft.graph.workbook entity. /// - public class WorkbookWorksheetItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookWorksheetItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the cell method. @@ -39,13 +42,48 @@ public Command BuildCellWithRowWithColumnRbCommand() { var command = new Command("cell-with-row-with-column"); command.Description = "Provides operations to call the cell method."; - var builder = new CellWithRowWithColumnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.CellWithRowWithColumn.CellWithRowWithColumnRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumn1RbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRow1RbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -56,7 +94,7 @@ public Command BuildChartsNavCommand() { var command = new Command("charts"); command.Description = "Provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity."; - var builder = new ChartsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.ChartsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); @@ -197,7 +235,7 @@ public Command BuildNamesNavCommand() { var command = new Command("names"); command.Description = "Provides operations to manage the names property of the microsoft.graph.workbookWorksheet entity."; - var builder = new NamesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.NamesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddFormulaLocalNavCommand()); @@ -258,8 +296,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(WorkbookWorksheet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookWorksheet.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -289,7 +327,7 @@ public Command BuildPivotTablesNavCommand() { var command = new Command("pivot-tables"); command.Description = "Provides operations to manage the pivotTables property of the microsoft.graph.workbookWorksheet entity."; - var builder = new PivotTablesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.PivotTables.PivotTablesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -317,7 +355,7 @@ public Command BuildProtectionNavCommand() { var command = new Command("protection"); command.Description = "Provides operations to manage the protection property of the microsoft.graph.workbookWorksheet entity."; - var builder = new ProtectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Protection.ProtectionRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -343,13 +381,49 @@ public Command BuildRangeNavCommand() { var command = new Command("range"); command.Description = "Provides operations to call the range method."; - var builder = new RangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeNamespace.RangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -360,13 +434,49 @@ public Command BuildRangeWithAddressRbCommand() { var command = new Command("range-with-address"); command.Description = "Provides operations to call the range method."; - var builder = new RangeWithAddressRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.RangeWithAddress.RangeWithAddressRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeNavCommand()); + nonExecCommands.Add(builder.BuildUsedRangeWithValuesOnlyRbCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -377,7 +487,7 @@ public Command BuildTablesNavCommand() { var command = new Command("tables"); command.Description = "Provides operations to manage the tables property of the microsoft.graph.workbookWorksheet entity."; - var builder = new TablesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.TablesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); @@ -406,13 +516,47 @@ public Command BuildUsedRangeNavCommand() { var command = new Command("used-range"); command.Description = "Provides operations to call the usedRange method."; - var builder = new UsedRangeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRange.UsedRangeRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// @@ -423,24 +567,58 @@ public Command BuildUsedRangeWithValuesOnlyRbCommand() { var command = new Command("used-range-with-values-only"); command.Description = "Provides operations to call the usedRange method."; - var builder = new UsedRangeWithValuesOnlyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.UsedRangeWithValuesOnly.UsedRangeWithValuesOnlyRequestBuilder(PathParameters); var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBoundingRectWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildCellWithRowWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildClearNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterNavCommand()); + nonExecCommands.Add(builder.BuildColumnsAfterWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeNavCommand()); + nonExecCommands.Add(builder.BuildColumnsBeforeWithCountRbCommand()); + nonExecCommands.Add(builder.BuildColumnWithColumnRbCommand()); + nonExecCommands.Add(builder.BuildDeletePathNavCommand()); + nonExecCommands.Add(builder.BuildEntireColumnNavCommand()); + nonExecCommands.Add(builder.BuildEntireRowNavCommand()); + nonExecCommands.Add(builder.BuildFormatNavCommand()); execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInsertNavCommand()); + nonExecCommands.Add(builder.BuildIntersectionWithAnotherRangeRbCommand()); + nonExecCommands.Add(builder.BuildLastCellNavCommand()); + nonExecCommands.Add(builder.BuildLastColumnNavCommand()); + nonExecCommands.Add(builder.BuildLastRowNavCommand()); + nonExecCommands.Add(builder.BuildMergeNavCommand()); + nonExecCommands.Add(builder.BuildOffsetRangeWithRowOffsetWithColumnOffsetRbCommand()); + nonExecCommands.Add(builder.BuildResizedRangeWithDeltaRowsWithDeltaColumnsRbCommand()); + nonExecCommands.Add(builder.BuildRowsAboveNavCommand()); + nonExecCommands.Add(builder.BuildRowsAboveWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowsBelowNavCommand()); + nonExecCommands.Add(builder.BuildRowsBelowWithCountRbCommand()); + nonExecCommands.Add(builder.BuildRowWithRowRbCommand()); + nonExecCommands.Add(builder.BuildSortNavCommand()); + nonExecCommands.Add(builder.BuildUnmergeNavCommand()); + nonExecCommands.Add(builder.BuildVisibleViewNavCommand()); + nonExecCommands.Add(builder.BuildWorksheetNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public WorkbookWorksheetItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%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 WorkbookWorksheetItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}{?%24expand,%24select}", rawUrl) @@ -472,11 +650,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); @@ -492,11 +670,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(WorkbookWorksheet body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookWorksheet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WorkbookWorksheet body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WorkbookWorksheet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -508,7 +686,8 @@ public RequestInformation ToPatchRequestInformation(WorkbookWorksheet body, Acti /// /// Represents a collection of worksheets associated with the workbook. Read-only. /// - public class WorkbookWorksheetItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkbookWorksheetItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -533,3 +712,4 @@ public class WorkbookWorksheetItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs index c2e33d5143..6a9ddadfb3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Add; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Count; using ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets /// /// Provides operations to manage the worksheets property of the microsoft.graph.workbook entity. /// - public class WorksheetsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -32,7 +35,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -49,7 +52,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WorkbookWorksheetItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.WorkbookWorksheetItemRequestBuilder(PathParameters); commands.Add(builder.BuildCellWithRowWithColumnRbCommand()); commands.Add(builder.BuildChartsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -73,7 +76,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.Drives.Item.Items.Item.Workbook.Worksheets.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -117,8 +120,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(WorkbookWorksheet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WorkbookWorksheet.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -248,14 +251,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 WorksheetsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets{?%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 WorksheetsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -268,11 +271,11 @@ public WorksheetsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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); @@ -288,11 +291,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(WorkbookWorksheet body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookWorksheet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WorkbookWorksheet body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WorkbookWorksheet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -304,7 +307,8 @@ public RequestInformation ToPostRequestInformation(WorkbookWorksheet body, Actio /// /// Represents a collection of worksheets associated with the workbook. Read-only. /// - public class WorksheetsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorksheetsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -368,3 +372,4 @@ public class WorksheetsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Items/ItemsRequestBuilder.cs b/src/generated/Drives/Item/Items/ItemsRequestBuilder.cs index 35839e09d6..13a42dafbe 100644 --- a/src/generated/Drives/Item/Items/ItemsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/ItemsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Items.Count; using ApiSdk.Drives.Item.Items.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.Drives.Item.Items /// /// Provides operations to manage the items property of the microsoft.graph.drive entity. /// - public class ItemsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the items property of the microsoft.graph.drive entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DriveItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Items.Item.DriveItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildAnalyticsNavCommand()); commands.Add(builder.BuildAssignSensitivityLabelNavCommand()); commands.Add(builder.BuildCheckinNavCommand()); @@ -45,6 +48,7 @@ public Tuple, List> BuildCommand() executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDeltaNavCommand()); commands.Add(builder.BuildDeltaWithTokenRbCommand()); + commands.Add(builder.BuildDiscardCheckoutNavCommand()); commands.Add(builder.BuildExtractSensitivityLabelsNavCommand()); commands.Add(builder.BuildFollowNavCommand()); commands.Add(builder.BuildGetActivitiesByIntervalNavCommand()); @@ -76,7 +80,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.Drives.Item.Items.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -115,8 +119,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,14 +244,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 ItemsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/items{?%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 ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -260,11 +264,11 @@ public ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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); @@ -280,11 +284,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(ApiSdk.Models.DriveItem body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DriveItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.DriveItem body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DriveItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -296,7 +300,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.DriveItem body, /// /// Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. /// - public class ItemsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -360,3 +365,4 @@ public class ItemsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index dc9293348a..3881e9e37c 100644 --- a/src/generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/generated/Drives/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.LastModifiedByUser.MailboxSettings; using ApiSdk.Drives.Item.LastModifiedByUser.ServiceProvisioningErrors; 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.Drives.Item.LastModifiedByUser /// /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. /// - public class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who last modified the item. Read-only. @@ -83,7 +86,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.LastModifiedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -101,7 +104,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.LastModifiedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -117,14 +120,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LastModifiedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/lastModifiedByUser{?%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 LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl) @@ -137,11 +140,11 @@ public LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives /// 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); @@ -152,7 +155,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who last modified the item. Read-only. /// - public class LastModifiedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -177,3 +181,4 @@ public class LastModifiedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 1901ab417b..fbe8bae40b 100644 --- a/src/generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Drives/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Drives.Item.LastModifiedByUser.MailboxSettings /// /// Builds and executes requests for operations under \drives\{drive-id}\lastModifiedByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -103,8 +106,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,14 +128,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -145,11 +148,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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); @@ -165,11 +168,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -181,7 +184,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,3 +210,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 41de797a36..4cfcc61870 100644 --- a/src/generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/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.Drives.Item.LastModifiedByUser.ServiceProvisioningErrors.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}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors/$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}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index bc0fbfe089..017892c44c 100644 --- a/src/generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Drives/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; 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.Drives.Item.LastModifiedByUser.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \drives\{drive-id}\lastModifiedByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Drives.Item.LastModifiedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -142,31 +145,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -175,9 +178,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -241,3 +245,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs b/src/generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs index 8d7a47adb5..644ca5078c 100644 --- a/src/generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Columns/ColumnsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Columns.Count; using ApiSdk.Drives.Item.List.Columns.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.Drives.Item.List.Columns /// /// Provides operations to manage the columns property of the microsoft.graph.list entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columns property of the microsoft.graph.list entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ColumnDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Columns.Item.ColumnDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Drives.Item.List.Columns.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action /// /// The collection of field definitions for this list. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Columns/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/Columns/Count/CountRequestBuilder.cs index 6da2665a08..03965526a8 100644 --- a/src/generated/Drives/Item/List/Columns/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Columns/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.Drives.Item.List.Columns.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}/drives/{drive%2Did}/list/columns/$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}/drives/{drive%2Did}/list/columns/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/generated/Drives/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index d93a425f2c..2cad93d625 100644 --- a/src/generated/Drives/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Columns.Item.SourceColumn; 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.Drives.Item.List.Columns.Item /// /// Provides operations to manage the columns property of the microsoft.graph.list entity. /// - public class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property columns for drives @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -186,7 +189,7 @@ public Command BuildSourceColumnNavCommand() { var command = new Command("source-column"); command.Description = "Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity."; - var builder = new SourceColumnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Columns.Item.SourceColumn.SourceColumnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -196,14 +199,14 @@ public Command BuildSourceColumnNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ColumnDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/columns/{columnDefinition%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 ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/columns/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio /// /// The collection of field definitions for this list. /// - public class ColumnDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ColumnDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/generated/Drives/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index a25dde897f..17a9451ace 100644 --- a/src/generated/Drives/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Columns/Item/SourceColumn/SourceColumnRequestBuilder.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.Drives.Item.List.Columns.Item.SourceColumn /// /// Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. /// - public class SourceColumnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilder : BaseCliRequestBuilder { /// /// The source column for the content type column. @@ -80,14 +83,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 SourceColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/columns/{columnDefinition%2Did}/sourceColumn{?%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 SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The source column for the content type column. /// - public class SourceColumnRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class SourceColumnRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs b/src/generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs index f8d2175605..5f26b0d36c 100644 --- a/src/generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs +++ b/src/generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.List.ContentTypes.AddCopy { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddCopyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddCopyPostRequestBody : 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. @@ -21,7 +23,7 @@ public class AddCopyPostRequestBody : IAdditionalDataHolder, IParsable public string ContentType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddCopyPostRequestBody() { @@ -30,12 +32,12 @@ public AddCopyPostRequestBody() /// /// 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 AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.List.ContentTypes.AddCopy.AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddCopyPostRequestBody(); + return new global::ApiSdk.Drives.Item.List.ContentTypes.AddCopy.AddCopyPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index 8c1db6e6ae..d16d0eed7f 100644 --- a/src/generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/AddCopy/AddCopyRequestBuilder.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.Drives.Item.List.ContentTypes.AddCopy /// /// Provides operations to call the addCopy method. /// - public class AddCopyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddCopyRequestBuilder : BaseCliRequestBuilder { /// /// Add a copy of a content type from a site to a list. @@ -52,8 +55,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(AddCopyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.List.ContentTypes.AddCopy.AddCopyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 AddCopyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/addCopy", 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 AddCopyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/addCopy", rawUrl) @@ -95,11 +98,11 @@ public AddCopyRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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(AddCopyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.List.ContentTypes.AddCopy.AddCopyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.List.ContentTypes.AddCopy.AddCopyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs b/src/generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs index 216a658cdd..64bd4f848f 100644 --- a/src/generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs +++ b/src/generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.List.ContentTypes.AddCopyFromContentTypeHub { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddCopyFromContentTypeHubPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddCopyFromContentTypeHubPostRequestBody : 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. @@ -21,7 +23,7 @@ public class AddCopyFromContentTypeHubPostRequestBody : IAdditionalDataHolder, I public string ContentTypeId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddCopyFromContentTypeHubPostRequestBody() { @@ -30,12 +32,12 @@ public AddCopyFromContentTypeHubPostRequestBody() /// /// 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 AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.List.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddCopyFromContentTypeHubPostRequestBody(); + return new global::ApiSdk.Drives.Item.List.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index 1661384ad4..30bc98ac00 100644 --- a/src/generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.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.Drives.Item.List.ContentTypes.AddCopyFromContentTypeHub /// /// Provides operations to call the addCopyFromContentTypeHub method. /// - public class AddCopyFromContentTypeHubRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddCopyFromContentTypeHubRequestBuilder : BaseCliRequestBuilder { /// /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. @@ -52,8 +55,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(AddCopyFromContentTypeHubPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.List.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 AddCopyFromContentTypeHubRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/addCopyFromContentTypeHub", 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 AddCopyFromContentTypeHubRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/addCopyFromContentTypeHub", rawUrl) @@ -95,11 +98,11 @@ public AddCopyFromContentTypeHubRequestBuilder(string rawUrl) : base("{+baseurl} /// 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(AddCopyFromContentTypeHubPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.List.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.List.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPost } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs index 3bdf73ef4d..34556b316a 100644 --- a/src/generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/ContentTypesRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.ContentTypes.AddCopy; using ApiSdk.Drives.Item.List.ContentTypes.AddCopyFromContentTypeHub; using ApiSdk.Drives.Item.List.ContentTypes.Count; @@ -6,6 +7,7 @@ using ApiSdk.Drives.Item.List.ContentTypes.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; @@ -24,7 +26,8 @@ namespace ApiSdk.Drives.Item.List.ContentTypes /// /// Provides operations to manage the contentTypes property of the microsoft.graph.list entity. /// - public class ContentTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the addCopyFromContentTypeHub method. @@ -34,7 +37,7 @@ public Command BuildAddCopyFromContentTypeHubNavCommand() { var command = new Command("add-copy-from-content-type-hub"); command.Description = "Provides operations to call the addCopyFromContentTypeHub method."; - var builder = new AddCopyFromContentTypeHubRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildAddCopyNavCommand() { var command = new Command("add-copy"); command.Description = "Provides operations to call the addCopy method."; - var builder = new AddCopyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.AddCopy.AddCopyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -68,7 +71,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ContentTypeItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.ContentTypeItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssociateWithHubSitesNavCommand()); commands.Add(builder.BuildBaseNavCommand()); commands.Add(builder.BuildBaseTypesNavCommand()); @@ -92,7 +95,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.Drives.Item.List.ContentTypes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -131,8 +134,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(ContentType.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,7 +163,7 @@ public Command BuildGetCompatibleHubContentTypesNavCommand() { var command = new Command("get-compatible-hub-content-types"); command.Description = "Provides operations to call the getCompatibleHubContentTypes method."; - var builder = new GetCompatibleHubContentTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.GetCompatibleHubContentTypes.GetCompatibleHubContentTypesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -272,14 +275,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 ContentTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes{?%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 ContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -292,11 +295,11 @@ public ContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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); @@ -312,11 +315,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(ContentType body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ContentType body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ContentType body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ContentType body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -328,7 +331,8 @@ public RequestInformation ToPostRequestInformation(ContentType body, Action /// The collection of content types present in this list. /// - public class ContentTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -392,3 +396,4 @@ public class ContentTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Count/CountRequestBuilder.cs index f7292a9723..70d5996418 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/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.Drives.Item.List.ContentTypes.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}/drives/{drive%2Did}/list/contentTypes/$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}/drives/{drive%2Did}/list/contentTypes/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs index 7207ad53cb..e068b08e48 100644 --- a/src/generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs +++ b/src/generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.List.ContentTypes.GetCompatibleHubContentTypes { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetCompatibleHubContentTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetCompatibleHubContentTypesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.List.ContentTypes.GetCompatibleHubContentTypes.GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetCompatibleHubContentTypesGetResponse(); + return new global::ApiSdk.Drives.Item.List.ContentTypes.GetCompatibleHubContentTypes.GetCompatibleHubContentTypesGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index 3e7f638340..1667827d2e 100644 --- a/src/generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.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.Drives.Item.List.ContentTypes.GetCompatibleHubContentTypes /// /// Provides operations to call the getCompatibleHubContentTypes method. /// - public class GetCompatibleHubContentTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetCompatibleHubContentTypesRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. @@ -124,14 +127,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 GetCompatibleHubContentTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/getCompatibleHubContentTypes(){?%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 GetCompatibleHubContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/getCompatibleHubContentTypes(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -144,11 +147,11 @@ public GetCompatibleHubContentTypesRequestBuilder(string rawUrl) : base("{+baseu /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. /// - public class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs b/src/generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs index 422eeed68e..0d21546f1d 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.List.ContentTypes.Item.AssociateWithHubSites { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssociateWithHubSitesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssociateWithHubSitesPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AssociateWithHubSitesPostRequestBody : IAdditionalDataHolder, IPars /// The propagateToExistingLists property public bool? PropagateToExistingLists { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssociateWithHubSitesPostRequestBody() { @@ -32,12 +34,12 @@ public AssociateWithHubSitesPostRequestBody() /// /// 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 AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.List.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssociateWithHubSitesPostRequestBody(); + return new global::ApiSdk.Drives.Item.List.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody(); } /// /// The deserialization information for the current model @@ -47,7 +49,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "propagateToExistingLists", n => { PropagateToExistingLists = n.GetBoolValue(); } }, }; } @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index ddf8309b7d..23cbc9c56f 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.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.Drives.Item.List.ContentTypes.Item.AssociateWithHubSites /// /// Provides operations to call the associateWithHubSites method. /// - public class AssociateWithHubSitesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssociateWithHubSitesRequestBuilder : BaseCliRequestBuilder { /// /// Associate a published content type present in a content type hub with a list of hub sites. @@ -48,8 +51,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(AssociateWithHubSitesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.List.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 AssociateWithHubSitesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/associateWithHubSites", 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 AssociateWithHubSitesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/associateWithHubSites", rawUrl) @@ -90,11 +93,11 @@ public AssociateWithHubSitesRequestBuilder(string rawUrl) : base("{+baseurl}/dri /// 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(AssociateWithHubSitesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.List.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.List.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequ } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs b/src/generated/Drives/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs index 120d0ab060..7c6f7ef056 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/Base/BaseRequestBuilderEscaped.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.Drives.Item.List.ContentTypes.Item.Base /// /// Provides operations to manage the base property of the microsoft.graph.contentType entity. /// - public class BaseRequestBuilderEscaped : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseRequestBuilderEscaped : BaseCliRequestBuilder { /// /// Parent contentType from which this content type is derived. @@ -80,14 +83,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 BaseRequestBuilderEscaped(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/base{?%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 BaseRequestBuilderEscaped(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/base{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public BaseRequestBuilderEscaped(string rawUrl) : base("{+baseurl}/drives/{drive /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Parent contentType from which this content type is derived. /// - public class BaseRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class BaseRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs index 8cff436446..4251c12a44 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.ContentTypes.Item.BaseTypes.Count; using ApiSdk.Drives.Item.List.ContentTypes.Item.BaseTypes.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.Drives.Item.List.ContentTypes.Item.BaseTypes /// /// Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. /// - public class BaseTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseTypesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. @@ -30,7 +33,7 @@ public class BaseTypesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ApiSdk.Drives.Item.List.ContentTypes.Item.BaseTypes.Item.ContentTypeItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.BaseTypes.Item.ContentTypeItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Drives.Item.List.ContentTypes.Item.BaseTypes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -160,14 +163,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 BaseTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes{?%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 BaseTypesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -180,11 +183,11 @@ public BaseTypesRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -195,7 +198,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of content types that are ancestors of this content type. /// - public class BaseTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -259,3 +263,4 @@ public class BaseTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs index 7803b40194..d271138fc1 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/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.Drives.Item.List.ContentTypes.Item.BaseTypes.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes/$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}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs index 1cd1147e8c..fdd5acdbb3 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.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.Drives.Item.List.ContentTypes.Item.BaseTypes.Item /// /// Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. /// - public class ContentTypeItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilder : BaseCliRequestBuilder { /// /// The collection of content types that are ancestors of this content type. @@ -86,14 +89,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 ContentTypeItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public ContentTypeItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ContentTypeItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of content types that are ancestors of this content type. /// - public class ContentTypeItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ContentTypeItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs index f4b01009e8..a222a85e7f 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.ContentTypes.Item.ColumnLinks.Count; using ApiSdk.Drives.Item.List.ContentTypes.Item.ColumnLinks.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.Drives.Item.List.ContentTypes.Item.ColumnLinks /// /// Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. /// - public class ColumnLinksRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinksRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. @@ -30,7 +33,7 @@ public class ColumnLinksRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ColumnLinkItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.ColumnLinks.Item.ColumnLinkItemRequestBuilder(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.Drives.Item.List.ContentTypes.Item.ColumnLinks.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ColumnLink.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnLink.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ColumnLinksRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks{?%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 ColumnLinksRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ColumnLinksRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ColumnLink body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnLink body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnLink body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnLink body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(ColumnLink body, Action /// The collection of columns that are required by this content type. /// - public class ColumnLinksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinksRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ColumnLinksRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs index aad5418efd..6b85643562 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/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.Drives.Item.List.ContentTypes.Item.ColumnLinks.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks/$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}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs index fa77e9deac..9b280ab046 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.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.Drives.Item.List.ContentTypes.Item.ColumnLinks.Item /// /// Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. /// - public class ColumnLinkItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinkItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property columnLinks for drives @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ColumnLink.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnLink.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ColumnLinkItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks/{columnLink%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 ColumnLinkItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ColumnLink body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnLink body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ColumnLink body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnLink body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(ColumnLink body, Action /// The collection of columns that are required by this content type. /// - public class ColumnLinkItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinkItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ColumnLinkItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs index 747c0a591d..c0f5d4d12e 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.ContentTypes.Item.ColumnPositions.Count; using ApiSdk.Drives.Item.List.ContentTypes.Item.ColumnPositions.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.Drives.Item.List.ContentTypes.Item.ColumnPositions /// /// Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. /// - public class ColumnPositionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnPositionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. @@ -30,7 +33,7 @@ public class ColumnPositionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ColumnDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.ColumnPositions.Item.ColumnDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Drives.Item.List.ContentTypes.Item.ColumnPositions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -160,14 +163,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 ColumnPositionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions{?%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 ColumnPositionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -180,11 +183,11 @@ public ColumnPositionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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); @@ -195,7 +198,8 @@ public RequestInformation ToGetRequestInformation(Action /// Column order information in a content type. /// - public class ColumnPositionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnPositionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -259,3 +263,4 @@ public class ColumnPositionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs index e903587bec..bd1fe7b04e 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/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.Drives.Item.List.ContentTypes.Item.ColumnPositions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions/$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}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs index 51f0f56732..8fe4b8e947 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.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.Drives.Item.List.ContentTypes.Item.ColumnPositions.Item /// /// Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. /// - public class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Column order information in a content type. @@ -86,14 +89,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 ColumnDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%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 ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/driv /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// Column order information in a content type. /// - public class ColumnDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ColumnDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index 9f5c857ad9..d724285fef 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.ContentTypes.Item.Columns.Count; using ApiSdk.Drives.Item.List.ContentTypes.Item.Columns.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.Drives.Item.List.ContentTypes.Item.Columns /// /// Provides operations to manage the columns property of the microsoft.graph.contentType entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columns property of the microsoft.graph.contentType entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ColumnDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.Columns.Item.ColumnDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Drives.Item.List.ContentTypes.Item.Columns.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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); @@ -261,11 +264,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(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action /// /// The collection of column definitions for this content type. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs index b339543a90..e4c7bdf441 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/Columns/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.Drives.Item.List.ContentTypes.Item.Columns.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/$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}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index ae37e84955..b21118a4c1 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.ContentTypes.Item.Columns.Item.SourceColumn; 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.Drives.Item.List.ContentTypes.Item.Columns.Item /// /// Provides operations to manage the columns property of the microsoft.graph.contentType entity. /// - public class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property columns for drives @@ -173,8 +176,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildSourceColumnNavCommand() { var command = new Command("source-column"); command.Description = "Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity."; - var builder = new SourceColumnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.Columns.Item.SourceColumn.SourceColumnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -214,14 +217,14 @@ public Command BuildSourceColumnNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ColumnDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%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 ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio /// /// The collection of column definitions for this content type. /// - public class ColumnDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class ColumnDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index d092cf3618..e8913b7b64 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.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.Drives.Item.List.ContentTypes.Item.Columns.Item.SourceColumn /// /// Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. /// - public class SourceColumnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilder : BaseCliRequestBuilder { /// /// The source column for the content type column. @@ -86,14 +89,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 SourceColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%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 SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The source column for the content type column. /// - public class SourceColumnRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class SourceColumnRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs index 46f5189cfd..9097fc02ad 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/ContentTypeItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.ContentTypes.Item.AssociateWithHubSites; using ApiSdk.Drives.Item.List.ContentTypes.Item.Base; using ApiSdk.Drives.Item.List.ContentTypes.Item.BaseTypes; @@ -11,6 +12,7 @@ using ApiSdk.Drives.Item.List.ContentTypes.Item.Unpublish; 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; @@ -29,7 +31,8 @@ namespace ApiSdk.Drives.Item.List.ContentTypes.Item /// /// Provides operations to manage the contentTypes property of the microsoft.graph.list entity. /// - public class ContentTypeItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the associateWithHubSites method. @@ -39,7 +42,7 @@ public Command BuildAssociateWithHubSitesNavCommand() { var command = new Command("associate-with-hub-sites"); command.Description = "Provides operations to call the associateWithHubSites method."; - var builder = new AssociateWithHubSitesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -56,7 +59,7 @@ public Command BuildBaseNavCommand() { var command = new Command("base"); command.Description = "Provides operations to manage the base property of the microsoft.graph.contentType entity."; - var builder = new BaseRequestBuilderEscaped(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.Base.BaseRequestBuilderEscaped(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -73,7 +76,7 @@ public Command BuildBaseTypesNavCommand() { var command = new Command("base-types"); command.Description = "Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity."; - var builder = new BaseTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.BaseTypes.BaseTypesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildColumnLinksNavCommand() { var command = new Command("column-links"); command.Description = "Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity."; - var builder = new ColumnLinksRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.ColumnLinks.ColumnLinksRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -126,7 +129,7 @@ public Command BuildColumnPositionsNavCommand() { var command = new Command("column-positions"); command.Description = "Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity."; - var builder = new ColumnPositionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.ColumnPositions.ColumnPositionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -152,7 +155,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.contentType entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -179,7 +182,7 @@ public Command BuildCopyToDefaultContentLocationNavCommand() { var command = new Command("copy-to-default-content-location"); command.Description = "Provides operations to call the copyToDefaultContentLocation method."; - var builder = new CopyToDefaultContentLocationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -295,7 +298,7 @@ public Command BuildIsPublishedNavCommand() { var command = new Command("is-published"); command.Description = "Provides operations to call the isPublished method."; - var builder = new IsPublishedRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.IsPublished.IsPublishedRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -339,8 +342,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(ContentType.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -369,7 +372,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.Drives.Item.List.ContentTypes.Item.Publish.PublishRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -386,7 +389,7 @@ public Command BuildUnpublishNavCommand() { var command = new Command("unpublish"); command.Description = "Provides operations to call the unpublish method."; - var builder = new UnpublishRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.Item.Unpublish.UnpublishRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -396,14 +399,14 @@ public Command BuildUnpublishNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentTypeItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%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 ContentTypeItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}{?%24expand,%24select}", rawUrl) @@ -435,11 +438,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); @@ -455,11 +458,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(ContentType body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ContentType body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ContentType body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ContentType body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -471,7 +474,8 @@ public RequestInformation ToPatchRequestInformation(ContentType body, Action /// The collection of content types present in this list. /// - public class ContentTypeItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -496,3 +500,4 @@ public class ContentTypeItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs b/src/generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs index c9939d1bba..7c9e29dca6 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.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.Drives.Item.List.ContentTypes.Item.CopyToDefaultContentLocation { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToDefaultContentLocationPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToDefaultContentLocationPostRequestBody : 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,13 +26,13 @@ public class CopyToDefaultContentLocationPostRequestBody : IAdditionalDataHolder /// The sourceFile property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ItemReference? SourceFile { get; set; } + public global::ApiSdk.Models.ItemReference? SourceFile { get; set; } #nullable restore #else - public ItemReference SourceFile { get; set; } + public global::ApiSdk.Models.ItemReference SourceFile { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToDefaultContentLocationPostRequestBody() { @@ -39,12 +41,12 @@ public CopyToDefaultContentLocationPostRequestBody() /// /// 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 CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.List.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToDefaultContentLocationPostRequestBody(); + return new global::ApiSdk.Drives.Item.List.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "destinationFileName", n => { DestinationFileName = n.GetStringValue(); } }, - { "sourceFile", n => { SourceFile = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, + { "sourceFile", n => { SourceFile = n.GetObjectValue(global::ApiSdk.Models.ItemReference.CreateFromDiscriminatorValue); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("destinationFileName", DestinationFileName); - writer.WriteObjectValue("sourceFile", SourceFile); + writer.WriteObjectValue("sourceFile", SourceFile); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index 0f68e3fb74..19c5d45012 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.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.Drives.Item.List.ContentTypes.Item.CopyToDefaultContentLocation /// /// Provides operations to call the copyToDefaultContentLocation method. /// - public class CopyToDefaultContentLocationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToDefaultContentLocationRequestBuilder : BaseCliRequestBuilder { /// /// Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. @@ -48,8 +51,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(CopyToDefaultContentLocationPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.List.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 CopyToDefaultContentLocationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", 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 CopyToDefaultContentLocationRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", rawUrl) @@ -90,11 +93,11 @@ public CopyToDefaultContentLocationRequestBuilder(string rawUrl) : base("{+baseu /// 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(CopyToDefaultContentLocationPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.List.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.List.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationP } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs index 443e8b28fe..a573777a91 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Drives.Item.List.ContentTypes.Item.IsPublished { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsPublishedGetResponse : IAdditionalDataHolder, IParsable + public partial class IsPublishedGetResponse : 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. @@ -15,7 +17,7 @@ public class IsPublishedGetResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsPublishedGetResponse() { @@ -24,12 +26,12 @@ public IsPublishedGetResponse() /// /// 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 IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.List.ContentTypes.Item.IsPublished.IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsPublishedGetResponse(); + return new global::ApiSdk.Drives.Item.List.ContentTypes.Item.IsPublished.IsPublishedGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index da32546510..f4a5abc279 100644 --- a/src/generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.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.Drives.Item.List.ContentTypes.Item.IsPublished /// /// Provides operations to call the isPublished method. /// - public class IsPublishedRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsPublishedRequestBuilder : BaseCliRequestBuilder { /// /// Check the publishing status of a contentType in a content type hub site. @@ -66,14 +69,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 IsPublishedRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/isPublished()", 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 IsPublishedRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/isPublished()", rawUrl) @@ -100,3 +103,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.List.ContentTypes.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 { /// /// Publishes a contentType present in the content type hub site. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PublishRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%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}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/publish", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Drives.Item.List.ContentTypes.Item.Unpublish /// /// Provides operations to call the unpublish method. /// - public class UnpublishRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnpublishRequestBuilder : BaseCliRequestBuilder { /// /// Unpublish a contentType from a content type hub site. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UnpublishRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/unpublish", 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 UnpublishRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/contentTypes/{contentType%2Did}/unpublish", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.CreatedByUser.MailboxSettings; using ApiSdk.Drives.Item.List.CreatedByUser.ServiceProvisioningErrors; 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.Drives.Item.List.CreatedByUser /// /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. /// - public class CreatedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who created the item. Read-only. @@ -83,7 +86,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.CreatedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -101,7 +104,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.CreatedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -117,14 +120,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CreatedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/createdByUser{?%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 CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/createdByUser{?%24expand,%24select}", rawUrl) @@ -137,11 +140,11 @@ public CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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); @@ -152,7 +155,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who created the item. Read-only. /// - public class CreatedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -177,3 +181,4 @@ public class CreatedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Drives/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 719acd9189..09142ae634 100644 --- a/src/generated/Drives/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Drives.Item.List.CreatedByUser.MailboxSettings /// /// Builds and executes requests for operations under \drives\{drive-id}\list\createdByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -103,8 +106,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,14 +128,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/createdByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -145,11 +148,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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); @@ -165,11 +168,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -181,7 +184,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,3 +210,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index c6341a6c3d..a1c8a24fbe 100644 --- a/src/generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/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.Drives.Item.List.CreatedByUser.ServiceProvisioningErrors.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}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors/$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}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 9ee3d5fb9c..6c52088bb7 100644 --- a/src/generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.CreatedByUser.ServiceProvisioningErrors.Count; 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.Drives.Item.List.CreatedByUser.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \drives\{drive-id}\list\createdByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Drives.Item.List.CreatedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -142,31 +145,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -175,9 +178,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -241,3 +245,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Drive/DriveRequestBuilder.cs b/src/generated/Drives/Item/List/Drive/DriveRequestBuilder.cs index 7e2d5e74c8..0f24f24a36 100644 --- a/src/generated/Drives/Item/List/Drive/DriveRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Drive/DriveRequestBuilder.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.Drives.Item.List.Drive /// /// Provides operations to manage the drive property of the microsoft.graph.list entity. /// - public class DriveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveRequestBuilder : BaseCliRequestBuilder { /// /// Allows access to the list as a drive resource with driveItems. Only present on document libraries. @@ -74,14 +77,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 DriveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/drive{?%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 DriveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/drive{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public DriveRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// Allows access to the list as a drive resource with driveItems. Only present on document libraries. /// - public class DriveRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class DriveRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Count/CountRequestBuilder.cs index c98fc59ca2..9bbbedf8aa 100644 --- a/src/generated/Drives/Item/List/Items/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/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.Drives.Item.List.Items.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}/drives/{drive%2Did}/list/items/$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}/drives/{drive%2Did}/list/items/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/List/Items/Delta/DeltaGetResponse.cs b/src/generated/Drives/Item/List/Items/Delta/DeltaGetResponse.cs index 3a03b8e82b..0adee6f45c 100644 --- a/src/generated/Drives/Item/List/Items/Delta/DeltaGetResponse.cs +++ b/src/generated/Drives/Item/List/Items/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.List.Items.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.List.Items.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Drives.Item.List.Items.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.ListItem.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ListItem.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Delta/DeltaRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Delta/DeltaRequestBuilder.cs index 1db22ff6c8..949813700d 100644 --- a/src/generated/Drives/Item/List/Items/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Delta/DeltaRequestBuilder.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.Drives.Item.List.Items.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. @@ -124,14 +127,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -144,11 +147,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/DeltaWithToken/DeltaWithTokenGetResponse.cs b/src/generated/Drives/Item/List/Items/DeltaWithToken/DeltaWithTokenGetResponse.cs index 7359cb414e..da00ef8ffb 100644 --- a/src/generated/Drives/Item/List/Items/DeltaWithToken/DeltaWithTokenGetResponse.cs +++ b/src/generated/Drives/Item/List/Items/DeltaWithToken/DeltaWithTokenGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.List.Items.DeltaWithToken { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaWithTokenGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaWithTokenGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaWithTokenGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.List.Items.DeltaWithToken.DeltaWithTokenGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaWithTokenGetResponse(); + return new global::ApiSdk.Drives.Item.List.Items.DeltaWithToken.DeltaWithTokenGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.ListItem.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ListItem.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/DeltaWithToken/DeltaWithTokenRequestBuilder.cs b/src/generated/Drives/Item/List/Items/DeltaWithToken/DeltaWithTokenRequestBuilder.cs index 3762d08804..c0e83d87b2 100644 --- a/src/generated/Drives/Item/List/Items/DeltaWithToken/DeltaWithTokenRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/DeltaWithToken/DeltaWithTokenRequestBuilder.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.Drives.Item.List.Items.DeltaWithToken /// /// Provides operations to call the delta method. /// - public class DeltaWithTokenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaWithTokenRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function delta @@ -129,14 +132,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 DeltaWithTokenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/delta(token='{token}'){?%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 DeltaWithTokenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -149,11 +152,11 @@ public DeltaWithTokenRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dr /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function delta /// - public class DeltaWithTokenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaWithTokenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -228,3 +232,4 @@ public class DeltaWithTokenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.cs index 004209aeb9..e3a9600881 100644 --- a/src/generated/Drives/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/Analytics/AnalyticsRequestBuilder.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.Drives.Item.List.Items.Item.Analytics /// /// Provides operations to manage the analytics property of the microsoft.graph.listItem entity. /// - public class AnalyticsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AnalyticsRequestBuilder : BaseCliRequestBuilder { /// /// Analytics about the view activities that took place on this item. @@ -80,14 +83,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 AnalyticsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/analytics{?%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 AnalyticsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/analytics{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public AnalyticsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Analytics about the view activities that took place on this item. /// - public class AnalyticsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AnalyticsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class AnalyticsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs index e3c2113d15..135a8cea88 100644 --- a/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs +++ b/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.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.Drives.Item.List.Items.Item.CreateLink { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateLinkPostRequestBody : 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. @@ -34,10 +36,10 @@ public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable /// The recipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Recipients { get; set; } + public List? Recipients { get; set; } #nullable restore #else - public List Recipients { get; set; } + public List Recipients { get; set; } #endif /// The retainInheritedPermissions property public bool? RetainInheritedPermissions { get; set; } @@ -60,7 +62,7 @@ public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateLinkPostRequestBody() { @@ -69,12 +71,12 @@ public CreateLinkPostRequestBody() /// /// 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 CreateLinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Drives.Item.List.Items.Item.CreateLink.CreateLinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateLinkPostRequestBody(); + return new global::ApiSdk.Drives.Item.List.Items.Item.CreateLink.CreateLinkPostRequestBody(); } /// /// The deserialization information for the current model @@ -87,7 +89,7 @@ public virtual IDictionary> GetFieldDeserializers() { "expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, { "message", n => { Message = n.GetStringValue(); } }, { "password", n => { Password = n.GetStringValue(); } }, - { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } }, { "retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, { "scope", n => { Scope = n.GetStringValue(); } }, { "sendNotification", n => { SendNotification = n.GetBoolValue(); } }, @@ -104,7 +106,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); writer.WriteStringValue("message", Message); writer.WriteStringValue("password", Password); - writer.WriteCollectionOfObjectValues("recipients", Recipients); + writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); writer.WriteStringValue("scope", Scope); writer.WriteBoolValue("sendNotification", SendNotification); @@ -113,3 +115,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.cs index a17f91e89d..5928e9f18c 100644 --- a/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.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.Drives.Item.List.Items.Item.CreateLink /// /// Provides operations to call the createLink method. /// - public class CreateLinkRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateLinkRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action createLink @@ -56,8 +59,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(CreateLinkPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Drives.Item.List.Items.Item.CreateLink.CreateLinkPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 CreateLinkRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createLink", 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 CreateLinkRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createLink", rawUrl) @@ -100,11 +103,11 @@ public CreateLinkRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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(CreateLinkPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.List.Items.Item.CreateLink.CreateLinkPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Drives.Item.List.Items.Item.CreateLink.CreateLinkPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 89961c479c..22428c16e8 100644 --- a/src/generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Items.Item.CreatedByUser.MailboxSettings; using ApiSdk.Drives.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors; 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.Drives.Item.List.Items.Item.CreatedByUser /// /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. /// - public class CreatedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who created the item. Read-only. @@ -89,7 +92,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.CreatedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -107,7 +110,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -123,14 +126,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CreatedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser{?%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 CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who created the item. Read-only. /// - public class CreatedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class CreatedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index a0c7554a64..541b4ac0e6 100644 --- a/src/generated/Drives/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Drives.Item.List.Items.Item.CreatedByUser.MailboxSettings /// /// Builds and executes requests for operations under \drives\{drive-id}\list\items\{listItem-id}\createdByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -114,8 +117,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -137,14 +140,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -157,11 +160,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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); @@ -177,11 +180,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -193,7 +196,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -218,3 +222,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index c9a7af7013..f8817da6ae 100644 --- a/src/generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/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.Drives.Item.List.Items.Item.CreatedByUser.ServiceProvisioningEr /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$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}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 9f5a332b47..c1ccc3de5b 100644 --- a/src/generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count; 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.Drives.Item.List.Items.Item.CreatedByUser.ServiceProvisioningEr /// /// Builds and executes requests for operations under \drives\{drive-id}\list\items\{listItem-id}\createdByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Drives.Item.List.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -148,31 +151,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -181,9 +184,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -247,3 +251,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs index 395b65095c..dec994383f 100644 --- a/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/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.Drives.Item.List.Items.Item.DocumentSetVersions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/$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}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs index 2954c8de58..474029986b 100644 --- a/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Items.Item.DocumentSetVersions.Count; using ApiSdk.Drives.Item.List.Items.Item.DocumentSetVersions.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.Drives.Item.List.Items.Item.DocumentSetVersions /// /// Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. /// - public class DocumentSetVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DocumentSetVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DocumentSetVersionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.DocumentSetVersions.Item.DocumentSetVersionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFieldsNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.Drives.Item.List.Items.Item.DocumentSetVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(DocumentSetVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DocumentSetVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 DocumentSetVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions{?%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 DocumentSetVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public DocumentSetVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/drive /// 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); @@ -262,11 +265,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(DocumentSetVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DocumentSetVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DocumentSetVersion body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DocumentSetVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(DocumentSetVersion body, Acti /// /// Version information for a document set version created by a user. /// - public class DocumentSetVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DocumentSetVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class DocumentSetVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs index 205b1d0a9e..c26e0bb325 100644 --- a/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Items.Item.DocumentSetVersions.Item.Fields; using ApiSdk.Drives.Item.List.Items.Item.DocumentSetVersions.Item.Restore; 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.Drives.Item.List.Items.Item.DocumentSetVersions.Item /// /// Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. /// - public class DocumentSetVersionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DocumentSetVersionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property documentSetVersions for drives @@ -78,7 +81,7 @@ public Command BuildFieldsNavCommand() { var command = new Command("fields"); command.Description = "Provides operations to manage the fields property of the microsoft.graph.listItemVersion entity."; - var builder = new FieldsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.DocumentSetVersions.Item.Fields.FieldsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -193,8 +196,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(DocumentSetVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DocumentSetVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,7 +227,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.DocumentSetVersions.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -234,14 +237,14 @@ public Command BuildRestoreNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DocumentSetVersionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%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 DocumentSetVersionItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(DocumentSetVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DocumentSetVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DocumentSetVersion body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DocumentSetVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(DocumentSetVersion body, Act /// /// Version information for a document set version created by a user. /// - public class DocumentSetVersionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DocumentSetVersionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class DocumentSetVersionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs index c29a0ad861..77c8f3d903 100644 --- a/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.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.Drives.Item.List.Items.Item.DocumentSetVersions.Item.Fields /// /// Provides operations to manage the fields property of the microsoft.graph.listItemVersion entity. /// - public class FieldsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property fields for drives @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(FieldValueSet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.FieldValueSet.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public FieldsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/fields{?%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 FieldsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/fields{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action /// A collection of the fields and values for this version of the list item. /// - public class FieldsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class FieldsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs index 82b58d732d..58aacef430 100644 --- a/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.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.Drives.Item.List.Items.Item.DocumentSetVersions.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// /// Restore a document set version. @@ -62,14 +65,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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/restore", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Drives.Item.List.Items.Item.DriveItem.Content /// /// Provides operations to manage the media for the drive entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -169,14 +172,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/driveItem/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/driveItem/content{?%24format*}", rawUrl) @@ -208,11 +211,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); @@ -245,7 +248,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs index 74faf70c5a..aff1063d8a 100644 --- a/src/generated/Drives/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/DriveItem/DriveItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Items.Item.DriveItem.Content; 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.Drives.Item.List.Items.Item.DriveItem /// /// Provides operations to manage the driveItem property of the microsoft.graph.listItem entity. /// - public class DriveItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the drive entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the drive entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.DriveItem.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -100,14 +103,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 DriveItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/driveItem{?%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 DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/driveItem{?%24expand,%24select}", rawUrl) @@ -120,11 +123,11 @@ public DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%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); @@ -135,7 +138,8 @@ public RequestInformation ToGetRequestInformation(Action /// For document libraries, the driveItem relationship exposes the listItem as a driveItem /// - public class DriveItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,3 +164,4 @@ public class DriveItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs index 5247f98480..f652ea69fa 100644 --- a/src/generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/Fields/FieldsRequestBuilder.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.Drives.Item.List.Items.Item.Fields /// /// Provides operations to manage the fields property of the microsoft.graph.listItem entity. /// - public class FieldsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property fields for drives @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(FieldValueSet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.FieldValueSet.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public FieldsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/fields{?%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 FieldsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/fields{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action /// The values of the columns set on this list item. /// - public class FieldsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class FieldsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs index 567f20b323..661dc9d2a4 100644 --- a/src/generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs +++ b/src/generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.List.Items.Item.GetActivitiesByInterval { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetActivitiesByIntervalGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.List.Items.Item.GetActivitiesByInterval.GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetActivitiesByIntervalGetResponse(); + return new global::ApiSdk.Drives.Item.List.Items.Item.GetActivitiesByInterval.GetActivitiesByIntervalGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index 3199c425a9..e4ea8ba1b6 100644 --- a/src/generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.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.Drives.Item.List.Items.Item.GetActivitiesByInterval /// /// Provides operations to call the getActivitiesByInterval method. /// - public class GetActivitiesByIntervalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function getActivitiesByInterval @@ -129,14 +132,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 GetActivitiesByIntervalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/getActivitiesByInterval(){?%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 GetActivitiesByIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -149,11 +152,11 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/d /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function getActivitiesByInterval /// - public class GetActivitiesByIntervalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -228,3 +232,4 @@ public class GetActivitiesByIntervalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index 59afe50578..08f9a4dcdc 100644 --- a/src/generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + return new global::ApiSdk.Drives.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index b464daf24d..bfbe9e6c60 100644 --- a/src/generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.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.Drives.Item.List.Items.Item.GetActivitiesByIntervalWithStartDat /// /// Provides operations to call the getActivitiesByInterval method. /// - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function getActivitiesByInterval @@ -147,14 +150,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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -167,11 +170,11 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// 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); @@ -182,7 +185,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function getActivitiesByInterval /// - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -246,3 +250,4 @@ public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index c8f901d3fb..df253f90de 100644 --- a/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Items.Item.LastModifiedByUser.MailboxSettings; using ApiSdk.Drives.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors; 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.Drives.Item.List.Items.Item.LastModifiedByUser /// /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. /// - public class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who last modified the item. Read-only. @@ -89,7 +92,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.LastModifiedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -107,7 +110,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -123,14 +126,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LastModifiedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser{?%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 LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who last modified the item. Read-only. /// - public class LastModifiedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class LastModifiedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index d46b755306..75a349a112 100644 --- a/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Drives.Item.List.Items.Item.LastModifiedByUser.MailboxSettings /// /// Builds and executes requests for operations under \drives\{drive-id}\list\items\{listItem-id}\lastModifiedByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -114,8 +117,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -137,14 +140,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -157,11 +160,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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); @@ -177,11 +180,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -193,7 +196,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -218,3 +222,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 2604ec793a..904d9c5737 100644 --- a/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/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.Drives.Item.List.Items.Item.LastModifiedByUser.ServiceProvision /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$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}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index b3d5d5b2a4..3b3253dfb2 100644 --- a/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; 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.Drives.Item.List.Items.Item.LastModifiedByUser.ServiceProvision /// /// Builds and executes requests for operations under \drives\{drive-id}\list\items\{listItem-id}\lastModifiedByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Drives.Item.List.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -148,31 +151,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -181,9 +184,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -247,3 +251,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs index 5ccbc0ae7c..04b49a7728 100644 --- a/src/generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Items.Item.Analytics; using ApiSdk.Drives.Item.List.Items.Item.CreateLink; using ApiSdk.Drives.Item.List.Items.Item.CreatedByUser; @@ -11,6 +12,7 @@ using ApiSdk.Drives.Item.List.Items.Item.Versions; 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; @@ -29,7 +31,8 @@ namespace ApiSdk.Drives.Item.List.Items.Item /// /// Provides operations to manage the items property of the microsoft.graph.list entity. /// - public class ListItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the analytics property of the microsoft.graph.listItem entity. @@ -39,7 +42,7 @@ public Command BuildAnalyticsNavCommand() { var command = new Command("analytics"); command.Description = "Provides operations to manage the analytics property of the microsoft.graph.listItem entity."; - var builder = new AnalyticsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.Analytics.AnalyticsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -56,7 +59,7 @@ public Command BuildCreatedByUserNavCommand() { var command = new Command("created-by-user"); command.Description = "Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity."; - var builder = new CreatedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.CreatedByUser.CreatedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -80,7 +83,7 @@ public Command BuildCreateLinkNavCommand() { var command = new Command("create-link"); command.Description = "Provides operations to call the createLink method."; - var builder = new CreateLinkRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.CreateLink.CreateLinkRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -138,7 +141,7 @@ public Command BuildDocumentSetVersionsNavCommand() { var command = new Command("document-set-versions"); command.Description = "Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity."; - var builder = new DocumentSetVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.DocumentSetVersions.DocumentSetVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -165,7 +168,7 @@ public Command BuildDriveItemNavCommand() { var command = new Command("drive-item"); command.Description = "Provides operations to manage the driveItem property of the microsoft.graph.listItem entity."; - var builder = new ApiSdk.Drives.Item.List.Items.Item.DriveItem.DriveItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.DriveItem.DriveItemRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildContentNavCommand()); @@ -188,7 +191,7 @@ public Command BuildFieldsNavCommand() { var command = new Command("fields"); command.Description = "Provides operations to manage the fields property of the microsoft.graph.listItem entity."; - var builder = new FieldsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.Fields.FieldsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -207,7 +210,7 @@ public Command BuildGetActivitiesByIntervalNavCommand() { var command = new Command("get-activities-by-interval"); command.Description = "Provides operations to call the getActivitiesByInterval method."; - var builder = new GetActivitiesByIntervalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.GetActivitiesByInterval.GetActivitiesByIntervalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -224,7 +227,7 @@ public Command BuildGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithI { var command = new Command("get-activities-by-interval-with-start-date-time-with-end-date-time-with-interval"); command.Description = "Provides operations to call the getActivitiesByInterval method."; - var builder = new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -299,7 +302,7 @@ public Command BuildLastModifiedByUserNavCommand() { var command = new Command("last-modified-by-user"); command.Description = "Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity."; - var builder = new LastModifiedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.LastModifiedByUser.LastModifiedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -350,8 +353,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.ListItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ListItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -380,7 +383,7 @@ public Command BuildVersionsNavCommand() { var command = new Command("versions"); command.Description = "Provides operations to manage the versions property of the microsoft.graph.listItem entity."; - var builder = new VersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.Versions.VersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -400,14 +403,14 @@ public Command BuildVersionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ListItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%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 ListItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}{?%24expand,%24select}", rawUrl) @@ -439,11 +442,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); @@ -459,11 +462,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.ListItem body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ListItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ListItem body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ListItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -475,7 +478,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ListItem body, /// /// All items contained in the list. /// - public class ListItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -500,3 +504,4 @@ public class ListItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/Versions/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/Versions/Count/CountRequestBuilder.cs index f95b7646c4..6cae3716b1 100644 --- a/src/generated/Drives/Item/List/Items/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/Versions/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.Drives.Item.List.Items.Item.Versions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/$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}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs index e1f4def141..9f6be6a0a2 100644 --- a/src/generated/Drives/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.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.Drives.Item.List.Items.Item.Versions.Item.Fields /// /// Provides operations to manage the fields property of the microsoft.graph.listItemVersion entity. /// - public class FieldsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property fields for drives @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(FieldValueSet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.FieldValueSet.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public FieldsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/fields{?%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 FieldsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/fields{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action /// A collection of the fields and values for this version of the list item. /// - public class FieldsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class FieldsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs index 3a8183f855..7017592605 100644 --- a/src/generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Items.Item.Versions.Item.Fields; using ApiSdk.Drives.Item.List.Items.Item.Versions.Item.RestoreVersion; 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.Drives.Item.List.Items.Item.Versions.Item /// /// Provides operations to manage the versions property of the microsoft.graph.listItem entity. /// - public class ListItemVersionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemVersionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property versions for drives @@ -78,7 +81,7 @@ public Command BuildFieldsNavCommand() { var command = new Command("fields"); command.Description = "Provides operations to manage the fields property of the microsoft.graph.listItemVersion entity."; - var builder = new FieldsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.Versions.Item.Fields.FieldsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -193,8 +196,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(ListItemVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ListItemVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,7 +227,7 @@ public Command BuildRestoreVersionNavCommand() { var command = new Command("restore-version"); command.Description = "Provides operations to call the restoreVersion method."; - var builder = new RestoreVersionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.Versions.Item.RestoreVersion.RestoreVersionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -234,14 +237,14 @@ public Command BuildRestoreVersionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ListItemVersionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%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 ListItemVersionItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(ListItemVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ListItemVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ListItemVersion body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ListItemVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(ListItemVersion body, Action /// /// The list of previous versions of the list item. /// - public class ListItemVersionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemVersionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class ListItemVersionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index bd4ee368bb..dc6d61ab37 100644 --- a/src/generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.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.Drives.Item.List.Items.Item.Versions.Item.RestoreVersion /// /// Provides operations to call the restoreVersion method. /// - public class RestoreVersionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreVersionRequestBuilder : BaseCliRequestBuilder { /// /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. @@ -62,14 +65,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 RestoreVersionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", 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 RestoreVersionRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Items.Item.Versions.Count; using ApiSdk.Drives.Item.List.Items.Item.Versions.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.Drives.Item.List.Items.Item.Versions /// /// Provides operations to manage the versions property of the microsoft.graph.listItem entity. /// - public class VersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the versions property of the microsoft.graph.listItem entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ListItemVersionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.Versions.Item.ListItemVersionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFieldsNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.Drives.Item.List.Items.Item.Versions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ListItemVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ListItemVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 VersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions{?%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 VersionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public VersionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2D /// 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); @@ -262,11 +265,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(ListItemVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ListItemVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ListItemVersion body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ListItemVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(ListItemVersion body, Action< /// /// The list of previous versions of the list item. /// - public class VersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class VersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Items/ItemsRequestBuilder.cs b/src/generated/Drives/Item/List/Items/ItemsRequestBuilder.cs index 8f97096e1a..b2546b0efd 100644 --- a/src/generated/Drives/Item/List/Items/ItemsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/ItemsRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Items.Count; using ApiSdk.Drives.Item.List.Items.Delta; using ApiSdk.Drives.Item.List.Items.DeltaWithToken; using ApiSdk.Drives.Item.List.Items.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; @@ -23,7 +25,8 @@ namespace ApiSdk.Drives.Item.List.Items /// /// Provides operations to manage the items property of the microsoft.graph.list entity. /// - public class ItemsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the items property of the microsoft.graph.list entity. @@ -33,7 +36,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ListItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Item.ListItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildAnalyticsNavCommand()); commands.Add(builder.BuildCreatedByUserNavCommand()); commands.Add(builder.BuildCreateLinkNavCommand()); @@ -57,7 +60,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.Drives.Item.List.Items.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -96,8 +99,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.ListItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ListItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,7 +128,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -142,7 +145,7 @@ public Command BuildDeltaWithTokenRbCommand() { var command = new Command("delta-with-token"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaWithTokenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.DeltaWithToken.DeltaWithTokenRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -254,14 +257,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 ItemsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items{?%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 ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -274,11 +277,11 @@ public ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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); @@ -294,11 +297,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(ApiSdk.Models.ListItem body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ListItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.ListItem body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ListItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -310,7 +313,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.ListItem body, /// /// All items contained in the list. /// - public class ItemsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -374,3 +378,4 @@ public class ItemsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 7b63c80c83..c03153a497 100644 --- a/src/generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/generated/Drives/Item/List/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.LastModifiedByUser.MailboxSettings; using ApiSdk.Drives.Item.List.LastModifiedByUser.ServiceProvisioningErrors; 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.Drives.Item.List.LastModifiedByUser /// /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. /// - public class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who last modified the item. Read-only. @@ -83,7 +86,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.LastModifiedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -101,7 +104,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.LastModifiedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -117,14 +120,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LastModifiedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser{?%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 LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser{?%24expand,%24select}", rawUrl) @@ -137,11 +140,11 @@ public LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/drives /// 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); @@ -152,7 +155,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who last modified the item. Read-only. /// - public class LastModifiedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -177,3 +181,4 @@ public class LastModifiedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Drives/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 18ab2bf263..34412b006d 100644 --- a/src/generated/Drives/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Drives.Item.List.LastModifiedByUser.MailboxSettings /// /// Builds and executes requests for operations under \drives\{drive-id}\list\lastModifiedByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -103,8 +106,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,14 +128,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -145,11 +148,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{d /// 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); @@ -165,11 +168,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -181,7 +184,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,3 +210,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 38c2920783..dacbe198c6 100644 --- a/src/generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/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.Drives.Item.List.LastModifiedByUser.ServiceProvisioningErrors.C /// /// 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}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors/$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}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index b3f43987a1..4cd481d810 100644 --- a/src/generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.LastModifiedByUser.ServiceProvisioningErrors.Count; 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.Drives.Item.List.LastModifiedByUser.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \drives\{drive-id}\list\lastModifiedByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Drives.Item.List.LastModifiedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -142,31 +145,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -175,9 +178,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -241,3 +245,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/ListRequestBuilder.cs b/src/generated/Drives/Item/List/ListRequestBuilder.cs index cf8274d056..4e2df97452 100644 --- a/src/generated/Drives/Item/List/ListRequestBuilder.cs +++ b/src/generated/Drives/Item/List/ListRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Columns; using ApiSdk.Drives.Item.List.ContentTypes; using ApiSdk.Drives.Item.List.CreatedByUser; @@ -9,6 +10,7 @@ using ApiSdk.Drives.Item.List.Subscriptions; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -27,7 +29,8 @@ namespace ApiSdk.Drives.Item.List /// /// Provides operations to manage the list property of the microsoft.graph.drive entity. /// - public class ListRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columns property of the microsoft.graph.list entity. @@ -37,7 +40,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.list entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -64,7 +67,7 @@ public Command BuildContentTypesNavCommand() { var command = new Command("content-types"); command.Description = "Provides operations to manage the contentTypes property of the microsoft.graph.list entity."; - var builder = new ContentTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.ContentTypes.ContentTypesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddCopyFromContentTypeHubNavCommand()); @@ -94,7 +97,7 @@ public Command BuildCreatedByUserNavCommand() { var command = new Command("created-by-user"); command.Description = "Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity."; - var builder = new CreatedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.CreatedByUser.CreatedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -153,7 +156,7 @@ public Command BuildDriveNavCommand() { var command = new Command("drive"); command.Description = "Provides operations to manage the drive property of the microsoft.graph.list entity."; - var builder = new DriveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Drive.DriveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -222,7 +225,7 @@ public Command BuildItemsNavCommand() { var command = new Command("items"); command.Description = "Provides operations to manage the items property of the microsoft.graph.list entity."; - var builder = new ItemsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Items.ItemsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -251,7 +254,7 @@ public Command BuildLastModifiedByUserNavCommand() { var command = new Command("last-modified-by-user"); command.Description = "Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity."; - var builder = new LastModifiedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.LastModifiedByUser.LastModifiedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -275,7 +278,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.list entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -324,8 +327,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.List.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.List.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -353,7 +356,7 @@ public Command BuildSubscriptionsNavCommand() { var command = new Command("subscriptions"); command.Description = "Provides operations to manage the subscriptions property of the microsoft.graph.list entity."; - var builder = new SubscriptionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Subscriptions.SubscriptionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -373,14 +376,14 @@ public Command BuildSubscriptionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ListRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list{?%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 ListRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list{?%24expand,%24select}", rawUrl) @@ -412,11 +415,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); @@ -432,11 +435,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.List body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.List body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.List body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.List body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -448,7 +451,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.List body, Act /// /// For drives in SharePoint, the underlying document library list. Read-only. Nullable. /// - public class ListRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -473,3 +477,4 @@ public class ListRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Operations/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/Operations/Count/CountRequestBuilder.cs index efe4eb2d6f..13fb0978b4 100644 --- a/src/generated/Drives/Item/List/Operations/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Operations/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.Drives.Item.List.Operations.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}/drives/{drive%2Did}/list/operations/$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}/drives/{drive%2Did}/list/operations/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs b/src/generated/Drives/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs index e46e9dd424..2af5714f59 100644 --- a/src/generated/Drives/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Operations/Item/RichLongRunningOperationItemRequestBuilder.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.Drives.Item.List.Operations.Item /// /// Provides operations to manage the operations property of the microsoft.graph.list entity. /// - public class RichLongRunningOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RichLongRunningOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property operations for drives @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(RichLongRunningOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RichLongRunningOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RichLongRunningOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/operations/{richLongRunningOperation%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 RichLongRunningOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/operations/{richLongRunningOperation%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(RichLongRunningOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(RichLongRunningOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(RichLongRunningOperation bod /// /// The collection of long-running operations on the list. /// - public class RichLongRunningOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RichLongRunningOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class RichLongRunningOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Operations/OperationsRequestBuilder.cs b/src/generated/Drives/Item/List/Operations/OperationsRequestBuilder.cs index 5ca34c00ad..93ed0f5310 100644 --- a/src/generated/Drives/Item/List/Operations/OperationsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Operations/OperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Operations.Count; using ApiSdk.Drives.Item.List.Operations.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.Drives.Item.List.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.list entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the operations property of the microsoft.graph.list entity. @@ -30,7 +33,7 @@ public class OperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new RichLongRunningOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Operations.Item.RichLongRunningOperationItemRequestBuilder(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.Drives.Item.List.Operations.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(RichLongRunningOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RichLongRunningOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive% /// 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); @@ -247,11 +250,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(RichLongRunningOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RichLongRunningOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(RichLongRunningOperation body /// /// The collection of long-running operations on the list. /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class OperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Subscriptions/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/List/Subscriptions/Count/CountRequestBuilder.cs index 70765b8dcb..c50cbae133 100644 --- a/src/generated/Drives/Item/List/Subscriptions/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Subscriptions/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.Drives.Item.List.Subscriptions.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}/drives/{drive%2Did}/list/subscriptions/$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}/drives/{drive%2Did}/list/subscriptions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/generated/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index 80e9e2f42b..709ff83c94 100644 --- a/src/generated/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.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.Drives.Item.List.Subscriptions.Item.Reauthorize /// /// Provides operations to call the reauthorize method. /// - public class ReauthorizeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReauthorizeRequestBuilder : BaseCliRequestBuilder { /// /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ReauthorizeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/subscriptions/{subscription%2Did}/reauthorize", 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 ReauthorizeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/subscriptions/{subscription%2Did}/reauthorize", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Subscriptions.Item.Reauthorize; 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.Drives.Item.List.Subscriptions.Item /// /// Provides operations to manage the subscriptions property of the microsoft.graph.list entity. /// - public class SubscriptionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property subscriptions for drives @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Subscription.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Subscription.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -186,7 +189,7 @@ public Command BuildReauthorizeNavCommand() { var command = new Command("reauthorize"); command.Description = "Provides operations to call the reauthorize method."; - var builder = new ReauthorizeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Subscriptions.Item.Reauthorize.ReauthorizeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -196,14 +199,14 @@ public Command BuildReauthorizeNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SubscriptionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/subscriptions/{subscription%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 SubscriptionItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/subscriptions/{subscription%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Subscription body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Subscription body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Subscription body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Subscription body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(Subscription body, Action /// The set of subscriptions on the list. /// - public class SubscriptionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class SubscriptionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs b/src/generated/Drives/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs index c2a723f745..8e502cc92e 100644 --- a/src/generated/Drives/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Subscriptions/SubscriptionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.List.Subscriptions.Count; using ApiSdk.Drives.Item.List.Subscriptions.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.Drives.Item.List.Subscriptions /// /// Provides operations to manage the subscriptions property of the microsoft.graph.list entity. /// - public class SubscriptionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the subscriptions property of the microsoft.graph.list entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SubscriptionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.List.Subscriptions.Item.SubscriptionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Drives.Item.List.Subscriptions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(Subscription.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Subscription.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 SubscriptionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/subscriptions{?%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 SubscriptionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public SubscriptionsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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(Subscription body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Subscription body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Subscription body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Subscription body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(Subscription body, Action /// The set of subscriptions on the list. /// - public class SubscriptionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class SubscriptionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Recent/RecentGetResponse.cs b/src/generated/Drives/Item/Recent/RecentGetResponse.cs index 52c917ae72..7e2dab9736 100644 --- a/src/generated/Drives/Item/Recent/RecentGetResponse.cs +++ b/src/generated/Drives/Item/Recent/RecentGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.Recent { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RecentGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class RecentGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new RecentGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.Recent.RecentGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RecentGetResponse(); + return new global::ApiSdk.Drives.Item.Recent.RecentGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Recent/RecentRequestBuilder.cs b/src/generated/Drives/Item/Recent/RecentRequestBuilder.cs index 9e795b3bcd..a3f7632ac2 100644 --- a/src/generated/Drives/Item/Recent/RecentRequestBuilder.cs +++ b/src/generated/Drives/Item/Recent/RecentRequestBuilder.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.Drives.Item.Recent /// /// Provides operations to call the recent method. /// - public class RecentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RecentRequestBuilder : BaseCliRequestBuilder { /// /// List a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. @@ -124,14 +127,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 RecentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/recent(){?%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 RecentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/recent(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -144,11 +147,11 @@ public RecentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// List a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. /// - public class RecentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RecentRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class RecentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Root/Content/ContentRequestBuilder.cs b/src/generated/Drives/Item/Root/Content/ContentRequestBuilder.cs index 9e4f04aed2..0d466c0cc0 100644 --- a/src/generated/Drives/Item/Root/Content/ContentRequestBuilder.cs +++ b/src/generated/Drives/Item/Root/Content/ContentRequestBuilder.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.Drives.Item.Root.Content /// /// Provides operations to manage the media for the drive entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -151,14 +154,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/root/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/root/content{?%24format*}", rawUrl) @@ -190,11 +193,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,7 +230,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -242,3 +246,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Root/RootRequestBuilder.cs b/src/generated/Drives/Item/Root/RootRequestBuilder.cs index cd4e469c25..e352191899 100644 --- a/src/generated/Drives/Item/Root/RootRequestBuilder.cs +++ b/src/generated/Drives/Item/Root/RootRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Root.Content; 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.Drives.Item.Root /// /// Provides operations to manage the root property of the microsoft.graph.drive entity. /// - public class RootRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RootRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the drive entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the drive entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Root.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -94,14 +97,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 RootRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/root{?%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 RootRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/root{?%24expand,%24select}", rawUrl) @@ -114,11 +117,11 @@ public RootRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/ /// 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); @@ -129,7 +132,8 @@ public RequestInformation ToGetRequestInformation(Action /// The root folder of the drive. Read-only. /// - public class RootRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RootRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -154,3 +158,4 @@ public class RootRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.cs b/src/generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.cs index 81fade58a8..1e882802af 100644 --- a/src/generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.cs +++ b/src/generated/Drives/Item/SearchWithQ/SearchWithQGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.SearchWithQ { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SearchWithQGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class SearchWithQGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new SearchWithQGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.SearchWithQ.SearchWithQGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SearchWithQGetResponse(); + return new global::ApiSdk.Drives.Item.SearchWithQ.SearchWithQGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.cs b/src/generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.cs index 9e5eabc896..0996a23b8a 100644 --- a/src/generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.cs +++ b/src/generated/Drives/Item/SearchWithQ/SearchWithQRequestBuilder.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.Drives.Item.SearchWithQ /// /// Provides operations to call the search method. /// - public class SearchWithQRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SearchWithQRequestBuilder : BaseCliRequestBuilder { /// /// Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. @@ -130,14 +133,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 SearchWithQRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/search(q='{q}'){?%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 SearchWithQRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/search(q='{q}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -150,11 +153,11 @@ public SearchWithQRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive /// 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); @@ -165,7 +168,8 @@ public RequestInformation ToGetRequestInformation(Action /// Search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. /// - public class SearchWithQRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SearchWithQRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class SearchWithQRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.cs b/src/generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.cs index 7c02c56bc6..85e6398bb7 100644 --- a/src/generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.cs +++ b/src/generated/Drives/Item/SharedWithMe/SharedWithMeGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Drives.Item.SharedWithMe { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SharedWithMeGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class SharedWithMeGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new SharedWithMeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Drives.Item.SharedWithMe.SharedWithMeGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SharedWithMeGetResponse(); + return new global::ApiSdk.Drives.Item.SharedWithMe.SharedWithMeGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveItem.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.cs b/src/generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.cs index 92737da2fe..1755e02215 100644 --- a/src/generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.cs +++ b/src/generated/Drives/Item/SharedWithMe/SharedWithMeRequestBuilder.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.Drives.Item.SharedWithMe /// /// Provides operations to call the sharedWithMe method. /// - public class SharedWithMeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharedWithMeRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. @@ -124,14 +127,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 SharedWithMeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/sharedWithMe(){?%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 SharedWithMeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/sharedWithMe(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -144,11 +147,11 @@ public SharedWithMeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{driv /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. /// - public class SharedWithMeRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharedWithMeRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class SharedWithMeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Special/Count/CountRequestBuilder.cs b/src/generated/Drives/Item/Special/Count/CountRequestBuilder.cs index a860b56cf5..c36aa1af8b 100644 --- a/src/generated/Drives/Item/Special/Count/CountRequestBuilder.cs +++ b/src/generated/Drives/Item/Special/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.Drives.Item.Special.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}/drives/{drive%2Did}/special/$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}/drives/{drive%2Did}/special/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did} /// 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/Drives/Item/Special/Item/Content/ContentRequestBuilder.cs b/src/generated/Drives/Item/Special/Item/Content/ContentRequestBuilder.cs index 5422b2e820..99d2bad8b3 100644 --- a/src/generated/Drives/Item/Special/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Drives/Item/Special/Item/Content/ContentRequestBuilder.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.Drives.Item.Special.Item.Content /// /// Provides operations to manage the media for the drive entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -169,14 +172,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/special/{driveItem%2Did}/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/special/{driveItem%2Did}/content{?%24format*}", rawUrl) @@ -208,11 +211,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); @@ -245,7 +248,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs b/src/generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs index cf6e8b09cd..4d24566984 100644 --- a/src/generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Special/Item/DriveItemItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Special.Item.Content; 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.Drives.Item.Special.Item /// /// Provides operations to manage the special property of the microsoft.graph.drive entity. /// - public class DriveItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the drive entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the drive entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Special.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -100,14 +103,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 DriveItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/special/{driveItem%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 DriveItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/special/{driveItem%2Did}{?%24expand,%24select}", rawUrl) @@ -120,11 +123,11 @@ public DriveItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{dri /// 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); @@ -135,7 +138,8 @@ public RequestInformation ToGetRequestInformation(Action /// Collection of common folders available in OneDrive. Read-only. Nullable. /// - public class DriveItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,3 +164,4 @@ public class DriveItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Drives/Item/Special/SpecialRequestBuilder.cs b/src/generated/Drives/Item/Special/SpecialRequestBuilder.cs index 3bcc8213ad..182eed9055 100644 --- a/src/generated/Drives/Item/Special/SpecialRequestBuilder.cs +++ b/src/generated/Drives/Item/Special/SpecialRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Drives.Item.Special.Count; using ApiSdk.Drives.Item.Special.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.Drives.Item.Special /// /// Provides operations to manage the special property of the microsoft.graph.drive entity. /// - public class SpecialRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SpecialRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the special property of the microsoft.graph.drive entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DriveItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.Item.Special.Item.DriveItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, commands); @@ -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.Drives.Item.Special.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -156,14 +159,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 SpecialRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/special{?%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 SpecialRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/special{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -176,11 +179,11 @@ public SpecialRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Di /// 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); @@ -191,7 +194,8 @@ public RequestInformation ToGetRequestInformation(Action /// Collection of common folders available in OneDrive. Read-only. Nullable. /// - public class SpecialRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SpecialRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -255,3 +259,4 @@ public class SpecialRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/ClassesRequestBuilder.cs b/src/generated/Education/Classes/ClassesRequestBuilder.cs index 770b2b7117..78e9ed4e02 100644 --- a/src/generated/Education/Classes/ClassesRequestBuilder.cs +++ b/src/generated/Education/Classes/ClassesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Count; using ApiSdk.Education.Classes.Delta; using ApiSdk.Education.Classes.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Education.Classes /// /// Provides operations to manage the classes property of the microsoft.graph.educationRoot entity. /// - public class ClassesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClassesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the classes property of the microsoft.graph.educationRoot entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EducationClassItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.EducationClassItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentCategoriesNavCommand()); commands.Add(builder.BuildAssignmentDefaultsNavCommand()); commands.Add(builder.BuildAssignmentSettingsNavCommand()); @@ -55,7 +58,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.Education.Classes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(EducationClass.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationClass.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -118,7 +121,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -225,14 +228,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 ClassesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes{?%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 ClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -245,11 +248,11 @@ public ClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes /// 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); @@ -265,11 +268,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(EducationClass body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationClass body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationClass body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationClass body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +284,8 @@ public RequestInformation ToPostRequestInformation(EducationClass body, Action /// Get a list of the educationClass objects and their properties. /// - public class ClassesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClassesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -345,3 +349,4 @@ public class ClassesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Count/CountRequestBuilder.cs b/src/generated/Education/Classes/Count/CountRequestBuilder.cs index 3b23269ff5..2cb4aef152 100644 --- a/src/generated/Education/Classes/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Classes/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.Education.Classes.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}/education/classes/$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}/education/classes/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/$ /// 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/Education/Classes/Delta/DeltaGetResponse.cs b/src/generated/Education/Classes/Delta/DeltaGetResponse.cs index 8b574f1ec8..e71e52f56a 100644 --- a/src/generated/Education/Classes/Delta/DeltaGetResponse.cs +++ b/src/generated/Education/Classes/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Education.Classes.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Education.Classes.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Education.Classes.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(EducationClass.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.EducationClass.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Delta/DeltaRequestBuilder.cs b/src/generated/Education/Classes/Delta/DeltaRequestBuilder.cs index 53b2a21ac3..3a8c0a46ef 100644 --- a/src/generated/Education/Classes/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Education/Classes/Delta/DeltaRequestBuilder.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.Education.Classes.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get newly created or updated classes, including membership changes, without having to perform a full read of the entire class collection. See Use delta query for details. @@ -118,14 +121,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -138,11 +141,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/d /// 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); @@ -153,7 +156,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get newly created or updated classes, including membership changes, without having to perform a full read of the entire class collection. See Use delta query for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs b/src/generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs index c419a88a72..04c7868985 100644 --- a/src/generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/AssignmentCategories/AssignmentCategoriesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.AssignmentCategories.Count; using ApiSdk.Education.Classes.Item.AssignmentCategories.Delta; using ApiSdk.Education.Classes.Item.AssignmentCategories.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Education.Classes.Item.AssignmentCategories /// /// Provides operations to manage the assignmentCategories property of the microsoft.graph.educationClass entity. /// - public class AssignmentCategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentCategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignmentCategories property of the microsoft.graph.educationClass entity. @@ -31,7 +34,7 @@ public class AssignmentCategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.AssignmentCategories.Item.EducationCategoryItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -45,7 +48,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.Education.Classes.Item.AssignmentCategories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(EducationCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationCategory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -114,7 +117,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.AssignmentCategories.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -227,14 +230,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 AssignmentCategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories{?%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 AssignmentCategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -247,11 +250,11 @@ public AssignmentCategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/educ /// 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); @@ -267,11 +270,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(EducationCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationCategory body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -283,7 +286,8 @@ public RequestInformation ToPostRequestInformation(EducationCategory body, Actio /// /// Retrieve a list of educationCategory objects. Only teachers can perform this operation. /// - public class AssignmentCategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentCategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -347,3 +351,4 @@ public class AssignmentCategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/AssignmentCategories/Count/CountRequestBuilder.cs b/src/generated/Education/Classes/Item/AssignmentCategories/Count/CountRequestBuilder.cs index 535afda73f..1c6dfdc3e6 100644 --- a/src/generated/Education/Classes/Item/AssignmentCategories/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/AssignmentCategories/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.Education.Classes.Item.AssignmentCategories.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}/education/classes/{educationClass%2Did}/assignmentCategories/$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}/education/classes/{educationClass%2Did}/assignmentCategories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.cs b/src/generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.cs index 0fa2cf49a7..0d19947cfa 100644 --- a/src/generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.cs +++ b/src/generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Education.Classes.Item.AssignmentCategories.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Education.Classes.Item.AssignmentCategories.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Education.Classes.Item.AssignmentCategories.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.EducationCategory.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.cs b/src/generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.cs index d6d2fb4a52..de90500b9c 100644 --- a/src/generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/AssignmentCategories/Delta/DeltaRequestBuilder.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.Education.Classes.Item.AssignmentCategories.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. @@ -124,14 +127,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -144,11 +147,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.cs b/src/generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.cs index 2f42ceb292..a4793d9fa0 100644 --- a/src/generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/AssignmentCategories/Item/EducationCategoryItemRequestBuilder.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.Education.Classes.Item.AssignmentCategories.Item /// /// Provides operations to manage the assignmentCategories property of the microsoft.graph.educationClass entity. /// - public class EducationCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete an existing category. Only teachers can perform this operation. @@ -157,8 +160,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(EducationCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationCategory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -180,14 +183,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 EducationCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/{educationCategory%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 EducationCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentCategories/{educationCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(EducationCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationCategory body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(EducationCategory body, Acti /// /// Retrieve an educationCategory object. Only teachers, students, and applications with application permissions can perform this operation. /// - public class EducationCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class EducationCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.cs b/src/generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.cs index a5e16a05ac..68f90acbce 100644 --- a/src/generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/AssignmentDefaults/AssignmentDefaultsRequestBuilder.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.Education.Classes.Item.AssignmentDefaults /// /// Provides operations to manage the assignmentDefaults property of the microsoft.graph.educationClass entity. /// - public class AssignmentDefaultsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentDefaultsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignmentDefaults for education @@ -140,8 +143,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(EducationAssignmentDefaults.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignmentDefaults.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 AssignmentDefaultsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentDefaults{?%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 AssignmentDefaultsRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentDefaults{?%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(EducationAssignmentDefaults body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignmentDefaults body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationAssignmentDefaults body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignmentDefaults body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -237,7 +240,8 @@ public RequestInformation ToPatchRequestInformation(EducationAssignmentDefaults /// /// Read the properties and relationships of an educationAssignmentDefaults object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they don't want the default behaviors. Only teachers can perform this operation. /// - public class AssignmentDefaultsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentDefaultsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -262,3 +266,4 @@ public class AssignmentDefaultsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs b/src/generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs index 6c189c6f8e..ccba6a10b8 100644 --- a/src/generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.AssignmentSettings.GradingCategories; 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.Education.Classes.Item.AssignmentSettings /// /// Provides operations to manage the assignmentSettings property of the microsoft.graph.educationClass entity. /// - public class AssignmentSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignmentSettings for education @@ -117,7 +120,7 @@ public Command BuildGradingCategoriesNavCommand() { var command = new Command("grading-categories"); command.Description = "Provides operations to manage the gradingCategories property of the microsoft.graph.educationAssignmentSettings entity."; - var builder = new GradingCategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.AssignmentSettings.GradingCategories.GradingCategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -167,8 +170,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(EducationAssignmentSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignmentSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,14 +192,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 AssignmentSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings{?%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 AssignmentSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings{?%24expand,%24select}", rawUrl) @@ -228,11 +231,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); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(EducationAssignmentSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignmentSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationAssignmentSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignmentSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPatchRequestInformation(EducationAssignmentSettings /// /// Specifies class-level assignments settings. /// - public class AssignmentSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -289,3 +293,4 @@ public class AssignmentSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/AssignmentSettings/GradingCategories/Count/CountRequestBuilder.cs b/src/generated/Education/Classes/Item/AssignmentSettings/GradingCategories/Count/CountRequestBuilder.cs index c8b1cc5928..aa7a21fa4d 100644 --- a/src/generated/Education/Classes/Item/AssignmentSettings/GradingCategories/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/AssignmentSettings/GradingCategories/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.Education.Classes.Item.AssignmentSettings.GradingCategories.Cou /// /// 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}/education/classes/{educationClass%2Did}/assignmentSettings/gradingCategories/$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}/education/classes/{educationClass%2Did}/assignmentSettings/gradingCategories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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/Education/Classes/Item/AssignmentSettings/GradingCategories/GradingCategoriesRequestBuilder.cs b/src/generated/Education/Classes/Item/AssignmentSettings/GradingCategories/GradingCategoriesRequestBuilder.cs index bb2e69738a..8917fbfa98 100644 --- a/src/generated/Education/Classes/Item/AssignmentSettings/GradingCategories/GradingCategoriesRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/AssignmentSettings/GradingCategories/GradingCategoriesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.AssignmentSettings.GradingCategories.Count; using ApiSdk.Education.Classes.Item.AssignmentSettings.GradingCategories.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.Education.Classes.Item.AssignmentSettings.GradingCategories /// /// Provides operations to manage the gradingCategories property of the microsoft.graph.educationAssignmentSettings entity. /// - public class GradingCategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GradingCategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the gradingCategories property of the microsoft.graph.educationAssignmentSettings entity. @@ -30,7 +33,7 @@ public class GradingCategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationGradingCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.AssignmentSettings.GradingCategories.Item.EducationGradingCategoryItemRequestBuilder(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.Education.Classes.Item.AssignmentSettings.GradingCategories.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(EducationGradingCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationGradingCategory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 GradingCategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingCategories{?%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 GradingCategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingCategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public GradingCategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/educati /// 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); @@ -247,11 +250,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(EducationGradingCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationGradingCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationGradingCategory body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationGradingCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(EducationGradingCategory body /// /// When set, enables users to weight assignments differently when computing a class average grade. /// - public class GradingCategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GradingCategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class GradingCategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/AssignmentSettings/GradingCategories/Item/EducationGradingCategoryItemRequestBuilder.cs b/src/generated/Education/Classes/Item/AssignmentSettings/GradingCategories/Item/EducationGradingCategoryItemRequestBuilder.cs index fe7ad9cd72..8dc916c36e 100644 --- a/src/generated/Education/Classes/Item/AssignmentSettings/GradingCategories/Item/EducationGradingCategoryItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/AssignmentSettings/GradingCategories/Item/EducationGradingCategoryItemRequestBuilder.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.Education.Classes.Item.AssignmentSettings.GradingCategories.Ite /// /// Provides operations to manage the gradingCategories property of the microsoft.graph.educationAssignmentSettings entity. /// - public class EducationGradingCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationGradingCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property gradingCategories for education @@ -121,13 +124,14 @@ public Command BuildGetCommand() return command; } /// - /// Update the navigation property gradingCategories in education + /// Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation. + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the navigation property gradingCategories in education"; + command.Description = "Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationgradingcategory-update?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -155,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationGradingCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationGradingCategory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +182,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationGradingCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingCategories/{educationGradingCategory%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 EducationGradingCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingCategories/{educationGradingCategory%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +221,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -230,18 +234,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property gradingCategories in education + /// Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation. /// /// 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(EducationGradingCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationGradingCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationGradingCategory body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationGradingCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +257,8 @@ public RequestInformation ToPatchRequestInformation(EducationGradingCategory bod /// /// When set, enables users to weight assignments differently when computing a class average grade. /// - public class EducationGradingCategoryItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationGradingCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +283,4 @@ public class EducationGradingCategoryItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs index 002f4ee8e2..beaba883fa 100644 --- a/src/generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Assignments.Count; using ApiSdk.Education.Classes.Item.Assignments.Delta; using ApiSdk.Education.Classes.Item.Assignments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Education.Classes.Item.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.educationClass entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.educationClass entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EducationAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.EducationAssignmentItemRequestBuilder(PathParameters); commands.Add(builder.BuildActivateNavCommand()); commands.Add(builder.BuildCategoriesNavCommand()); commands.Add(builder.BuildDeactivateNavCommand()); @@ -56,7 +59,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.Education.Classes.Item.Assignments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -96,8 +99,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(EducationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,7 +128,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -238,14 +241,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -258,11 +261,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/education/cla /// 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); @@ -278,11 +281,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(EducationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -294,7 +297,8 @@ public RequestInformation ToPostRequestInformation(EducationAssignment body, Act /// /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher, or an application running with application permissions, can see all assignment objects for the class. Students can only see assignments that are assigned to them. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -358,3 +362,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Count/CountRequestBuilder.cs index d2a8052560..2ea05424cc 100644 --- a/src/generated/Education/Classes/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/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.Education.Classes.Item.Assignments.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}/education/classes/{educationClass%2Did}/assignments/$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}/education/classes/{educationClass%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.cs b/src/generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.cs index fe9d2a2b87..a1c14a4423 100644 --- a/src/generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.cs +++ b/src/generated/Education/Classes/Item/Assignments/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Education.Classes.Item.Assignments.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Education.Classes.Item.Assignments.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Education.Classes.Item.Assignments.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.EducationAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.cs index b5f79d6cba..a6dbbd529e 100644 --- a/src/generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Delta/DeltaRequestBuilder.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.Education.Classes.Item.Assignments.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. @@ -124,14 +127,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -144,11 +147,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs index 33cf509f88..cc6531ac9c 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Activate/ActivateRequestBuilder.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.Education.Classes.Item.Assignments.Item.Activate /// /// Provides operations to call the activate method. /// - public class ActivateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ActivateRequestBuilder : BaseCliRequestBuilder { /// /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. @@ -67,14 +70,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 ActivateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/activate", 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 ActivateRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/activate", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Count; using ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Delta; using ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Item; using ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Ref; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.education.classes.item.assignments.item.categories.item collection @@ -32,7 +35,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new EducationCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Item.EducationCategoryItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -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.Education.Classes.Item.Assignments.Item.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -54,13 +57,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Create new navigation property to categories for education + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create new navigation property to categories for education"; + command.Description = "Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-post-categories?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -88,8 +92,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(EducationCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationCategory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -118,7 +122,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -128,13 +132,14 @@ public Command BuildDeltaNavCommand() return command; } /// - /// When set, enables users to easily find assignments of a given type. Read-only. Nullable. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "When set, enables users to easily find assignments of a given type. Read-only. Nullable."; + command.Description = "List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-list-categories?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -243,7 +248,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -255,31 +260,31 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// When set, enables users to easily find assignments of a given type. Read-only. Nullable. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -288,18 +293,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to categories for education + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. /// /// 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 ToPostRequestInformation(EducationCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationCategory body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,9 +314,10 @@ public RequestInformation ToPostRequestInformation(EducationCategory body, Actio return requestInfo; } /// - /// When set, enables users to easily find assignments of a given type. Read-only. Nullable. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -375,3 +381,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs index 5af5121827..ee6b717138 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Categories/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.Education.Classes.Item.Assignments.Item.Categories.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$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}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs b/src/generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs index c55a5bf217..b62e31dd88 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Education.Classes.Item.Assignments.Item.Categories.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.EducationCategory.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs index 65ebbf9ba2..07ac84357d 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.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.Education.Classes.Item.Assignments.Item.Categories.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. @@ -130,14 +133,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -150,11 +153,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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); @@ -165,7 +168,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs index 97d3a2d342..dcaae29595 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Item /// /// Builds and executes requests for operations under \education\classes\{educationClass-id}\assignments\{educationAssignment-id}\categories\{educationCategory-id} /// - public class EducationCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of educationRoot entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}", 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 EducationCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}", rawUrl) @@ -50,3 +53,4 @@ public EducationCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/edu } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index 461a2045ca..54f4fd0b58 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.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,16 +20,18 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Item.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// - /// Delete ref of navigation property categories for education + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete ref of navigation property categories for education"; + command.Description = "Remove an educationCategory from an educationAssignment. Only teachers can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-remove-category?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -68,21 +72,21 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", rawUrl) { } /// - /// Delete ref of navigation property categories for education + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -102,3 +106,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#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,16 +21,18 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Categories.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// - /// Delete ref of navigation property categories for education + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete ref of navigation property categories for education"; + command.Description = "Remove an educationCategory from an educationAssignment. Only teachers can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-remove-category?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -69,13 +73,14 @@ public Command BuildDeleteCommand() return command; } /// - /// When set, enables users to easily find assignments of a given type. Read-only. Nullable. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "When set, enables users to easily find assignments of a given type. Read-only. Nullable."; + command.Description = "List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-list-categories?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -163,13 +168,14 @@ public Command BuildGetCommand() return command; } /// - /// Create new navigation property ref to categories for education + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. + /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Create new navigation property ref to categories for education"; + command.Description = "Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-post-categories?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -189,8 +195,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,31 +216,31 @@ 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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) { } /// - /// Delete ref of navigation property categories for education + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. /// /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}", PathParameters); @@ -243,17 +249,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// When set, enables users to easily find assignments of a given type. Read-only. Nullable. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -262,18 +268,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property ref to categories for education + /// Add one or more existing educationCategory objects to the specified educationAssignment. Only teachers can perform this operation. /// /// 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 ToPostRequestInformation(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -283,9 +289,10 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< return requestInfo; } /// - /// Delete ref of navigation property categories for education + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -299,9 +306,10 @@ public class RefRequestBuilderDeleteQueryParameters #endif } /// - /// When set, enables users to easily find assignments of a given type. Read-only. Nullable. + /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -345,3 +353,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Deactivate/DeactivateRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Deactivate/DeactivateRequestBuilder.cs index 22184c4dd1..3da192f49c 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Deactivate/DeactivateRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Deactivate/DeactivateRequestBuilder.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.Education.Classes.Item.Assignments.Item.Deactivate /// /// Provides operations to call the deactivate method. /// - public class DeactivateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeactivateRequestBuilder : BaseCliRequestBuilder { /// /// Mark an assigned educationAssignment as inactive to signal that the assignment has no further action items for teachers and students. This action can only be performed by a teacher on assigned assignments. @@ -67,14 +70,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 DeactivateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/deactivate", 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 DeactivateRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/deactivate", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Assignments.Item.Activate; using ApiSdk.Education.Classes.Item.Assignments.Item.Categories; using ApiSdk.Education.Classes.Item.Assignments.Item.Deactivate; @@ -11,6 +12,7 @@ using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions; 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; @@ -29,7 +31,8 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item /// /// Provides operations to manage the assignments property of the microsoft.graph.educationClass entity. /// - public class EducationAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the activate method. @@ -39,7 +42,7 @@ public Command BuildActivateNavCommand() { var command = new Command("activate"); command.Description = "Provides operations to call the activate method."; - var builder = new ActivateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Activate.ActivateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -56,7 +59,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildDeactivateNavCommand() { var command = new Command("deactivate"); command.Description = "Provides operations to call the deactivate method."; - var builder = new DeactivateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Deactivate.DeactivateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -203,7 +206,7 @@ public Command BuildGradingCategoryNavCommand() { var command = new Command("grading-category"); command.Description = "Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity."; - var builder = new GradingCategoryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.GradingCategory.GradingCategoryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -248,8 +251,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(EducationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -278,7 +281,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.Education.Classes.Item.Assignments.Item.Publish.PublishRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -295,7 +298,7 @@ public Command BuildResourcesNavCommand() { var command = new Command("resources"); command.Description = "Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity."; - var builder = new ResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Resources.ResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -322,7 +325,7 @@ public Command BuildRubricNavCommand() { var command = new Command("rubric"); command.Description = "Provides operations to manage the rubric property of the microsoft.graph.educationAssignment entity."; - var builder = new RubricRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Rubric.RubricRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -347,7 +350,7 @@ public Command BuildSetUpFeedbackResourcesFolderNavCommand() { var command = new Command("set-up-feedback-resources-folder"); command.Description = "Provides operations to call the setUpFeedbackResourcesFolder method."; - var builder = new SetUpFeedbackResourcesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.SetUpFeedbackResourcesFolder.SetUpFeedbackResourcesFolderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -364,7 +367,7 @@ public Command BuildSetUpResourcesFolderNavCommand() { var command = new Command("set-up-resources-folder"); command.Description = "Provides operations to call the setUpResourcesFolder method."; - var builder = new SetUpResourcesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.SetUpResourcesFolder.SetUpResourcesFolderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -381,7 +384,7 @@ public Command BuildSubmissionsNavCommand() { var command = new Command("submissions"); command.Description = "Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity."; - var builder = new SubmissionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.SubmissionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -401,14 +404,14 @@ public Command BuildSubmissionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%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 EducationAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -440,11 +443,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); @@ -460,11 +463,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(EducationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -476,7 +479,8 @@ public RequestInformation ToPatchRequestInformation(EducationAssignment body, Ac /// /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue. /// - public class EducationAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -501,3 +505,4 @@ public class EducationAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs index 5e1b15801e..0400ae017a 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.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.Education.Classes.Item.Assignments.Item.GradingCategory /// /// Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity. /// - public class GradingCategoryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GradingCategoryRequestBuilder : BaseCliRequestBuilder { /// /// When set, enables users to weight assignments differently when computing a class average grade. @@ -80,14 +83,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 GradingCategoryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/gradingCategory{?%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 GradingCategoryRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/gradingCategory{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public GradingCategoryRequestBuilder(string rawUrl) : base("{+baseurl}/education /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// When set, enables users to weight assignments differently when computing a class average grade. /// - public class GradingCategoryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GradingCategoryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class GradingCategoryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.cs index 93390953b7..7e1065cc6a 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Publish/PublishRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/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.Education.Classes.Item.Assignments.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 an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. @@ -67,14 +70,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}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%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}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/publish", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Resources.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources/$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}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs index 6d8f6b5783..ab0083fba3 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.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,16 +21,18 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Resources.Item /// /// Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity. /// - public class EducationAssignmentResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentResourceItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete navigation property resources for education + /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers can't remove resources marked as 'distributeToStudents', after the assignment has been published to students. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete navigation property resources for education"; + command.Description = "Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers can't remove resources marked as 'distributeToStudents', after the assignment has been published to students.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignmentresource-delete?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -69,13 +73,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable."; + command.Description = "Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignmentresource-get?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -172,8 +177,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(EducationAssignmentResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignmentResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,21 +201,21 @@ 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 EducationAssignmentResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%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 EducationAssignmentResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Delete navigation property resources for education + /// Delete a specific educationAssignmentResource attached to an assignment. In general, only teachers in the class can remove a resource. However, teachers can't remove resources marked as 'distributeToStudents', after the assignment has been published to students. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -229,17 +234,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +260,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(EducationAssignmentResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationAssignmentResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -269,9 +274,10 @@ public RequestInformation ToPatchRequestInformation(EducationAssignmentResource return requestInfo; } /// - /// Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. + /// Get the properties of an education assignment resource associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// - public class EducationAssignmentResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +302,4 @@ public class EducationAssignmentResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs index ec21b68e76..aaac751c0a 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Assignments.Item.Resources.Count; using ApiSdk.Education.Classes.Item.Assignments.Item.Resources.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.Education.Classes.Item.Assignments.Item.Resources /// /// Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity. /// - public class ResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity. @@ -30,7 +33,7 @@ public class ResourcesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationAssignmentResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Resources.Item.EducationAssignmentResourceItemRequestBuilder(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.Education.Classes.Item.Assignments.Item.Resources.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -54,13 +57,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Create new navigation property to resources for education + /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. + /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create new navigation property to resources for education"; + command.Description = "Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-post-resource?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -88,8 +92,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(EducationAssignmentResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignmentResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -111,13 +115,14 @@ public Command BuildCreateCommand() return command; } /// - /// Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable."; + command.Description = "Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-list-resources?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -219,31 +224,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources{?%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 ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -252,18 +257,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to resources for education + /// Create an assignment resource. Only teachers can perform this operation. You can create the following types of assignment resources: Every resource has an @odata.type property to indicate which type of resource is being created. /// /// 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 ToPostRequestInformation(EducationAssignmentResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationAssignmentResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -273,9 +278,10 @@ public RequestInformation ToPostRequestInformation(EducationAssignmentResource b return requestInfo; } /// - /// Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. + /// Get all the educationAssignmentResource objects associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// - public class ResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +345,4 @@ public class ResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs index b293933e19..20b3ba7642 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.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,16 +21,18 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Rubric.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// - /// Delete ref of navigation property rubric for education + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete ref of navigation property rubric for education"; + command.Description = "Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-delete-rubric?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -63,13 +67,14 @@ public Command BuildDeleteCommand() return command; } /// - /// When set, the grading rubric attached to this assignment. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "When set, the grading rubric attached to this assignment."; + command.Description = "Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-get-rubric?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -99,13 +104,14 @@ public Command BuildGetCommand() return command; } /// - /// Update the ref of navigation property rubric in education + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Find more info here /// /// A public Command BuildPutCommand() { var command = new Command("put"); - command.Description = "Update the ref of navigation property rubric in education"; + command.Description = "Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-put-rubric?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -125,8 +131,8 @@ public Command BuildPutCommand() 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(ReferenceUpdate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceUpdate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -146,21 +152,21 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/rubric/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/rubric/$ref", rawUrl) { } /// - /// Delete ref of navigation property rubric for education + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -179,7 +185,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// When set, the grading rubric attached to this assignment. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -198,18 +204,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the ref of navigation property rubric in education + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. /// /// 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 ToPutRequestInformation(ReferenceUpdate body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.ReferenceUpdate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.ReferenceUpdate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -220,3 +226,4 @@ public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Assignments.Item.Rubric.Ref; 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,16 +22,18 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Rubric /// /// Provides operations to manage the rubric property of the microsoft.graph.educationAssignment entity. /// - public class RubricRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RubricRequestBuilder : BaseCliRequestBuilder { /// - /// Delete navigation property rubric for education + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete navigation property rubric for education"; + command.Description = "Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-delete-rubric?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -64,13 +68,14 @@ public Command BuildDeleteCommand() return command; } /// - /// When set, the grading rubric attached to this assignment. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "When set, the grading rubric attached to this assignment."; + command.Description = "Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-get-rubric?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -122,13 +127,14 @@ public Command BuildGetCommand() return command; } /// - /// Update the navigation property rubric in education + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the navigation property rubric in education"; + command.Description = "Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-put-rubric?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -156,8 +162,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(EducationRubric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationRubric.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -186,7 +192,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Rubric.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -198,21 +204,21 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RubricRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/rubric{?%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 RubricRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/rubric{?%24expand,%24select}", rawUrl) { } /// - /// Delete navigation property rubric for education + /// Remove an educationRubric from an educationAssignment. This method doesn't delete the rubric itself and can only be performed by teachers. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -231,17 +237,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// When set, the grading rubric attached to this assignment. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -250,18 +256,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property rubric in education + /// Attach an existing educationRubric object to an educationAssignment. Only teachers can perform this operation. /// /// 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(EducationRubric body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRubric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationRubric body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRubric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,9 +277,10 @@ public RequestInformation ToPatchRequestInformation(EducationRubric body, Action return requestInfo; } /// - /// When set, the grading rubric attached to this assignment. + /// Get the educationRubric object attached to an educationAssignment, if one exists. Only teachers, students, and applications with application permissions can perform this operation. /// - public class RubricRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RubricRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -298,3 +305,4 @@ public class RubricRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs index 037cadad5a..fe7c918ff9 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.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.Education.Classes.Item.Assignments.Item.SetUpFeedbackResourcesF /// /// Provides operations to call the setUpFeedbackResourcesFolder method. /// - public class SetUpFeedbackResourcesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetUpFeedbackResourcesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. @@ -67,14 +70,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 SetUpFeedbackResourcesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/setUpFeedbackResourcesFolder", 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 SetUpFeedbackResourcesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/setUpFeedbackResourcesFolder", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Education.Classes.Item.Assignments.Item.SetUpResourcesFolder /// /// Provides operations to call the setUpResourcesFolder method. /// - public class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. @@ -67,14 +70,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 SetUpResourcesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/setUpResourcesFolder", 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 SetUpResourcesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/setUpResourcesFolder", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/$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}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs index 141c5124ad..3ac0685c3f 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Excuse; using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Outcomes; using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Reassign; @@ -10,6 +11,7 @@ using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Unsubmit; 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; @@ -28,7 +30,8 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item /// /// Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. /// - public class EducationSubmissionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property submissions for education @@ -85,7 +88,7 @@ public Command BuildExcuseNavCommand() { var command = new Command("excuse"); command.Description = "Provides operations to call the excuse method."; - var builder = new ExcuseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Excuse.ExcuseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -95,13 +98,14 @@ public Command BuildExcuseNavCommand() return command; } /// - /// Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable."; + command.Description = "Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationsubmission-get?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -166,7 +170,7 @@ public Command BuildOutcomesNavCommand() { var command = new Command("outcomes"); command.Description = "Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity."; - var builder = new OutcomesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Outcomes.OutcomesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -225,8 +229,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(EducationSubmission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -256,7 +260,7 @@ public Command BuildReassignNavCommand() { var command = new Command("reassign"); command.Description = "Provides operations to call the reassign method."; - var builder = new ReassignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Reassign.ReassignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -273,7 +277,7 @@ public Command BuildResourcesNavCommand() { var command = new Command("resources"); command.Description = "Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity."; - var builder = new ResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Resources.ResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -300,7 +304,7 @@ public Command BuildReturnNavCommand() { var command = new Command("return"); command.Description = "Provides operations to call the return method."; - var builder = new ReturnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Return.ReturnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -317,7 +321,7 @@ public Command BuildSetUpResourcesFolderNavCommand() { var command = new Command("set-up-resources-folder"); command.Description = "Provides operations to call the setUpResourcesFolder method."; - var builder = new SetUpResourcesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.SetUpResourcesFolder.SetUpResourcesFolderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -334,7 +338,7 @@ public Command BuildSubmitNavCommand() { var command = new Command("submit"); command.Description = "Provides operations to call the submit method."; - var builder = new SubmitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Submit.SubmitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -351,7 +355,7 @@ public Command BuildSubmittedResourcesNavCommand() { var command = new Command("submitted-resources"); command.Description = "Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity."; - var builder = new SubmittedResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.SubmittedResources.SubmittedResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -378,7 +382,7 @@ public Command BuildUnsubmitNavCommand() { var command = new Command("unsubmit"); command.Description = "Provides operations to call the unsubmit method."; - var builder = new UnsubmitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Unsubmit.UnsubmitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -388,14 +392,14 @@ public Command BuildUnsubmitNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationSubmissionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%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 EducationSubmissionItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}{?%24expand,%24select}", rawUrl) @@ -421,17 +425,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -447,11 +451,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(EducationSubmission body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationSubmission body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -461,9 +465,10 @@ public RequestInformation ToPatchRequestInformation(EducationSubmission body, Ac return requestInfo; } /// - /// Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. + /// Retrieve a particular submission. Only teachers, students, and applications with application permissions can perform this operation. A submission object represents a student's work for an assignment. Resources associated with the submission represent this work. Only the assignedTo student can see and modify the submission. A teacher or application with application permissions has full access to all submissions. The grade and feedback from a teacher are part of the educationOutcome associated with this object. Only teachers or applications with application permissions can add or change grades and feedback. Students will not see the grade or feedback until the assignment has been released. /// - public class EducationSubmissionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -488,3 +493,4 @@ public class EducationSubmissionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.cs index e1f5b9d29a..b42c117ae5 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.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.Education.Classes.Item.Assignments.Item.Submissions.Item.Excuse /// /// Provides operations to call the excuse method. /// - public class ExcuseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExcuseRequestBuilder : BaseCliRequestBuilder { /// /// Excuse a submission. Excused submissions aren't included in average grade calculations. Grading rubrics and feedback are deleted. Only teachers can perform this action. If the Prefer: include-unknown-enum-members request header is provided, the excused submission shows the excused status. Otherwise, the submission status retains the returned status. For more information about how to use this header, see the Examples section. @@ -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 ExcuseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/excuse", 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 ExcuseRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/excuse", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Outcom /// /// 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 @@ -75,14 +78,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}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$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}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs index 6ed1f1b423..6fbf4014a3 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.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,16 +21,18 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Outcom /// /// Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. /// - public class EducationOutcomeItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationOutcomeItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete navigation property outcomes for education + /// Delete a feedback resource from a submission. This can only be done by a teacher. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete navigation property outcomes for education"; + command.Description = "Delete a feedback resource from a submission. This can only be done by a teacher.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationfeedbackresourceoutcome-delete?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -145,13 +149,14 @@ public Command BuildGetCommand() return command; } /// - /// Update the navigation property outcomes in education + /// Update the properties of an educationOutcome object. Only teachers can perform this operation. + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the navigation property outcomes in education"; + command.Description = "Update the properties of an educationOutcome object. Only teachers can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationoutcome-update?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -189,8 +194,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(EducationOutcome.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationOutcome.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,21 +219,21 @@ 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 EducationOutcomeItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%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 EducationOutcomeItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Delete navigation property outcomes for education + /// Delete a feedback resource from a submission. This can only be done by a teacher. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -253,11 +258,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); @@ -266,18 +271,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property outcomes in education + /// Update the properties of an educationOutcome object. Only teachers can perform this operation. /// /// 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(EducationOutcome body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationOutcome body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +294,8 @@ public RequestInformation ToPatchRequestInformation(EducationOutcome body, Actio /// /// Get outcomes from education /// - public class EducationOutcomeItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationOutcomeItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +320,4 @@ public class EducationOutcomeItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index 09a890d209..26b154c9fe 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Outcomes.Count; using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Outcomes.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.Education.Classes.Item.Assignments.Item.Submissions.Item.Outcom /// /// Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. /// - public class OutcomesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OutcomesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. @@ -30,7 +33,7 @@ public class OutcomesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationOutcomeItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Outcomes.Item.EducationOutcomeItemRequestBuilder(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.Education.Classes.Item.Assignments.Item.Submissions.Item.Outcomes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -54,13 +57,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Create new navigation property to outcomes for education + /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. + /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create new navigation property to outcomes for education"; + command.Description = "Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationfeedbackresourceoutcome-post-outcomes?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -93,8 +97,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(EducationOutcome.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationOutcome.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -117,13 +121,14 @@ public Command BuildCreateCommand() return command; } /// - /// Get outcomes from education + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Get outcomes from education"; + command.Description = "Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationsubmission-list-outcomes?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -231,31 +236,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OutcomesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%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 OutcomesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get outcomes from education + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -264,18 +269,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to outcomes for education + /// Create a new feedback resource for a submission. Only a teacher can perform this operation. To create a new file-based resource, upload the file to the feedback resources folder associated with the assignment. If the file doesn't exist or isn't in that folder, the POST request will fail. /// /// 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 ToPostRequestInformation(EducationOutcome body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationOutcome body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -285,9 +290,10 @@ public RequestInformation ToPostRequestInformation(EducationOutcome body, Action return requestInfo; } /// - /// Get outcomes from education + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. /// - public class OutcomesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OutcomesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -351,3 +357,4 @@ public class OutcomesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index 0cb24debf0..00ac02a7eb 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.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.Education.Classes.Item.Assignments.Item.Submissions.Item.Reassi /// /// Provides operations to call the reassign method. /// - public class ReassignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReassignRequestBuilder : BaseCliRequestBuilder { /// /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. @@ -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 ReassignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", 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 ReassignRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Resour /// /// 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 @@ -75,14 +78,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}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$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}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 56f002da7a..9eb27beaa3 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.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,16 +21,18 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Resour /// /// Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity. /// - public class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete navigation property resources for education + /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete navigation property resources for education"; + command.Description = "Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationsubmissionresource-delete?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -75,13 +79,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Get resources from education + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get resources from education"; + command.Description = "Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationsubmissionresource-get?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -189,8 +194,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(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,21 +219,21 @@ 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 EducationSubmissionResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%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 EducationSubmissionResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Delete navigation property resources for education + /// Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -247,17 +252,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get resources from education + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -273,11 +278,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(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,9 +292,10 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource return requestInfo; } /// - /// Get resources from education + /// Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment. /// - public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +320,4 @@ public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index 8b2a4e84b8..8b397c0e33 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Resources.Count; using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Resources.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.Education.Classes.Item.Assignments.Item.Submissions.Item.Resour /// /// Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity. /// - public class ResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity. @@ -30,7 +33,7 @@ public class ResourcesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationSubmissionResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Resources.Item.EducationSubmissionResourceItemRequestBuilder(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.Education.Classes.Item.Assignments.Item.Submissions.Item.Resources.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -54,13 +57,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Create new navigation property to resources for education + /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. + /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create new navigation property to resources for education"; + command.Description = "Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationsubmission-post-resources?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -93,8 +97,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(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -117,13 +121,14 @@ public Command BuildCreateCommand() return command; } /// - /// Get resources from education + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Get resources from education"; + command.Description = "List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationsubmission-list-resources?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -231,31 +236,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%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 ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get resources from education + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -264,18 +269,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to resources for education + /// Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail. /// /// 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 ToPostRequestInformation(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -285,9 +290,10 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b return requestInfo; } /// - /// Get resources from education + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. /// - public class ResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -351,3 +357,4 @@ public class ResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs index 2013f72e87..6ac5602e5d 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.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.Education.Classes.Item.Assignments.Item.Submissions.Item.Return /// /// Provides operations to call the return method. /// - public class ReturnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReturnRequestBuilder : BaseCliRequestBuilder { /// /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. @@ -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 ReturnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/return", 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 ReturnRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/return", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Education.Classes.Item.Assignments.Item.Submissions.Item.SetUpR /// /// Provides operations to call the setUpResourcesFolder method. /// - public class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. @@ -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 SetUpResourcesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/setUpResourcesFolder", 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 SetUpResourcesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/setUpResourcesFolder", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Education.Classes.Item.Assignments.Item.Submissions.Item.Submit /// /// Provides operations to call the submit method. /// - public class SubmitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmitRequestBuilder : BaseCliRequestBuilder { /// /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. @@ -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 SubmitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submit", 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 SubmitRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submit", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.Submit /// /// 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 @@ -75,14 +78,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}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$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}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs index ae053aa578..f6cf985175 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.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.Education.Classes.Item.Assignments.Item.Submissions.Item.Submit /// /// Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity. /// - public class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property submittedResources for education @@ -75,13 +78,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Get submittedResources from education + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get submittedResources from education"; + command.Description = "Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationsubmittedsubmissionresource-get?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -189,8 +193,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(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +218,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 EducationSubmissionResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%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 EducationSubmissionResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%2Did}{?%24expand,%24select}", rawUrl) @@ -247,17 +251,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get submittedResources from education + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -273,11 +277,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(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,9 +291,10 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource return requestInfo; } /// - /// Get submittedResources from education + /// Retrieve a submitted resource. Only teachers, students, and applications with application permissions can perform this operation. Resources are available to a teacher or an application with application permissions after a student submits it, and are available to the student after the teacher returns the submission. Teachers can leave notes in some resources. /// - public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +319,4 @@ public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index f7676697be..3d8589efb8 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.SubmittedResources.Count; using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.SubmittedResources.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.Education.Classes.Item.Assignments.Item.Submissions.Item.Submit /// /// Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity. /// - public class SubmittedResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmittedResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity. @@ -30,7 +33,7 @@ public class SubmittedResourcesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationSubmissionResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.SubmittedResources.Item.EducationSubmissionResourceItemRequestBuilder(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.Education.Classes.Item.Assignments.Item.Submissions.Item.SubmittedResources.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -117,13 +120,14 @@ public Command BuildCreateCommand() return command; } /// - /// Get submittedResources from education + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Get submittedResources from education"; + command.Description = "List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationsubmission-list-submittedresources?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -231,31 +235,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SubmittedResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%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 SubmittedResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get submittedResources from education + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -271,11 +275,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(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -285,9 +289,10 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b return requestInfo; } /// - /// Get submittedResources from education + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. /// - public class SubmittedResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmittedResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -351,3 +356,4 @@ public class SubmittedResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs index 7c37c8e865..303e340db4 100644 --- a/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.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.Education.Classes.Item.Assignments.Item.Submissions.Item.Unsubm /// /// Provides operations to call the unsubmit method. /// - public class UnsubmitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnsubmitRequestBuilder : BaseCliRequestBuilder { /// /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. @@ -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 UnsubmitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/unsubmit", 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 UnsubmitRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/unsubmit", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Count; using ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.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.Education.Classes.Item.Assignments.Item.Submissions /// /// Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. /// - public class SubmissionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmissionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EducationSubmissionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.Item.Submissions.Item.EducationSubmissionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildExcuseNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -54,7 +57,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.Education.Classes.Item.Assignments.Item.Submissions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -98,8 +101,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(EducationSubmission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -121,13 +124,14 @@ public Command BuildCreateCommand() return command; } /// - /// Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable."; + command.Description = "List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationassignment-list-submissions?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -229,31 +233,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SubmissionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions{?%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 SubmissionsRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -269,11 +273,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(EducationSubmission body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationSubmission body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -283,9 +287,10 @@ public RequestInformation ToPostRequestInformation(EducationSubmission body, Act return requestInfo; } /// - /// Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. /// - public class SubmissionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmissionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -349,3 +354,4 @@ public class SubmissionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs b/src/generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs index a10d5ae2e6..b2f8fac9ef 100644 --- a/src/generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/EducationClassItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.AssignmentCategories; using ApiSdk.Education.Classes.Item.AssignmentDefaults; using ApiSdk.Education.Classes.Item.AssignmentSettings; @@ -10,6 +11,7 @@ using ApiSdk.Education.Classes.Item.Teachers; 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; @@ -28,7 +30,8 @@ namespace ApiSdk.Education.Classes.Item /// /// Provides operations to manage the classes property of the microsoft.graph.educationRoot entity. /// - public class EducationClassItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationClassItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignmentCategories property of the microsoft.graph.educationClass entity. @@ -38,7 +41,7 @@ public Command BuildAssignmentCategoriesNavCommand() { var command = new Command("assignment-categories"); command.Description = "Provides operations to manage the assignmentCategories property of the microsoft.graph.educationClass entity."; - var builder = new AssignmentCategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.AssignmentCategories.AssignmentCategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -66,7 +69,7 @@ public Command BuildAssignmentDefaultsNavCommand() { var command = new Command("assignment-defaults"); command.Description = "Provides operations to manage the assignmentDefaults property of the microsoft.graph.educationClass entity."; - var builder = new AssignmentDefaultsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.AssignmentDefaults.AssignmentDefaultsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -85,7 +88,7 @@ public Command BuildAssignmentSettingsNavCommand() { var command = new Command("assignment-settings"); command.Description = "Provides operations to manage the assignmentSettings property of the microsoft.graph.educationClass entity."; - var builder = new AssignmentSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.AssignmentSettings.AssignmentSettingsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -110,7 +113,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.educationClass entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -227,7 +230,7 @@ public Command BuildGroupNavCommand() { var command = new Command("group"); command.Description = "Provides operations to manage the group property of the microsoft.graph.educationClass entity."; - var builder = new GroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Group.GroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -250,7 +253,7 @@ public Command BuildMembersNavCommand() { var command = new Command("members"); command.Description = "Provides operations to manage the members property of the microsoft.graph.educationClass entity."; - var builder = new MembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Members.MembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -277,7 +280,7 @@ public Command BuildModulesNavCommand() { var command = new Command("modules"); command.Description = "Provides operations to manage the modules property of the microsoft.graph.educationClass entity."; - var builder = new ModulesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Modules.ModulesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -327,8 +330,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(EducationClass.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationClass.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -356,7 +359,7 @@ public Command BuildSchoolsNavCommand() { var command = new Command("schools"); command.Description = "Provides operations to manage the schools property of the microsoft.graph.educationClass entity."; - var builder = new SchoolsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Schools.SchoolsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -382,7 +385,7 @@ public Command BuildTeachersNavCommand() { var command = new Command("teachers"); command.Description = "Provides operations to manage the teachers property of the microsoft.graph.educationClass entity."; - var builder = new TeachersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Teachers.TeachersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -402,14 +405,14 @@ public Command BuildTeachersNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationClassItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%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 EducationClassItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}{?%24expand,%24select}", rawUrl) @@ -441,11 +444,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); @@ -461,11 +464,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(EducationClass body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationClass body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationClass body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationClass body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -477,7 +480,8 @@ public RequestInformation ToPatchRequestInformation(EducationClass body, Action< /// /// Retrieve a class from the system. A class is a universal group with a special property that indicates to the system that the group is a class. Group members represent the students; group admins represent the teachers in the class. If you're using the delegated token, the user will only see classes in which they are members. /// - public class EducationClassItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationClassItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -502,3 +506,4 @@ public class EducationClassItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Group/GroupRequestBuilder.cs b/src/generated/Education/Classes/Item/Group/GroupRequestBuilder.cs index 8e81ea8183..40b8e5d568 100644 --- a/src/generated/Education/Classes/Item/Group/GroupRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Group/GroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Group.ServiceProvisioningErrors; 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.Education.Classes.Item.Group /// /// Provides operations to manage the group property of the microsoft.graph.educationClass entity. /// - public class GroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupRequestBuilder : BaseCliRequestBuilder { /// /// The underlying Microsoft 365 group object. @@ -82,7 +85,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Group.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -98,14 +101,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/group{?%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 GroupRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/group{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public GroupRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The underlying Microsoft 365 group object. /// - public class GroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class GroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index d9483af04d..42a5b62533 100644 --- a/src/generated/Education/Classes/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Group/ServiceProvisioningErrors/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.Education.Classes.Item.Group.ServiceProvisioningErrors.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}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors/$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}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index d9a879dff4..2732484162 100644 --- a/src/generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Group.ServiceProvisioningErrors.Count; 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.Education.Classes.Item.Group.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \education\classes\{educationClass-id}\group\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Education.Classes.Item.Group.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -142,31 +145,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/group/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -175,9 +178,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -241,3 +245,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Members/Count/CountRequestBuilder.cs b/src/generated/Education/Classes/Item/Members/Count/CountRequestBuilder.cs index 432b0e1274..44e23e8228 100644 --- a/src/generated/Education/Classes/Item/Members/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Members/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.Education.Classes.Item.Members.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}/education/classes/{educationClass%2Did}/members/$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}/education/classes/{educationClass%2Did}/members/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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/Education/Classes/Item/Members/Item/EducationUserItemRequestBuilder.cs b/src/generated/Education/Classes/Item/Members/Item/EducationUserItemRequestBuilder.cs index 88a84e65af..d0eb48aa98 100644 --- a/src/generated/Education/Classes/Item/Members/Item/EducationUserItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Members/Item/EducationUserItemRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Members.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Education.Classes.Item.Members.Item /// /// Builds and executes requests for operations under \education\classes\{educationClass-id}\members\{educationUser-id} /// - public class EducationUserItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationUserItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of educationRoot entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Members.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationUserItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}", 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 EducationUserItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}", rawUrl) @@ -50,3 +53,4 @@ public EducationUserItemRequestBuilder(string rawUrl) : base("{+baseurl}/educati } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs index a0ef770e52..50560b5d4f 100644 --- a/src/generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.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.Education.Classes.Item.Members.Item.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove an educationUser from an educationClass. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Members.Count; using ApiSdk.Education.Classes.Item.Members.Item; using ApiSdk.Education.Classes.Item.Members.Ref; 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.Education.Classes.Item.Members /// /// Provides operations to manage the members property of the microsoft.graph.educationClass entity. /// - public class MembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.education.classes.item.members.item collection @@ -31,7 +34,7 @@ public class MembersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new EducationUserItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Members.Item.EducationUserItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -43,7 +46,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.Education.Classes.Item.Members.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -163,7 +166,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Members.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -175,14 +178,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/members{?%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 MembersRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -195,11 +198,11 @@ public MembersRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes /// 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); @@ -210,7 +213,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieves the educationUser members of an educationClass. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -274,3 +278,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs b/src/generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs index 236befd905..b059260e00 100644 --- a/src/generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.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.Education.Classes.Item.Members.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove an educationUser from an educationClass. @@ -175,8 +178,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ed /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref?@id={%40id}", PathParameters); @@ -234,11 +237,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, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -254,11 +257,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -270,7 +273,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove an educationUser from an educationClass. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -286,7 +290,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// Retrieves the educationUser members of an educationClass. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +335,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Modules/Count/CountRequestBuilder.cs b/src/generated/Education/Classes/Item/Modules/Count/CountRequestBuilder.cs index b43b7c4649..29d72e5b73 100644 --- a/src/generated/Education/Classes/Item/Modules/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Modules/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.Education.Classes.Item.Modules.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}/education/classes/{educationClass%2Did}/modules/$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}/education/classes/{educationClass%2Did}/modules/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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/Education/Classes/Item/Modules/Item/EducationModuleItemRequestBuilder.cs b/src/generated/Education/Classes/Item/Modules/Item/EducationModuleItemRequestBuilder.cs index ce6c41a2cc..9c223df96a 100644 --- a/src/generated/Education/Classes/Item/Modules/Item/EducationModuleItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Modules/Item/EducationModuleItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Modules.Item.Pin; using ApiSdk.Education.Classes.Item.Modules.Item.Publish; using ApiSdk.Education.Classes.Item.Modules.Item.Resources; @@ -6,6 +7,7 @@ using ApiSdk.Education.Classes.Item.Modules.Item.Unpin; 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 +26,8 @@ namespace ApiSdk.Education.Classes.Item.Modules.Item /// /// Provides operations to manage the modules property of the microsoft.graph.educationClass entity. /// - public class EducationModuleItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationModuleItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete an existing module in a class. Only teachers within a class can delete modules. @@ -163,8 +166,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(EducationModule.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationModule.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -193,7 +196,7 @@ public Command BuildPinNavCommand() { var command = new Command("pin"); command.Description = "Provides operations to call the pin method."; - var builder = new PinRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Modules.Item.Pin.PinRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -210,7 +213,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.Education.Classes.Item.Modules.Item.Publish.PublishRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -227,7 +230,7 @@ public Command BuildResourcesNavCommand() { var command = new Command("resources"); command.Description = "Provides operations to manage the resources property of the microsoft.graph.educationModule entity."; - var builder = new ResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Modules.Item.Resources.ResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -254,7 +257,7 @@ public Command BuildSetUpResourcesFolderNavCommand() { var command = new Command("set-up-resources-folder"); command.Description = "Provides operations to call the setUpResourcesFolder method."; - var builder = new SetUpResourcesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Modules.Item.SetUpResourcesFolder.SetUpResourcesFolderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -271,7 +274,7 @@ public Command BuildUnpinNavCommand() { var command = new Command("unpin"); command.Description = "Provides operations to call the unpin method."; - var builder = new UnpinRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Modules.Item.Unpin.UnpinRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -281,14 +284,14 @@ public Command BuildUnpinNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationModuleItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%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 EducationModuleItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}{?%24expand,%24select}", rawUrl) @@ -320,11 +323,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); @@ -340,11 +343,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(EducationModule body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationModule body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationModule body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationModule body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -356,7 +359,8 @@ public RequestInformation ToPatchRequestInformation(EducationModule body, Action /// /// Get the properties and relationships of a module. Only teachers, students, and applications with application permissions can perform this operation. Students can only see published modules; teachers and applications with application permissions can see all modules in a class. /// - public class EducationModuleItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationModuleItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -381,3 +385,4 @@ public class EducationModuleItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Modules/Item/Pin/PinRequestBuilder.cs b/src/generated/Education/Classes/Item/Modules/Item/Pin/PinRequestBuilder.cs index e4a9de8c53..fc368ada18 100644 --- a/src/generated/Education/Classes/Item/Modules/Item/Pin/PinRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Modules/Item/Pin/PinRequestBuilder.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.Education.Classes.Item.Modules.Item.Pin /// /// Provides operations to call the pin method. /// - public class PinRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PinRequestBuilder : BaseCliRequestBuilder { /// /// Pin an educationModule in the class work list. This action sets the isPinned property to true for an educationModule. Only teachers can perform this action and only one module at a time can be pinned in the class work list. @@ -67,14 +70,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 PinRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/pin", 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 PinRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/pin", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Education.Classes.Item.Modules.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 { /// /// Change the state of an educationModule from its original draft status to the published status. Only teachers in the class can perform this operation. When a module is in draft status, students can't see the module. When you call this API, the module appears in the student's class work list. @@ -67,14 +70,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}/education/classes/{educationClass%2Did}/modules/{educationModule%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}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/publish", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Classes.Item.Modules.Item.Resources.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/resources/$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}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/resources/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Modules/Item/Resources/Item/EducationModuleResourceItemRequestBuilder.cs b/src/generated/Education/Classes/Item/Modules/Item/Resources/Item/EducationModuleResourceItemRequestBuilder.cs index a30f0cf427..5b066f863b 100644 --- a/src/generated/Education/Classes/Item/Modules/Item/Resources/Item/EducationModuleResourceItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Modules/Item/Resources/Item/EducationModuleResourceItemRequestBuilder.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,16 +21,18 @@ namespace ApiSdk.Education.Classes.Item.Modules.Item.Resources.Item /// /// Provides operations to manage the resources property of the microsoft.graph.educationModule entity. /// - public class EducationModuleResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationModuleResourceItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete navigation property resources for education + /// Delete a specific educationModuleResource attached to a module. Only teachers in the class can remove a resource. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete navigation property resources for education"; + command.Description = "Delete a specific educationModuleResource attached to a module. Only teachers in the class can remove a resource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationmoduleresource-delete?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -69,13 +73,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Learning objects that are associated with this module. Only teachers can modify this list. Nullable. + /// Get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Learning objects that are associated with this module. Only teachers can modify this list. Nullable."; + command.Description = "Get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationmoduleresource-get?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -133,13 +138,14 @@ public Command BuildGetCommand() return command; } /// - /// Update the navigation property resources in education + /// Update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types. + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the navigation property resources in education"; + command.Description = "Update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationmoduleresource-update?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -172,8 +178,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(EducationModuleResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationModuleResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,21 +202,21 @@ 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 EducationModuleResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/resources/{educationModuleResource%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 EducationModuleResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/resources/{educationModuleResource%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Delete navigation property resources for education + /// Delete a specific educationModuleResource attached to a module. Only teachers in the class can remove a resource. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -229,17 +235,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Learning objects that are associated with this module. Only teachers can modify this list. Nullable. + /// Get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,18 +254,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property resources in education + /// Update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types. /// /// 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(EducationModuleResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationModuleResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationModuleResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationModuleResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -269,9 +275,10 @@ public RequestInformation ToPatchRequestInformation(EducationModuleResource body return requestInfo; } /// - /// Learning objects that are associated with this module. Only teachers can modify this list. Nullable. + /// Get the properties of a resource associated with a module. Only teachers, students, and applications with application permissions can perform this operation. /// - public class EducationModuleResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationModuleResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +303,4 @@ public class EducationModuleResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Modules/Item/Resources/ResourcesRequestBuilder.cs b/src/generated/Education/Classes/Item/Modules/Item/Resources/ResourcesRequestBuilder.cs index 7c57c77e2f..5d5ffc2d56 100644 --- a/src/generated/Education/Classes/Item/Modules/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Modules/Item/Resources/ResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Modules.Item.Resources.Count; using ApiSdk.Education.Classes.Item.Modules.Item.Resources.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.Education.Classes.Item.Modules.Item.Resources /// /// Provides operations to manage the resources property of the microsoft.graph.educationModule entity. /// - public class ResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the resources property of the microsoft.graph.educationModule entity. @@ -30,7 +33,7 @@ public class ResourcesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationModuleResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Modules.Item.Resources.Item.EducationModuleResourceItemRequestBuilder(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.Education.Classes.Item.Modules.Item.Resources.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -54,13 +57,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Create new navigation property to resources for education + /// Create a resource in a module. Only teachers can perform this operation. You can create the following types of module resources: Every resource has an @odata.type property to indicate which type of resource is being created. + /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create new navigation property to resources for education"; + command.Description = "Create a resource in a module. Only teachers can perform this operation. You can create the following types of module resources: Every resource has an @odata.type property to indicate which type of resource is being created.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationmodule-post-resources?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -88,8 +92,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(EducationModuleResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationModuleResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -111,13 +115,14 @@ public Command BuildCreateCommand() return command; } /// - /// Learning objects that are associated with this module. Only teachers can modify this list. Nullable. + /// Get all the educationModuleResource objects associated with a module. Only teachers, students, and applications with application permissions can perform this operation. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Learning objects that are associated with this module. Only teachers can modify this list. Nullable."; + command.Description = "Get all the educationModuleResource objects associated with a module. Only teachers, students, and applications with application permissions can perform this operation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationmodule-list-resources?view=graph-rest-1.0"; var educationClassIdOption = new Option("--education-class-id", description: "The unique identifier of educationClass") { }; educationClassIdOption.IsRequired = true; @@ -219,31 +224,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/resources{?%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 ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Learning objects that are associated with this module. Only teachers can modify this list. Nullable. + /// Get all the educationModuleResource objects associated with a module. Only teachers, students, and applications with application permissions can perform this operation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -252,18 +257,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to resources for education + /// Create a resource in a module. Only teachers can perform this operation. You can create the following types of module resources: Every resource has an @odata.type property to indicate which type of resource is being created. /// /// 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 ToPostRequestInformation(EducationModuleResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationModuleResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationModuleResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationModuleResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -273,9 +278,10 @@ public RequestInformation ToPostRequestInformation(EducationModuleResource body, return requestInfo; } /// - /// Learning objects that are associated with this module. Only teachers can modify this list. Nullable. + /// Get all the educationModuleResource objects associated with a module. Only teachers, students, and applications with application permissions can perform this operation. /// - public class ResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +345,4 @@ public class ResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Modules/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs b/src/generated/Education/Classes/Item/Modules/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs index e6d4373171..7ac07e6f50 100644 --- a/src/generated/Education/Classes/Item/Modules/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Modules/Item/SetUpResourcesFolder/SetUpResourcesFolderRequestBuilder.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.Education.Classes.Item.Modules.Item.SetUpResourcesFolder /// /// Provides operations to call the setUpResourcesFolder method. /// - public class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Create a SharePoint folder to upload files for a given educationModule. Only teachers can perform this operation. The teacher determines what resources to upload to the SharePoint folder for the module. @@ -67,14 +70,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 SetUpResourcesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/setUpResourcesFolder", 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 SetUpResourcesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/setUpResourcesFolder", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Education.Classes.Item.Modules.Item.Unpin /// /// Provides operations to call the unpin method. /// - public class UnpinRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnpinRequestBuilder : BaseCliRequestBuilder { /// /// Unpin an educationModule in the classwork list. This action sets the isPinned property to false for an educationModule. Only teachers in the class can perform this operation. @@ -67,14 +70,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 UnpinRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/unpin", 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 UnpinRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules/{educationModule%2Did}/unpin", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Modules.Count; using ApiSdk.Education.Classes.Item.Modules.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.Education.Classes.Item.Modules /// /// Provides operations to manage the modules property of the microsoft.graph.educationClass entity. /// - public class ModulesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ModulesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the modules property of the microsoft.graph.educationClass entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EducationModuleItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Modules.Item.EducationModuleItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -50,7 +53,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.Education.Classes.Item.Modules.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(EducationModule.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationModule.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -215,14 +218,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ModulesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules{?%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 ModulesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/modules{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -235,11 +238,11 @@ public ModulesRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(EducationModule body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationModule body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationModule body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationModule body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPostRequestInformation(EducationModule body, Action< /// /// Retrieve a list of module objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can see all module objects for the class. Students can only see published modules. /// - public class ModulesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ModulesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -335,3 +339,4 @@ public class ModulesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Schools/Count/CountRequestBuilder.cs b/src/generated/Education/Classes/Item/Schools/Count/CountRequestBuilder.cs index 75c019afff..f4318a3d2f 100644 --- a/src/generated/Education/Classes/Item/Schools/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Schools/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.Education.Classes.Item.Schools.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}/education/classes/{educationClass%2Did}/schools/$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}/education/classes/{educationClass%2Did}/schools/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs b/src/generated/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs index a06774873d..032c224a56 100644 --- a/src/generated/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Schools/Item/EducationSchoolItemRequestBuilder.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.Education.Classes.Item.Schools.Item /// /// Provides operations to manage the schools property of the microsoft.graph.educationClass entity. /// - public class EducationSchoolItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSchoolItemRequestBuilder : BaseCliRequestBuilder { /// /// All schools that this class is associated with. Nullable. @@ -80,14 +83,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 EducationSchoolItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/schools/{educationSchool%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 EducationSchoolItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/schools/{educationSchool%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public EducationSchoolItemRequestBuilder(string rawUrl) : base("{+baseurl}/educa /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// All schools that this class is associated with. Nullable. /// - public class EducationSchoolItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSchoolItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class EducationSchoolItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs b/src/generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs index 1ee84034fb..e5c4265f81 100644 --- a/src/generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Schools/SchoolsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Schools.Count; using ApiSdk.Education.Classes.Item.Schools.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.Education.Classes.Item.Schools /// /// Provides operations to manage the schools property of the microsoft.graph.educationClass entity. /// - public class SchoolsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchoolsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the schools property of the microsoft.graph.educationClass entity. @@ -30,7 +33,7 @@ public class SchoolsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationSchoolItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Schools.Item.EducationSchoolItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Education.Classes.Item.Schools.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -155,14 +158,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 SchoolsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/schools{?%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 SchoolsRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/schools{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -175,11 +178,11 @@ public SchoolsRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes /// 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); @@ -190,7 +193,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve a list of schools in which the class is taught. /// - public class SchoolsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchoolsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -254,3 +258,4 @@ public class SchoolsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Teachers/Count/CountRequestBuilder.cs b/src/generated/Education/Classes/Item/Teachers/Count/CountRequestBuilder.cs index c1285457e0..9ad967d63f 100644 --- a/src/generated/Education/Classes/Item/Teachers/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Teachers/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.Education.Classes.Item.Teachers.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}/education/classes/{educationClass%2Did}/teachers/$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}/education/classes/{educationClass%2Did}/teachers/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ /// 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/Education/Classes/Item/Teachers/Item/EducationUserItemRequestBuilder.cs b/src/generated/Education/Classes/Item/Teachers/Item/EducationUserItemRequestBuilder.cs index 17a809ba13..84649e5d9a 100644 --- a/src/generated/Education/Classes/Item/Teachers/Item/EducationUserItemRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Teachers/Item/EducationUserItemRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Teachers.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Education.Classes.Item.Teachers.Item /// /// Builds and executes requests for operations under \education\classes\{educationClass-id}\teachers\{educationUser-id} /// - public class EducationUserItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationUserItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of educationRoot entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Teachers.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationUserItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}", 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 EducationUserItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}", rawUrl) @@ -50,3 +53,4 @@ public EducationUserItemRequestBuilder(string rawUrl) : base("{+baseurl}/educati } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs b/src/generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs index 5c3ab74974..fe24272bb1 100644 --- a/src/generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.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.Education.Classes.Item.Teachers.Item.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a teacher from an educationClass. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#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.Education.Classes.Item.Teachers.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a teacher from an educationClass. @@ -175,8 +178,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{ed /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref?@id={%40id}", PathParameters); @@ -234,11 +237,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, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -254,11 +257,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -270,7 +273,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove a teacher from an educationClass. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -286,7 +290,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +335,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs b/src/generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs index b01c8fd3e8..20298f751d 100644 --- a/src/generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs +++ b/src/generated/Education/Classes/Item/Teachers/TeachersRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes.Item.Teachers.Count; using ApiSdk.Education.Classes.Item.Teachers.Item; using ApiSdk.Education.Classes.Item.Teachers.Ref; 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.Education.Classes.Item.Teachers /// /// Provides operations to manage the teachers property of the microsoft.graph.educationClass entity. /// - public class TeachersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeachersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.education.classes.item.teachers.item collection @@ -31,7 +34,7 @@ public class TeachersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new EducationUserItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Teachers.Item.EducationUserItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -43,7 +46,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.Education.Classes.Item.Teachers.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -163,7 +166,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.Item.Teachers.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -175,14 +178,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TeachersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/classes/{educationClass%2Did}/teachers{?%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 TeachersRequestBuilder(string rawUrl) : base("{+baseurl}/education/classes/{educationClass%2Did}/teachers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -195,11 +198,11 @@ public TeachersRequestBuilder(string rawUrl) : base("{+baseurl}/education/classe /// 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); @@ -210,7 +213,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. /// - public class TeachersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeachersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -274,3 +278,4 @@ public class TeachersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/EducationRequestBuilder.cs b/src/generated/Education/EducationRequestBuilder.cs index c8ddcc5166..9c98ac8bbc 100644 --- a/src/generated/Education/EducationRequestBuilder.cs +++ b/src/generated/Education/EducationRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Classes; using ApiSdk.Education.Me; using ApiSdk.Education.Schools; using ApiSdk.Education.Users; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Education /// /// Provides operations to manage the educationRoot singleton. /// - public class EducationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the classes property of the microsoft.graph.educationRoot entity. @@ -33,7 +36,7 @@ public Command BuildClassesNavCommand() { var command = new Command("classes"); command.Description = "Provides operations to manage the classes property of the microsoft.graph.educationRoot entity."; - var builder = new ClassesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Classes.ClassesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -107,7 +110,7 @@ public Command BuildMeNavCommand() { var command = new Command("me"); command.Description = "Provides operations to manage the me property of the microsoft.graph.educationRoot entity."; - var builder = new MeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.MeRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAssignmentsNavCommand()); @@ -154,8 +157,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(EducationRoot.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationRoot.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -182,7 +185,7 @@ public Command BuildSchoolsNavCommand() { var command = new Command("schools"); command.Description = "Provides operations to manage the schools property of the microsoft.graph.educationRoot entity."; - var builder = new SchoolsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.SchoolsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -210,7 +213,7 @@ public Command BuildUsersNavCommand() { var command = new Command("users"); command.Description = "Provides operations to manage the users property of the microsoft.graph.educationRoot entity."; - var builder = new UsersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.UsersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -231,14 +234,14 @@ public Command BuildUsersNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education{?%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 EducationRequestBuilder(string rawUrl) : base("{+baseurl}/education{?%24expand,%24select}", rawUrl) @@ -251,11 +254,11 @@ public EducationRequestBuilder(string rawUrl) : base("{+baseurl}/education{?%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); @@ -271,11 +274,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(EducationRoot body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRoot body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationRoot body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRoot body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,7 +290,8 @@ public RequestInformation ToPatchRequestInformation(EducationRoot body, Action /// Get education /// - public class EducationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -312,3 +316,4 @@ public class EducationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs b/src/generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs index 45d6503f1a..312126c7e8 100644 --- a/src/generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/AssignmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments.Count; using ApiSdk.Education.Me.Assignments.Delta; using ApiSdk.Education.Me.Assignments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Education.Me.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.educationUser entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.educationUser entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EducationAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.EducationAssignmentItemRequestBuilder(PathParameters); commands.Add(builder.BuildActivateNavCommand()); commands.Add(builder.BuildCategoriesNavCommand()); commands.Add(builder.BuildDeactivateNavCommand()); @@ -56,7 +59,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.Education.Me.Assignments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(EducationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -118,7 +121,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -225,14 +228,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -245,11 +248,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/ /// 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); @@ -265,11 +268,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(EducationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +284,8 @@ public RequestInformation ToPostRequestInformation(EducationAssignment body, Act /// /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -345,3 +349,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Count/CountRequestBuilder.cs b/src/generated/Education/Me/Assignments/Count/CountRequestBuilder.cs index 7b3f60d6b0..34972a2474 100644 --- a/src/generated/Education/Me/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/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.Education.Me.Assignments.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}/education/me/assignments/$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}/education/me/assignments/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assign /// 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/Education/Me/Assignments/Delta/DeltaGetResponse.cs b/src/generated/Education/Me/Assignments/Delta/DeltaGetResponse.cs index 4b9221942e..2555b472ed 100644 --- a/src/generated/Education/Me/Assignments/Delta/DeltaGetResponse.cs +++ b/src/generated/Education/Me/Assignments/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Education.Me.Assignments.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Education.Me.Assignments.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Education.Me.Assignments.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.EducationAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.cs b/src/generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.cs index 8a74708ce1..27ad2d5d9a 100644 --- a/src/generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Delta/DeltaRequestBuilder.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.Education.Me.Assignments.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. @@ -118,14 +121,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -138,11 +141,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assign /// 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); @@ -153,7 +156,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Activate/ActivateRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Activate/ActivateRequestBuilder.cs index 8e989e1e81..bc2a4ecd73 100644 --- a/src/generated/Education/Me/Assignments/Item/Activate/ActivateRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Activate/ActivateRequestBuilder.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.Education.Me.Assignments.Item.Activate /// /// Provides operations to call the activate method. /// - public class ActivateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ActivateRequestBuilder : BaseCliRequestBuilder { /// /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. @@ -61,14 +64,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 ActivateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/activate", 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 ActivateRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/activate", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments.Item.Categories.Count; using ApiSdk.Education.Me.Assignments.Item.Categories.Delta; using ApiSdk.Education.Me.Assignments.Item.Categories.Item; using ApiSdk.Education.Me.Assignments.Item.Categories.Ref; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Education.Me.Assignments.Item.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.education.me.assignments.item.categories.item collection @@ -32,7 +35,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new EducationCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Categories.Item.EducationCategoryItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -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.Education.Me.Assignments.Item.Categories.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(EducationCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationCategory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -112,7 +115,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Categories.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -231,7 +234,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Categories.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -243,14 +246,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -263,11 +266,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/a /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -283,11 +286,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(EducationCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationCategory body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPostRequestInformation(EducationCategory body, Actio /// /// When set, enables users to easily find assignments of a given type. Read-only. Nullable. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -363,3 +367,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Categories/Count/CountRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Categories/Count/CountRequestBuilder.cs index d1b69b5591..03e26ef50d 100644 --- a/src/generated/Education/Me/Assignments/Item/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Categories/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.Education.Me.Assignments.Item.Categories.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}/education/me/assignments/{educationAssignment%2Did}/categories/$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}/education/me/assignments/{educationAssignment%2Did}/categories/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assign /// 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/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.cs b/src/generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.cs index c1aa2bb5dc..43c4d51e7a 100644 --- a/src/generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.cs +++ b/src/generated/Education/Me/Assignments/Item/Categories/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Education.Me.Assignments.Item.Categories.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Education.Me.Assignments.Item.Categories.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Education.Me.Assignments.Item.Categories.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.EducationCategory.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs index a3bbb0527c..e448f4165f 100644 --- a/src/generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Categories/Delta/DeltaRequestBuilder.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.Education.Me.Assignments.Item.Categories.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. @@ -124,14 +127,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -144,11 +147,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assign /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs index 2f1d07c97a..5587dbdbab 100644 --- a/src/generated/Education/Me/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments.Item.Categories.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Education.Me.Assignments.Item.Categories.Item /// /// Builds and executes requests for operations under \education\me\assignments\{educationAssignment-id}\categories\{educationCategory-id} /// - public class EducationCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of educationRoot entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Categories.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}", 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 EducationCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}", rawUrl) @@ -50,3 +53,4 @@ public EducationCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/edu } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index 4d5bddaaa6..d91686a09d 100644 --- a/src/generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.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.Education.Me.Assignments.Item.Categories.Item.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Delete ref of navigation property categories for education @@ -62,14 +65,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#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.Education.Me.Assignments.Item.Categories.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Delete ref of navigation property categories for education @@ -172,8 +175,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -192,14 +195,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -212,11 +215,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignme /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}", PathParameters); @@ -231,11 +234,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, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -251,11 +254,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Delete ref of navigation property categories for education /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -283,7 +287,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// When set, enables users to easily find assignments of a given type. Read-only. Nullable. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +332,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Deactivate/DeactivateRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Deactivate/DeactivateRequestBuilder.cs index 45d3221911..a935f1b5a2 100644 --- a/src/generated/Education/Me/Assignments/Item/Deactivate/DeactivateRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Deactivate/DeactivateRequestBuilder.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.Education.Me.Assignments.Item.Deactivate /// /// Provides operations to call the deactivate method. /// - public class DeactivateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeactivateRequestBuilder : BaseCliRequestBuilder { /// /// Mark an assigned educationAssignment as inactive to signal that the assignment has no further action items for teachers and students. This action can only be performed by a teacher on assigned assignments. @@ -61,14 +64,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 DeactivateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/deactivate", 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 DeactivateRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/deactivate", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments.Item.Activate; using ApiSdk.Education.Me.Assignments.Item.Categories; using ApiSdk.Education.Me.Assignments.Item.Deactivate; @@ -11,6 +12,7 @@ using ApiSdk.Education.Me.Assignments.Item.Submissions; 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; @@ -29,7 +31,8 @@ namespace ApiSdk.Education.Me.Assignments.Item /// /// Provides operations to manage the assignments property of the microsoft.graph.educationUser entity. /// - public class EducationAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the activate method. @@ -39,7 +42,7 @@ public Command BuildActivateNavCommand() { var command = new Command("activate"); command.Description = "Provides operations to call the activate method."; - var builder = new ActivateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Activate.ActivateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -56,7 +59,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildDeactivateNavCommand() { var command = new Command("deactivate"); command.Description = "Provides operations to call the deactivate method."; - var builder = new DeactivateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Deactivate.DeactivateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -189,7 +192,7 @@ public Command BuildGradingCategoryNavCommand() { var command = new Command("grading-category"); command.Description = "Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity."; - var builder = new GradingCategoryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.GradingCategory.GradingCategoryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -228,8 +231,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(EducationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -257,7 +260,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.Education.Me.Assignments.Item.Publish.PublishRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -274,7 +277,7 @@ public Command BuildResourcesNavCommand() { var command = new Command("resources"); command.Description = "Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity."; - var builder = new ResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Resources.ResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -301,7 +304,7 @@ public Command BuildRubricNavCommand() { var command = new Command("rubric"); command.Description = "Provides operations to manage the rubric property of the microsoft.graph.educationAssignment entity."; - var builder = new RubricRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Rubric.RubricRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -326,7 +329,7 @@ public Command BuildSetUpFeedbackResourcesFolderNavCommand() { var command = new Command("set-up-feedback-resources-folder"); command.Description = "Provides operations to call the setUpFeedbackResourcesFolder method."; - var builder = new SetUpFeedbackResourcesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.SetUpFeedbackResourcesFolder.SetUpFeedbackResourcesFolderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -343,7 +346,7 @@ public Command BuildSetUpResourcesFolderNavCommand() { var command = new Command("set-up-resources-folder"); command.Description = "Provides operations to call the setUpResourcesFolder method."; - var builder = new SetUpResourcesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.SetUpResourcesFolder.SetUpResourcesFolderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -360,7 +363,7 @@ public Command BuildSubmissionsNavCommand() { var command = new Command("submissions"); command.Description = "Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity."; - var builder = new SubmissionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.SubmissionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -380,14 +383,14 @@ public Command BuildSubmissionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%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 EducationAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -419,11 +422,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); @@ -439,11 +442,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(EducationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -455,7 +458,8 @@ public RequestInformation ToPatchRequestInformation(EducationAssignment body, Ac /// /// Assignments belonging to the user. /// - public class EducationAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -480,3 +484,4 @@ public class EducationAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs index 1a351ef67e..8e408a35c6 100644 --- a/src/generated/Education/Me/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.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.Education.Me.Assignments.Item.GradingCategory /// /// Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity. /// - public class GradingCategoryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GradingCategoryRequestBuilder : BaseCliRequestBuilder { /// /// When set, enables users to weight assignments differently when computing a class average grade. @@ -74,14 +77,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 GradingCategoryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/gradingCategory{?%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 GradingCategoryRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/gradingCategory{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public GradingCategoryRequestBuilder(string rawUrl) : base("{+baseurl}/education /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// When set, enables users to weight assignments differently when computing a class average grade. /// - public class GradingCategoryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GradingCategoryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class GradingCategoryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.cs index 0687641a10..025209a1b6 100644 --- a/src/generated/Education/Me/Assignments/Item/Publish/PublishRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/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.Education.Me.Assignments.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 an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. @@ -61,14 +64,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}/education/me/assignments/{educationAssignment%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}/education/me/assignments/{educationAssignment%2Did}/publish", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Me.Assignments.Item.Resources.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}/education/me/assignments/{educationAssignment%2Did}/resources/$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}/education/me/assignments/{educationAssignment%2Did}/resources/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assign /// 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/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs index 50246bb497..c85a7db343 100644 --- a/src/generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.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.Education.Me.Assignments.Item.Resources.Item /// /// Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity. /// - public class EducationAssignmentResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentResourceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property resources for education @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationAssignmentResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignmentResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationAssignmentResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%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 EducationAssignmentResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(EducationAssignmentResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationAssignmentResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(EducationAssignmentResource /// /// Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. /// - public class EducationAssignmentResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class EducationAssignmentResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs index 9b4d5f9ead..7aabf1768b 100644 --- a/src/generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Resources/ResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments.Item.Resources.Count; using ApiSdk.Education.Me.Assignments.Item.Resources.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.Education.Me.Assignments.Item.Resources /// /// Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity. /// - public class ResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity. @@ -30,7 +33,7 @@ public class ResourcesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationAssignmentResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Resources.Item.EducationAssignmentResourceItemRequestBuilder(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.Education.Me.Assignments.Item.Resources.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(EducationAssignmentResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignmentResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 ResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources{?%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 ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/as /// 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); @@ -247,11 +250,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(EducationAssignmentResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationAssignmentResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(EducationAssignmentResource b /// /// Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. /// - public class ResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class ResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs index 2f0f1eb838..a18991d653 100644 --- a/src/generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Rubric/Ref/RefRequestBuilder.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.Education.Me.Assignments.Item.Rubric.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Delete ref of navigation property rubric for education @@ -108,8 +111,8 @@ public Command BuildPutCommand() 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(ReferenceUpdate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceUpdate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -128,14 +131,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/rubric/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/rubric/$ref", rawUrl) @@ -187,11 +190,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 ToPutRequestInformation(ReferenceUpdate body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.ReferenceUpdate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.ReferenceUpdate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -202,3 +205,4 @@ public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments.Item.Rubric.Ref; 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.Education.Me.Assignments.Item.Rubric /// /// Provides operations to manage the rubric property of the microsoft.graph.educationAssignment entity. /// - public class RubricRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RubricRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property rubric for education @@ -139,8 +142,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(EducationRubric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationRubric.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -168,7 +171,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Rubric.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -180,14 +183,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RubricRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/rubric{?%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 RubricRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/rubric{?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(EducationRubric body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRubric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationRubric body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRubric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(EducationRubric body, Action /// /// When set, the grading rubric attached to this assignment. /// - public class RubricRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RubricRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class RubricRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs index b3e33a372f..e457d5b0e7 100644 --- a/src/generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.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.Education.Me.Assignments.Item.SetUpFeedbackResourcesFolder /// /// Provides operations to call the setUpFeedbackResourcesFolder method. /// - public class SetUpFeedbackResourcesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetUpFeedbackResourcesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. @@ -61,14 +64,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 SetUpFeedbackResourcesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/setUpFeedbackResourcesFolder", 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 SetUpFeedbackResourcesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/setUpFeedbackResourcesFolder", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Education.Me.Assignments.Item.SetUpResourcesFolder /// /// Provides operations to call the setUpResourcesFolder method. /// - public class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. @@ -61,14 +64,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 SetUpResourcesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/setUpResourcesFolder", 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 SetUpResourcesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/setUpResourcesFolder", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Me.Assignments.Item.Submissions.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}/education/me/assignments/{educationAssignment%2Did}/submissions/$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}/education/me/assignments/{educationAssignment%2Did}/submissions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assign /// 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/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs index 09b3421916..8a1d6be4c3 100644 --- a/src/generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Excuse; using ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Outcomes; using ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Reassign; @@ -10,6 +11,7 @@ using ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Unsubmit; 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; @@ -28,7 +30,8 @@ namespace ApiSdk.Education.Me.Assignments.Item.Submissions.Item /// /// Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. /// - public class EducationSubmissionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property submissions for education @@ -79,7 +82,7 @@ public Command BuildExcuseNavCommand() { var command = new Command("excuse"); command.Description = "Provides operations to call the excuse method."; - var builder = new ExcuseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Excuse.ExcuseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -154,7 +157,7 @@ public Command BuildOutcomesNavCommand() { var command = new Command("outcomes"); command.Description = "Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity."; - var builder = new OutcomesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Outcomes.OutcomesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -208,8 +211,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(EducationSubmission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -238,7 +241,7 @@ public Command BuildReassignNavCommand() { var command = new Command("reassign"); command.Description = "Provides operations to call the reassign method."; - var builder = new ReassignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Reassign.ReassignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -255,7 +258,7 @@ public Command BuildResourcesNavCommand() { var command = new Command("resources"); command.Description = "Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity."; - var builder = new ResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Resources.ResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -282,7 +285,7 @@ public Command BuildReturnNavCommand() { var command = new Command("return"); command.Description = "Provides operations to call the return method."; - var builder = new ReturnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Return.ReturnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -299,7 +302,7 @@ public Command BuildSetUpResourcesFolderNavCommand() { var command = new Command("set-up-resources-folder"); command.Description = "Provides operations to call the setUpResourcesFolder method."; - var builder = new SetUpResourcesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.SetUpResourcesFolder.SetUpResourcesFolderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -316,7 +319,7 @@ public Command BuildSubmitNavCommand() { var command = new Command("submit"); command.Description = "Provides operations to call the submit method."; - var builder = new SubmitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Submit.SubmitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -333,7 +336,7 @@ public Command BuildSubmittedResourcesNavCommand() { var command = new Command("submitted-resources"); command.Description = "Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity."; - var builder = new SubmittedResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.SubmittedResources.SubmittedResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -360,7 +363,7 @@ public Command BuildUnsubmitNavCommand() { var command = new Command("unsubmit"); command.Description = "Provides operations to call the unsubmit method."; - var builder = new UnsubmitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Unsubmit.UnsubmitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -370,14 +373,14 @@ public Command BuildUnsubmitNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationSubmissionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%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 EducationSubmissionItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}{?%24expand,%24select}", rawUrl) @@ -409,11 +412,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); @@ -429,11 +432,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(EducationSubmission body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationSubmission body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -445,7 +448,8 @@ public RequestInformation ToPatchRequestInformation(EducationSubmission body, Ac /// /// Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. /// - public class EducationSubmissionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -470,3 +474,4 @@ public class EducationSubmissionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.cs index b494f4f27e..3dd4aa21e7 100644 --- a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.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.Education.Me.Assignments.Item.Submissions.Item.Excuse /// /// Provides operations to call the excuse method. /// - public class ExcuseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExcuseRequestBuilder : BaseCliRequestBuilder { /// /// Excuse a submission. Excused submissions aren't included in average grade calculations. Grading rubrics and feedback are deleted. Only teachers can perform this action. If the Prefer: include-unknown-enum-members request header is provided, the excused submission shows the excused status. Otherwise, the submission status retains the returned status. For more information about how to use this header, see the Examples section. @@ -67,14 +70,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 ExcuseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/excuse", 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 ExcuseRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/excuse", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Outcomes.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$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}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assign /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs index 030d6932d1..5676c53c91 100644 --- a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.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.Education.Me.Assignments.Item.Submissions.Item.Outcomes.Item /// /// Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. /// - public class EducationOutcomeItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationOutcomeItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property outcomes for education @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationOutcome.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationOutcome.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationOutcomeItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%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 EducationOutcomeItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(EducationOutcome body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationOutcome body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(EducationOutcome body, Actio /// /// Get outcomes from education /// - public class EducationOutcomeItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationOutcomeItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class EducationOutcomeItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index 92b84a5735..b192b2d6bd 100644 --- a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Outcomes.Count; using ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Outcomes.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.Education.Me.Assignments.Item.Submissions.Item.Outcomes /// /// Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. /// - public class OutcomesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OutcomesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. @@ -30,7 +33,7 @@ public class OutcomesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationOutcomeItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Outcomes.Item.EducationOutcomeItemRequestBuilder(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.Education.Me.Assignments.Item.Submissions.Item.Outcomes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationOutcome.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationOutcome.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OutcomesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%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 OutcomesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public OutcomesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/ass /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(EducationOutcome body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationOutcome body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(EducationOutcome body, Action /// /// Get outcomes from education /// - public class OutcomesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OutcomesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class OutcomesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index 7dc91e7b3c..ed4d9f7976 100644 --- a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.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.Education.Me.Assignments.Item.Submissions.Item.Reassign /// /// Provides operations to call the reassign method. /// - public class ReassignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReassignRequestBuilder : BaseCliRequestBuilder { /// /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. @@ -67,14 +70,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 ReassignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", 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 ReassignRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Resources.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$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}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assign /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 01202cc555..357de5192b 100644 --- a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.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.Education.Me.Assignments.Item.Submissions.Item.Resources.Item /// /// Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity. /// - public class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property resources for education @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationSubmissionResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%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 EducationSubmissionResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource /// /// Get resources from education /// - public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index 2e38647af3..feb0e34367 100644 --- a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Resources.Count; using ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Resources.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.Education.Me.Assignments.Item.Submissions.Item.Resources /// /// Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity. /// - public class ResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity. @@ -30,7 +33,7 @@ public class ResourcesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationSubmissionResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.Resources.Item.EducationSubmissionResourceItemRequestBuilder(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.Education.Me.Assignments.Item.Submissions.Item.Resources.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%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 ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/as /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b /// /// Get resources from education /// - public class ResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs index 203269d4dc..efcbd777e9 100644 --- a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.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.Education.Me.Assignments.Item.Submissions.Item.Return /// /// Provides operations to call the return method. /// - public class ReturnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReturnRequestBuilder : BaseCliRequestBuilder { /// /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. @@ -67,14 +70,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 ReturnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/return", 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 ReturnRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/return", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Education.Me.Assignments.Item.Submissions.Item.SetUpResourcesFo /// /// Provides operations to call the setUpResourcesFolder method. /// - public class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. @@ -67,14 +70,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 SetUpResourcesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/setUpResourcesFolder", 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 SetUpResourcesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/setUpResourcesFolder", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Education.Me.Assignments.Item.Submissions.Item.Submit /// /// Provides operations to call the submit method. /// - public class SubmitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmitRequestBuilder : BaseCliRequestBuilder { /// /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. @@ -67,14 +70,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 SubmitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submit", 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 SubmitRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submit", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Me.Assignments.Item.Submissions.Item.SubmittedResourc /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$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}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assign /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 549601992b..ebc2833328 100644 --- a/src/generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.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.Education.Me.Assignments.Item.Submissions.Item.SubmittedResourc /// /// Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity. /// - public class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property submittedResources for education @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationSubmissionResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%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 EducationSubmissionResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource /// /// Get submittedResources from education /// - public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index e6ef5b08b0..78e259a83e 100644 --- a/src/generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments.Item.Submissions.Item.SubmittedResources.Count; using ApiSdk.Education.Me.Assignments.Item.Submissions.Item.SubmittedResources.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.Education.Me.Assignments.Item.Submissions.Item.SubmittedResourc /// /// Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity. /// - public class SubmittedResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmittedResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity. @@ -30,7 +33,7 @@ public class SubmittedResourcesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationSubmissionResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.SubmittedResources.Item.EducationSubmissionResourceItemRequestBuilder(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.Education.Me.Assignments.Item.Submissions.Item.SubmittedResources.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SubmittedResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%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 SubmittedResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public SubmittedResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/educat /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b /// /// Get submittedResources from education /// - public class SubmittedResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmittedResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class SubmittedResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs index bf651c4928..36ba92bc5f 100644 --- a/src/generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs +++ b/src/generated/Education/Me/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.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.Education.Me.Assignments.Item.Submissions.Item.Unsubmit /// /// Provides operations to call the unsubmit method. /// - public class UnsubmitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnsubmitRequestBuilder : BaseCliRequestBuilder { /// /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. @@ -67,14 +70,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 UnsubmitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/unsubmit", 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 UnsubmitRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/unsubmit", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments.Item.Submissions.Count; using ApiSdk.Education.Me.Assignments.Item.Submissions.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.Education.Me.Assignments.Item.Submissions /// /// Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. /// - public class SubmissionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmissionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EducationSubmissionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.Item.Submissions.Item.EducationSubmissionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildExcuseNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -54,7 +57,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.Education.Me.Assignments.Item.Submissions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(EducationSubmission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -217,14 +220,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 SubmissionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions{?%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 SubmissionsRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -237,11 +240,11 @@ public SubmissionsRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/ /// 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); @@ -257,11 +260,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(EducationSubmission body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationSubmission body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -273,7 +276,8 @@ public RequestInformation ToPostRequestInformation(EducationSubmission body, Act /// /// Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. /// - public class SubmissionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmissionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -337,3 +341,4 @@ public class SubmissionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Classes/ClassesRequestBuilder.cs b/src/generated/Education/Me/Classes/ClassesRequestBuilder.cs index 7cd4160153..c9af54ea8f 100644 --- a/src/generated/Education/Me/Classes/ClassesRequestBuilder.cs +++ b/src/generated/Education/Me/Classes/ClassesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.Classes.Count; using ApiSdk.Education.Me.Classes.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.Education.Me.Classes /// /// Provides operations to manage the classes property of the microsoft.graph.educationUser entity. /// - public class ClassesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClassesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the classes property of the microsoft.graph.educationUser entity. @@ -30,7 +33,7 @@ public class ClassesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationClassItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Classes.Item.EducationClassItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Education.Me.Classes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 ClassesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/classes{?%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 ClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/classes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public ClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/clas /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the educationClass resources an educationUser is a member of. /// - public class ClassesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClassesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class ClassesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Classes/Count/CountRequestBuilder.cs b/src/generated/Education/Me/Classes/Count/CountRequestBuilder.cs index a593a2a4de..d2626042eb 100644 --- a/src/generated/Education/Me/Classes/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Me/Classes/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.Education.Me.Classes.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}/education/me/classes/$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}/education/me/classes/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/classe /// 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/Education/Me/Classes/Item/EducationClassItemRequestBuilder.cs b/src/generated/Education/Me/Classes/Item/EducationClassItemRequestBuilder.cs index 4a04a84666..0facf363ae 100644 --- a/src/generated/Education/Me/Classes/Item/EducationClassItemRequestBuilder.cs +++ b/src/generated/Education/Me/Classes/Item/EducationClassItemRequestBuilder.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.Education.Me.Classes.Item /// /// Provides operations to manage the classes property of the microsoft.graph.educationUser entity. /// - public class EducationClassItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationClassItemRequestBuilder : BaseCliRequestBuilder { /// /// Classes to which the user belongs. Nullable. @@ -74,14 +77,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 EducationClassItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/classes/{educationClass%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 EducationClassItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/classes/{educationClass%2Did}{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public EducationClassItemRequestBuilder(string rawUrl) : base("{+baseurl}/educat /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// Classes to which the user belongs. Nullable. /// - public class EducationClassItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationClassItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class EducationClassItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/MeRequestBuilder.cs b/src/generated/Education/Me/MeRequestBuilder.cs index ed28ed5ac3..b5deb5eb20 100644 --- a/src/generated/Education/Me/MeRequestBuilder.cs +++ b/src/generated/Education/Me/MeRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.Assignments; using ApiSdk.Education.Me.Classes; using ApiSdk.Education.Me.Rubrics; @@ -7,6 +8,7 @@ using ApiSdk.Education.Me.User; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Education.Me /// /// Provides operations to manage the me property of the microsoft.graph.educationRoot entity. /// - public class MeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MeRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.educationUser entity. @@ -35,7 +38,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.educationUser entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -63,7 +66,7 @@ public Command BuildClassesNavCommand() { var command = new Command("classes"); command.Description = "Provides operations to manage the classes property of the microsoft.graph.educationUser entity."; - var builder = new ClassesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Classes.ClassesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -181,8 +184,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(EducationUser.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationUser.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -209,7 +212,7 @@ public Command BuildRubricsNavCommand() { var command = new Command("rubrics"); command.Description = "Provides operations to manage the rubrics property of the microsoft.graph.educationUser entity."; - var builder = new RubricsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Rubrics.RubricsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -236,7 +239,7 @@ public Command BuildSchoolsNavCommand() { var command = new Command("schools"); command.Description = "Provides operations to manage the schools property of the microsoft.graph.educationUser entity."; - var builder = new SchoolsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Schools.SchoolsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -262,7 +265,7 @@ public Command BuildTaughtClassesNavCommand() { var command = new Command("taught-classes"); command.Description = "Provides operations to manage the taughtClasses property of the microsoft.graph.educationUser entity."; - var builder = new TaughtClassesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.TaughtClasses.TaughtClassesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -288,7 +291,7 @@ public Command BuildUserNavCommand() { var command = new Command("user"); command.Description = "Provides operations to manage the user property of the microsoft.graph.educationUser entity."; - var builder = new UserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.User.UserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -305,14 +308,14 @@ public Command BuildUserNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me{?%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 MeRequestBuilder(string rawUrl) : base("{+baseurl}/education/me{?%24expand,%24select}", rawUrl) @@ -344,11 +347,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); @@ -364,11 +367,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(EducationUser body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationUser body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationUser body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationUser body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -380,7 +383,8 @@ public RequestInformation ToPatchRequestInformation(EducationUser body, Action /// Get me from education /// - public class MeRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MeRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -405,3 +409,4 @@ public class MeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Rubrics/Count/CountRequestBuilder.cs b/src/generated/Education/Me/Rubrics/Count/CountRequestBuilder.cs index 6b1270cac1..395a8052ec 100644 --- a/src/generated/Education/Me/Rubrics/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Me/Rubrics/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.Education.Me.Rubrics.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}/education/me/rubrics/$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}/education/me/rubrics/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/rubric /// 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/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.cs b/src/generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.cs index ed976174d4..4cb421ef93 100644 --- a/src/generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.cs +++ b/src/generated/Education/Me/Rubrics/Item/EducationRubricItemRequestBuilder.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.Education.Me.Rubrics.Item /// /// Provides operations to manage the rubrics property of the microsoft.graph.educationUser entity. /// - public class EducationRubricItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationRubricItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete an educationRubric object. Only teachers can perform this operation. @@ -111,14 +114,14 @@ public Command BuildGetCommand() return command; } /// - /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. + /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationrubric-update?view=graph-rest-1.0"; + command.Description = "Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/educationrubric-update?view=graph-rest-1.0"; var educationRubricIdOption = new Option("--education-rubric-id", description: "The unique identifier of educationRubric") { }; educationRubricIdOption.IsRequired = true; @@ -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(EducationRubric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationRubric.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 EducationRubricItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/rubrics/{educationRubric%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 EducationRubricItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/rubrics/{educationRubric%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); @@ -215,18 +218,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. + /// Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. /// /// 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(EducationRubric body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRubric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationRubric body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRubric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(EducationRubric body, Action /// /// Retrieve the properties and relationships of an educationRubric object. Only teachers and students can perform this operation. /// - public class EducationRubricItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationRubricItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class EducationRubricItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Rubrics/RubricsRequestBuilder.cs b/src/generated/Education/Me/Rubrics/RubricsRequestBuilder.cs index 3eeb82de30..8064db99ae 100644 --- a/src/generated/Education/Me/Rubrics/RubricsRequestBuilder.cs +++ b/src/generated/Education/Me/Rubrics/RubricsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.Rubrics.Count; using ApiSdk.Education.Me.Rubrics.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.Education.Me.Rubrics /// /// Provides operations to manage the rubrics property of the microsoft.graph.educationUser entity. /// - public class RubricsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RubricsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the rubrics property of the microsoft.graph.educationUser entity. @@ -30,7 +33,7 @@ public class RubricsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationRubricItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Rubrics.Item.EducationRubricItemRequestBuilder(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.Education.Me.Rubrics.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(EducationRubric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationRubric.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 RubricsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/rubrics{?%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 RubricsRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/rubrics{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public RubricsRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/rubr /// 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(EducationRubric body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationRubric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationRubric body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationRubric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(EducationRubric body, Action< /// /// Retrieve a list of educationRubric objects. /// - public class RubricsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RubricsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class RubricsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Schools/Count/CountRequestBuilder.cs b/src/generated/Education/Me/Schools/Count/CountRequestBuilder.cs index 1fdec50a20..f30dab11ce 100644 --- a/src/generated/Education/Me/Schools/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Me/Schools/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.Education.Me.Schools.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}/education/me/schools/$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}/education/me/schools/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/school /// 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/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.cs b/src/generated/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.cs index a798fc4ab1..8e516d3d39 100644 --- a/src/generated/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.cs +++ b/src/generated/Education/Me/Schools/Item/EducationSchoolItemRequestBuilder.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.Education.Me.Schools.Item /// /// Provides operations to manage the schools property of the microsoft.graph.educationUser entity. /// - public class EducationSchoolItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSchoolItemRequestBuilder : BaseCliRequestBuilder { /// /// Schools to which the user belongs. Nullable. @@ -74,14 +77,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 EducationSchoolItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/schools/{educationSchool%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 EducationSchoolItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/schools/{educationSchool%2Did}{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public EducationSchoolItemRequestBuilder(string rawUrl) : base("{+baseurl}/educa /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// Schools to which the user belongs. Nullable. /// - public class EducationSchoolItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSchoolItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class EducationSchoolItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/Schools/SchoolsRequestBuilder.cs b/src/generated/Education/Me/Schools/SchoolsRequestBuilder.cs index aa5c402084..1ca3a510a0 100644 --- a/src/generated/Education/Me/Schools/SchoolsRequestBuilder.cs +++ b/src/generated/Education/Me/Schools/SchoolsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.Schools.Count; using ApiSdk.Education.Me.Schools.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.Education.Me.Schools /// /// Provides operations to manage the schools property of the microsoft.graph.educationUser entity. /// - public class SchoolsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchoolsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the schools property of the microsoft.graph.educationUser entity. @@ -30,7 +33,7 @@ public class SchoolsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationSchoolItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.Schools.Item.EducationSchoolItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Education.Me.Schools.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 SchoolsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/schools{?%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 SchoolsRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/schools{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public SchoolsRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/scho /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve a list of schools for a user. /// - public class SchoolsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchoolsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class SchoolsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/TaughtClasses/Count/CountRequestBuilder.cs b/src/generated/Education/Me/TaughtClasses/Count/CountRequestBuilder.cs index 3d40ba9e03..5acdfd0405 100644 --- a/src/generated/Education/Me/TaughtClasses/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Me/TaughtClasses/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.Education.Me.TaughtClasses.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}/education/me/taughtClasses/$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}/education/me/taughtClasses/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/taught /// 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/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.cs b/src/generated/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.cs index bcbba81a71..daeee955d0 100644 --- a/src/generated/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.cs +++ b/src/generated/Education/Me/TaughtClasses/Item/EducationClassItemRequestBuilder.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.Education.Me.TaughtClasses.Item /// /// Provides operations to manage the taughtClasses property of the microsoft.graph.educationUser entity. /// - public class EducationClassItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationClassItemRequestBuilder : BaseCliRequestBuilder { /// /// Classes for which the user is a teacher. @@ -74,14 +77,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 EducationClassItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/taughtClasses/{educationClass%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 EducationClassItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/taughtClasses/{educationClass%2Did}{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public EducationClassItemRequestBuilder(string rawUrl) : base("{+baseurl}/educat /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// Classes for which the user is a teacher. /// - public class EducationClassItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationClassItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class EducationClassItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs b/src/generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs index d25f2c5efb..2ea67b4132 100644 --- a/src/generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs +++ b/src/generated/Education/Me/TaughtClasses/TaughtClassesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.TaughtClasses.Count; using ApiSdk.Education.Me.TaughtClasses.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.Education.Me.TaughtClasses /// /// Provides operations to manage the taughtClasses property of the microsoft.graph.educationUser entity. /// - public class TaughtClassesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaughtClassesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the taughtClasses property of the microsoft.graph.educationUser entity. @@ -30,7 +33,7 @@ public class TaughtClassesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationClassItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.TaughtClasses.Item.EducationClassItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Education.Me.TaughtClasses.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -148,14 +151,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 TaughtClassesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/taughtClasses{?%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 TaughtClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/taughtClasses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -168,11 +171,11 @@ public TaughtClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/m /// 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); @@ -183,7 +186,8 @@ public RequestInformation ToGetRequestInformation(Action /// Classes for which the user is a teacher. /// - public class TaughtClassesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaughtClassesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -247,3 +251,4 @@ public class TaughtClassesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.cs index 70912845dd..35faea4ea0 100644 --- a/src/generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.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.Education.Me.User.MailboxSettings /// /// Builds and executes requests for operations under \education\me\user\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -92,8 +95,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -113,14 +116,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/user/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/user/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -133,11 +136,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/education /// 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); @@ -153,11 +156,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -169,7 +172,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -194,3 +198,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index a1acd01fae..6879096fc5 100644 --- a/src/generated/Education/Me/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Me/User/ServiceProvisioningErrors/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.Education.Me.User.ServiceProvisioningErrors.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}/education/me/user/serviceProvisioningErrors/$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}/education/me/user/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/user/s /// 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/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 68573368b1..d9d833a639 100644 --- a/src/generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Education/Me/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.User.ServiceProvisioningErrors.Count; 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.Education.Me.User.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \education\me\user\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Education.Me.User.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -136,31 +139,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/user/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/user/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -169,9 +172,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Me/User/UserRequestBuilder.cs b/src/generated/Education/Me/User/UserRequestBuilder.cs index 191d3a8bcb..0cfe2ae2d5 100644 --- a/src/generated/Education/Me/User/UserRequestBuilder.cs +++ b/src/generated/Education/Me/User/UserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Me.User.MailboxSettings; using ApiSdk.Education.Me.User.ServiceProvisioningErrors; 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.Education.Me.User /// /// Provides operations to manage the user property of the microsoft.graph.educationUser entity. /// - public class UserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserRequestBuilder : BaseCliRequestBuilder { /// /// Retrieve the simple directory user that corresponds to this educationUser. @@ -78,7 +81,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.User.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -96,7 +99,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Me.User.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -112,14 +115,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/me/user{?%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 UserRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/user{?%24expand,%24select}", rawUrl) @@ -132,11 +135,11 @@ public UserRequestBuilder(string rawUrl) : base("{+baseurl}/education/me/user{?% /// 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); @@ -147,7 +150,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve the simple directory user that corresponds to this educationUser. /// - public class UserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -172,3 +176,4 @@ public class UserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Schools/Count/CountRequestBuilder.cs b/src/generated/Education/Schools/Count/CountRequestBuilder.cs index 855dd69c31..abb2b20d3c 100644 --- a/src/generated/Education/Schools/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Schools/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.Education.Schools.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}/education/schools/$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}/education/schools/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/$ /// 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/Education/Schools/Delta/DeltaGetResponse.cs b/src/generated/Education/Schools/Delta/DeltaGetResponse.cs index c5977e8d39..298317648f 100644 --- a/src/generated/Education/Schools/Delta/DeltaGetResponse.cs +++ b/src/generated/Education/Schools/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Education.Schools.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Education.Schools.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Education.Schools.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(EducationSchool.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.EducationSchool.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Schools/Delta/DeltaRequestBuilder.cs b/src/generated/Education/Schools/Delta/DeltaRequestBuilder.cs index b508d140e6..4335c64ce5 100644 --- a/src/generated/Education/Schools/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Education/Schools/Delta/DeltaRequestBuilder.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.Education.Schools.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get newly created or updated schools without having to perform a full read of the entire school collection. See Use delta query for details. @@ -118,14 +121,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -138,11 +141,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/d /// 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); @@ -153,7 +156,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get newly created or updated schools without having to perform a full read of the entire school collection. See Use delta query for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs b/src/generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs index 70900ef423..c5b0b6f6cf 100644 --- a/src/generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.cs +++ b/src/generated/Education/Schools/Item/AdministrativeUnit/AdministrativeUnitRequestBuilder.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.Education.Schools.Item.AdministrativeUnit /// /// Provides operations to manage the administrativeUnit property of the microsoft.graph.educationSchool entity. /// - public class AdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// The underlying administrativeUnit for this school. @@ -103,8 +106,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.AdministrativeUnit.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AdministrativeUnit.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,14 +128,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 AdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools/{educationSchool%2Did}/administrativeUnit{?%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 AdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{educationSchool%2Did}/administrativeUnit{?%24expand,%24select}", rawUrl) @@ -145,11 +148,11 @@ public AdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/educat /// 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); @@ -165,11 +168,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.AdministrativeUnit body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AdministrativeUnit body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.AdministrativeUnit body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AdministrativeUnit body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -181,7 +184,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Administrative /// /// The underlying administrativeUnit for this school. /// - public class AdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AdministrativeUnitRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,3 +210,4 @@ public class AdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs b/src/generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs index e383b94cc6..cf5d63e5cf 100644 --- a/src/generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs +++ b/src/generated/Education/Schools/Item/Classes/ClassesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Schools.Item.Classes.Count; using ApiSdk.Education.Schools.Item.Classes.Item; using ApiSdk.Education.Schools.Item.Classes.Ref; 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.Education.Schools.Item.Classes /// /// Provides operations to manage the classes property of the microsoft.graph.educationSchool entity. /// - public class ClassesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClassesRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.education.schools.item.classes.item collection @@ -31,7 +34,7 @@ public class ClassesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new EducationClassItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.Item.Classes.Item.EducationClassItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -43,7 +46,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.Education.Schools.Item.Classes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -163,7 +166,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.Item.Classes.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -175,14 +178,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ClassesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools/{educationSchool%2Did}/classes{?%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 ClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{educationSchool%2Did}/classes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -195,11 +198,11 @@ public ClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools /// 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); @@ -210,7 +213,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the educationClass resources owned by an educationSchool. /// - public class ClassesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClassesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -274,3 +278,4 @@ public class ClassesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Schools/Item/Classes/Count/CountRequestBuilder.cs b/src/generated/Education/Schools/Item/Classes/Count/CountRequestBuilder.cs index b8ce774b88..9ad6fe05f1 100644 --- a/src/generated/Education/Schools/Item/Classes/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Schools/Item/Classes/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.Education.Schools.Item.Classes.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}/education/schools/{educationSchool%2Did}/classes/$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}/education/schools/{educationSchool%2Did}/classes/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{ /// 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/Education/Schools/Item/Classes/Item/EducationClassItemRequestBuilder.cs b/src/generated/Education/Schools/Item/Classes/Item/EducationClassItemRequestBuilder.cs index 1325fd372d..eec8411b78 100644 --- a/src/generated/Education/Schools/Item/Classes/Item/EducationClassItemRequestBuilder.cs +++ b/src/generated/Education/Schools/Item/Classes/Item/EducationClassItemRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Schools.Item.Classes.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Education.Schools.Item.Classes.Item /// /// Builds and executes requests for operations under \education\schools\{educationSchool-id}\classes\{educationClass-id} /// - public class EducationClassItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationClassItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of educationRoot entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.Item.Classes.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationClassItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}", 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 EducationClassItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}", rawUrl) @@ -50,3 +53,4 @@ public EducationClassItemRequestBuilder(string rawUrl) : base("{+baseurl}/educat } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs b/src/generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs index 452b4ec477..6ca5432491 100644 --- a/src/generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.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.Education.Schools.Item.Classes.Item.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Delete a class from a school. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#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.Education.Schools.Item.Classes.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Delete a class from a school. @@ -175,8 +178,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{ed /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref?@id={%40id}", PathParameters); @@ -234,11 +237,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, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -254,11 +257,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -270,7 +273,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Delete a class from a school. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -286,7 +290,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// Get the educationClass resources owned by an educationSchool. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +335,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs b/src/generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs index f322677a66..2d8c1526f5 100644 --- a/src/generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs +++ b/src/generated/Education/Schools/Item/EducationSchoolItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Schools.Item.AdministrativeUnit; using ApiSdk.Education.Schools.Item.Classes; using ApiSdk.Education.Schools.Item.Users; 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.Education.Schools.Item /// /// Provides operations to manage the schools property of the microsoft.graph.educationRoot entity. /// - public class EducationSchoolItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSchoolItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the administrativeUnit property of the microsoft.graph.educationSchool entity. @@ -32,7 +35,7 @@ public Command BuildAdministrativeUnitNavCommand() { var command = new Command("administrative-unit"); command.Description = "Provides operations to manage the administrativeUnit property of the microsoft.graph.educationSchool entity."; - var builder = new AdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.Item.AdministrativeUnit.AdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -50,7 +53,7 @@ public Command BuildClassesNavCommand() { var command = new Command("classes"); command.Description = "Provides operations to manage the classes property of the microsoft.graph.educationSchool entity."; - var builder = new ClassesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.Item.Classes.ClassesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -189,8 +192,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(EducationSchool.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSchool.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -218,7 +221,7 @@ public Command BuildUsersNavCommand() { var command = new Command("users"); command.Description = "Provides operations to manage the users property of the microsoft.graph.educationSchool entity."; - var builder = new UsersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.Item.Users.UsersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -238,14 +241,14 @@ public Command BuildUsersNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationSchoolItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools/{educationSchool%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 EducationSchoolItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{educationSchool%2Did}{?%24expand,%24select}", rawUrl) @@ -277,11 +280,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); @@ -297,11 +300,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(EducationSchool body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSchool body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationSchool body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSchool body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -313,7 +316,8 @@ public RequestInformation ToPatchRequestInformation(EducationSchool body, Action /// /// Read the properties and relationships of an educationSchool object. /// - public class EducationSchoolItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSchoolItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -338,3 +342,4 @@ public class EducationSchoolItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Schools/Item/Users/Count/CountRequestBuilder.cs b/src/generated/Education/Schools/Item/Users/Count/CountRequestBuilder.cs index eed9c70515..c94c66a33e 100644 --- a/src/generated/Education/Schools/Item/Users/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Schools/Item/Users/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.Education.Schools.Item.Users.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}/education/schools/{educationSchool%2Did}/users/$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}/education/schools/{educationSchool%2Did}/users/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{ /// 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/Education/Schools/Item/Users/Item/EducationUserItemRequestBuilder.cs b/src/generated/Education/Schools/Item/Users/Item/EducationUserItemRequestBuilder.cs index be773378f1..6959fbd72a 100644 --- a/src/generated/Education/Schools/Item/Users/Item/EducationUserItemRequestBuilder.cs +++ b/src/generated/Education/Schools/Item/Users/Item/EducationUserItemRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Schools.Item.Users.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Education.Schools.Item.Users.Item /// /// Builds and executes requests for operations under \education\schools\{educationSchool-id}\users\{educationUser-id} /// - public class EducationUserItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationUserItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of educationRoot entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.Item.Users.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationUserItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}", 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 EducationUserItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}", rawUrl) @@ -50,3 +53,4 @@ public EducationUserItemRequestBuilder(string rawUrl) : base("{+baseurl}/educati } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs b/src/generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs index d0689af90d..f1c517b360 100644 --- a/src/generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.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.Education.Schools.Item.Users.Item.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Delete a user from a school. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#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.Education.Schools.Item.Users.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Delete a user from a school. @@ -175,8 +178,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{ed /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref?@id={%40id}", PathParameters); @@ -234,11 +237,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, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -254,11 +257,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -270,7 +273,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Delete a user from a school. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -286,7 +290,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// Get the educationUser resources associated with an educationSchool. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +335,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Schools/Item/Users/UsersRequestBuilder.cs b/src/generated/Education/Schools/Item/Users/UsersRequestBuilder.cs index dff05108d0..02b5b8c240 100644 --- a/src/generated/Education/Schools/Item/Users/UsersRequestBuilder.cs +++ b/src/generated/Education/Schools/Item/Users/UsersRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Schools.Item.Users.Count; using ApiSdk.Education.Schools.Item.Users.Item; using ApiSdk.Education.Schools.Item.Users.Ref; 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.Education.Schools.Item.Users /// /// Provides operations to manage the users property of the microsoft.graph.educationSchool entity. /// - public class UsersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.education.schools.item.users.item collection @@ -31,7 +34,7 @@ public class UsersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new EducationUserItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.Item.Users.Item.EducationUserItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -43,7 +46,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.Education.Schools.Item.Users.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -163,7 +166,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.Item.Users.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -175,14 +178,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UsersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools/{educationSchool%2Did}/users{?%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 UsersRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{educationSchool%2Did}/users{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -195,11 +198,11 @@ public UsersRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools/{ /// 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); @@ -210,7 +213,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the educationUser resources associated with an educationSchool. /// - public class UsersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -274,3 +278,4 @@ public class UsersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Schools/SchoolsRequestBuilder.cs b/src/generated/Education/Schools/SchoolsRequestBuilder.cs index b5815e3579..0607a0e702 100644 --- a/src/generated/Education/Schools/SchoolsRequestBuilder.cs +++ b/src/generated/Education/Schools/SchoolsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Schools.Count; using ApiSdk.Education.Schools.Delta; using ApiSdk.Education.Schools.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Education.Schools /// /// Provides operations to manage the schools property of the microsoft.graph.educationRoot entity. /// - public class SchoolsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchoolsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the schools property of the microsoft.graph.educationRoot entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EducationSchoolItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.Item.EducationSchoolItemRequestBuilder(PathParameters); commands.Add(builder.BuildAdministrativeUnitNavCommand()); commands.Add(builder.BuildClassesNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -49,7 +52,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.Education.Schools.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(EducationSchool.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSchool.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -112,7 +115,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Schools.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SchoolsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/schools{?%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 SchoolsRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public SchoolsRequestBuilder(string rawUrl) : base("{+baseurl}/education/schools /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(EducationSchool body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSchool body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationSchool body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSchool body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(EducationSchool body, Action< /// /// Get a list of the educationSchool objects and their properties. /// - public class SchoolsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchoolsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class SchoolsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Count/CountRequestBuilder.cs b/src/generated/Education/Users/Count/CountRequestBuilder.cs index 0009a8a879..9e0e34cc4d 100644 --- a/src/generated/Education/Users/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Users/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.Education.Users.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}/education/users/$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}/education/users/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/$co /// 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/Education/Users/Delta/DeltaGetResponse.cs b/src/generated/Education/Users/Delta/DeltaGetResponse.cs index 2c51d04da1..79396f2fa4 100644 --- a/src/generated/Education/Users/Delta/DeltaGetResponse.cs +++ b/src/generated/Education/Users/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Education.Users.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Education.Users.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Education.Users.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(EducationUser.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.EducationUser.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Delta/DeltaRequestBuilder.cs b/src/generated/Education/Users/Delta/DeltaRequestBuilder.cs index d54b963900..e07562062d 100644 --- a/src/generated/Education/Users/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Education/Users/Delta/DeltaRequestBuilder.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.Education.Users.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get newly created or updated educationUser without having to perform a full read of the entire collection. See Use delta query for details. @@ -118,14 +121,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -138,11 +141,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/del /// 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); @@ -153,7 +156,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get newly created or updated educationUser without having to perform a full read of the entire collection. See Use delta query for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs index c13c8b0c07..ad90e64c12 100644 --- a/src/generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/AssignmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments.Count; using ApiSdk.Education.Users.Item.Assignments.Delta; using ApiSdk.Education.Users.Item.Assignments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Education.Users.Item.Assignments /// /// Provides operations to manage the assignments property of the microsoft.graph.educationUser entity. /// - public class AssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.educationUser entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EducationAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.EducationAssignmentItemRequestBuilder(PathParameters); commands.Add(builder.BuildActivateNavCommand()); commands.Add(builder.BuildCategoriesNavCommand()); commands.Add(builder.BuildDeactivateNavCommand()); @@ -56,7 +59,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.Education.Users.Item.Assignments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(EducationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -124,7 +127,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -237,14 +240,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 AssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments{?%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 AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -257,11 +260,11 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/education/use /// 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); @@ -277,11 +280,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(EducationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -293,7 +296,8 @@ public RequestInformation ToPostRequestInformation(EducationAssignment body, Act /// /// Returns a list of educationAssignment assigned to a educationUser for all classes. Only teachers, students, and applications with application permissions can perform this operation. This method allows a caller to find all the assignments belonging to a student or a teacher in a single call rather than having to request assignments from each class. The assignment list contains what is needed to get the detailed information for the assignment from within the class namespace. Use the methods defined for the assignment for all other operations. /// - public class AssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -357,3 +361,4 @@ public class AssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Count/CountRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Count/CountRequestBuilder.cs index 61c0dba9e3..221f32608e 100644 --- a/src/generated/Education/Users/Item/Assignments/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/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.Education.Users.Item.Assignments.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}/education/users/{educationUser%2Did}/assignments/$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}/education/users/{educationUser%2Did}/assignments/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// 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/Education/Users/Item/Assignments/Delta/DeltaGetResponse.cs b/src/generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.cs index 1f57ceaedf..040d126b7b 100644 --- a/src/generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.cs +++ b/src/generated/Education/Users/Item/Assignments/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Education.Users.Item.Assignments.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Education.Users.Item.Assignments.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Education.Users.Item.Assignments.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.EducationAssignment.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.cs index 09740a8a55..c4973d6ada 100644 --- a/src/generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Delta/DeltaRequestBuilder.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.Education.Users.Item.Assignments.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. @@ -124,14 +127,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -144,11 +147,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of newly-created or updated assignments without reading the whole collection. A teacher or an application running with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs index a6f9bc937f..c994fa2fd7 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Activate/ActivateRequestBuilder.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.Education.Users.Item.Assignments.Item.Activate /// /// Provides operations to call the activate method. /// - public class ActivateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ActivateRequestBuilder : BaseCliRequestBuilder { /// /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. @@ -67,14 +70,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 ActivateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/activate", 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 ActivateRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/activate", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments.Item.Categories.Count; using ApiSdk.Education.Users.Item.Assignments.Item.Categories.Delta; using ApiSdk.Education.Users.Item.Assignments.Item.Categories.Item; using ApiSdk.Education.Users.Item.Assignments.Item.Categories.Ref; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Education.Users.Item.Assignments.Item.Categories /// /// Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity. /// - public class CategoriesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.education.users.item.assignments.item.categories.item collection @@ -32,7 +35,7 @@ public class CategoriesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new EducationCategoryItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Categories.Item.EducationCategoryItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -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.Education.Users.Item.Assignments.Item.Categories.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationCategory.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationCategory.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -118,7 +121,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Categories.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,7 +246,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Categories.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -255,14 +258,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CategoriesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories{?%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 CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -275,11 +278,11 @@ public CategoriesRequestBuilder(string rawUrl) : base("{+baseurl}/education/user /// 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); @@ -295,11 +298,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(EducationCategory body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationCategory body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationCategory body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationCategory body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -311,7 +314,8 @@ public RequestInformation ToPostRequestInformation(EducationCategory body, Actio /// /// When set, enables users to easily find assignments of a given type. Read-only. Nullable. /// - public class CategoriesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CategoriesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -375,3 +379,4 @@ public class CategoriesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs index 1bbed0c1e3..723b56d290 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Categories/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Categories/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.Education.Users.Item.Assignments.Item.Categories.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$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}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs b/src/generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs index cf7311d4ee..b142f5a6f8 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Education.Users.Item.Assignments.Item.Categories.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Education.Users.Item.Assignments.Item.Categories.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Education.Users.Item.Assignments.Item.Categories.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.EducationCategory.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs index 501b4eda10..5afb14e09d 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Categories/Delta/DeltaRequestBuilder.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.Education.Users.Item.Assignments.Item.Categories.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. @@ -130,14 +133,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -150,11 +153,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// 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); @@ -165,7 +168,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of newly created or updated educationCategory objects without having to perform a full read of the collection. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs index f2a9da52aa..5a58f820dc 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Categories/Item/EducationCategoryItemRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments.Item.Categories.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Education.Users.Item.Assignments.Item.Categories.Item /// /// Builds and executes requests for operations under \education\users\{educationUser-id}\assignments\{educationAssignment-id}\categories\{educationCategory-id} /// - public class EducationCategoryItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationCategoryItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of educationRoot entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Categories.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationCategoryItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}", 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 EducationCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}", rawUrl) @@ -50,3 +53,4 @@ public EducationCategoryItemRequestBuilder(string rawUrl) : base("{+baseurl}/edu } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index c58b93330d..05e22513da 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.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.Education.Users.Item.Assignments.Item.Categories.Item.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Delete ref of navigation property categories for education @@ -68,14 +71,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#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.Education.Users.Item.Assignments.Item.Categories.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Delete ref of navigation property categories for education @@ -189,8 +192,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educ /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}", PathParameters); @@ -249,11 +252,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, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -269,11 +272,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -285,7 +288,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Delete ref of navigation property categories for education /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -301,7 +305,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// When set, enables users to easily find assignments of a given type. Read-only. Nullable. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -345,3 +350,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Deactivate/DeactivateRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Deactivate/DeactivateRequestBuilder.cs index 741a62de97..1d6f17db5f 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Deactivate/DeactivateRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Deactivate/DeactivateRequestBuilder.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.Education.Users.Item.Assignments.Item.Deactivate /// /// Provides operations to call the deactivate method. /// - public class DeactivateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeactivateRequestBuilder : BaseCliRequestBuilder { /// /// Mark an assigned educationAssignment as inactive to signal that the assignment has no further action items for teachers and students. This action can only be performed by a teacher on assigned assignments. @@ -67,14 +70,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 DeactivateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/deactivate", 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 DeactivateRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/deactivate", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments.Item.Activate; using ApiSdk.Education.Users.Item.Assignments.Item.Categories; using ApiSdk.Education.Users.Item.Assignments.Item.Deactivate; @@ -11,6 +12,7 @@ using ApiSdk.Education.Users.Item.Assignments.Item.Submissions; 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; @@ -29,7 +31,8 @@ namespace ApiSdk.Education.Users.Item.Assignments.Item /// /// Provides operations to manage the assignments property of the microsoft.graph.educationUser entity. /// - public class EducationAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the activate method. @@ -39,7 +42,7 @@ public Command BuildActivateNavCommand() { var command = new Command("activate"); command.Description = "Provides operations to call the activate method."; - var builder = new ActivateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Activate.ActivateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -56,7 +59,7 @@ public Command BuildCategoriesNavCommand() { var command = new Command("categories"); command.Description = "Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity."; - var builder = new CategoriesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Categories.CategoriesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +88,7 @@ public Command BuildDeactivateNavCommand() { var command = new Command("deactivate"); command.Description = "Provides operations to call the deactivate method."; - var builder = new DeactivateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Deactivate.DeactivateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -201,7 +204,7 @@ public Command BuildGradingCategoryNavCommand() { var command = new Command("grading-category"); command.Description = "Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity."; - var builder = new GradingCategoryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.GradingCategory.GradingCategoryRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -245,8 +248,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(EducationAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -275,7 +278,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.Education.Users.Item.Assignments.Item.Publish.PublishRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -292,7 +295,7 @@ public Command BuildResourcesNavCommand() { var command = new Command("resources"); command.Description = "Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity."; - var builder = new ResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Resources.ResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -319,7 +322,7 @@ public Command BuildRubricNavCommand() { var command = new Command("rubric"); command.Description = "Provides operations to manage the rubric property of the microsoft.graph.educationAssignment entity."; - var builder = new RubricRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Rubric.RubricRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -344,7 +347,7 @@ public Command BuildSetUpFeedbackResourcesFolderNavCommand() { var command = new Command("set-up-feedback-resources-folder"); command.Description = "Provides operations to call the setUpFeedbackResourcesFolder method."; - var builder = new SetUpFeedbackResourcesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.SetUpFeedbackResourcesFolder.SetUpFeedbackResourcesFolderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -361,7 +364,7 @@ public Command BuildSetUpResourcesFolderNavCommand() { var command = new Command("set-up-resources-folder"); command.Description = "Provides operations to call the setUpResourcesFolder method."; - var builder = new SetUpResourcesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.SetUpResourcesFolder.SetUpResourcesFolderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -378,7 +381,7 @@ public Command BuildSubmissionsNavCommand() { var command = new Command("submissions"); command.Description = "Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity."; - var builder = new SubmissionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.SubmissionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -398,14 +401,14 @@ public Command BuildSubmissionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%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 EducationAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -437,11 +440,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); @@ -457,11 +460,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(EducationAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -473,7 +476,8 @@ public RequestInformation ToPatchRequestInformation(EducationAssignment body, Ac /// /// Assignments belonging to the user. /// - public class EducationAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -498,3 +502,4 @@ public class EducationAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs index a181eb991d..ae65406244 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.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.Education.Users.Item.Assignments.Item.GradingCategory /// /// Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity. /// - public class GradingCategoryRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GradingCategoryRequestBuilder : BaseCliRequestBuilder { /// /// When set, enables users to weight assignments differently when computing a class average grade. @@ -80,14 +83,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 GradingCategoryRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/gradingCategory{?%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 GradingCategoryRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/gradingCategory{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public GradingCategoryRequestBuilder(string rawUrl) : base("{+baseurl}/education /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// When set, enables users to weight assignments differently when computing a class average grade. /// - public class GradingCategoryRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GradingCategoryRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class GradingCategoryRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.cs index 160e607380..f719554459 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Publish/PublishRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/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.Education.Users.Item.Assignments.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 an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. @@ -67,14 +70,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}/education/users/{educationUser%2Did}/assignments/{educationAssignment%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}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/publish", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Users.Item.Assignments.Item.Resources.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources/$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}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs index 90a67507b8..76118bb412 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Resources/Item/EducationAssignmentResourceItemRequestBuilder.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.Education.Users.Item.Assignments.Item.Resources.Item /// /// Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity. /// - public class EducationAssignmentResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentResourceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property resources for education @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationAssignmentResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignmentResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationAssignmentResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%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 EducationAssignmentResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources/{educationAssignmentResource%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(EducationAssignmentResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationAssignmentResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(EducationAssignmentResource /// /// Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. /// - public class EducationAssignmentResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationAssignmentResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class EducationAssignmentResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs index aba72ae496..61b94df623 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Resources/ResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments.Item.Resources.Count; using ApiSdk.Education.Users.Item.Assignments.Item.Resources.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.Education.Users.Item.Assignments.Item.Resources /// /// Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity. /// - public class ResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity. @@ -30,7 +33,7 @@ public class ResourcesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationAssignmentResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Resources.Item.EducationAssignmentResourceItemRequestBuilder(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.Education.Users.Item.Assignments.Item.Resources.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationAssignmentResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationAssignmentResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources{?%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 ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/users /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(EducationAssignmentResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationAssignmentResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationAssignmentResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(EducationAssignmentResource b /// /// Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. /// - public class ResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs index 54e1f3aa3c..e35ed2f280 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Rubric/Ref/RefRequestBuilder.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.Education.Users.Item.Assignments.Item.Rubric.Ref /// /// Provides operations to manage the collection of educationRoot entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Delete ref of navigation property rubric for education @@ -125,8 +128,8 @@ public Command BuildPutCommand() 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(ReferenceUpdate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceUpdate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -146,14 +149,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/rubric/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/rubric/$ref", rawUrl) @@ -205,11 +208,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 ToPutRequestInformation(ReferenceUpdate body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.ReferenceUpdate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.ReferenceUpdate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -220,3 +223,4 @@ public RequestInformation ToPutRequestInformation(ReferenceUpdate body, Action +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments.Item.Rubric.Ref; 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.Education.Users.Item.Assignments.Item.Rubric /// /// Provides operations to manage the rubric property of the microsoft.graph.educationAssignment entity. /// - public class RubricRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RubricRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property rubric for education @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationRubric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationRubric.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -186,7 +189,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of educationRoot entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Rubric.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -198,14 +201,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RubricRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/rubric{?%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 RubricRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/rubric{?%24expand,%24select}", rawUrl) @@ -237,11 +240,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); @@ -257,11 +260,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(EducationRubric body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRubric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationRubric body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRubric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -273,7 +276,8 @@ public RequestInformation ToPatchRequestInformation(EducationRubric body, Action /// /// When set, the grading rubric attached to this assignment. /// - public class RubricRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RubricRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -298,3 +302,4 @@ public class RubricRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs index 9efa35dad9..bc30cd4bd1 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/SetUpFeedbackResourcesFolder/SetUpFeedbackResourcesFolderRequestBuilder.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.Education.Users.Item.Assignments.Item.SetUpFeedbackResourcesFol /// /// Provides operations to call the setUpFeedbackResourcesFolder method. /// - public class SetUpFeedbackResourcesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetUpFeedbackResourcesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Create a SharePoint folder to upload feedback files for a given educationSubmission. Only teachers can perform this operation. The teacher determines the resources to upload in the feedback resources folder of a submission. @@ -67,14 +70,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 SetUpFeedbackResourcesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/setUpFeedbackResourcesFolder", 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 SetUpFeedbackResourcesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/setUpFeedbackResourcesFolder", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Education.Users.Item.Assignments.Item.SetUpResourcesFolder /// /// Provides operations to call the setUpResourcesFolder method. /// - public class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Create a SharePoint folder to upload files for a given educationAssignment. Only teachers can perform this operation. The teacher determines the resources to upload in the assignment's folder. @@ -67,14 +70,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 SetUpResourcesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/setUpResourcesFolder", 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 SetUpResourcesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/setUpResourcesFolder", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/$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}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs index 6e3cc2c57a..b0f8551323 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/EducationSubmissionItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Excuse; using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Outcomes; using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Reassign; @@ -10,6 +11,7 @@ using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Unsubmit; 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; @@ -28,7 +30,8 @@ namespace ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item /// /// Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. /// - public class EducationSubmissionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property submissions for education @@ -85,7 +88,7 @@ public Command BuildExcuseNavCommand() { var command = new Command("excuse"); command.Description = "Provides operations to call the excuse method."; - var builder = new ExcuseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Excuse.ExcuseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -166,7 +169,7 @@ public Command BuildOutcomesNavCommand() { var command = new Command("outcomes"); command.Description = "Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity."; - var builder = new OutcomesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Outcomes.OutcomesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -225,8 +228,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(EducationSubmission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -256,7 +259,7 @@ public Command BuildReassignNavCommand() { var command = new Command("reassign"); command.Description = "Provides operations to call the reassign method."; - var builder = new ReassignRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Reassign.ReassignRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -273,7 +276,7 @@ public Command BuildResourcesNavCommand() { var command = new Command("resources"); command.Description = "Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity."; - var builder = new ResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Resources.ResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -300,7 +303,7 @@ public Command BuildReturnNavCommand() { var command = new Command("return"); command.Description = "Provides operations to call the return method."; - var builder = new ReturnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Return.ReturnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -317,7 +320,7 @@ public Command BuildSetUpResourcesFolderNavCommand() { var command = new Command("set-up-resources-folder"); command.Description = "Provides operations to call the setUpResourcesFolder method."; - var builder = new SetUpResourcesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.SetUpResourcesFolder.SetUpResourcesFolderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -334,7 +337,7 @@ public Command BuildSubmitNavCommand() { var command = new Command("submit"); command.Description = "Provides operations to call the submit method."; - var builder = new SubmitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Submit.SubmitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -351,7 +354,7 @@ public Command BuildSubmittedResourcesNavCommand() { var command = new Command("submitted-resources"); command.Description = "Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity."; - var builder = new SubmittedResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.SubmittedResources.SubmittedResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -378,7 +381,7 @@ public Command BuildUnsubmitNavCommand() { var command = new Command("unsubmit"); command.Description = "Provides operations to call the unsubmit method."; - var builder = new UnsubmitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Unsubmit.UnsubmitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -388,14 +391,14 @@ public Command BuildUnsubmitNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationSubmissionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%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 EducationSubmissionItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}{?%24expand,%24select}", rawUrl) @@ -427,11 +430,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); @@ -447,11 +450,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(EducationSubmission body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationSubmission body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -463,7 +466,8 @@ public RequestInformation ToPatchRequestInformation(EducationSubmission body, Ac /// /// Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. /// - public class EducationSubmissionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -488,3 +492,4 @@ public class EducationSubmissionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.cs index a804336cdb..f18ed149e4 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Excuse/ExcuseRequestBuilder.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.Education.Users.Item.Assignments.Item.Submissions.Item.Excuse /// /// Provides operations to call the excuse method. /// - public class ExcuseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExcuseRequestBuilder : BaseCliRequestBuilder { /// /// Excuse a submission. Excused submissions aren't included in average grade calculations. Grading rubrics and feedback are deleted. Only teachers can perform this action. If the Prefer: include-unknown-enum-members request header is provided, the excused submission shows the excused status. Otherwise, the submission status retains the returned status. For more information about how to use this header, see the Examples section. @@ -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 ExcuseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/excuse", 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 ExcuseRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/excuse", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Outcomes /// /// 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 @@ -75,14 +78,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}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$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}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs index d11c0cb9a4..966d1ee8dd 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/Item/EducationOutcomeItemRequestBuilder.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.Education.Users.Item.Assignments.Item.Submissions.Item.Outcomes /// /// Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. /// - public class EducationOutcomeItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationOutcomeItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property outcomes for education @@ -189,8 +192,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(EducationOutcome.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationOutcome.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 EducationOutcomeItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%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 EducationOutcomeItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes/{educationOutcome%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(EducationOutcome body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationOutcome body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(EducationOutcome body, Actio /// /// Get outcomes from education /// - public class EducationOutcomeItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationOutcomeItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class EducationOutcomeItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index dc9107eff9..0325b63aa9 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Outcomes.Count; using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Outcomes.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.Education.Users.Item.Assignments.Item.Submissions.Item.Outcomes /// /// Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. /// - public class OutcomesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OutcomesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the outcomes property of the microsoft.graph.educationSubmission entity. @@ -30,7 +33,7 @@ public class OutcomesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationOutcomeItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Outcomes.Item.EducationOutcomeItemRequestBuilder(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.Education.Users.Item.Assignments.Item.Submissions.Item.Outcomes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(EducationOutcome.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationOutcome.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -231,14 +234,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 OutcomesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%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 OutcomesRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -251,11 +254,11 @@ public OutcomesRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/ /// 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); @@ -271,11 +274,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(EducationOutcome body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationOutcome body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationOutcome body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,7 +290,8 @@ public RequestInformation ToPostRequestInformation(EducationOutcome body, Action /// /// Get outcomes from education /// - public class OutcomesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OutcomesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -351,3 +355,4 @@ public class OutcomesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index a5b11fa916..b98ff2e40a 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.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.Education.Users.Item.Assignments.Item.Submissions.Item.Reassign /// /// Provides operations to call the reassign method. /// - public class ReassignRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReassignRequestBuilder : BaseCliRequestBuilder { /// /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. @@ -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 ReassignRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", 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 ReassignRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Resource /// /// 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 @@ -75,14 +78,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}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$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}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs index 92131d00d0..60db138030 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/Item/EducationSubmissionResourceItemRequestBuilder.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.Education.Users.Item.Assignments.Item.Submissions.Item.Resource /// /// Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity. /// - public class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property resources for education @@ -189,8 +192,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(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 EducationSubmissionResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%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 EducationSubmissionResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources/{educationSubmissionResource%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource /// /// Get resources from education /// - public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index 55d7c43b87..7a388d4cdf 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Resources.Count; using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Resources.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.Education.Users.Item.Assignments.Item.Submissions.Item.Resource /// /// Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity. /// - public class ResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity. @@ -30,7 +33,7 @@ public class ResourcesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationSubmissionResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Resources.Item.EducationSubmissionResourceItemRequestBuilder(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.Education.Users.Item.Assignments.Item.Submissions.Item.Resources.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -231,14 +234,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 ResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%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 ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -251,11 +254,11 @@ public ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/users /// 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); @@ -271,11 +274,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(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,7 +290,8 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b /// /// Get resources from education /// - public class ResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -351,3 +355,4 @@ public class ResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs index 38cb9a358a..fff9661d62 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Return/ReturnRequestBuilder.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.Education.Users.Item.Assignments.Item.Submissions.Item.Return /// /// Provides operations to call the return method. /// - public class ReturnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReturnRequestBuilder : BaseCliRequestBuilder { /// /// Make the grade and feedback associated with this submission available to the student. This action changes the status of the submission from 'submitted' to 'returned' and indicates that feedback is provided or grading is done. This action can only be done by the teacher. @@ -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 ReturnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/return", 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 ReturnRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/return", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Education.Users.Item.Assignments.Item.Submissions.Item.SetUpRes /// /// Provides operations to call the setUpResourcesFolder method. /// - public class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetUpResourcesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Trigger the creation of the SharePoint resource folder where all file-based resources (Word, Excel, and so on) should be uploaded for a given submission. Only teachers and students can perform this operation. Note that files must be located in this folder in order to be added as resources. Only a student in the class can determine what files to upload in a given submission-level resource folder. @@ -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 SetUpResourcesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/setUpResourcesFolder", 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 SetUpResourcesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/setUpResourcesFolder", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Education.Users.Item.Assignments.Item.Submissions.Item.Submit /// /// Provides operations to call the submit method. /// - public class SubmitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmitRequestBuilder : BaseCliRequestBuilder { /// /// Indicate that a student is done with the work and is ready to hand in the assignment. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from working to submitted. During the submit process, all the resources are copied to the submittedResources bucket. The teacher will be looking at the submitted resources list for grading. A teacher can also submit a student's assignment on their behalf. @@ -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 SubmitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submit", 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 SubmitRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submit", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.Submitte /// /// 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 @@ -75,14 +78,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}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$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}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs index c843e3bfe8..4b90443bf8 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/Item/EducationSubmissionResourceItemRequestBuilder.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.Education.Users.Item.Assignments.Item.Submissions.Item.Submitte /// /// Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity. /// - public class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property submittedResources for education @@ -189,8 +192,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(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 EducationSubmissionResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%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 EducationSubmissionResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources/{educationSubmissionResource%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(EducationSubmissionResource /// /// Get submittedResources from education /// - public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSubmissionResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class EducationSubmissionResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index c3abc255e6..a52c6d874d 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.SubmittedResources.Count; using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.SubmittedResources.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.Education.Users.Item.Assignments.Item.Submissions.Item.Submitte /// /// Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity. /// - public class SubmittedResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmittedResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the submittedResources property of the microsoft.graph.educationSubmission entity. @@ -30,7 +33,7 @@ public class SubmittedResourcesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationSubmissionResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.SubmittedResources.Item.EducationSubmissionResourceItemRequestBuilder(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.Education.Users.Item.Assignments.Item.Submissions.Item.SubmittedResources.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(EducationSubmissionResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmissionResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -231,14 +234,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 SubmittedResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%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 SubmittedResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -251,11 +254,11 @@ public SubmittedResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/educat /// 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); @@ -271,11 +274,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(EducationSubmissionResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationSubmissionResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmissionResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,7 +290,8 @@ public RequestInformation ToPostRequestInformation(EducationSubmissionResource b /// /// Get submittedResources from education /// - public class SubmittedResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmittedResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -351,3 +355,4 @@ public class SubmittedResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs index e598e39067..6de55ce601 100644 --- a/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Assignments/Item/Submissions/Item/Unsubmit/UnsubmitRequestBuilder.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.Education.Users.Item.Assignments.Item.Submissions.Item.Unsubmit /// /// Provides operations to call the unsubmit method. /// - public class UnsubmitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnsubmitRequestBuilder : BaseCliRequestBuilder { /// /// Indicate that a student wants to work on the submission of the assignment after it was turned in. Only teachers, students, and applications with application permissions can perform this operation. This method changes the status of the submission from submitted to working. During the submit process, all the resources are copied from submittedResources to workingResources. The teacher will be looking at the working resources list for grading. A teacher can also unsubmit a student's assignment on their behalf. @@ -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 UnsubmitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/unsubmit", 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 UnsubmitRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/unsubmit", rawUrl) @@ -107,3 +110,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Count; using ApiSdk.Education.Users.Item.Assignments.Item.Submissions.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.Education.Users.Item.Assignments.Item.Submissions /// /// Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. /// - public class SubmissionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmissionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EducationSubmissionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.Item.Submissions.Item.EducationSubmissionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildExcuseNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -54,7 +57,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.Education.Users.Item.Assignments.Item.Submissions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -98,8 +101,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(EducationSubmission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationSubmission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -229,14 +232,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 SubmissionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions{?%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 SubmissionsRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -249,11 +252,11 @@ public SubmissionsRequestBuilder(string rawUrl) : base("{+baseurl}/education/use /// 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); @@ -269,11 +272,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(EducationSubmission body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationSubmission body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationSubmission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -285,7 +288,8 @@ public RequestInformation ToPostRequestInformation(EducationSubmission body, Act /// /// Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. /// - public class SubmissionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubmissionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -349,3 +353,4 @@ public class SubmissionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs b/src/generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs index 9e08bc00ae..43182f1ef3 100644 --- a/src/generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Classes/ClassesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Classes.Count; using ApiSdk.Education.Users.Item.Classes.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.Education.Users.Item.Classes /// /// Provides operations to manage the classes property of the microsoft.graph.educationUser entity. /// - public class ClassesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClassesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the classes property of the microsoft.graph.educationUser entity. @@ -30,7 +33,7 @@ public class ClassesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationClassItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Classes.Item.EducationClassItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Education.Users.Item.Classes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 ClassesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/classes{?%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 ClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/classes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public ClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// Classes to which the user belongs. Nullable. /// - public class ClassesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClassesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class ClassesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Classes/Count/CountRequestBuilder.cs b/src/generated/Education/Users/Item/Classes/Count/CountRequestBuilder.cs index 8852bc7c4a..0f0af55f6c 100644 --- a/src/generated/Education/Users/Item/Classes/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Classes/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.Education.Users.Item.Classes.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}/education/users/{educationUser%2Did}/classes/$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}/education/users/{educationUser%2Did}/classes/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// 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/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.cs b/src/generated/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.cs index b1a2b55357..9d4ee31645 100644 --- a/src/generated/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Classes/Item/EducationClassItemRequestBuilder.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.Education.Users.Item.Classes.Item /// /// Provides operations to manage the classes property of the microsoft.graph.educationUser entity. /// - public class EducationClassItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationClassItemRequestBuilder : BaseCliRequestBuilder { /// /// Classes to which the user belongs. Nullable. @@ -80,14 +83,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 EducationClassItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/classes/{educationClass%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 EducationClassItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/classes/{educationClass%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public EducationClassItemRequestBuilder(string rawUrl) : base("{+baseurl}/educat /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Classes to which the user belongs. Nullable. /// - public class EducationClassItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationClassItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class EducationClassItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/EducationUserItemRequestBuilder.cs b/src/generated/Education/Users/Item/EducationUserItemRequestBuilder.cs index 4e6d4c50d7..f346da7067 100644 --- a/src/generated/Education/Users/Item/EducationUserItemRequestBuilder.cs +++ b/src/generated/Education/Users/Item/EducationUserItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Assignments; using ApiSdk.Education.Users.Item.Classes; using ApiSdk.Education.Users.Item.Rubrics; @@ -7,6 +8,7 @@ using ApiSdk.Education.Users.Item.User; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Education.Users.Item /// /// Provides operations to manage the users property of the microsoft.graph.educationRoot entity. /// - public class EducationUserItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationUserItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignments property of the microsoft.graph.educationUser entity. @@ -35,7 +38,7 @@ public Command BuildAssignmentsNavCommand() { var command = new Command("assignments"); command.Description = "Provides operations to manage the assignments property of the microsoft.graph.educationUser entity."; - var builder = new AssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Assignments.AssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -63,7 +66,7 @@ public Command BuildClassesNavCommand() { var command = new Command("classes"); command.Description = "Provides operations to manage the classes property of the microsoft.graph.educationUser entity."; - var builder = new ClassesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Classes.ClassesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -201,8 +204,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(EducationUser.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationUser.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -230,7 +233,7 @@ public Command BuildRubricsNavCommand() { var command = new Command("rubrics"); command.Description = "Provides operations to manage the rubrics property of the microsoft.graph.educationUser entity."; - var builder = new RubricsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Rubrics.RubricsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -257,7 +260,7 @@ public Command BuildSchoolsNavCommand() { var command = new Command("schools"); command.Description = "Provides operations to manage the schools property of the microsoft.graph.educationUser entity."; - var builder = new SchoolsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Schools.SchoolsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -283,7 +286,7 @@ public Command BuildTaughtClassesNavCommand() { var command = new Command("taught-classes"); command.Description = "Provides operations to manage the taughtClasses property of the microsoft.graph.educationUser entity."; - var builder = new TaughtClassesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.TaughtClasses.TaughtClassesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -309,7 +312,7 @@ public Command BuildUserNavCommand() { var command = new Command("user"); command.Description = "Provides operations to manage the user property of the microsoft.graph.educationUser entity."; - var builder = new UserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.User.UserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -326,14 +329,14 @@ public Command BuildUserNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationUserItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%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 EducationUserItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}{?%24expand,%24select}", rawUrl) @@ -365,11 +368,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); @@ -385,11 +388,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(EducationUser body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationUser body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationUser body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationUser body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -401,7 +404,8 @@ public RequestInformation ToPatchRequestInformation(EducationUser body, Action /// Read the properties and relationships of an educationUser object. /// - public class EducationUserItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationUserItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -426,3 +430,4 @@ public class EducationUserItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Rubrics/Count/CountRequestBuilder.cs b/src/generated/Education/Users/Item/Rubrics/Count/CountRequestBuilder.cs index 04aa28d006..1b84747189 100644 --- a/src/generated/Education/Users/Item/Rubrics/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Rubrics/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.Education.Users.Item.Rubrics.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}/education/users/{educationUser%2Did}/rubrics/$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}/education/users/{educationUser%2Did}/rubrics/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// 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/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.cs b/src/generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.cs index a1cc909869..47d75a6c50 100644 --- a/src/generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Rubrics/Item/EducationRubricItemRequestBuilder.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.Education.Users.Item.Rubrics.Item /// /// Provides operations to manage the rubrics property of the microsoft.graph.educationUser entity. /// - public class EducationRubricItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationRubricItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property rubrics for education @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(EducationRubric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationRubric.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EducationRubricItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/rubrics/{educationRubric%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 EducationRubricItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/rubrics/{educationRubric%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(EducationRubric body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRubric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(EducationRubric body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EducationRubric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(EducationRubric body, Action /// /// When set, the grading rubric attached to the assignment. /// - public class EducationRubricItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationRubricItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class EducationRubricItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs b/src/generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs index 7efad877b0..8eed09c010 100644 --- a/src/generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Rubrics/RubricsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Rubrics.Count; using ApiSdk.Education.Users.Item.Rubrics.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.Education.Users.Item.Rubrics /// /// Provides operations to manage the rubrics property of the microsoft.graph.educationUser entity. /// - public class RubricsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RubricsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the rubrics property of the microsoft.graph.educationUser entity. @@ -30,7 +33,7 @@ public class RubricsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationRubricItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Rubrics.Item.EducationRubricItemRequestBuilder(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.Education.Users.Item.Rubrics.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(EducationRubric.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationRubric.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 RubricsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/rubrics{?%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 RubricsRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/rubrics{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public RubricsRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ /// 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); @@ -247,11 +250,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(EducationRubric body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationRubric body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationRubric body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationRubric body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(EducationRubric body, Action< /// /// When set, the grading rubric attached to the assignment. /// - public class RubricsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RubricsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class RubricsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Schools/Count/CountRequestBuilder.cs b/src/generated/Education/Users/Item/Schools/Count/CountRequestBuilder.cs index d3ce670d08..039c1bb695 100644 --- a/src/generated/Education/Users/Item/Schools/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Schools/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.Education.Users.Item.Schools.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}/education/users/{educationUser%2Did}/schools/$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}/education/users/{educationUser%2Did}/schools/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// 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/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs b/src/generated/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs index 778d3c85e1..f2c4bbff6a 100644 --- a/src/generated/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Schools/Item/EducationSchoolItemRequestBuilder.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.Education.Users.Item.Schools.Item /// /// Provides operations to manage the schools property of the microsoft.graph.educationUser entity. /// - public class EducationSchoolItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSchoolItemRequestBuilder : BaseCliRequestBuilder { /// /// Schools to which the user belongs. Nullable. @@ -80,14 +83,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 EducationSchoolItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/schools/{educationSchool%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 EducationSchoolItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/schools/{educationSchool%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public EducationSchoolItemRequestBuilder(string rawUrl) : base("{+baseurl}/educa /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Schools to which the user belongs. Nullable. /// - public class EducationSchoolItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationSchoolItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class EducationSchoolItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs b/src/generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs index 448103807a..06d2f5ebfb 100644 --- a/src/generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs +++ b/src/generated/Education/Users/Item/Schools/SchoolsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.Schools.Count; using ApiSdk.Education.Users.Item.Schools.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.Education.Users.Item.Schools /// /// Provides operations to manage the schools property of the microsoft.graph.educationUser entity. /// - public class SchoolsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchoolsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the schools property of the microsoft.graph.educationUser entity. @@ -30,7 +33,7 @@ public class SchoolsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationSchoolItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.Schools.Item.EducationSchoolItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Education.Users.Item.Schools.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 SchoolsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/schools{?%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 SchoolsRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/schools{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public SchoolsRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// Schools to which the user belongs. Nullable. /// - public class SchoolsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchoolsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class SchoolsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/TaughtClasses/Count/CountRequestBuilder.cs b/src/generated/Education/Users/Item/TaughtClasses/Count/CountRequestBuilder.cs index 4b763dfb11..d193b3e64c 100644 --- a/src/generated/Education/Users/Item/TaughtClasses/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Users/Item/TaughtClasses/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.Education.Users.Item.TaughtClasses.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}/education/users/{educationUser%2Did}/taughtClasses/$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}/education/users/{educationUser%2Did}/taughtClasses/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// 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/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.cs b/src/generated/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.cs index 32855795c4..a40f502ede 100644 --- a/src/generated/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.cs +++ b/src/generated/Education/Users/Item/TaughtClasses/Item/EducationClassItemRequestBuilder.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.Education.Users.Item.TaughtClasses.Item /// /// Provides operations to manage the taughtClasses property of the microsoft.graph.educationUser entity. /// - public class EducationClassItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationClassItemRequestBuilder : BaseCliRequestBuilder { /// /// Classes for which the user is a teacher. @@ -80,14 +83,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 EducationClassItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/taughtClasses/{educationClass%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 EducationClassItemRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/taughtClasses/{educationClass%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public EducationClassItemRequestBuilder(string rawUrl) : base("{+baseurl}/educat /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Classes for which the user is a teacher. /// - public class EducationClassItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EducationClassItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class EducationClassItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs b/src/generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs index c8fd473519..8b528da816 100644 --- a/src/generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs +++ b/src/generated/Education/Users/Item/TaughtClasses/TaughtClassesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.TaughtClasses.Count; using ApiSdk.Education.Users.Item.TaughtClasses.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.Education.Users.Item.TaughtClasses /// /// Provides operations to manage the taughtClasses property of the microsoft.graph.educationUser entity. /// - public class TaughtClassesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaughtClassesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the taughtClasses property of the microsoft.graph.educationUser entity. @@ -30,7 +33,7 @@ public class TaughtClassesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new EducationClassItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.TaughtClasses.Item.EducationClassItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Education.Users.Item.TaughtClasses.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -155,14 +158,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 TaughtClassesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/taughtClasses{?%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 TaughtClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/taughtClasses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -175,11 +178,11 @@ public TaughtClassesRequestBuilder(string rawUrl) : base("{+baseurl}/education/u /// 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); @@ -190,7 +193,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the educationClass resources owned by an educationUser. /// - public class TaughtClassesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaughtClassesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -254,3 +258,4 @@ public class TaughtClassesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.cs index b908a4b295..0d6c5a02ad 100644 --- a/src/generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.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.Education.Users.Item.User.MailboxSettings /// /// Builds and executes requests for operations under \education\users\{educationUser-id}\user\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -103,8 +106,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,14 +128,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/user/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/user/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -145,11 +148,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/education /// 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); @@ -165,11 +168,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -181,7 +184,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,3 +210,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index b3c8d21353..4d88a8a11b 100644 --- a/src/generated/Education/Users/Item/User/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Education/Users/Item/User/ServiceProvisioningErrors/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.Education.Users.Item.User.ServiceProvisioningErrors.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}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors/$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}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{ed /// 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/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 181d3fc690..4cdf02d361 100644 --- a/src/generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Education/Users/Item/User/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.User.ServiceProvisioningErrors.Count; 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.Education.Users.Item.User.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \education\users\{educationUser-id}\user\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Education.Users.Item.User.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var educationUserIdOption = new Option("--education-user-id", description: "The unique identifier of educationUser") { }; educationUserIdOption.IsRequired = true; @@ -142,31 +145,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/user/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -175,9 +178,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -241,3 +245,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/Item/User/UserRequestBuilder.cs b/src/generated/Education/Users/Item/User/UserRequestBuilder.cs index 3190c399e2..8008885f78 100644 --- a/src/generated/Education/Users/Item/User/UserRequestBuilder.cs +++ b/src/generated/Education/Users/Item/User/UserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Item.User.MailboxSettings; using ApiSdk.Education.Users.Item.User.ServiceProvisioningErrors; 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.Education.Users.Item.User /// /// Provides operations to manage the user property of the microsoft.graph.educationUser entity. /// - public class UserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserRequestBuilder : BaseCliRequestBuilder { /// /// The directory user that corresponds to this user. @@ -83,7 +86,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.User.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -101,7 +104,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.User.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -117,14 +120,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users/{educationUser%2Did}/user{?%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 UserRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{educationUser%2Did}/user{?%24expand,%24select}", rawUrl) @@ -137,11 +140,11 @@ public UserRequestBuilder(string rawUrl) : base("{+baseurl}/education/users/{edu /// 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); @@ -152,7 +155,8 @@ public RequestInformation ToGetRequestInformation(Action /// The directory user that corresponds to this user. /// - public class UserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -177,3 +181,4 @@ public class UserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Education/Users/UsersRequestBuilder.cs b/src/generated/Education/Users/UsersRequestBuilder.cs index 4a8f114e38..06953a18cf 100644 --- a/src/generated/Education/Users/UsersRequestBuilder.cs +++ b/src/generated/Education/Users/UsersRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Education.Users.Count; using ApiSdk.Education.Users.Delta; using ApiSdk.Education.Users.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Education.Users /// /// Provides operations to manage the users property of the microsoft.graph.educationRoot entity. /// - public class UsersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the users property of the microsoft.graph.educationRoot entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EducationUserItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Item.EducationUserItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignmentsNavCommand()); commands.Add(builder.BuildClassesNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -52,7 +55,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to count the resources in the collection."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -87,8 +90,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(EducationUser.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EducationUser.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -115,7 +118,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.Users.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -222,14 +225,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 UsersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/education/users{?%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 UsersRequestBuilder(string rawUrl) : base("{+baseurl}/education/users{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public UsersRequestBuilder(string rawUrl) : base("{+baseurl}/education/users{?%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); @@ -262,11 +265,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(EducationUser body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationUser body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(EducationUser body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EducationUser body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(EducationUser body, Action /// Get a list of the educationUser objects and their properties. /// - public class UsersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class UsersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/Communities/CommunitiesRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/CommunitiesRequestBuilder.cs new file mode 100644 index 0000000000..a70155a9ec --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/CommunitiesRequestBuilder.cs @@ -0,0 +1,328 @@ +// +#pragma warning disable CS0618 +using ApiSdk.EmployeeExperience.Communities.Count; +using ApiSdk.EmployeeExperience.Communities.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; +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.EmployeeExperience.Communities +{ + /// + /// Provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommunitiesRequestBuilder : BaseCliRequestBuilder + { + /// + /// Provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. + /// + /// A Tuple<List<Command>, List<Command>> + public Tuple, List> BuildCommand() + { + var executables = new List(); + var commands = new List(); + var builder = new global::ApiSdk.EmployeeExperience.Communities.Item.CommunityItemRequestBuilder(PathParameters); + executables.Add(builder.BuildDeleteCommand()); + executables.Add(builder.BuildGetCommand()); + commands.Add(builder.BuildGroupNavCommand()); + commands.Add(builder.BuildOwnersNavCommand()); + commands.Add(builder.BuildOwnersWithUserPrincipalNameRbCommand()); + executables.Add(builder.BuildPatchCommand()); + return new(executables, commands); + } + /// + /// Provides operations to count the resources in the collection. + /// + /// A + public Command BuildCountNavCommand() + { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new global::ApiSdk.EmployeeExperience.Communities.Count.CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Create a new community in Viva Engage. + /// Find more info here + /// + /// A + public Command BuildCreateCommand() + { + var command = new Command("create"); + command.Description = "Create a new community in Viva Engage.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/employeeexperience-post-communities?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.Community.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(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; + } + /// + /// Get a list of the Viva Engage community objects and their properties. + /// Find more info here + /// + /// A + public Command BuildListCommand() + { + var command = new Command("list"); + command.Description = "Get a list of the Viva Engage community objects and their properties.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/employeeexperience-list-communities?view=graph-rest-1.0"; + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public CommunitiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CommunitiesRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of the Viva Engage community objects and their properties. + /// + /// 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; + } + /// + /// Create a new community in Viva Engage. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Models.Community body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Community body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get a list of the Viva Engage community objects and their properties. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommunitiesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/Communities/Count/CountRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Count/CountRequestBuilder.cs new file mode 100644 index 0000000000..f529ae1dcd --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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; +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.EmployeeExperience.Communities.Count +{ + /// + /// Provides operations to count the resources in the collection. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get the number of the resource + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get the number of the resource"; + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + command.SetHandler(async (invocationContext) => { + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + }); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + var formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// 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", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Get the number of the resource + /// + [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 +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/Communities/Item/CommunityItemRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Item/CommunityItemRequestBuilder.cs new file mode 100644 index 0000000000..a5ff17a694 --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Item/CommunityItemRequestBuilder.cs @@ -0,0 +1,339 @@ +// +#pragma warning disable CS0618 +using ApiSdk.EmployeeExperience.Communities.Item.Group; +using ApiSdk.EmployeeExperience.Communities.Item.Owners; +using ApiSdk.EmployeeExperience.Communities.Item.OwnersWithUserPrincipalName; +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.EmployeeExperience.Communities.Item +{ + /// + /// Provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommunityItemRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups. + /// Find more info here + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/community-delete?view=graph-rest-1.0"; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + 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; + } + /// + /// Read the properties and relationships of a community object. + /// Find more info here + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Read the properties and relationships of a community object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/community-get?view=graph-rest-1.0"; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + 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 communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + 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; + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + 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; + } + /// + /// Provides operations to manage the group property of the microsoft.graph.community entity. + /// + /// A + public Command BuildGroupNavCommand() + { + var command = new Command("group"); + command.Description = "Provides operations to manage the group property of the microsoft.graph.community entity."; + var builder = new global::ApiSdk.EmployeeExperience.Communities.Item.Group.GroupRequestBuilder(PathParameters); + var execCommands = new List(); + var nonExecCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildServiceProvisioningErrorsNavCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the owners property of the microsoft.graph.community entity. + /// + /// A + public Command BuildOwnersNavCommand() + { + var command = new Command("owners"); + command.Description = "Provides operations to manage the owners property of the microsoft.graph.community entity."; + var builder = new global::ApiSdk.EmployeeExperience.Communities.Item.Owners.OwnersRequestBuilder(PathParameters); + var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildCountNavCommand()); + execCommands.Add(builder.BuildListCommand()); + var cmds = builder.BuildCommand(); + execCommands.AddRange(cmds.Item1); + nonExecCommands.AddRange(cmds.Item2); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal)) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the owners property of the microsoft.graph.community entity. + /// + /// A + public Command BuildOwnersWithUserPrincipalNameRbCommand() + { + var command = new Command("owners-with-user-principal-name"); + command.Description = "Provides operations to manage the owners property of the microsoft.graph.community entity."; + var builder = new global::ApiSdk.EmployeeExperience.Communities.Item.OwnersWithUserPrincipalName.OwnersWithUserPrincipalNameRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Update the properties of an existing Viva Engage community. + /// Find more info here + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the properties of an existing Viva Engage community.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/community-update?view=graph-rest-1.0"; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + 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 communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + 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.Community.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + 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 CommunityItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/{community%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CommunityItemRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/{community%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups. + /// + /// 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; + } + /// + /// Read the properties and relationships of a community object. + /// + /// 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 the properties of an existing Viva Engage community. + /// + /// 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.Community body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Community 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; + } + /// + /// Read the properties and relationships of a community object. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CommunityItemRequestBuilderGetQueryParameters + { + /// 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/EmployeeExperience/Communities/Item/Group/GroupRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Item/Group/GroupRequestBuilder.cs new file mode 100644 index 0000000000..ba163e59ff --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Item/Group/GroupRequestBuilder.cs @@ -0,0 +1,165 @@ +// +#pragma warning disable CS0618 +using ApiSdk.EmployeeExperience.Communities.Item.Group.ServiceProvisioningErrors; +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.EmployeeExperience.Communities.Item.Group +{ + /// + /// Provides operations to manage the group property of the microsoft.graph.community entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupRequestBuilder : BaseCliRequestBuilder + { + /// + /// The Microsoft 365 group that manages the membership of this community. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The Microsoft 365 group that manages the membership of this community."; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + 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 communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + 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; + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + 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; + } + /// + /// The serviceProvisioningErrors property + /// + /// A + public Command BuildServiceProvisioningErrorsNavCommand() + { + var command = new Command("service-provisioning-errors"); + command.Description = "The serviceProvisioningErrors property"; + var builder = new global::ApiSdk.EmployeeExperience.Communities.Item.Group.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); + var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildCountNavCommand()); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public GroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/group{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public GroupRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/group{?%24expand,%24select}", rawUrl) + { + } + /// + /// The Microsoft 365 group that manages the membership of this community. + /// + /// 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; + } + /// + /// The Microsoft 365 group that manages the membership of this community. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupRequestBuilderGetQueryParameters + { + /// 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/EmployeeExperience/Communities/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 0000000000..881b8036be --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Item/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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; +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.EmployeeExperience.Communities.Item.Group.ServiceProvisioningErrors.Count +{ + /// + /// Provides operations to count the resources in the collection. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get the number of the resource + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get the number of the resource"; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + command.SetHandler(async (invocationContext) => { + var communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + var formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/group/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/group/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// 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", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Get the number of the resource + /// + [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 +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/Communities/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 0000000000..e69486d467 --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Item/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,248 @@ +// +#pragma warning disable CS0618 +using ApiSdk.EmployeeExperience.Communities.Item.Group.ServiceProvisioningErrors.Count; +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.EmployeeExperience.Communities.Item.Group.ServiceProvisioningErrors +{ + /// + /// Builds and executes requests for operations under \employeeExperience\communities\{community-id}\group\serviceProvisioningErrors + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Provides operations to count the resources in the collection. + /// + /// A + public Command BuildCountNavCommand() + { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new global::ApiSdk.EmployeeExperience.Communities.Item.Group.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance)."; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/group/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/group/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// 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; + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/Communities/Item/Owners/Count/CountRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Item/Owners/Count/CountRequestBuilder.cs new file mode 100644 index 0000000000..107f457f45 --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Item/Owners/Count/CountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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; +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.EmployeeExperience.Communities.Item.Owners.Count +{ + /// + /// Provides operations to count the resources in the collection. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get the number of the resource + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get the number of the resource"; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + command.SetHandler(async (invocationContext) => { + var communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + var formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// 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", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Get the number of the resource + /// + [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 +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/Communities/Item/Owners/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Item/Owners/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 0000000000..06b92024bc --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Item/Owners/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,225 @@ +// +#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.EmployeeExperience.Communities.Item.Owners.Item.MailboxSettings +{ + /// + /// Builds and executes requests for operations under \employeeExperience\communities\{community-id}\owners\{user-id}\mailboxSettings + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select."; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + var userIdOption = new Option("--user-id", description: "The unique identifier of user") { + }; + userIdOption.IsRequired = true; + command.AddOption(userIdOption); + 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 communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + var userId = invocationContext.ParseResult.GetValueForOption(userIdOption); + 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; + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + if (userId is not null) requestInfo.PathParameters.Add("user%2Did", userId); + 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 property mailboxSettings value. + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update property mailboxSettings value."; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + var userIdOption = new Option("--user-id", description: "The unique identifier of user") { + }; + userIdOption.IsRequired = true; + command.AddOption(userIdOption); + 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 communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + var userId = invocationContext.ParseResult.GetValueForOption(userIdOption); + 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.MailboxSettings.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + if (userId is not null) requestInfo.PathParameters.Add("user%2Did", userId); + 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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/mailboxSettings{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/mailboxSettings{?%24expand,%24select}", rawUrl) + { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + /// + /// 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 property mailboxSettings value. + /// + /// 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.MailboxSettings body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings 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; + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters + { + /// 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/EmployeeExperience/Communities/Item/Owners/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Item/Owners/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 0000000000..1afad1438c --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Item/Owners/Item/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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; +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.EmployeeExperience.Communities.Item.Owners.Item.ServiceProvisioningErrors.Count +{ + /// + /// Provides operations to count the resources in the collection. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get the number of the resource + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get the number of the resource"; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + var userIdOption = new Option("--user-id", description: "The unique identifier of user") { + }; + userIdOption.IsRequired = true; + command.AddOption(userIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + command.SetHandler(async (invocationContext) => { + var communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + var userId = invocationContext.ParseResult.GetValueForOption(userIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + if (userId is not null) requestInfo.PathParameters.Add("user%2Did", userId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + var formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// 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", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Get the number of the resource + /// + [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 +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/Communities/Item/Owners/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Item/Owners/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 0000000000..b50e2095ec --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Item/Owners/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,254 @@ +// +#pragma warning disable CS0618 +using ApiSdk.EmployeeExperience.Communities.Item.Owners.Item.ServiceProvisioningErrors.Count; +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.EmployeeExperience.Communities.Item.Owners.Item.ServiceProvisioningErrors +{ + /// + /// Builds and executes requests for operations under \employeeExperience\communities\{community-id}\owners\{user-id}\serviceProvisioningErrors + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Provides operations to count the resources in the collection. + /// + /// A + public Command BuildCountNavCommand() + { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new global::ApiSdk.EmployeeExperience.Communities.Item.Owners.Item.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + var userIdOption = new Option("--user-id", description: "The unique identifier of user") { + }; + userIdOption.IsRequired = true; + command.AddOption(userIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + var userId = invocationContext.ParseResult.GetValueForOption(userIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + if (userId is not null) requestInfo.PathParameters.Add("user%2Did", userId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// 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; + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/Communities/Item/Owners/Item/UserItemRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Item/Owners/Item/UserItemRequestBuilder.cs new file mode 100644 index 0000000000..c0e19ba3b2 --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Item/Owners/Item/UserItemRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using ApiSdk.EmployeeExperience.Communities.Item.Owners.Item.MailboxSettings; +using ApiSdk.EmployeeExperience.Communities.Item.Owners.Item.ServiceProvisioningErrors; +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.EmployeeExperience.Communities.Item.Owners.Item +{ + /// + /// Provides operations to manage the owners property of the microsoft.graph.community entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserItemRequestBuilder : BaseCliRequestBuilder + { + /// + /// The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner."; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + var userIdOption = new Option("--user-id", description: "The unique identifier of user") { + }; + userIdOption.IsRequired = true; + command.AddOption(userIdOption); + 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 communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + var userId = invocationContext.ParseResult.GetValueForOption(userIdOption); + 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; + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + if (userId is not null) requestInfo.PathParameters.Add("user%2Did", userId); + 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; + } + /// + /// The mailboxSettings property + /// + /// A + public Command BuildMailboxSettingsNavCommand() + { + var command = new Command("mailbox-settings"); + command.Description = "The mailboxSettings property"; + var builder = new global::ApiSdk.EmployeeExperience.Communities.Item.Owners.Item.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + execCommands.Add(builder.BuildPatchCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// The serviceProvisioningErrors property + /// + /// A + public Command BuildServiceProvisioningErrorsNavCommand() + { + var command = new Command("service-provisioning-errors"); + command.Description = "The serviceProvisioningErrors property"; + var builder = new global::ApiSdk.EmployeeExperience.Communities.Item.Owners.Item.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); + var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildCountNavCommand()); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + foreach (var cmd in nonExecCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UserItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UserItemRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + /// + /// 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; + } + /// + /// The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserItemRequestBuilderGetQueryParameters + { + /// 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/EmployeeExperience/Communities/Item/Owners/OwnersRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Item/Owners/OwnersRequestBuilder.cs new file mode 100644 index 0000000000..f92ee7dfda --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Item/Owners/OwnersRequestBuilder.cs @@ -0,0 +1,263 @@ +// +#pragma warning disable CS0618 +using ApiSdk.EmployeeExperience.Communities.Item.Owners.Count; +using ApiSdk.EmployeeExperience.Communities.Item.Owners.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; +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.EmployeeExperience.Communities.Item.Owners +{ + /// + /// Provides operations to manage the owners property of the microsoft.graph.community entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OwnersRequestBuilder : BaseCliRequestBuilder + { + /// + /// Provides operations to manage the owners property of the microsoft.graph.community entity. + /// + /// A Tuple<List<Command>, List<Command>> + public Tuple, List> BuildCommand() + { + var executables = new List(); + var commands = new List(); + var builder = new global::ApiSdk.EmployeeExperience.Communities.Item.Owners.Item.UserItemRequestBuilder(PathParameters); + executables.Add(builder.BuildGetCommand()); + commands.Add(builder.BuildMailboxSettingsNavCommand()); + commands.Add(builder.BuildServiceProvisioningErrorsNavCommand()); + return new(executables, commands); + } + /// + /// Provides operations to count the resources in the collection. + /// + /// A + public Command BuildCountNavCommand() + { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new global::ApiSdk.EmployeeExperience.Communities.Item.Owners.Count.CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + /// + /// A + public Command BuildListCommand() + { + var command = new Command("list"); + command.Description = "The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner."; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public OwnersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OwnersRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + /// + /// 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; + } + /// + /// The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OwnersRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/Communities/Item/OwnersWithUserPrincipalName/OwnersWithUserPrincipalNameRequestBuilder.cs b/src/generated/EmployeeExperience/Communities/Item/OwnersWithUserPrincipalName/OwnersWithUserPrincipalNameRequestBuilder.cs new file mode 100644 index 0000000000..85e123ae16 --- /dev/null +++ b/src/generated/EmployeeExperience/Communities/Item/OwnersWithUserPrincipalName/OwnersWithUserPrincipalNameRequestBuilder.cs @@ -0,0 +1,147 @@ +// +#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.EmployeeExperience.Communities.Item.OwnersWithUserPrincipalName +{ + /// + /// Provides operations to manage the owners property of the microsoft.graph.community entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OwnersWithUserPrincipalNameRequestBuilder : BaseCliRequestBuilder + { + /// + /// The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner."; + var communityIdOption = new Option("--community-id", description: "The unique identifier of community") { + }; + communityIdOption.IsRequired = true; + command.AddOption(communityIdOption); + var userPrincipalNameOption = new Option("--user-principal-name", description: "Alternate key of user") { + }; + userPrincipalNameOption.IsRequired = true; + command.AddOption(userPrincipalNameOption); + 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 communityId = invocationContext.ParseResult.GetValueForOption(communityIdOption); + var userPrincipalName = invocationContext.ParseResult.GetValueForOption(userPrincipalNameOption); + 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; + }); + if (communityId is not null) requestInfo.PathParameters.Add("community%2Did", communityId); + if (userPrincipalName is not null) requestInfo.PathParameters.Add("userPrincipalName", userPrincipalName); + 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 OwnersWithUserPrincipalNameRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners(userPrincipalName='{userPrincipalName}'){?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public OwnersWithUserPrincipalNameRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/communities/{community%2Did}/owners(userPrincipalName='{userPrincipalName}'){?%24expand,%24select}", rawUrl) + { + } + /// + /// The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + /// + /// 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; + } + /// + /// The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OwnersWithUserPrincipalNameRequestBuilderGetQueryParameters + { + /// 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/EmployeeExperience/EmployeeExperienceRequestBuilder.cs b/src/generated/EmployeeExperience/EmployeeExperienceRequestBuilder.cs index ed09c107a6..df317cd3ec 100644 --- a/src/generated/EmployeeExperience/EmployeeExperienceRequestBuilder.cs +++ b/src/generated/EmployeeExperience/EmployeeExperienceRequestBuilder.cs @@ -1,9 +1,13 @@ // +#pragma warning disable CS0618 +using ApiSdk.EmployeeExperience.Communities; +using ApiSdk.EmployeeExperience.EngagementAsyncOperations; using ApiSdk.EmployeeExperience.LearningCourseActivities; using ApiSdk.EmployeeExperience.LearningCourseActivitiesWithExternalcourseActivityId; using ApiSdk.EmployeeExperience.LearningProviders; 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,8 +26,63 @@ namespace ApiSdk.EmployeeExperience /// /// Provides operations to manage the employeeExperience singleton. /// - public class EmployeeExperienceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EmployeeExperienceRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. + /// + /// A + public Command BuildCommunitiesNavCommand() + { + var command = new Command("communities"); + command.Description = "Provides operations to manage the communities property of the microsoft.graph.employeeExperience entity."; + var builder = new global::ApiSdk.EmployeeExperience.Communities.CommunitiesRequestBuilder(PathParameters); + var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildCountNavCommand()); + execCommands.Add(builder.BuildCreateCommand()); + execCommands.Add(builder.BuildListCommand()); + var cmds = builder.BuildCommand(); + execCommands.AddRange(cmds.Item1); + nonExecCommands.AddRange(cmds.Item2); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal)) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. + /// + /// A + public Command BuildEngagementAsyncOperationsNavCommand() + { + var command = new Command("engagement-async-operations"); + command.Description = "Provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity."; + var builder = new global::ApiSdk.EmployeeExperience.EngagementAsyncOperations.EngagementAsyncOperationsRequestBuilder(PathParameters); + var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildCountNavCommand()); + execCommands.Add(builder.BuildCreateCommand()); + execCommands.Add(builder.BuildListCommand()); + var cmds = builder.BuildCommand(); + execCommands.AddRange(cmds.Item1); + nonExecCommands.AddRange(cmds.Item2); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal)) + { + command.AddCommand(cmd); + } + return command; + } /// /// Get employeeExperience /// @@ -71,7 +130,7 @@ public Command BuildLearningCourseActivitiesNavCommand() { var command = new Command("learning-course-activities"); command.Description = "Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperience entity."; - var builder = new LearningCourseActivitiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.LearningCourseActivities.LearningCourseActivitiesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -98,7 +157,7 @@ public Command BuildLearningCourseActivitiesWithExternalcourseActivityIdRbComman { var command = new Command("learning-course-activities-with-externalcourse-activity-id"); command.Description = "Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperience entity."; - var builder = new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.LearningCourseActivitiesWithExternalcourseActivityId.LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -117,7 +176,7 @@ public Command BuildLearningProvidersNavCommand() { var command = new Command("learning-providers"); command.Description = "Provides operations to manage the learningProviders property of the microsoft.graph.employeeExperience entity."; - var builder = new LearningProvidersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.LearningProviders.LearningProvidersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -144,7 +203,7 @@ public Command BuildPatchCommand() { var command = new Command("patch"); command.Description = "Update employeeExperience"; - var bodyOption = new Option("--body", description: "The request body") { + var bodyOption = new Option("--body", description: "Represents a container that exposes navigation properties for employee experience resources.") { }; bodyOption.IsRequired = true; command.AddOption(bodyOption); @@ -161,8 +220,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.EmployeeExperience.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.EmployeeExperience.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -182,14 +241,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 EmployeeExperienceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience{?%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 EmployeeExperienceRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience{?%24select}", rawUrl) @@ -202,11 +261,11 @@ public EmployeeExperienceRequestBuilder(string rawUrl) : base("{+baseurl}/employ /// 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); @@ -218,15 +277,15 @@ public RequestInformation ToGetRequestInformation(Action /// A - /// The request body + /// Represents a container that exposes navigation properties for employee experience resources. /// 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(ApiSdk.Models.EmployeeExperience body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EmployeeExperience body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.EmployeeExperience body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EmployeeExperience body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +297,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.EmployeeExperi /// /// Get employeeExperience /// - public class EmployeeExperienceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EmployeeExperienceRequestBuilderGetQueryParameters { /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -253,3 +313,4 @@ public class EmployeeExperienceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/EngagementAsyncOperations/Count/CountRequestBuilder.cs b/src/generated/EmployeeExperience/EngagementAsyncOperations/Count/CountRequestBuilder.cs new file mode 100644 index 0000000000..abd083d5df --- /dev/null +++ b/src/generated/EmployeeExperience/EngagementAsyncOperations/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#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; +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.EmployeeExperience.EngagementAsyncOperations.Count +{ + /// + /// Provides operations to count the resources in the collection. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get the number of the resource + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get the number of the resource"; + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + command.SetHandler(async (invocationContext) => { + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + }); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + var formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/engagementAsyncOperations/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/engagementAsyncOperations/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// 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", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Get the number of the resource + /// + [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 +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/EngagementAsyncOperations/EngagementAsyncOperationsRequestBuilder.cs b/src/generated/EmployeeExperience/EngagementAsyncOperations/EngagementAsyncOperationsRequestBuilder.cs new file mode 100644 index 0000000000..8d4e30b695 --- /dev/null +++ b/src/generated/EmployeeExperience/EngagementAsyncOperations/EngagementAsyncOperationsRequestBuilder.cs @@ -0,0 +1,322 @@ +// +#pragma warning disable CS0618 +using ApiSdk.EmployeeExperience.EngagementAsyncOperations.Count; +using ApiSdk.EmployeeExperience.EngagementAsyncOperations.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; +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.EmployeeExperience.EngagementAsyncOperations +{ + /// + /// Provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EngagementAsyncOperationsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. + /// + /// A Tuple<List<Command>, List<Command>> + public Tuple, List> BuildCommand() + { + var executables = new List(); + var builder = new global::ApiSdk.EmployeeExperience.EngagementAsyncOperations.Item.EngagementAsyncOperationItemRequestBuilder(PathParameters); + executables.Add(builder.BuildDeleteCommand()); + executables.Add(builder.BuildGetCommand()); + executables.Add(builder.BuildPatchCommand()); + return new(executables, new(0)); + } + /// + /// Provides operations to count the resources in the collection. + /// + /// A + public Command BuildCountNavCommand() + { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new global::ApiSdk.EmployeeExperience.EngagementAsyncOperations.Count.CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Create new navigation property to engagementAsyncOperations for employeeExperience + /// + /// A + public Command BuildCreateCommand() + { + var command = new Command("create"); + command.Description = "Create new navigation property to engagementAsyncOperations for employeeExperience"; + 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.EngagementAsyncOperation.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(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; + } + /// + /// Get an engagementAsyncOperation to track a long-running operation request. + /// + /// A + public Command BuildListCommand() + { + var command = new Command("list"); + command.Description = "Get an engagementAsyncOperation to track a long-running operation request."; + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public EngagementAsyncOperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/engagementAsyncOperations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EngagementAsyncOperationsRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/engagementAsyncOperations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get an engagementAsyncOperation to track a long-running operation request. + /// + /// 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; + } + /// + /// Create new navigation property to engagementAsyncOperations for employeeExperience + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Models.EngagementAsyncOperation body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.EngagementAsyncOperation body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get an engagementAsyncOperation to track a long-running operation request. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EngagementAsyncOperationsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/EngagementAsyncOperations/Item/EngagementAsyncOperationItemRequestBuilder.cs b/src/generated/EmployeeExperience/EngagementAsyncOperations/Item/EngagementAsyncOperationItemRequestBuilder.cs new file mode 100644 index 0000000000..9b366ee854 --- /dev/null +++ b/src/generated/EmployeeExperience/EngagementAsyncOperations/Item/EngagementAsyncOperationItemRequestBuilder.cs @@ -0,0 +1,268 @@ +// +#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.EmployeeExperience.EngagementAsyncOperations.Item +{ + /// + /// Provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EngagementAsyncOperationItemRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property engagementAsyncOperations for employeeExperience + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property engagementAsyncOperations for employeeExperience"; + var engagementAsyncOperationIdOption = new Option("--engagement-async-operation-id", description: "The unique identifier of engagementAsyncOperation") { + }; + engagementAsyncOperationIdOption.IsRequired = true; + command.AddOption(engagementAsyncOperationIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var engagementAsyncOperationId = invocationContext.ParseResult.GetValueForOption(engagementAsyncOperationIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (engagementAsyncOperationId is not null) requestInfo.PathParameters.Add("engagementAsyncOperation%2Did", engagementAsyncOperationId); + 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 an engagementAsyncOperation to track a long-running operation request. + /// Find more info here + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get an engagementAsyncOperation to track a long-running operation request.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/engagementasyncoperation-get?view=graph-rest-1.0"; + var engagementAsyncOperationIdOption = new Option("--engagement-async-operation-id", description: "The unique identifier of engagementAsyncOperation") { + }; + engagementAsyncOperationIdOption.IsRequired = true; + command.AddOption(engagementAsyncOperationIdOption); + 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 engagementAsyncOperationId = invocationContext.ParseResult.GetValueForOption(engagementAsyncOperationIdOption); + 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; + }); + if (engagementAsyncOperationId is not null) requestInfo.PathParameters.Add("engagementAsyncOperation%2Did", engagementAsyncOperationId); + 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 the navigation property engagementAsyncOperations in employeeExperience + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property engagementAsyncOperations in employeeExperience"; + var engagementAsyncOperationIdOption = new Option("--engagement-async-operation-id", description: "The unique identifier of engagementAsyncOperation") { + }; + engagementAsyncOperationIdOption.IsRequired = true; + command.AddOption(engagementAsyncOperationIdOption); + 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 engagementAsyncOperationId = invocationContext.ParseResult.GetValueForOption(engagementAsyncOperationIdOption); + 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.EngagementAsyncOperation.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (engagementAsyncOperationId is not null) requestInfo.PathParameters.Add("engagementAsyncOperation%2Did", engagementAsyncOperationId); + 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 EngagementAsyncOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/engagementAsyncOperations/{engagementAsyncOperation%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EngagementAsyncOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/engagementAsyncOperations/{engagementAsyncOperation%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property engagementAsyncOperations for employeeExperience + /// + /// 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 an engagementAsyncOperation to track a long-running operation request. + /// + /// 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 the navigation property engagementAsyncOperations in employeeExperience + /// + /// 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.EngagementAsyncOperation body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.EngagementAsyncOperation 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 an engagementAsyncOperation to track a long-running operation request. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EngagementAsyncOperationItemRequestBuilderGetQueryParameters + { + /// 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/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs b/src/generated/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs index 0a2bc4c5f7..959516d376 100644 --- a/src/generated/EmployeeExperience/LearningCourseActivities/Count/CountRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningCourseActivities/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.EmployeeExperience.LearningCourseActivities.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}/employeeExperience/learningCourseActivities/$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}/employeeExperience/learningCourseActivities/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/ /// 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/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs b/src/generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs index afb1d886b2..af9585fc14 100644 --- a/src/generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.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.EmployeeExperience.LearningCourseActivities.Item /// /// Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperience entity. /// - public class LearningCourseActivityItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivityItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property learningCourseActivities for employeeExperience @@ -139,8 +142,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(LearningCourseActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LearningCourseActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 LearningCourseActivityItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/learningCourseActivities/{learningCourseActivity%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 LearningCourseActivityItemRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/learningCourseActivities/{learningCourseActivity%2Did}{?%24expand,%24select}", rawUrl) @@ -200,11 +203,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); @@ -220,11 +223,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(LearningCourseActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(LearningCourseActivity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -236,7 +239,8 @@ public RequestInformation ToPatchRequestInformation(LearningCourseActivity body, /// /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. /// - public class LearningCourseActivityItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivityItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -261,3 +265,4 @@ public class LearningCourseActivityItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs b/src/generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs index 5d88c46360..7f58c92fb7 100644 --- a/src/generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.EmployeeExperience.LearningCourseActivities.Count; using ApiSdk.EmployeeExperience.LearningCourseActivities.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.EmployeeExperience.LearningCourseActivities /// /// Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperience entity. /// - public class LearningCourseActivitiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivitiesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperience entity. @@ -30,7 +33,7 @@ public class LearningCourseActivitiesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new LearningCourseActivityItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.LearningCourseActivities.Item.LearningCourseActivityItemRequestBuilder(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.EmployeeExperience.LearningCourseActivities.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(LearningCourseActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LearningCourseActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 LearningCourseActivitiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/learningCourseActivities{?%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 LearningCourseActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/learningCourseActivities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public LearningCourseActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(LearningCourseActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LearningCourseActivity body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(LearningCourseActivity body, /// /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. /// - public class LearningCourseActivitiesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivitiesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class LearningCourseActivitiesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/LearningCourseActivitiesWithExternalcourseActivityId/LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.cs b/src/generated/EmployeeExperience/LearningCourseActivitiesWithExternalcourseActivityId/LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.cs index 4b1f5e5c1f..b3d5804df5 100644 --- a/src/generated/EmployeeExperience/LearningCourseActivitiesWithExternalcourseActivityId/LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningCourseActivitiesWithExternalcourseActivityId/LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.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.EmployeeExperience.LearningCourseActivitiesWithExternalcourseAc /// /// Provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperience entity. /// - public class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property learningCourseActivities for employeeExperience @@ -139,8 +142,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(LearningCourseActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LearningCourseActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/learningCourseActivities(externalcourseActivityId='{externalcourseActivityId}'){?%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 LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/learningCourseActivities(externalcourseActivityId='{externalcourseActivityId}'){?%24expand,%24select}", rawUrl) @@ -200,11 +203,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); @@ -220,11 +223,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(LearningCourseActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(LearningCourseActivity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -236,7 +239,8 @@ public RequestInformation ToPatchRequestInformation(LearningCourseActivity body, /// /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. /// - public class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -261,3 +265,4 @@ public class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderG } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/LearningProviders/Count/CountRequestBuilder.cs b/src/generated/EmployeeExperience/LearningProviders/Count/CountRequestBuilder.cs index 685b905e69..3c5f9f1f88 100644 --- a/src/generated/EmployeeExperience/LearningProviders/Count/CountRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningProviders/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.EmployeeExperience.LearningProviders.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}/employeeExperience/learningProviders/$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}/employeeExperience/learningProviders/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/ /// 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/EmployeeExperience/LearningProviders/Item/LearningContents/Count/CountRequestBuilder.cs b/src/generated/EmployeeExperience/LearningProviders/Item/LearningContents/Count/CountRequestBuilder.cs index bc7234eb20..41ca45dc51 100644 --- a/src/generated/EmployeeExperience/LearningProviders/Item/LearningContents/Count/CountRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningProviders/Item/LearningContents/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.EmployeeExperience.LearningProviders.Item.LearningContents.Coun /// /// 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}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents/$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}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/ /// 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/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.cs b/src/generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.cs index fa2b0c67a1..e5e022779a 100644 --- a/src/generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningProviders/Item/LearningContents/Item/LearningContentItemRequestBuilder.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.EmployeeExperience.LearningProviders.Item.LearningContents.Item /// /// Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity. /// - public class LearningContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete the specified learningContent resource that represents the metadata of the specified provider's ingested content. @@ -157,8 +160,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(LearningContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LearningContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -180,14 +183,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 LearningContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents/{learningContent%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 LearningContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents/{learningContent%2Did}{?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(LearningContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(LearningContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(LearningContent body, Action /// /// Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. /// - public class LearningContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class LearningContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs b/src/generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs index 4c6930e02c..5c3b7cf093 100644 --- a/src/generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningProviders/Item/LearningContents/LearningContentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.EmployeeExperience.LearningProviders.Item.LearningContents.Count; using ApiSdk.EmployeeExperience.LearningProviders.Item.LearningContents.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.EmployeeExperience.LearningProviders.Item.LearningContents /// /// Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity. /// - public class LearningContentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningContentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity. @@ -30,7 +33,7 @@ public class LearningContentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new LearningContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.LearningProviders.Item.LearningContents.Item.LearningContentItemRequestBuilder(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.EmployeeExperience.LearningProviders.Item.LearningContents.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(LearningContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LearningContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -208,14 +211,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LearningContentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents{?%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 LearningContentsRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -228,11 +231,11 @@ public LearningContentsRequestBuilder(string rawUrl) : base("{+baseurl}/employee /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(LearningContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.LearningContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LearningContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.LearningContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPostRequestInformation(LearningContent body, Action< /// /// Get a list of the learningContent resources and their properties. This list represents the metadata of the specified provider's content in Viva Learning. /// - public class LearningContentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningContentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -328,3 +332,4 @@ public class LearningContentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/LearningProviders/Item/LearningContentsWithExternalId/LearningContentsWithExternalIdRequestBuilder.cs b/src/generated/EmployeeExperience/LearningProviders/Item/LearningContentsWithExternalId/LearningContentsWithExternalIdRequestBuilder.cs index d3042d5f95..dbc3581c18 100644 --- a/src/generated/EmployeeExperience/LearningProviders/Item/LearningContentsWithExternalId/LearningContentsWithExternalIdRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningProviders/Item/LearningContentsWithExternalId/LearningContentsWithExternalIdRequestBuilder.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.EmployeeExperience.LearningProviders.Item.LearningContentsWithE /// /// Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity. /// - public class LearningContentsWithExternalIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningContentsWithExternalIdRequestBuilder : BaseCliRequestBuilder { /// /// Delete the specified learningContent resource that represents the metadata of the specified provider's ingested content. @@ -157,8 +160,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(LearningContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LearningContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -180,14 +183,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 LearningContentsWithExternalIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents(externalId='{externalId}'){?%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 LearningContentsWithExternalIdRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningContents(externalId='{externalId}'){?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(LearningContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(LearningContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(LearningContent body, Action /// /// Get the specified learningContent resource which represents the metadata of the specified provider's ingested content. /// - public class LearningContentsWithExternalIdRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningContentsWithExternalIdRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class LearningContentsWithExternalIdRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Count/CountRequestBuilder.cs b/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Count/CountRequestBuilder.cs index 7ef5fdf0cd..e594771f64 100644 --- a/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Count/CountRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/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.EmployeeExperience.LearningProviders.Item.LearningCourseActivit /// /// 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}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities/$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}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/ /// 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/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs b/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs index f5362e6828..f715b2f4b4 100644 --- a/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/Item/LearningCourseActivityItemRequestBuilder.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.EmployeeExperience.LearningProviders.Item.LearningCourseActivit /// /// Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity. /// - public class LearningCourseActivityItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivityItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete a learningCourseActivity object using the course activity ID of either an assignment or a self-initiated activity. @@ -157,8 +160,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(LearningCourseActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LearningCourseActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -180,14 +183,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 LearningCourseActivityItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities/{learningCourseActivity%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 LearningCourseActivityItemRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities/{learningCourseActivity%2Did}{?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(LearningCourseActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(LearningCourseActivity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(LearningCourseActivity body, /// /// Get learningCourseActivities from employeeExperience /// - public class LearningCourseActivityItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivityItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class LearningCourseActivityItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs b/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs index fc77b39f3c..75a4a1dbd2 100644 --- a/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivities/LearningCourseActivitiesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.EmployeeExperience.LearningProviders.Item.LearningCourseActivities.Count; using ApiSdk.EmployeeExperience.LearningProviders.Item.LearningCourseActivities.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.EmployeeExperience.LearningProviders.Item.LearningCourseActivit /// /// Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity. /// - public class LearningCourseActivitiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivitiesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity. @@ -30,7 +33,7 @@ public class LearningCourseActivitiesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new LearningCourseActivityItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.LearningProviders.Item.LearningCourseActivities.Item.LearningCourseActivityItemRequestBuilder(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.EmployeeExperience.LearningProviders.Item.LearningCourseActivities.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(LearningCourseActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LearningCourseActivity.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 LearningCourseActivitiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities{?%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 LearningCourseActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public LearningCourseActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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(LearningCourseActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LearningCourseActivity body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(LearningCourseActivity body, /// /// Get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. /// - public class LearningCourseActivitiesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivitiesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class LearningCourseActivitiesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivitiesWithExternalcourseActivityId/LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.cs b/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivitiesWithExternalcourseActivityId/LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.cs index 58388a55c0..6cf089afd1 100644 --- a/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivitiesWithExternalcourseActivityId/LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningProviders/Item/LearningCourseActivitiesWithExternalcourseActivityId/LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder.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.EmployeeExperience.LearningProviders.Item.LearningCourseActivit /// /// Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity. /// - public class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder : BaseCliRequestBuilder { /// /// Delete a learningCourseActivity object using the course activity ID of either an assignment or a self-initiated activity. @@ -157,8 +160,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(LearningCourseActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LearningCourseActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -180,14 +183,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 LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities(externalcourseActivityId='{externalcourseActivityId}'){?%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 LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}/learningCourseActivities(externalcourseActivityId='{externalcourseActivityId}'){?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(LearningCourseActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(LearningCourseActivity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningCourseActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(LearningCourseActivity body, /// /// Get learningCourseActivities from employeeExperience /// - public class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderG } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs b/src/generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs index 609eb90ba0..da7ab009e6 100644 --- a/src/generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningProviders/Item/LearningProviderItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.EmployeeExperience.LearningProviders.Item.LearningContents; using ApiSdk.EmployeeExperience.LearningProviders.Item.LearningContentsWithExternalId; using ApiSdk.EmployeeExperience.LearningProviders.Item.LearningCourseActivities; using ApiSdk.EmployeeExperience.LearningProviders.Item.LearningCourseActivitiesWithExternalcourseActivityId; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.EmployeeExperience.LearningProviders.Item /// /// Provides operations to manage the learningProviders property of the microsoft.graph.employeeExperience entity. /// - public class LearningProviderItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningProviderItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete a learningProvider resource and remove its registration in Viva Learning for a tenant. @@ -122,7 +125,7 @@ public Command BuildLearningContentsNavCommand() { var command = new Command("learning-contents"); command.Description = "Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity."; - var builder = new LearningContentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.LearningProviders.Item.LearningContents.LearningContentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -149,7 +152,7 @@ public Command BuildLearningContentsWithExternalIdRbCommand() { var command = new Command("learning-contents-with-external-id"); command.Description = "Provides operations to manage the learningContents property of the microsoft.graph.learningProvider entity."; - var builder = new LearningContentsWithExternalIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.LearningProviders.Item.LearningContentsWithExternalId.LearningContentsWithExternalIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -168,7 +171,7 @@ public Command BuildLearningCourseActivitiesNavCommand() { var command = new Command("learning-course-activities"); command.Description = "Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity."; - var builder = new LearningCourseActivitiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.LearningProviders.Item.LearningCourseActivities.LearningCourseActivitiesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -195,7 +198,7 @@ public Command BuildLearningCourseActivitiesWithExternalcourseActivityIdRbComman { var command = new Command("learning-course-activities-with-externalcourse-activity-id"); command.Description = "Provides operations to manage the learningCourseActivities property of the microsoft.graph.learningProvider entity."; - var builder = new LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.LearningProviders.Item.LearningCourseActivitiesWithExternalcourseActivityId.LearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -237,8 +240,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(LearningProvider.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LearningProvider.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 LearningProviderItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%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 LearningProviderItemRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/learningProviders/{learningProvider%2Did}{?%24expand,%24select}", rawUrl) @@ -298,11 +301,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); @@ -318,11 +321,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(LearningProvider body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningProvider body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(LearningProvider body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.LearningProvider body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -334,7 +337,8 @@ public RequestInformation ToPatchRequestInformation(LearningProvider body, Actio /// /// Read the properties and relationships of a learningProvider object. /// - public class LearningProviderItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningProviderItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -359,3 +363,4 @@ public class LearningProviderItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs b/src/generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs index ded363d490..c33cc591a6 100644 --- a/src/generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs +++ b/src/generated/EmployeeExperience/LearningProviders/LearningProvidersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.EmployeeExperience.LearningProviders.Count; using ApiSdk.EmployeeExperience.LearningProviders.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.EmployeeExperience.LearningProviders /// /// Provides operations to manage the learningProviders property of the microsoft.graph.employeeExperience entity. /// - public class LearningProvidersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningProvidersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the learningProviders property of the microsoft.graph.employeeExperience entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new LearningProviderItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.LearningProviders.Item.LearningProviderItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildLearningContentsNavCommand()); @@ -49,7 +52,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.EmployeeExperience.LearningProviders.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(LearningProvider.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.LearningProvider.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -202,14 +205,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 LearningProvidersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/employeeExperience/learningProviders{?%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 LearningProvidersRequestBuilder(string rawUrl) : base("{+baseurl}/employeeExperience/learningProviders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -222,11 +225,11 @@ public LearningProvidersRequestBuilder(string rawUrl) : base("{+baseurl}/employe /// 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); @@ -242,11 +245,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(LearningProvider body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.LearningProvider body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(LearningProvider body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.LearningProvider body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -258,7 +261,8 @@ public RequestInformation ToPostRequestInformation(LearningProvider body, Action /// /// Get a list of the learningProvider resources registered in Viva Learning for a tenant. /// - public class LearningProvidersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LearningProvidersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -322,3 +326,4 @@ public class LearningProvidersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/ConnectionsRequestBuilder.cs b/src/generated/External/Connections/ConnectionsRequestBuilder.cs index ddc2f4c749..d76f7769a8 100644 --- a/src/generated/External/Connections/ConnectionsRequestBuilder.cs +++ b/src/generated/External/Connections/ConnectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.External.Connections.Count; using ApiSdk.External.Connections.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections /// /// Provides operations to manage the connections property of the microsoft.graph.externalConnectors.external entity. /// - public class ConnectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConnectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the connections property of the microsoft.graph.externalConnectors.external entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ExternalConnectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.ExternalConnectionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGroupsNavCommand()); @@ -49,7 +52,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.External.Connections.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(ExternalConnection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalConnection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -202,14 +205,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 ConnectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections{?%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 ConnectionsRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -222,11 +225,11 @@ public ConnectionsRequestBuilder(string rawUrl) : base("{+baseurl}/external/conn /// 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); @@ -242,11 +245,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(ExternalConnection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalConnection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExternalConnection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalConnection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -258,7 +261,8 @@ public RequestInformation ToPostRequestInformation(ExternalConnection body, Acti /// /// Get a list of the externalConnection objects and their properties. /// - public class ConnectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConnectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -322,3 +326,4 @@ public class ConnectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Count/CountRequestBuilder.cs b/src/generated/External/Connections/Count/CountRequestBuilder.cs index fee6b8c4a6..7cb3662c37 100644 --- a/src/generated/External/Connections/Count/CountRequestBuilder.cs +++ b/src/generated/External/Connections/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.External.Connections.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}/external/connections/$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}/external/connections/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/external/connection /// 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/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs b/src/generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs index 236eb8fa0e..a718272a02 100644 --- a/src/generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs +++ b/src/generated/External/Connections/Item/ExternalConnectionItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.External.Connections.Item.Groups; using ApiSdk.External.Connections.Item.Items; using ApiSdk.External.Connections.Item.Operations; using ApiSdk.External.Connections.Item.Schema; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -23,7 +25,8 @@ namespace ApiSdk.External.Connections.Item /// /// Provides operations to manage the connections property of the microsoft.graph.externalConnectors.external entity. /// - public class ExternalConnectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalConnectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes an externalConnection object. @@ -122,7 +125,7 @@ public Command BuildGroupsNavCommand() { var command = new Command("groups"); command.Description = "Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity."; - var builder = new GroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Groups.GroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -149,7 +152,7 @@ public Command BuildItemsNavCommand() { var command = new Command("items"); command.Description = "Provides operations to manage the items property of the microsoft.graph.externalConnectors.externalConnection entity."; - var builder = new ItemsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Items.ItemsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -176,7 +179,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.externalConnectors.externalConnection entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -226,8 +229,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(ExternalConnection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalConnection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -255,7 +258,7 @@ public Command BuildSchemaNavCommand() { var command = new Command("schema"); command.Description = "Provides operations to manage the schema property of the microsoft.graph.externalConnectors.externalConnection entity."; - var builder = new SchemaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Schema.SchemaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -266,14 +269,14 @@ public Command BuildSchemaNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExternalConnectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%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 ExternalConnectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}{?%24expand,%24select}", rawUrl) @@ -305,11 +308,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); @@ -325,11 +328,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(ExternalConnection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalConnection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ExternalConnection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalConnection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -341,7 +344,8 @@ public RequestInformation ToPatchRequestInformation(ExternalConnection body, Act /// /// Read the properties and relationships of an externalConnection object. /// - public class ExternalConnectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalConnectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -366,3 +370,4 @@ public class ExternalConnectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Groups/Count/CountRequestBuilder.cs b/src/generated/External/Connections/Item/Groups/Count/CountRequestBuilder.cs index 37cbb0af39..1ab2195e83 100644 --- a/src/generated/External/Connections/Item/Groups/Count/CountRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Groups/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.External.Connections.Item.Groups.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}/external/connections/{externalConnection%2Did}/groups/$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}/external/connections/{externalConnection%2Did}/groups/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/external/connection /// 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/External/Connections/Item/Groups/GroupsRequestBuilder.cs b/src/generated/External/Connections/Item/Groups/GroupsRequestBuilder.cs index 9b7a5b022a..ed64a2e056 100644 --- a/src/generated/External/Connections/Item/Groups/GroupsRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Groups/GroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.External.Connections.Item.Groups.Count; using ApiSdk.External.Connections.Item.Groups.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections.Item.Groups /// /// Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class GroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ExternalGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Groups.Item.ExternalGroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildMembersNavCommand()); @@ -46,7 +49,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.External.Connections.Item.Groups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(ExternalGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 GroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/groups{?%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 GroupsRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/groups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public GroupsRequestBuilder(string rawUrl) : base("{+baseurl}/external/connectio /// 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); @@ -250,11 +253,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(ExternalGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExternalGroup body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(ExternalGroup body, Action /// Get an externalGroup object. /// - public class GroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class GroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs b/src/generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs index 1e82b37448..09c9346c70 100644 --- a/src/generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Groups/Item/ExternalGroupItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.External.Connections.Item.Groups.Item.Members; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections.Item.Groups.Item /// /// Provides operations to manage the groups property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class ExternalGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete an externalGroup object. @@ -131,7 +134,7 @@ public Command BuildMembersNavCommand() { var command = new Command("members"); command.Description = "Provides operations to manage the members property of the microsoft.graph.externalConnectors.externalGroup entity."; - var builder = new MembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Groups.Item.Members.MembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -186,8 +189,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(ExternalGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -209,14 +212,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 ExternalGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%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 ExternalGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}{?%24expand,%24select}", rawUrl) @@ -248,11 +251,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); @@ -268,11 +271,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(ExternalGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ExternalGroup body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -284,7 +287,8 @@ public RequestInformation ToPatchRequestInformation(ExternalGroup body, Action /// Get an externalGroup object. /// - public class ExternalGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalGroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -309,3 +313,4 @@ public class ExternalGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs b/src/generated/External/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs index add28009cf..1cf2cb5920 100644 --- a/src/generated/External/Connections/Item/Groups/Item/Members/Count/CountRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Groups/Item/Members/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.External.Connections.Item.Groups.Item.Members.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/$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}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/external/connection /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs b/src/generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs index 8d0a86f813..51cd68897d 100644 --- a/src/generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Groups/Item/Members/Item/IdentityItemRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -19,16 +21,18 @@ namespace ApiSdk.External.Connections.Item.Groups.Item.Members.Item /// /// Provides operations to manage the members property of the microsoft.graph.externalConnectors.externalGroup entity. /// - public class IdentityItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IdentityItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete navigation property members for external + /// Delete an identity resource to remove the corresponding member from an externalGroup. + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete navigation property members for external"; + command.Description = "Delete an identity resource to remove the corresponding member from an externalGroup.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/externalconnectors-externalgroupmember-delete?view=graph-rest-1.0"; var externalConnectionIdOption = new Option("--external-connection-id", description: "The unique identifier of externalConnection") { }; externalConnectionIdOption.IsRequired = true; @@ -172,8 +176,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.ExternalConnectors.Identity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.Identity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,21 +200,21 @@ 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 IdentityItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/{identity%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 IdentityItemRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members/{identity%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Delete navigation property members for external + /// Delete an identity resource to remove the corresponding member from an externalGroup. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -235,11 +239,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +259,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.ExternalConnectors.Identity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.Identity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ExternalConnectors.Identity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.Identity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +275,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ExternalConnec /// /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// - public class IdentityItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IdentityItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +301,4 @@ public class IdentityItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs b/src/generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs index 544b6a1c28..589a6ede2b 100644 --- a/src/generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Groups/Item/Members/MembersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.External.Connections.Item.Groups.Item.Members.Count; using ApiSdk.External.Connections.Item.Groups.Item.Members.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections.Item.Groups.Item.Members /// /// Provides operations to manage the members property of the microsoft.graph.externalConnectors.externalGroup entity. /// - public class MembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the members property of the microsoft.graph.externalConnectors.externalGroup entity. @@ -30,7 +33,7 @@ public class MembersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new IdentityItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Groups.Item.Members.Item.IdentityItemRequestBuilder(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.External.Connections.Item.Groups.Item.Members.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -54,13 +57,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Create new navigation property to members for external + /// Create an identity resource for a new member in an externalGroup. + /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create new navigation property to members for external"; + command.Description = "Create an identity resource for a new member in an externalGroup.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/externalconnectors-externalgroup-post-members?view=graph-rest-1.0"; var externalConnectionIdOption = new Option("--external-connection-id", description: "The unique identifier of externalConnection") { }; externalConnectionIdOption.IsRequired = true; @@ -88,8 +92,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.ExternalConnectors.Identity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.Identity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +223,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 MembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members{?%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 MembersRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/groups/{externalGroup%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +243,11 @@ public MembersRequestBuilder(string rawUrl) : base("{+baseurl}/external/connecti /// 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); @@ -252,18 +256,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to members for external + /// Create an identity resource for a new member in an externalGroup. /// /// 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 ToPostRequestInformation(ApiSdk.Models.ExternalConnectors.Identity body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.Identity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.ExternalConnectors.Identity body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.Identity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +279,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.ExternalConnect /// /// A member added to an externalGroup. You can add Microsoft Entra users, Microsoft Entra groups, or an externalGroup as members. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +344,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Items/Count/CountRequestBuilder.cs b/src/generated/External/Connections/Item/Items/Count/CountRequestBuilder.cs index 69ca7704fa..93a2e155bc 100644 --- a/src/generated/External/Connections/Item/Items/Count/CountRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Items/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.External.Connections.Item.Items.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}/external/connections/{externalConnection%2Did}/items/$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}/external/connections/{externalConnection%2Did}/items/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/external/connection /// 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/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs b/src/generated/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs index b1a373e7f7..6240d9d583 100644 --- a/src/generated/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Items/Item/Activities/ActivitiesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.External.Connections.Item.Items.Item.Activities.Count; using ApiSdk.External.Connections.Item.Items.Item.Activities.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections.Item.Items.Item.Activities /// /// Provides operations to manage the activities property of the microsoft.graph.externalConnectors.externalItem entity. /// - public class ActivitiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ActivitiesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the activities property of the microsoft.graph.externalConnectors.externalItem entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ExternalActivityItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Items.Item.Activities.Item.ExternalActivityItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.External.Connections.Item.Items.Item.Activities.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(ExternalActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 ActivitiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities{?%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 ActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public ActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/external/conne /// 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); @@ -261,11 +264,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(ExternalActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExternalActivity body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ExternalActivity body, Action /// /// Returns a list of activities performed on the item. Write-only. /// - public class ActivitiesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ActivitiesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class ActivitiesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs b/src/generated/External/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs index 96b268abdf..eaa83b09cb 100644 --- a/src/generated/External/Connections/Item/Items/Item/Activities/Count/CountRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Items/Item/Activities/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.External.Connections.Item.Items.Item.Activities.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/$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}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/external/connection /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs b/src/generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs index d8e2e5828b..20e8930a64 100644 --- a/src/generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Items/Item/Activities/Item/ExternalActivityItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.External.Connections.Item.Items.Item.Activities.Item.PerformedBy; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections.Item.Items.Item.Activities.Item /// /// Provides operations to manage the activities property of the microsoft.graph.externalConnectors.externalItem entity. /// - public class ExternalActivityItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalActivityItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property activities for external @@ -173,8 +176,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(ExternalActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildPerformedByNavCommand() { var command = new Command("performed-by"); command.Description = "Provides operations to manage the performedBy property of the microsoft.graph.externalConnectors.externalActivity entity."; - var builder = new PerformedByRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Items.Item.Activities.Item.PerformedBy.PerformedByRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -214,14 +217,14 @@ public Command BuildPerformedByNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExternalActivityItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%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 ExternalActivityItemRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(ExternalActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ExternalActivity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(ExternalActivity body, Actio /// /// Returns a list of activities performed on the item. Write-only. /// - public class ExternalActivityItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalActivityItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class ExternalActivityItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs b/src/generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs index f85440dc63..338aa179d1 100644 --- a/src/generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Items/Item/Activities/Item/PerformedBy/PerformedByRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections.Item.Items.Item.Activities.Item.PerformedB /// /// Provides operations to manage the performedBy property of the microsoft.graph.externalConnectors.externalActivity entity. /// - public class PerformedByRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PerformedByRequestBuilder : BaseCliRequestBuilder { /// /// Represents an identity used to identify who is responsible for the activity. @@ -86,14 +89,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 PerformedByRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}/performedBy{?%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 PerformedByRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/activities/{externalActivity%2Did}/performedBy{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public PerformedByRequestBuilder(string rawUrl) : base("{+baseurl}/external/conn /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// Represents an identity used to identify who is responsible for the activity. /// - public class PerformedByRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PerformedByRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class PerformedByRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs b/src/generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs index 28d3e10d3b..c2e338b38a 100644 --- a/src/generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Items/Item/ExternalItemItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.External.Connections.Item.Items.Item.Activities; using ApiSdk.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections.Item.Items.Item /// /// Provides operations to manage the items property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class ExternalItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the activities property of the microsoft.graph.externalConnectors.externalItem entity. @@ -31,7 +34,7 @@ public Command BuildActivitiesNavCommand() { var command = new Command("activities"); command.Description = "Provides operations to manage the activities property of the microsoft.graph.externalConnectors.externalItem entity."; - var builder = new ActivitiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Items.Item.Activities.ActivitiesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -159,7 +162,7 @@ public Command BuildMicrosoftGraphExternalConnectorsAddActivitiesNavCommand() { var command = new Command("microsoft-graph-external-connectors-add-activities"); command.Description = "Provides operations to call the addActivities method."; - var builder = new MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -204,8 +207,8 @@ public Command BuildPutCommand() 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(ExternalItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -227,14 +230,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExternalItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%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 ExternalItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}{?%24expand,%24select}", rawUrl) @@ -266,11 +269,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); @@ -286,11 +289,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 ToPutRequestInformation(ExternalItem body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ExternalItem body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -302,7 +305,8 @@ public RequestInformation ToPutRequestInformation(ExternalItem body, Action /// Read the properties and relationships of an externalItem object. /// - public class ExternalItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -327,3 +331,4 @@ public class ExternalItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs b/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs index ffb470cc6b..01e8ce4590 100644 --- a/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs +++ b/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostRequestBody.cs @@ -1,28 +1,30 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddActivitiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddActivitiesPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The activities property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Activities { get; set; } + public List? Activities { get; set; } #nullable restore #else - public List Activities { get; set; } + public List Activities { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddActivitiesPostRequestBody() { @@ -31,12 +33,12 @@ public AddActivitiesPostRequestBody() /// /// 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 AddActivitiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddActivitiesPostRequestBody(); + return new global::ApiSdk.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "activities", n => { Activities = n.GetCollectionOfObjectValues(ExternalActivity.CreateFromDiscriminatorValue)?.ToList(); } }, + { "activities", n => { Activities = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExternalConnectors.ExternalActivity.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("activities", Activities); + writer.WriteCollectionOfObjectValues("activities", Activities); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs b/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs index ab569145e2..a29498382a 100644 --- a/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs +++ b/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/AddActivitiesPostResponse.cs @@ -1,34 +1,36 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; 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.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddActivitiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class AddActivitiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new AddActivitiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddActivitiesPostResponse(); + return new global::ApiSdk.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostResponse(); } /// /// The deserialization information for the current model @@ -38,7 +40,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExternalActivityResult.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExternalConnectors.ExternalActivityResult.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -49,7 +51,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs b/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs index 4c81b11e02..3ae43bf6ca 100644 --- a/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Items/Item/MicrosoftGraphExternalConnectorsAddActivities/MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder.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.External.Connections.Item.Items.Item.MicrosoftGraphExternalConn /// /// Provides operations to call the addActivities method. /// - public class MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action addActivities @@ -59,8 +62,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(AddActivitiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -91,14 +94,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 MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/microsoft.graph.externalConnectors.addActivities", 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 MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items/{externalItem%2Did}/microsoft.graph.externalConnectors.addActivities", rawUrl) @@ -112,11 +115,11 @@ public MicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder(string rawUrl /// 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(AddActivitiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddActivitiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.External.Connections.Item.Items.Item.MicrosoftGraphExternalConnectorsAddActivities.AddActivitiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -127,3 +130,4 @@ public RequestInformation ToPostRequestInformation(AddActivitiesPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Items/ItemsRequestBuilder.cs b/src/generated/External/Connections/Item/Items/ItemsRequestBuilder.cs index a9666c3d32..dca197a6ea 100644 --- a/src/generated/External/Connections/Item/Items/ItemsRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Items/ItemsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.External.Connections.Item.Items.Count; using ApiSdk.External.Connections.Item.Items.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections.Item.Items /// /// Provides operations to manage the items property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class ItemsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the items property of the microsoft.graph.externalConnectors.externalConnection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ExternalItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Items.Item.ExternalItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildActivitiesNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.External.Connections.Item.Items.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(ExternalItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ExternalItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 ItemsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items{?%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 ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/external/connection /// 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); @@ -250,11 +253,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(ExternalItem body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExternalItem body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ExternalItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(ExternalItem body, Action /// Read the properties and relationships of an externalItem object. /// - public class ItemsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class ItemsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Operations/Count/CountRequestBuilder.cs b/src/generated/External/Connections/Item/Operations/Count/CountRequestBuilder.cs index c7869f197d..180b3c8158 100644 --- a/src/generated/External/Connections/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Operations/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.External.Connections.Item.Operations.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}/external/connections/{externalConnection%2Did}/operations/$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}/external/connections/{externalConnection%2Did}/operations/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/external/connection /// 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/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs b/src/generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs index 6a154c8830..af9fd968ae 100644 --- a/src/generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Operations/Item/ConnectionOperationItemRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections.Item.Operations.Item /// /// Provides operations to manage the operations property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class ConnectionOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConnectionOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property operations for external @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ConnectionOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -179,14 +182,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ConnectionOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/operations/{connectionOperation%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 ConnectionOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/operations/{connectionOperation%2Did}{?%24expand,%24select}", rawUrl) @@ -218,11 +221,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -238,11 +241,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ConnectionOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ConnectionOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -254,7 +257,8 @@ public RequestInformation ToPatchRequestInformation(ConnectionOperation body, Ac /// /// Read the properties and relationships of a connectionOperation object. /// - public class ConnectionOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConnectionOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -279,3 +283,4 @@ public class ConnectionOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs b/src/generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs index 28754d61ea..4723dde136 100644 --- a/src/generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Operations/OperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.External.Connections.Item.Operations.Count; using ApiSdk.External.Connections.Item.Operations.Item; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections.Item.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the operations property of the microsoft.graph.externalConnectors.externalConnection entity. @@ -30,7 +33,7 @@ public class OperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ConnectionOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.Item.Operations.Item.ConnectionOperationItemRequestBuilder(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.External.Connections.Item.Operations.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(ConnectionOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/external/conne /// 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); @@ -247,11 +250,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(ConnectionOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ConnectionOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ExternalConnectors.ConnectionOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(ConnectionOperation body, Act /// /// Read the properties and relationships of a connectionOperation object. /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class OperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs b/src/generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs index 028bd19b5f..3b3259e1c0 100644 --- a/src/generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs +++ b/src/generated/External/Connections/Item/Schema/SchemaRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External.Connections.Item.Schema /// /// Provides operations to manage the schema property of the microsoft.graph.externalConnectors.externalConnection entity. /// - public class SchemaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchemaRequestBuilder : BaseCliRequestBuilder { /// /// Read the properties and relationships of a schema object. @@ -75,14 +78,14 @@ public Command BuildGetCommand() return command; } /// - /// Create a new schema object. + /// Create a new or update an existing schema for a Microsoft Search connection. /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Create a new schema object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-patch-schema?view=graph-rest-1.0"; + command.Description = "Create a new or update an existing schema for a Microsoft Search connection.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-patch-schema?view=graph-rest-1.0"; var externalConnectionIdOption = new Option("--external-connection-id", description: "The unique identifier of externalConnection") { }; externalConnectionIdOption.IsRequired = true; @@ -105,8 +108,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.ExternalConnectors.Schema.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.Schema.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -127,14 +130,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 SchemaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external/connections/{externalConnection%2Did}/schema{?%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 SchemaRequestBuilder(string rawUrl) : base("{+baseurl}/external/connections/{externalConnection%2Did}/schema{?%24expand,%24select}", rawUrl) @@ -147,11 +150,11 @@ public SchemaRequestBuilder(string rawUrl) : base("{+baseurl}/external/connectio /// 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); @@ -160,18 +163,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new schema object. + /// Create a new or update an existing schema for a Microsoft Search connection. /// /// 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(ApiSdk.Models.ExternalConnectors.Schema body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.Schema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ExternalConnectors.Schema body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.Schema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -183,7 +186,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ExternalConnec /// /// Read the properties and relationships of a schema object. /// - public class SchemaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchemaRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -208,3 +212,4 @@ public class SchemaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/External/ExternalRequestBuilder.cs b/src/generated/External/ExternalRequestBuilder.cs index b6b60a05c0..30d95ec233 100644 --- a/src/generated/External/ExternalRequestBuilder.cs +++ b/src/generated/External/ExternalRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.External.Connections; using ApiSdk.Models.ExternalConnectors; using ApiSdk.Models.ODataErrors; +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.External /// /// Provides operations to manage the external singleton. /// - public class ExternalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the connections property of the microsoft.graph.externalConnectors.external entity. @@ -30,7 +33,7 @@ public Command BuildConnectionsNavCommand() { var command = new Command("connections"); command.Description = "Provides operations to manage the connections property of the microsoft.graph.externalConnectors.external entity."; - var builder = new ConnectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.Connections.ConnectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -120,8 +123,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.ExternalConnectors.External.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ExternalConnectors.External.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -141,14 +144,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExternalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/external{?%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 ExternalRequestBuilder(string rawUrl) : base("{+baseurl}/external{?%24expand,%24select}", rawUrl) @@ -161,11 +164,11 @@ public ExternalRequestBuilder(string rawUrl) : base("{+baseurl}/external{?%24exp /// 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); @@ -181,11 +184,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.ExternalConnectors.External body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.External body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ExternalConnectors.External body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ExternalConnectors.External body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -197,7 +200,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ExternalConnec /// /// Get external /// - public class ExternalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -222,3 +226,4 @@ public class ExternalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/FilterOperators/Count/CountRequestBuilder.cs b/src/generated/FilterOperators/Count/CountRequestBuilder.cs index 0054b73718..c0feb21814 100644 --- a/src/generated/FilterOperators/Count/CountRequestBuilder.cs +++ b/src/generated/FilterOperators/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.FilterOperators.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}/filterOperators/$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}/filterOperators/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/filterOperators/$co /// 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/FilterOperators/FilterOperatorsRequestBuilder.cs b/src/generated/FilterOperators/FilterOperatorsRequestBuilder.cs index 4ee7b5673c..5aa0eeed77 100644 --- a/src/generated/FilterOperators/FilterOperatorsRequestBuilder.cs +++ b/src/generated/FilterOperators/FilterOperatorsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.FilterOperators.Count; using ApiSdk.FilterOperators.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.FilterOperators /// /// Provides operations to manage the collection of filterOperatorSchema entities. /// - public class FilterOperatorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterOperatorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of filterOperatorSchema entities. @@ -30,7 +33,7 @@ public class FilterOperatorsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new FilterOperatorSchemaItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.FilterOperators.Item.FilterOperatorSchemaItemRequestBuilder(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.FilterOperators.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(FilterOperatorSchema.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.FilterOperatorSchema.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 FilterOperatorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/filterOperators{?%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 FilterOperatorsRequestBuilder(string rawUrl) : base("{+baseurl}/filterOperators{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public FilterOperatorsRequestBuilder(string rawUrl) : base("{+baseurl}/filterOpe /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(FilterOperatorSchema body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.FilterOperatorSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(FilterOperatorSchema body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.FilterOperatorSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(FilterOperatorSchema body, Ac /// /// Get entities from filterOperators /// - public class FilterOperatorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterOperatorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class FilterOperatorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.cs b/src/generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.cs index 78a1571d65..9081fd8ebc 100644 --- a/src/generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.cs +++ b/src/generated/FilterOperators/Item/FilterOperatorSchemaItemRequestBuilder.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.FilterOperators.Item /// /// Provides operations to manage the collection of filterOperatorSchema entities. /// - public class FilterOperatorSchemaItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterOperatorSchemaItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete entity from filterOperators @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(FilterOperatorSchema.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.FilterOperatorSchema.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public FilterOperatorSchemaItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/filterOperators/{filterOperatorSchema%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 FilterOperatorSchemaItemRequestBuilder(string rawUrl) : base("{+baseurl}/filterOperators/{filterOperatorSchema%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(FilterOperatorSchema body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FilterOperatorSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(FilterOperatorSchema body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FilterOperatorSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(FilterOperatorSchema body, A /// /// Get entity from filterOperators by key /// - public class FilterOperatorSchemaItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterOperatorSchemaItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class FilterOperatorSchemaItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Functions/Count/CountRequestBuilder.cs b/src/generated/Functions/Count/CountRequestBuilder.cs index de5677034a..8694652ae0 100644 --- a/src/generated/Functions/Count/CountRequestBuilder.cs +++ b/src/generated/Functions/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.Functions.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}/functions/$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}/functions/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/functions/$count{?% /// 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/Functions/FunctionsRequestBuilder.cs b/src/generated/Functions/FunctionsRequestBuilder.cs index da94a0359a..4184c8c2b1 100644 --- a/src/generated/Functions/FunctionsRequestBuilder.cs +++ b/src/generated/Functions/FunctionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Functions.Count; using ApiSdk.Functions.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.Functions /// /// Provides operations to manage the collection of attributeMappingFunctionSchema entities. /// - public class FunctionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FunctionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of attributeMappingFunctionSchema entities. @@ -30,7 +33,7 @@ public class FunctionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttributeMappingFunctionSchemaItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Functions.Item.AttributeMappingFunctionSchemaItemRequestBuilder(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.Functions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -78,8 +81,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AttributeMappingFunctionSchema.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -195,14 +198,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 FunctionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/functions{?%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 FunctionsRequestBuilder(string rawUrl) : base("{+baseurl}/functions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -215,11 +218,11 @@ public FunctionsRequestBuilder(string rawUrl) : base("{+baseurl}/functions{?%24c /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -235,11 +238,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(AttributeMappingFunctionSchema body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AttributeMappingFunctionSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AttributeMappingFunctionSchema body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AttributeMappingFunctionSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -251,7 +254,8 @@ public RequestInformation ToPostRequestInformation(AttributeMappingFunctionSchem /// /// Get entities from functions /// - public class FunctionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FunctionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,3 +319,4 @@ public class FunctionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.cs b/src/generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.cs index 73d108fafe..00fbb62814 100644 --- a/src/generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.cs +++ b/src/generated/Functions/Item/AttributeMappingFunctionSchemaItemRequestBuilder.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.Functions.Item /// /// Provides operations to manage the collection of attributeMappingFunctionSchema entities. /// - public class AttributeMappingFunctionSchemaItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttributeMappingFunctionSchemaItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete entity from functions @@ -138,8 +141,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(AttributeMappingFunctionSchema.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AttributeMappingFunctionSchema.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -160,14 +163,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AttributeMappingFunctionSchemaItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/functions/{attributeMappingFunctionSchema%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 AttributeMappingFunctionSchemaItemRequestBuilder(string rawUrl) : base("{+baseurl}/functions/{attributeMappingFunctionSchema%2Did}{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(AttributeMappingFunctionSchema body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AttributeMappingFunctionSchema body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AttributeMappingFunctionSchema body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AttributeMappingFunctionSchema body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(AttributeMappingFunctionSche /// /// Get entity from functions by key /// - public class AttributeMappingFunctionSchemaItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttributeMappingFunctionSchemaItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class AttributeMappingFunctionSchemaItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/GraphClient.cs b/src/generated/GraphClient.cs index 9d0ace4b76..033a7b9e27 100644 --- a/src/generated/GraphClient.cs +++ b/src/generated/GraphClient.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Admin; using ApiSdk.AgreementAcceptances; using ApiSdk.Agreements; @@ -73,6 +74,7 @@ using ApiSdk.Teamwork; using ApiSdk.TenantRelationships; using ApiSdk.Users; +using ApiSdk.UsersWithUserPrincipalName; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; @@ -93,7 +95,8 @@ namespace ApiSdk /// /// The main entry point of the SDK, exposes the configuration and the fluent API. /// - public class GraphClient : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphClient : BaseCliRequestBuilder { /// /// Provides operations to manage the admin singleton. @@ -103,7 +106,7 @@ public Command BuildAdminNavCommand() { var command = new Command("admin"); command.Description = "Provides operations to manage the admin singleton."; - var builder = new AdminRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Admin.AdminRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildEdgeNavCommand()); @@ -111,6 +114,7 @@ public Command BuildAdminNavCommand() nonExecCommands.Add(builder.BuildMicrosoft365AppsNavCommand()); execCommands.Add(builder.BuildPatchCommand()); nonExecCommands.Add(builder.BuildPeopleNavCommand()); + nonExecCommands.Add(builder.BuildReportSettingsNavCommand()); nonExecCommands.Add(builder.BuildServiceAnnouncementNavCommand()); nonExecCommands.Add(builder.BuildSharepointNavCommand()); foreach (var cmd in execCommands) @@ -131,7 +135,7 @@ public Command BuildAgreementAcceptancesNavCommand() { var command = new Command("agreement-acceptances"); command.Description = "Provides operations to manage the collection of agreementAcceptance entities."; - var builder = new AgreementAcceptancesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AgreementAcceptances.AgreementAcceptancesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildCreateCommand()); @@ -157,7 +161,7 @@ public Command BuildAgreementsNavCommand() { var command = new Command("agreements"); command.Description = "Provides operations to manage the collection of agreement entities."; - var builder = new AgreementsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Agreements.AgreementsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildCreateCommand()); @@ -183,7 +187,7 @@ public Command BuildAppCatalogsNavCommand() { var command = new Command("app-catalogs"); command.Description = "Provides operations to manage the appCatalogs singleton."; - var builder = new AppCatalogsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AppCatalogs.AppCatalogsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -207,7 +211,7 @@ public Command BuildApplicationsNavCommand() { var command = new Command("applications"); command.Description = "Provides operations to manage the collection of application entities."; - var builder = new ApplicationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Applications.ApplicationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -238,7 +242,7 @@ public Command BuildApplicationsWithAppIdRbCommand() { var command = new Command("applications-with-app-id"); command.Description = "Provides operations to manage the collection of application entities."; - var builder = new ApplicationsWithAppIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.ApplicationsWithAppId.ApplicationsWithAppIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -257,7 +261,7 @@ public Command BuildApplicationsWithUniqueNameRbCommand() { var command = new Command("applications-with-unique-name"); command.Description = "Provides operations to manage the collection of application entities."; - var builder = new ApplicationsWithUniqueNameRequestBuilder(PathParameters); + var builder = new global::ApiSdk.ApplicationsWithUniqueName.ApplicationsWithUniqueNameRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -276,7 +280,7 @@ public Command BuildApplicationTemplatesNavCommand() { var command = new Command("application-templates"); command.Description = "Provides operations to manage the collection of applicationTemplate entities."; - var builder = new ApplicationTemplatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.ApplicationTemplates.ApplicationTemplatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -302,7 +306,7 @@ public Command BuildAuditLogsNavCommand() { var command = new Command("audit-logs"); command.Description = "Provides operations to manage the auditLogRoot singleton."; - var builder = new AuditLogsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuditLogs.AuditLogsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildDirectoryAuditsNavCommand()); @@ -328,7 +332,7 @@ public Command BuildAuthenticationMethodConfigurationsNavCommand() { var command = new Command("authentication-method-configurations"); command.Description = "Provides operations to manage the collection of authenticationMethodConfiguration entities."; - var builder = new AuthenticationMethodConfigurationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuthenticationMethodConfigurations.AuthenticationMethodConfigurationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -355,7 +359,7 @@ public Command BuildAuthenticationMethodsPolicyNavCommand() { var command = new Command("authentication-methods-policy"); command.Description = "Provides operations to manage the authenticationMethodsPolicy singleton."; - var builder = new AuthenticationMethodsPolicyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.AuthenticationMethodsPolicy.AuthenticationMethodsPolicyRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAuthenticationMethodConfigurationsNavCommand()); @@ -379,7 +383,7 @@ public Command BuildCertificateBasedAuthConfigurationNavCommand() { var command = new Command("certificate-based-auth-configuration"); command.Description = "Provides operations to manage the collection of certificateBasedAuthConfiguration entities."; - var builder = new CertificateBasedAuthConfigurationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.CertificateBasedAuthConfiguration.CertificateBasedAuthConfigurationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -406,12 +410,13 @@ public Command BuildChatsNavCommand() { var command = new Command("chats"); command.Description = "Provides operations to manage the collection of chat entities."; - var builder = new ChatsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Chats.ChatsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); execCommands.Add(builder.BuildCreateCommand()); nonExecCommands.Add(builder.BuildGetAllMessagesNavCommand()); + nonExecCommands.Add(builder.BuildGetAllRetainedMessagesNavCommand()); execCommands.Add(builder.BuildListCommand()); var cmds = builder.BuildCommand(); execCommands.AddRange(cmds.Item1); @@ -434,7 +439,7 @@ public Command BuildCommunicationsNavCommand() { var command = new Command("communications"); command.Description = "Provides operations to manage the cloudCommunications singleton."; - var builder = new CommunicationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Communications.CommunicationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCallRecordsNavCommand()); @@ -462,7 +467,7 @@ public Command BuildComplianceNavCommand() { var command = new Command("compliance"); command.Description = "Provides operations to manage the compliance singleton."; - var builder = new ComplianceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Compliance.ComplianceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -480,7 +485,7 @@ public Command BuildConnectionsNavCommand() { var command = new Command("connections"); command.Description = "Provides operations to manage the collection of externalConnection entities."; - var builder = new ConnectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Connections.ConnectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -507,7 +512,7 @@ public Command BuildContactsNavCommand() { var command = new Command("contacts"); command.Description = "Provides operations to manage the collection of orgContact entities."; - var builder = new ContactsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contacts.ContactsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -538,7 +543,7 @@ public Command BuildContractsNavCommand() { var command = new Command("contracts"); command.Description = "Provides operations to manage the collection of contract entities."; - var builder = new ContractsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Contracts.ContractsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -569,7 +574,7 @@ public Command BuildDataPolicyOperationsNavCommand() { var command = new Command("data-policy-operations"); command.Description = "Provides operations to manage the collection of dataPolicyOperation entities."; - var builder = new DataPolicyOperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DataPolicyOperations.DataPolicyOperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -596,7 +601,7 @@ public Command BuildDeviceAppManagementNavCommand() { var command = new Command("device-app-management"); command.Description = "Provides operations to manage the deviceAppManagement singleton."; - var builder = new DeviceAppManagementRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceAppManagement.DeviceAppManagementRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAndroidManagedAppProtectionsNavCommand()); @@ -634,7 +639,7 @@ public Command BuildDeviceManagementNavCommand() { var command = new Command("device-management"); command.Description = "Provides operations to manage the deviceManagement singleton."; - var builder = new DeviceManagementRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DeviceManagement.DeviceManagementRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildApplePushNotificationCertificateNavCommand()); @@ -718,7 +723,7 @@ public Command BuildDevicesNavCommand() { var command = new Command("devices"); command.Description = "Provides operations to manage the collection of device entities."; - var builder = new DevicesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Devices.DevicesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -749,7 +754,7 @@ public Command BuildDevicesWithDeviceIdRbCommand() { var command = new Command("devices-with-device-id"); command.Description = "Provides operations to manage the collection of device entities."; - var builder = new DevicesWithDeviceIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DevicesWithDeviceId.DevicesWithDeviceIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -768,7 +773,7 @@ public Command BuildDirectoryNavCommand() { var command = new Command("directory"); command.Description = "Provides operations to manage the directory singleton."; - var builder = new DirectoryRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryNamespace.DirectoryRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAdministrativeUnitsNavCommand()); @@ -800,7 +805,7 @@ public Command BuildDirectoryObjectsNavCommand() { var command = new Command("directory-objects"); command.Description = "Provides operations to manage the collection of directoryObject entities."; - var builder = new DirectoryObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryObjects.DirectoryObjectsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -831,7 +836,7 @@ public Command BuildDirectoryRolesNavCommand() { var command = new Command("directory-roles"); command.Description = "Provides operations to manage the collection of directoryRole entities."; - var builder = new DirectoryRolesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoles.DirectoryRolesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -862,7 +867,7 @@ public Command BuildDirectoryRolesWithRoleTemplateIdRbCommand() { var command = new Command("directory-roles-with-role-template-id"); command.Description = "Provides operations to manage the collection of directoryRole entities."; - var builder = new DirectoryRolesWithRoleTemplateIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRolesWithRoleTemplateId.DirectoryRolesWithRoleTemplateIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -881,7 +886,7 @@ public Command BuildDirectoryRoleTemplatesNavCommand() { var command = new Command("directory-role-templates"); command.Description = "Provides operations to manage the collection of directoryRoleTemplate entities."; - var builder = new DirectoryRoleTemplatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DirectoryRoleTemplates.DirectoryRoleTemplatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -912,7 +917,7 @@ public Command BuildDomainDnsRecordsNavCommand() { var command = new Command("domain-dns-records"); command.Description = "Provides operations to manage the collection of domainDnsRecord entities."; - var builder = new DomainDnsRecordsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.DomainDnsRecords.DomainDnsRecordsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -939,7 +944,7 @@ public Command BuildDomainsNavCommand() { var command = new Command("domains"); command.Description = "Provides operations to manage the collection of domain entities."; - var builder = new DomainsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Domains.DomainsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -966,7 +971,7 @@ public Command BuildDrivesNavCommand() { var command = new Command("drives"); command.Description = "Provides operations to manage the collection of drive entities."; - var builder = new DrivesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Drives.DrivesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildCreateCommand()); @@ -992,7 +997,7 @@ public Command BuildEducationNavCommand() { var command = new Command("education"); command.Description = "Provides operations to manage the educationRoot singleton."; - var builder = new EducationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Education.EducationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildClassesNavCommand()); @@ -1019,9 +1024,11 @@ public Command BuildEmployeeExperienceNavCommand() { var command = new Command("employee-experience"); command.Description = "Provides operations to manage the employeeExperience singleton."; - var builder = new EmployeeExperienceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.EmployeeExperience.EmployeeExperienceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildCommunitiesNavCommand()); + nonExecCommands.Add(builder.BuildEngagementAsyncOperationsNavCommand()); execCommands.Add(builder.BuildGetCommand()); nonExecCommands.Add(builder.BuildLearningCourseActivitiesNavCommand()); nonExecCommands.Add(builder.BuildLearningCourseActivitiesWithExternalcourseActivityIdRbCommand()); @@ -1045,7 +1052,7 @@ public Command BuildExternalNavCommand() { var command = new Command("external"); command.Description = "Provides operations to manage the external singleton."; - var builder = new ExternalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.External.ExternalRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildConnectionsNavCommand()); @@ -1069,7 +1076,7 @@ public Command BuildFilterOperatorsNavCommand() { var command = new Command("filter-operators"); command.Description = "Provides operations to manage the collection of filterOperatorSchema entities."; - var builder = new FilterOperatorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.FilterOperators.FilterOperatorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1096,7 +1103,7 @@ public Command BuildFunctionsNavCommand() { var command = new Command("functions"); command.Description = "Provides operations to manage the collection of attributeMappingFunctionSchema entities."; - var builder = new FunctionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Functions.FunctionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1123,7 +1130,7 @@ public Command BuildGroupLifecyclePoliciesNavCommand() { var command = new Command("group-lifecycle-policies"); command.Description = "Provides operations to manage the collection of groupLifecyclePolicy entities."; - var builder = new GroupLifecyclePoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupLifecyclePolicies.GroupLifecyclePoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1150,7 +1157,7 @@ public Command BuildGroupSettingsNavCommand() { var command = new Command("group-settings"); command.Description = "Provides operations to manage the collection of groupSetting entities."; - var builder = new GroupSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettings.GroupSettingsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1177,7 +1184,7 @@ public Command BuildGroupSettingTemplatesNavCommand() { var command = new Command("group-setting-templates"); command.Description = "Provides operations to manage the collection of groupSettingTemplate entities."; - var builder = new GroupSettingTemplatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettingTemplates.GroupSettingTemplatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1208,7 +1215,7 @@ public Command BuildGroupsNavCommand() { var command = new Command("groups"); command.Description = "Provides operations to manage the collection of group entities."; - var builder = new GroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.GroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1239,7 +1246,7 @@ public Command BuildGroupsWithUniqueNameRbCommand() { var command = new Command("groups-with-unique-name"); command.Description = "Provides operations to manage the collection of group entities."; - var builder = new GroupsWithUniqueNameRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupsWithUniqueName.GroupsWithUniqueNameRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -1258,7 +1265,7 @@ public Command BuildIdentityGovernanceNavCommand() { var command = new Command("identity-governance"); command.Description = "Provides operations to manage the identityGovernance singleton."; - var builder = new IdentityGovernanceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.IdentityGovernance.IdentityGovernanceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAccessReviewsNavCommand()); @@ -1287,7 +1294,7 @@ public Command BuildIdentityNavCommand() { var command = new Command("identity"); command.Description = "Provides operations to manage the identityContainer singleton."; - var builder = new IdentityRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Identity.IdentityRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildApiConnectorsNavCommand()); @@ -1318,7 +1325,7 @@ public Command BuildIdentityProtectionNavCommand() { var command = new Command("identity-protection"); command.Description = "Provides operations to manage the identityProtectionRoot singleton."; - var builder = new IdentityProtectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.IdentityProtection.IdentityProtectionRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -1345,7 +1352,7 @@ public Command BuildIdentityProvidersNavCommand() { var command = new Command("identity-providers"); command.Description = "Provides operations to manage the collection of identityProvider entities."; - var builder = new IdentityProvidersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.IdentityProviders.IdentityProvidersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAvailableProviderTypesNavCommand()); @@ -1373,7 +1380,7 @@ public Command BuildInformationProtectionNavCommand() { var command = new Command("information-protection"); command.Description = "Provides operations to manage the informationProtection singleton."; - var builder = new InformationProtectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.InformationProtection.InformationProtectionRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildBitlockerNavCommand()); @@ -1398,20 +1405,19 @@ public Command BuildInvitationsNavCommand() { var command = new Command("invitations"); command.Description = "Provides operations to manage the collection of invitation entities."; - var builder = new InvitationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Invitations.InvitationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); - execCommands.Add(builder.BuildCreateCommand()); - execCommands.Add(builder.BuildListCommand()); - var cmds = builder.BuildCommand(); - execCommands.AddRange(cmds.Item1); - nonExecCommands.AddRange(cmds.Item2); + execCommands.Add(builder.BuildGetCommand()); + nonExecCommands.Add(builder.BuildInvitedUserNavCommand()); + nonExecCommands.Add(builder.BuildInvitedUserSponsorsNavCommand()); + execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); } - foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal)) + foreach (var cmd in nonExecCommands) { command.AddCommand(cmd); } @@ -1425,7 +1431,7 @@ public Command BuildOauth2PermissionGrantsNavCommand() { var command = new Command("oauth2-permission-grants"); command.Description = "Provides operations to manage the collection of oAuth2PermissionGrant entities."; - var builder = new Oauth2PermissionGrantsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Oauth2PermissionGrants.Oauth2PermissionGrantsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1453,7 +1459,7 @@ public Command BuildOrganizationNavCommand() { var command = new Command("organization"); command.Description = "Provides operations to manage the collection of organization entities."; - var builder = new OrganizationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Organization.OrganizationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1484,7 +1490,7 @@ public Command BuildPermissionGrantsNavCommand() { var command = new Command("permission-grants"); command.Description = "Provides operations to manage the collection of resourceSpecificPermissionGrant entities."; - var builder = new PermissionGrantsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.PermissionGrants.PermissionGrantsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildCreateCommand()); @@ -1514,7 +1520,7 @@ public Command BuildPlacesNavCommand() { var command = new Command("places"); command.Description = "The places property"; - var builder = new PlacesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Places.PlacesRequestBuilder(PathParameters); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); nonExecCommands.Add(builder.BuildGraphRoomListNavCommand()); @@ -1535,7 +1541,7 @@ public Command BuildPlannerNavCommand() { var command = new Command("planner"); command.Description = "Provides operations to manage the planner singleton."; - var builder = new PlannerRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Planner.PlannerRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildBucketsNavCommand()); @@ -1561,7 +1567,7 @@ public Command BuildPoliciesNavCommand() { var command = new Command("policies"); command.Description = "Provides operations to manage the policyRoot singleton."; - var builder = new PoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Policies.PoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildActivityBasedTimeoutPoliciesNavCommand()); @@ -1604,7 +1610,7 @@ public Command BuildPrintNavCommand() { var command = new Command("print"); command.Description = "Provides operations to manage the print singleton."; - var builder = new PrintRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Print.PrintRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildConnectorsNavCommand()); @@ -1633,7 +1639,7 @@ public Command BuildPrivacyNavCommand() { var command = new Command("privacy"); command.Description = "Provides operations to manage the privacy singleton."; - var builder = new PrivacyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Privacy.PrivacyRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -1657,7 +1663,7 @@ public Command BuildReportsNavCommand() { var command = new Command("reports"); command.Description = "Provides operations to manage the reportRoot singleton."; - var builder = new ReportsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Reports.ReportsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAuthenticationMethodsNavCommand()); @@ -1789,7 +1795,7 @@ public Command BuildRoleManagementNavCommand() { var command = new Command("role-management"); command.Description = "Provides operations to manage the roleManagement singleton."; - var builder = new RoleManagementRequestBuilder(PathParameters); + var builder = new global::ApiSdk.RoleManagement.RoleManagementRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildDirectoryNavCommand()); @@ -1807,7 +1813,7 @@ public Command BuildRoleManagementNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// A public Command BuildRootCommand() @@ -1888,6 +1894,7 @@ public Command BuildRootCommand() command.AddCommand(BuildTeamworkNavCommand()); command.AddCommand(BuildTenantRelationshipsNavCommand()); command.AddCommand(BuildUsersNavCommand()); + command.AddCommand(BuildUsersWithUserPrincipalNameRbCommand()); return command; } /// @@ -1898,7 +1905,7 @@ public Command BuildSchemaExtensionsNavCommand() { var command = new Command("schema-extensions"); command.Description = "Provides operations to manage the collection of schemaExtension entities."; - var builder = new SchemaExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.SchemaExtensions.SchemaExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1925,7 +1932,7 @@ public Command BuildScopedRoleMembershipsNavCommand() { var command = new Command("scoped-role-memberships"); command.Description = "Provides operations to manage the collection of scopedRoleMembership entities."; - var builder = new ScopedRoleMembershipsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.ScopedRoleMemberships.ScopedRoleMembershipsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1952,7 +1959,7 @@ public Command BuildSearchNavCommand() { var command = new Command("search"); command.Description = "Provides operations to manage the searchEntity singleton."; - var builder = new SearchRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Search.SearchRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAcronymsNavCommand()); @@ -1979,7 +1986,7 @@ public Command BuildSecurityNavCommand() { var command = new Command("security"); command.Description = "Provides operations to manage the security singleton."; - var builder = new SecurityRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Security.SecurityRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAlertsNavCommand()); @@ -2016,7 +2023,7 @@ public Command BuildServicePrincipalsNavCommand() { var command = new Command("service-principals"); command.Description = "Provides operations to manage the collection of servicePrincipal entities."; - var builder = new ServicePrincipalsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.ServicePrincipals.ServicePrincipalsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -2047,7 +2054,7 @@ public Command BuildServicePrincipalsWithAppIdRbCommand() { var command = new Command("service-principals-with-app-id"); command.Description = "Provides operations to manage the collection of servicePrincipal entities."; - var builder = new ServicePrincipalsWithAppIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.ServicePrincipalsWithAppId.ServicePrincipalsWithAppIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -2066,7 +2073,7 @@ public Command BuildSharesNavCommand() { var command = new Command("shares"); command.Description = "Provides operations to manage the collection of sharedDriveItem entities."; - var builder = new SharesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Shares.SharesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -2093,7 +2100,7 @@ public Command BuildSitesNavCommand() { var command = new Command("sites"); command.Description = "Provides operations to manage the collection of site entities."; - var builder = new SitesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Sites.SitesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); @@ -2123,9 +2130,10 @@ public Command BuildSolutionsNavCommand() { var command = new Command("solutions"); command.Description = "Provides operations to manage the solutionsRoot singleton."; - var builder = new SolutionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Solutions.SolutionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildBackupRestoreNavCommand()); nonExecCommands.Add(builder.BuildBookingBusinessesNavCommand()); nonExecCommands.Add(builder.BuildBookingCurrenciesNavCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -2149,12 +2157,13 @@ public Command BuildStorageNavCommand() { var command = new Command("storage"); command.Description = "Provides operations to manage the storage singleton."; - var builder = new StorageRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Storage.StorageRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildFileStorageNavCommand()); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); + nonExecCommands.Add(builder.BuildSettingsNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); @@ -2173,7 +2182,7 @@ public Command BuildSubscribedSkusNavCommand() { var command = new Command("subscribed-skus"); command.Description = "Provides operations to manage the collection of subscribedSku entities."; - var builder = new SubscribedSkusRequestBuilder(PathParameters); + var builder = new global::ApiSdk.SubscribedSkus.SubscribedSkusRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildCreateCommand()); @@ -2199,7 +2208,7 @@ public Command BuildSubscriptionsNavCommand() { var command = new Command("subscriptions"); command.Description = "Provides operations to manage the collection of subscription entities."; - var builder = new SubscriptionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Subscriptions.SubscriptionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildCreateCommand()); @@ -2225,7 +2234,7 @@ public Command BuildTeamsNavCommand() { var command = new Command("teams"); command.Description = "Provides operations to manage the collection of team entities."; - var builder = new TeamsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Teams.TeamsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -2253,7 +2262,7 @@ public Command BuildTeamsTemplatesNavCommand() { var command = new Command("teams-templates"); command.Description = "Provides operations to manage the collection of teamsTemplate entities."; - var builder = new TeamsTemplatesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.TeamsTemplates.TeamsTemplatesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -2280,7 +2289,7 @@ public Command BuildTeamworkNavCommand() { var command = new Command("teamwork"); command.Description = "Provides operations to manage the teamwork singleton."; - var builder = new TeamworkRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Teamwork.TeamworkRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildDeletedChatsNavCommand()); @@ -2308,7 +2317,7 @@ public Command BuildTenantRelationshipsNavCommand() { var command = new Command("tenant-relationships"); command.Description = "Provides operations to manage the tenantRelationship singleton."; - var builder = new TenantRelationshipsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.TenantRelationships.TenantRelationshipsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildDelegatedAdminCustomersNavCommand()); @@ -2337,7 +2346,7 @@ public Command BuildUsersNavCommand() var command = new Command("users"); command.AddAlias("me"); command.Description = "Provides operations to manage the collection of user entities."; - var builder = new UsersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Users.UsersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -2361,10 +2370,30 @@ public Command BuildUsersNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to manage the collection of user entities. + /// + /// A + public Command BuildUsersWithUserPrincipalNameRbCommand() + { + var command = new Command("users-with-user-principal-name"); + command.Description = "Provides operations to manage the collection of user entities."; + var builder = new global::ApiSdk.UsersWithUserPrincipalName.UsersWithUserPrincipalNameRequestBuilder(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; + } + /// + /// Instantiates a new and sets the default values. /// public GraphClient() : base("{+baseurl}", new Dictionary()) { } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupLifecyclePolicies/Count/CountRequestBuilder.cs b/src/generated/GroupLifecyclePolicies/Count/CountRequestBuilder.cs index d407cb2822..dd976bc968 100644 --- a/src/generated/GroupLifecyclePolicies/Count/CountRequestBuilder.cs +++ b/src/generated/GroupLifecyclePolicies/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.GroupLifecyclePolicies.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}/groupLifecyclePolicies/$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}/groupLifecyclePolicies/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groupLifecyclePolic /// 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/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs b/src/generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs index b0c15deeb6..b148b8dee9 100644 --- a/src/generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs +++ b/src/generated/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.GroupLifecyclePolicies.Count; using ApiSdk.GroupLifecyclePolicies.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.GroupLifecyclePolicies /// /// Provides operations to manage the collection of groupLifecyclePolicy entities. /// - public class GroupLifecyclePoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupLifecyclePoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of groupLifecyclePolicy entities. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new GroupLifecyclePolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupLifecyclePolicies.Item.GroupLifecyclePolicyItemRequestBuilder(PathParameters); commands.Add(builder.BuildAddGroupNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.GroupLifecyclePolicies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -57,14 +60,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Creates a new groupLifecyclePolicy. + /// Creates a new groupLifecyclePolicy. Only one policy exists in the tenant. /// Find more info here /// /// A public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Creates a new groupLifecyclePolicy.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/grouplifecyclepolicy-post-grouplifecyclepolicies?view=graph-rest-1.0"; + command.Description = "Creates a new groupLifecyclePolicy. Only one policy exists in the tenant.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/grouplifecyclepolicy-post-grouplifecyclepolicies?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -82,8 +85,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(GroupLifecyclePolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.GroupLifecyclePolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -200,14 +203,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 GroupLifecyclePoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupLifecyclePolicies{?%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 GroupLifecyclePoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/groupLifecyclePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -220,11 +223,11 @@ public GroupLifecyclePoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/gr /// 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); @@ -233,18 +236,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Creates a new groupLifecyclePolicy. + /// Creates a new groupLifecyclePolicy. Only one policy exists in the tenant. /// /// 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 ToPostRequestInformation(GroupLifecyclePolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.GroupLifecyclePolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GroupLifecyclePolicy body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.GroupLifecyclePolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,7 +259,8 @@ public RequestInformation ToPostRequestInformation(GroupLifecyclePolicy body, Ac /// /// List all the groupLifecyclePolicies. /// - public class GroupLifecyclePoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupLifecyclePoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -320,3 +324,4 @@ public class GroupLifecyclePoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs b/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs index aa5949dc89..9aa1962307 100644 --- a/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs +++ b/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.GroupLifecyclePolicies.Item.AddGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddGroupPostRequestBody : 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. @@ -21,7 +23,7 @@ public class AddGroupPostRequestBody : IAdditionalDataHolder, IParsable public string GroupId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddGroupPostRequestBody() { @@ -30,12 +32,12 @@ public AddGroupPostRequestBody() /// /// 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 AddGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddGroupPostRequestBody(); + return new global::ApiSdk.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs b/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs index e45cfeafe8..44e1bf90a1 100644 --- a/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs +++ b/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.GroupLifecyclePolicies.Item.AddGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddGroupPostResponse : IAdditionalDataHolder, IParsable + public partial class AddGroupPostResponse : 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. @@ -15,7 +17,7 @@ public class AddGroupPostResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddGroupPostResponse() { @@ -24,12 +26,12 @@ public AddGroupPostResponse() /// /// 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 AddGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddGroupPostResponse(); + return new global::ApiSdk.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs b/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs index 18247d5f8a..256d39fe44 100644 --- a/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs +++ b/src/generated/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.GroupLifecyclePolicies.Item.AddGroup /// /// Provides operations to call the addGroup method. /// - public class AddGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddGroupRequestBuilder : BaseCliRequestBuilder { /// - /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + /// Add a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/grouplifecyclepolicy-addgroup?view=graph-rest-1.0"; + command.Description = "Add a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/grouplifecyclepolicy-addgroup?view=graph-rest-1.0"; var groupLifecyclePolicyIdOption = new Option("--group-lifecycle-policy-id", description: "The unique identifier of groupLifecyclePolicy") { }; groupLifecyclePolicyIdOption.IsRequired = true; @@ -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(AddGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -73,32 +76,32 @@ 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 AddGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/addGroup", 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 AddGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/addGroup", rawUrl) { } /// - /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + /// Add a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected. /// /// 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 ToPostRequestInformation(AddGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -109,3 +112,4 @@ public RequestInformation ToPostRequestInformation(AddGroupPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs b/src/generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs index 649647b543..69818fbfaf 100644 --- a/src/generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs +++ b/src/generated/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.GroupLifecyclePolicies.Item.AddGroup; using ApiSdk.GroupLifecyclePolicies.Item.RemoveGroup; 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.GroupLifecyclePolicies.Item /// /// Provides operations to manage the collection of groupLifecyclePolicy entities. /// - public class GroupLifecyclePolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupLifecyclePolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the addGroup method. @@ -31,7 +34,7 @@ public Command BuildAddGroupNavCommand() { var command = new Command("add-group"); command.Description = "Provides operations to call the addGroup method."; - var builder = new AddGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupLifecyclePolicies.Item.AddGroup.AddGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -160,8 +163,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(GroupLifecyclePolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.GroupLifecyclePolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,7 +192,7 @@ public Command BuildRemoveGroupNavCommand() { var command = new Command("remove-group"); command.Description = "Provides operations to call the removeGroup method."; - var builder = new RemoveGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -199,14 +202,14 @@ public Command BuildRemoveGroupNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GroupLifecyclePolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%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 GroupLifecyclePolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}{?%24expand,%24select}", rawUrl) @@ -238,11 +241,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); @@ -258,11 +261,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(GroupLifecyclePolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.GroupLifecyclePolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(GroupLifecyclePolicy body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.GroupLifecyclePolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -274,7 +277,8 @@ public RequestInformation ToPatchRequestInformation(GroupLifecyclePolicy body, A /// /// Retrieve the properties and relationships of a groupLifecyclePolicies object. /// - public class GroupLifecyclePolicyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupLifecyclePolicyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -299,3 +303,4 @@ public class GroupLifecyclePolicyItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs b/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs index aabc3fb6f1..52c18e1808 100644 --- a/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs +++ b/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.GroupLifecyclePolicies.Item.RemoveGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RemoveGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RemoveGroupPostRequestBody : 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. @@ -21,7 +23,7 @@ public class RemoveGroupPostRequestBody : IAdditionalDataHolder, IParsable public string GroupId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RemoveGroupPostRequestBody() { @@ -30,12 +32,12 @@ public RemoveGroupPostRequestBody() /// /// 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 RemoveGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RemoveGroupPostRequestBody(); + return new global::ApiSdk.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs b/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs index 9ff4afec51..d5018a6765 100644 --- a/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs +++ b/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.GroupLifecyclePolicies.Item.RemoveGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RemoveGroupPostResponse : IAdditionalDataHolder, IParsable + public partial class RemoveGroupPostResponse : 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. @@ -15,7 +17,7 @@ public class RemoveGroupPostResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RemoveGroupPostResponse() { @@ -24,12 +26,12 @@ public RemoveGroupPostResponse() /// /// 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 RemoveGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RemoveGroupPostResponse(); + return new global::ApiSdk.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs b/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs index 057fc207c9..27b6c027c4 100644 --- a/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs +++ b/src/generated/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.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.GroupLifecyclePolicies.Item.RemoveGroup /// /// Provides operations to call the removeGroup method. /// - public class RemoveGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveGroupRequestBuilder : BaseCliRequestBuilder { /// /// Removes a group from a lifecycle policy. @@ -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(RemoveGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostRequestBody.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 RemoveGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/removeGroup", 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 RemoveGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/removeGroup", rawUrl) @@ -94,11 +97,11 @@ public RemoveGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groupLifecycl /// 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(RemoveGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RemoveGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -109,3 +112,4 @@ public RequestInformation ToPostRequestInformation(RemoveGroupPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Count/CountRequestBuilder.cs b/src/generated/GroupSettingTemplates/Count/CountRequestBuilder.cs index d2f4cca813..20062730e8 100644 --- a/src/generated/GroupSettingTemplates/Count/CountRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/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.GroupSettingTemplates.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}/groupSettingTemplates/$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}/groupSettingTemplates/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplat /// 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/GroupSettingTemplates/Delta/DeltaGetResponse.cs b/src/generated/GroupSettingTemplates/Delta/DeltaGetResponse.cs index 49f5b12083..ea12023a84 100644 --- a/src/generated/GroupSettingTemplates/Delta/DeltaGetResponse.cs +++ b/src/generated/GroupSettingTemplates/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.GroupSettingTemplates.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.GroupSettingTemplates.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.GroupSettingTemplates.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs b/src/generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs index a724447f6a..5ac92737f8 100644 --- a/src/generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.GroupSettingTemplates.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-1.0"; + command.Description = "Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -118,31 +121,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettingTemplates/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -151,9 +154,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information about the delta function, see Use delta query to track changes in Microsoft Graph data for details. + /// Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index 656073b066..83a54c8a5a 100644 --- a/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.GroupSettingTemplates.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetAvailableExtensionPropertiesPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHol /// The isSyncedFromOnPremises property public bool? IsSyncedFromOnPremises { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAvailableExtensionPropertiesPostRequestBody() { @@ -24,12 +26,12 @@ public GetAvailableExtensionPropertiesPostRequestBody() /// /// 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 GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.GroupSettingTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostRequestBody(); + return new global::ApiSdk.GroupSettingTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 9993740950..5c28adad4d 100644 --- a/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -1,33 +1,35 @@ // +#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.GroupSettingTemplates.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAvailableExtensionPropertiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.GroupSettingTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostResponse(); + return new global::ApiSdk.GroupSettingTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExtensionProperty.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index fc431d831d..caf8ef42ca 100644 --- a/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.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.GroupSettingTemplates.GetAvailableExtensionProperties /// /// Provides operations to call the getAvailableExtensionProperties method. /// - public class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: @@ -50,8 +53,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(GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.GroupSettingTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetAvailableExtensionPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettingTemplates/getAvailableExtensionProperties", 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 GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates/getAvailableExtensionProperties", rawUrl) @@ -101,11 +104,11 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+ba /// 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(GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/GetByIds/GetByIdsPostRequestBody.cs b/src/generated/GroupSettingTemplates/GetByIds/GetByIdsPostRequestBody.cs index 00a8acb128..6a4eb72783 100644 --- a/src/generated/GroupSettingTemplates/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/generated/GroupSettingTemplates/GetByIds/GetByIdsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.GroupSettingTemplates.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetByIdsPostRequestBody : 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. @@ -29,7 +31,7 @@ public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable public List Types { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetByIdsPostRequestBody() { @@ -38,12 +40,12 @@ public GetByIdsPostRequestBody() /// /// 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 GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.GroupSettingTemplates.GetByIds.GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostRequestBody(); + return new global::ApiSdk.GroupSettingTemplates.GetByIds.GetByIdsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.cs b/src/generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.cs index 34d4e6d916..5674f689d9 100644 --- a/src/generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.cs +++ b/src/generated/GroupSettingTemplates/GetByIds/GetByIdsPostResponse.cs @@ -1,33 +1,35 @@ // +#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.GroupSettingTemplates.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetByIdsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.GroupSettingTemplates.GetByIds.GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostResponse(); + return new global::ApiSdk.GroupSettingTemplates.GetByIds.GetByIdsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.cs b/src/generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.cs index fe9904c281..1c1cd236a8 100644 --- a/src/generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/GetByIds/GetByIdsRequestBuilder.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.GroupSettingTemplates.GetByIds /// /// Provides operations to call the getByIds method. /// - public class GetByIdsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetByIdsRequestBuilder : BaseCliRequestBuilder { /// /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -50,8 +53,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(GetByIdsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.GroupSettingTemplates.GetByIds.GetByIdsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetByIdsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettingTemplates/getByIds", 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 GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates/getByIds", rawUrl) @@ -101,11 +104,11 @@ public GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemp /// 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(GetByIdsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs b/src/generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs index 92705de280..0f92c6b7d7 100644 --- a/src/generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.GroupSettingTemplates.Count; using ApiSdk.GroupSettingTemplates.Delta; using ApiSdk.GroupSettingTemplates.GetAvailableExtensionProperties; @@ -7,6 +8,7 @@ using ApiSdk.GroupSettingTemplates.ValidateProperties; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.GroupSettingTemplates /// /// Provides operations to manage the collection of groupSettingTemplate entities. /// - public class GroupSettingTemplatesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupSettingTemplatesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of groupSettingTemplate entities. @@ -35,7 +38,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new GroupSettingTemplateItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettingTemplates.Item.GroupSettingTemplateItemRequestBuilder(PathParameters); commands.Add(builder.BuildCheckMemberGroupsNavCommand()); commands.Add(builder.BuildCheckMemberObjectsNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -54,7 +57,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.GroupSettingTemplates.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(GroupSettingTemplate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.GroupSettingTemplate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -116,7 +119,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettingTemplates.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -133,7 +136,7 @@ public Command BuildGetAvailableExtensionPropertiesNavCommand() { var command = new Command("get-available-extension-properties"); command.Description = "Provides operations to call the getAvailableExtensionProperties method."; - var builder = new GetAvailableExtensionPropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettingTemplates.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -150,7 +153,7 @@ public Command BuildGetByIdsNavCommand() { var command = new Command("get-by-ids"); command.Description = "Provides operations to call the getByIds method."; - var builder = new GetByIdsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettingTemplates.GetByIds.GetByIdsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -264,7 +267,7 @@ public Command BuildValidatePropertiesNavCommand() { var command = new Command("validate-properties"); command.Description = "Provides operations to call the validateProperties method."; - var builder = new ValidatePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettingTemplates.ValidateProperties.ValidatePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -274,14 +277,14 @@ public Command BuildValidatePropertiesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GroupSettingTemplatesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettingTemplates{?%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 GroupSettingTemplatesRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -294,11 +297,11 @@ public GroupSettingTemplatesRequestBuilder(string rawUrl) : base("{+baseurl}/gro /// 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); @@ -314,11 +317,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(GroupSettingTemplate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.GroupSettingTemplate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GroupSettingTemplate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.GroupSettingTemplate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -330,7 +333,8 @@ public RequestInformation ToPostRequestInformation(GroupSettingTemplate body, Ac /// /// Group setting templates represents a set of templates from which group settings may be created and used within a tenant. This operation retrieves the list of available groupSettingTemplates objects. /// - public class GroupSettingTemplatesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupSettingTemplatesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -394,3 +398,4 @@ public class GroupSettingTemplatesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs b/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs index 4be9419c5d..4e83a46515 100644 --- a/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs +++ b/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.GroupSettingTemplates.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberGroupsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List GroupIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberGroupsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberGroupsPostRequestBody() /// /// 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 CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.GroupSettingTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostRequestBody(); + return new global::ApiSdk.GroupSettingTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 455ef3e298..e235831c42 100644 --- a/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.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.GroupSettingTemplates.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountRespon /// /// 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 new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.GroupSettingTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostResponse(); + return new global::ApiSdk.GroupSettingTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 38c23c7324..cc71e5386c 100644 --- a/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.GroupSettingTemplates.Item.CheckMemberGroups /// /// Provides operations to call the checkMemberGroups method. /// - public class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; + command.Description = "Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; var groupSettingTemplateIdOption = new Option("--group-setting-template-id", description: "The unique identifier of groupSettingTemplate") { }; groupSettingTemplateIdOption.IsRequired = true; @@ -55,8 +58,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(CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.GroupSettingTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 CheckMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/checkMemberGroups", 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 CheckMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// /// 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 ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 826de46a78..8403e893f2 100644 --- a/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.GroupSettingTemplates.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberObjectsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsabl public List Ids { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberObjectsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberObjectsPostRequestBody() /// /// 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 CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.GroupSettingTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostRequestBody(); + return new global::ApiSdk.GroupSettingTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index 00c771c083..b0222dbd5e 100644 --- a/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.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.GroupSettingTemplates.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountRespo /// /// 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 new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.GroupSettingTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostResponse(); + return new global::ApiSdk.GroupSettingTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index cb092c4c07..b6e202600e 100644 --- a/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.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.GroupSettingTemplates.Item.CheckMemberObjects /// /// Provides operations to call the checkMemberObjects method. /// - public class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action checkMemberObjects @@ -54,8 +57,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(CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.GroupSettingTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -85,14 +88,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 CheckMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/checkMemberObjects", 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 CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/checkMemberObjects", rawUrl) @@ -106,11 +109,11 @@ public CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/groupS /// 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(CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -121,3 +124,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index 8c895cc74f..dfa902f000 100644 --- a/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.GroupSettingTemplates.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberGroupsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberGroupsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberGroupsPostRequestBody() /// /// 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 GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.GroupSettingTemplates.Item.GetMemberGroups.GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostRequestBody(); + return new global::ApiSdk.GroupSettingTemplates.Item.GetMemberGroups.GetMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index fef3e5814e..b6c380f43a 100644 --- a/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsPostResponse.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.GroupSettingTemplates.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse /// /// 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 new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.GroupSettingTemplates.Item.GetMemberGroups.GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostResponse(); + return new global::ApiSdk.GroupSettingTemplates.Item.GetMemberGroups.GetMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index 4e59085478..9b26b511e4 100644 --- a/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.GroupSettingTemplates.Item.GetMemberGroups /// /// Provides operations to call the getMemberGroups method. /// - public class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; + command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; var groupSettingTemplateIdOption = new Option("--group-setting-template-id", description: "The unique identifier of groupSettingTemplate") { }; groupSettingTemplateIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.GroupSettingTemplates.Item.GetMemberGroups.GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/getMemberGroups", 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 GetMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// /// 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 ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 95a84ad708..a2576901bb 100644 --- a/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.GroupSettingTemplates.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberObjectsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberObjectsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberObjectsPostRequestBody() /// /// 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 GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.GroupSettingTemplates.Item.GetMemberObjects.GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostRequestBody(); + return new global::ApiSdk.GroupSettingTemplates.Item.GetMemberObjects.GetMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index ac090a2f40..475cebcfef 100644 --- a/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsPostResponse.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.GroupSettingTemplates.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountRespons /// /// 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 new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.GroupSettingTemplates.Item.GetMemberObjects.GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostResponse(); + return new global::ApiSdk.GroupSettingTemplates.Item.GetMemberObjects.GetMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index b750558a89..0e87fd3a6b 100644 --- a/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.GroupSettingTemplates.Item.GetMemberObjects /// /// Provides operations to call the getMemberObjects method. /// - public class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; + command.Description = "Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; var groupSettingTemplateIdOption = new Option("--group-setting-template-id", description: "The unique identifier of groupSettingTemplate") { }; groupSettingTemplateIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.GroupSettingTemplates.Item.GetMemberObjects.GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/getMemberObjects", 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 GetMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// /// 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 ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs b/src/generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs index 5bb53a4759..093a3c1527 100644 --- a/src/generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/Item/GroupSettingTemplateItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.GroupSettingTemplates.Item.CheckMemberGroups; using ApiSdk.GroupSettingTemplates.Item.CheckMemberObjects; using ApiSdk.GroupSettingTemplates.Item.GetMemberGroups; @@ -6,6 +7,7 @@ using ApiSdk.GroupSettingTemplates.Item.Restore; 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 +26,8 @@ namespace ApiSdk.GroupSettingTemplates.Item /// /// Provides operations to manage the collection of groupSettingTemplate entities. /// - public class GroupSettingTemplateItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupSettingTemplateItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the checkMemberGroups method. @@ -34,7 +37,7 @@ public Command BuildCheckMemberGroupsNavCommand() { var command = new Command("check-member-groups"); command.Description = "Provides operations to call the checkMemberGroups method."; - var builder = new CheckMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettingTemplates.Item.CheckMemberGroups.CheckMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCheckMemberObjectsNavCommand() { var command = new Command("check-member-objects"); command.Description = "Provides operations to call the checkMemberObjects method."; - var builder = new CheckMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettingTemplates.Item.CheckMemberObjects.CheckMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -156,7 +159,7 @@ public Command BuildGetMemberGroupsNavCommand() { var command = new Command("get-member-groups"); command.Description = "Provides operations to call the getMemberGroups method."; - var builder = new GetMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettingTemplates.Item.GetMemberGroups.GetMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -173,7 +176,7 @@ public Command BuildGetMemberObjectsNavCommand() { var command = new Command("get-member-objects"); command.Description = "Provides operations to call the getMemberObjects method."; - var builder = new GetMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettingTemplates.Item.GetMemberObjects.GetMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -212,8 +215,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(GroupSettingTemplate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.GroupSettingTemplate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -241,7 +244,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettingTemplates.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -251,14 +254,14 @@ public Command BuildRestoreNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GroupSettingTemplateItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%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 GroupSettingTemplateItemRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}{?%24expand,%24select}", rawUrl) @@ -290,11 +293,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); @@ -310,11 +313,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(GroupSettingTemplate body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.GroupSettingTemplate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(GroupSettingTemplate body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.GroupSettingTemplate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -326,7 +329,8 @@ public RequestInformation ToPatchRequestInformation(GroupSettingTemplate body, A /// /// A group setting template represents a template of settings from which settings may be created within a tenant. This operation allows retrieval of the properties of the groupSettingTemplate object, including the available settings and their defaults. /// - public class GroupSettingTemplateItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupSettingTemplateItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -351,3 +355,4 @@ public class GroupSettingTemplateItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs b/src/generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs index 45cdfa3418..87c3879e1f 100644 --- a/src/generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.GroupSettingTemplates.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var groupSettingTemplateIdOption = new Option("--group-setting-template-id", description: "The unique identifier of groupSettingTemplate") { }; groupSettingTemplateIdOption.IsRequired = true; @@ -61,21 +64,21 @@ 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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.GroupSettingTemplates.ValidateProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ValidatePropertiesPostRequestBody : 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. @@ -39,7 +41,7 @@ public class ValidatePropertiesPostRequestBody : IAdditionalDataHolder, IParsabl /// The onBehalfOfUserId property public Guid? OnBehalfOfUserId { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ValidatePropertiesPostRequestBody() { @@ -48,12 +50,12 @@ public ValidatePropertiesPostRequestBody() /// /// 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 ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.GroupSettingTemplates.ValidateProperties.ValidatePropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ValidatePropertiesPostRequestBody(); + return new global::ApiSdk.GroupSettingTemplates.ValidateProperties.ValidatePropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -84,3 +86,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs b/src/generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs index c1036b6a4d..2989f63126 100644 --- a/src/generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/ValidateProperties/ValidatePropertiesRequestBuilder.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.GroupSettingTemplates.ValidateProperties /// /// Provides operations to call the validateProperties method. /// - public class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ValidatePropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. @@ -38,8 +41,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(ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.GroupSettingTemplates.ValidateProperties.ValidatePropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -57,14 +60,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 ValidatePropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettingTemplates/validateProperties", 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 ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates/validateProperties", rawUrl) @@ -78,11 +81,11 @@ public ValidatePropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/groupS /// 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(ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.ValidateProperties.ValidatePropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.GroupSettingTemplates.ValidateProperties.ValidatePropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -93,3 +96,4 @@ public RequestInformation ToPostRequestInformation(ValidatePropertiesPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettings/Count/CountRequestBuilder.cs b/src/generated/GroupSettings/Count/CountRequestBuilder.cs index c9e63086e5..87b3d7b261 100644 --- a/src/generated/GroupSettings/Count/CountRequestBuilder.cs +++ b/src/generated/GroupSettings/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.GroupSettings.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}/groupSettings/$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}/groupSettings/$count{?%24filter,%24search}", rawUrl) @@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettings/$coun /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -92,7 +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/GroupSettings/GroupSettingsRequestBuilder.cs b/src/generated/GroupSettings/GroupSettingsRequestBuilder.cs index aa47f92671..02b582e5fb 100644 --- a/src/generated/GroupSettings/GroupSettingsRequestBuilder.cs +++ b/src/generated/GroupSettings/GroupSettingsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.GroupSettings.Count; using ApiSdk.GroupSettings.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.GroupSettings /// /// Provides operations to manage the collection of groupSetting entities. /// - public class GroupSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of groupSetting entities. @@ -30,7 +33,7 @@ public class GroupSettingsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new GroupSettingItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.GroupSettings.Item.GroupSettingItemRequestBuilder(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.GroupSettings.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(GroupSetting.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.GroupSetting.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 GroupSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettings{?%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 GroupSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -217,11 +220,11 @@ public GroupSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettin /// 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(GroupSetting body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.GroupSetting body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GroupSetting body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.GroupSetting body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(GroupSetting body, Action /// Retrieve a list of tenant-level or group-specific group settings objects. /// - public class GroupSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupSettingsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -317,3 +321,4 @@ public class GroupSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/GroupSettings/Item/GroupSettingItemRequestBuilder.cs b/src/generated/GroupSettings/Item/GroupSettingItemRequestBuilder.cs index 1b4f9f4973..22226f3e5a 100644 --- a/src/generated/GroupSettings/Item/GroupSettingItemRequestBuilder.cs +++ b/src/generated/GroupSettings/Item/GroupSettingItemRequestBuilder.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.GroupSettings.Item /// /// Provides operations to manage the collection of groupSetting entities. /// - public class GroupSettingItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupSettingItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete a tenant-level or group-specific groupSetting object. @@ -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(GroupSetting.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.GroupSetting.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 GroupSettingItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groupSettings/{groupSetting%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 GroupSettingItemRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettings/{groupSetting%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(GroupSetting body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.GroupSetting body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(GroupSetting body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.GroupSetting body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(GroupSetting body, Action /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. /// - public class GroupSettingItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupSettingItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,3 +267,4 @@ public class GroupSettingItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Count/CountRequestBuilder.cs b/src/generated/Groups/Count/CountRequestBuilder.cs index 881cdfb994..7e9c9f3df6 100644 --- a/src/generated/Groups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/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.Groups.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 @@ -64,14 +67,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}/groups/$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}/groups/$count{?%24filter,%24search}", rawUrl) @@ -84,11 +87,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/$count{?%24f /// 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); @@ -99,7 +102,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 @@ -124,3 +128,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Delta/DeltaGetResponse.cs b/src/generated/Groups/Delta/DeltaGetResponse.cs index 3a9b56eec8..90d0cec970 100644 --- a/src/generated/Groups/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Group.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Group.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Delta/DeltaRequestBuilder.cs index 56c45ec786..db2bce6799 100644 --- a/src/generated/Groups/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. See Using Delta Query for details. + /// Get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. See Using Delta Query for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-delta?view=graph-rest-1.0"; + command.Description = "Get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-delta?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -118,31 +121,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. See Using Delta Query for details. + /// Get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -151,9 +154,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. See Using Delta Query for details. + /// Get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -217,3 +221,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs b/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs index bb2aff5208..1ba87d0c08 100644 --- a/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs +++ b/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetAvailableExtensionPropertiesPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetAvailableExtensionPropertiesPostRequestBody : IAdditionalDataHol /// The isSyncedFromOnPremises property public bool? IsSyncedFromOnPremises { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetAvailableExtensionPropertiesPostRequestBody() { @@ -24,12 +26,12 @@ public GetAvailableExtensionPropertiesPostRequestBody() /// /// 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 GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostRequestBody(); + return new global::ApiSdk.Groups.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs b/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs index 2f8be12832..a8ddb38109 100644 --- a/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs +++ b/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.GetAvailableExtensionProperties { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAvailableExtensionPropertiesPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAvailableExtensionPropertiesPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAvailableExtensionPropertiesPostResponse(); + return new global::ApiSdk.Groups.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ExtensionProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ExtensionProperty.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs b/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs index a6d89ce187..8beb2164fa 100644 --- a/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs +++ b/src/generated/Groups/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.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.Groups.GetAvailableExtensionProperties /// /// Provides operations to call the getAvailableExtensionProperties method. /// - public class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAvailableExtensionPropertiesRequestBuilder : BaseCliRequestBuilder { /// /// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: @@ -50,8 +53,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(GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetAvailableExtensionPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/getAvailableExtensionProperties", 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 GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/getAvailableExtensionProperties", rawUrl) @@ -101,11 +104,11 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl) : base("{+ba /// 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(GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetAvailableExtensionProperti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/GetByIds/GetByIdsPostRequestBody.cs b/src/generated/Groups/GetByIds/GetByIdsPostRequestBody.cs index cd57ed7f0d..b5328e6215 100644 --- a/src/generated/Groups/GetByIds/GetByIdsPostRequestBody.cs +++ b/src/generated/Groups/GetByIds/GetByIdsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetByIdsPostRequestBody : 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. @@ -29,7 +31,7 @@ public class GetByIdsPostRequestBody : IAdditionalDataHolder, IParsable public List Types { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetByIdsPostRequestBody() { @@ -38,12 +40,12 @@ public GetByIdsPostRequestBody() /// /// 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 GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.GetByIds.GetByIdsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostRequestBody(); + return new global::ApiSdk.Groups.GetByIds.GetByIdsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "types", n => { Types = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/GetByIds/GetByIdsPostResponse.cs b/src/generated/Groups/GetByIds/GetByIdsPostResponse.cs index 795955f68e..21dbab56dd 100644 --- a/src/generated/Groups/GetByIds/GetByIdsPostResponse.cs +++ b/src/generated/Groups/GetByIds/GetByIdsPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.GetByIds { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetByIdsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetByIdsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.GetByIds.GetByIdsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetByIdsPostResponse(); + return new global::ApiSdk.Groups.GetByIds.GetByIdsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/GetByIds/GetByIdsRequestBuilder.cs b/src/generated/Groups/GetByIds/GetByIdsRequestBuilder.cs index b6cacdf071..1020286f07 100644 --- a/src/generated/Groups/GetByIds/GetByIdsRequestBuilder.cs +++ b/src/generated/Groups/GetByIds/GetByIdsRequestBuilder.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.Groups.GetByIds /// /// Provides operations to call the getByIds method. /// - public class GetByIdsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetByIdsRequestBuilder : BaseCliRequestBuilder { /// /// Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: @@ -50,8 +53,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(GetByIdsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.GetByIds.GetByIdsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetByIdsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/getByIds", 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 GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/getByIds", rawUrl) @@ -101,11 +104,11 @@ public GetByIdsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/getByIds" /// 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(GetByIdsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetByIdsPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/GroupsRequestBuilder.cs b/src/generated/Groups/GroupsRequestBuilder.cs index 2e6ebb8516..3bccd32e69 100644 --- a/src/generated/Groups/GroupsRequestBuilder.cs +++ b/src/generated/Groups/GroupsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Count; using ApiSdk.Groups.Delta; using ApiSdk.Groups.GetAvailableExtensionProperties; @@ -7,6 +8,7 @@ using ApiSdk.Groups.ValidateProperties; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups /// /// Provides operations to manage the collection of group entities. /// - public class GroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of group entities. @@ -35,7 +38,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new GroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.GroupItemRequestBuilder(PathParameters); commands.Add(builder.BuildAcceptedSendersNavCommand()); commands.Add(builder.BuildAddFavoriteNavCommand()); commands.Add(builder.BuildAppRoleAssignmentsNavCommand()); @@ -92,7 +95,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.Groups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -127,8 +130,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.Group.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Group.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -155,7 +158,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -172,7 +175,7 @@ public Command BuildGetAvailableExtensionPropertiesNavCommand() { var command = new Command("get-available-extension-properties"); command.Description = "Provides operations to call the getAvailableExtensionProperties method."; - var builder = new GetAvailableExtensionPropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -189,7 +192,7 @@ public Command BuildGetByIdsNavCommand() { var command = new Command("get-by-ids"); command.Description = "Provides operations to call the getByIds method."; - var builder = new GetByIdsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.GetByIds.GetByIdsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -310,7 +313,7 @@ public Command BuildValidatePropertiesNavCommand() { var command = new Command("validate-properties"); command.Description = "Provides operations to call the validateProperties method."; - var builder = new ValidatePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.ValidateProperties.ValidatePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -320,14 +323,14 @@ public Command BuildValidatePropertiesNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups{?%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 GroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -340,11 +343,11 @@ public GroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups{?%24count,% /// 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); @@ -360,11 +363,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(ApiSdk.Models.Group body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Group body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.Group body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Group body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -376,7 +379,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.Group body, Act /// /// List all the groups available in an organization, excluding dynamic distribution groups. To retrieve dynamic distribution groups, use the Exchange admin center. This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the group and specify the properties in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. /// - public class GroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -440,3 +444,4 @@ public class GroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs b/src/generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs index 04db372ebc..9926baeb58 100644 --- a/src/generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs +++ b/src/generated/Groups/Item/AcceptedSenders/AcceptedSendersRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.AcceptedSenders.Count; using ApiSdk.Groups.Item.AcceptedSenders.Item; using ApiSdk.Groups.Item.AcceptedSenders.Ref; 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.Groups.Item.AcceptedSenders /// /// Provides operations to manage the acceptedSenders property of the microsoft.graph.group entity. /// - public class AcceptedSendersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptedSendersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.groups.item.acceptedSenders.item collection @@ -31,7 +34,7 @@ public class AcceptedSendersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.AcceptedSenders.Item.DirectoryObjectItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -43,7 +46,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.Groups.Item.AcceptedSenders.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,6 +98,11 @@ public Command BuildListCommand() }; 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"); @@ -110,6 +118,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -126,6 +135,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -156,7 +166,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of group entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.AcceptedSenders.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -168,17 +178,17 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public AcceptedSendersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public AcceptedSendersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders{?%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 AcceptedSendersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public AcceptedSendersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -188,11 +198,11 @@ public AcceptedSendersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -203,11 +213,22 @@ public RequestInformation ToGetRequestInformation(Action /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. /// - public class AcceptedSendersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptedSendersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -257,3 +278,4 @@ public class AcceptedSendersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/AcceptedSenders/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/AcceptedSenders/Count/CountRequestBuilder.cs index b60f7a4e31..404713b5ab 100644 --- a/src/generated/Groups/Item/AcceptedSenders/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/AcceptedSenders/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.Groups.Item.AcceptedSenders.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}/groups/{group%2Did}/acceptedSenders/$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}/groups/{group%2Did}/acceptedSenders/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/AcceptedSenders/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Groups/Item/AcceptedSenders/Item/DirectoryObjectItemRequestBuilder.cs index 9d1e9135f5..c250e8e913 100644 --- a/src/generated/Groups/Item/AcceptedSenders/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Groups/Item/AcceptedSenders/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.AcceptedSenders.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Groups.Item.AcceptedSenders.Item /// /// Builds and executes requests for operations under \groups\{group-id}\acceptedSenders\{directoryObject-id} /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of group entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of group entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.AcceptedSenders.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}", 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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}", rawUrl) @@ -50,3 +53,4 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/group } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs b/src/generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs index 0d298f6b59..03ead12885 100644 --- a/src/generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.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.Groups.Item.AcceptedSenders.Item.Ref /// /// Provides operations to manage the collection of group entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove acceptedSender @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#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.Groups.Item.AcceptedSenders.Ref /// /// Provides operations to manage the collection of group entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove acceptedSender @@ -84,6 +87,10 @@ public Command BuildGetCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -107,6 +114,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -121,6 +129,7 @@ public Command BuildGetCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -169,8 +178,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,17 +198,17 @@ 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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24skip,%24top}", pathParameters) + public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24skip,%24top}", rawUrl) + public RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) { } /// @@ -209,11 +218,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref?@id={%40id}", PathParameters); @@ -228,14 +237,14 @@ 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, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24count,%24filter,%24orderby,%24skip,%24top}", PathParameters); + var requestInfo = new RequestInformation(Method.GET, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; @@ -248,11 +257,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +273,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove acceptedSender /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,7 +290,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -304,6 +315,16 @@ public class RefRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Skip the first n items [QueryParameter("%24skip")] @@ -314,3 +335,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.cs b/src/generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.cs index cffcc07efd..6c9995b921 100644 --- a/src/generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.cs +++ b/src/generated/Groups/Item/AddFavorite/AddFavoriteRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Item.AddFavorite /// /// Provides operations to call the addFavorite method. /// - public class AddFavoriteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddFavoriteRequestBuilder : BaseCliRequestBuilder { /// - /// Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + /// Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-addfavorite?view=graph-rest-1.0"; + command.Description = "Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-addfavorite?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -50,21 +53,21 @@ 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 AddFavoriteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/addFavorite", 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 AddFavoriteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/addFavorite", rawUrl) { } /// - /// Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + /// Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.AppRoleAssignments.Count; using ApiSdk.Groups.Item.AppRoleAssignments.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.Groups.Item.AppRoleAssignments /// /// Provides operations to manage the appRoleAssignments property of the microsoft.graph.group entity. /// - public class AppRoleAssignmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppRoleAssignmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the appRoleAssignments property of the microsoft.graph.group entity. @@ -30,7 +33,7 @@ public class AppRoleAssignmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AppRoleAssignmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.AppRoleAssignments.Item.AppRoleAssignmentItemRequestBuilder(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.Groups.Item.AppRoleAssignments.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(AppRoleAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AppRoleAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -216,14 +219,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 AppRoleAssignmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/appRoleAssignments{?%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 AppRoleAssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/appRoleAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -236,11 +239,11 @@ public AppRoleAssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -256,11 +259,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(AppRoleAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AppRoleAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AppRoleAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AppRoleAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -272,7 +275,8 @@ public RequestInformation ToPostRequestInformation(AppRoleAssignment body, Actio /// /// Retrieve the list of appRoleAssignment that have been granted to a group. /// - public class AppRoleAssignmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppRoleAssignmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -336,3 +340,4 @@ public class AppRoleAssignmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/AppRoleAssignments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/AppRoleAssignments/Count/CountRequestBuilder.cs index c558f5bee3..8f985d61ee 100644 --- a/src/generated/Groups/Item/AppRoleAssignments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/AppRoleAssignments/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.Groups.Item.AppRoleAssignments.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 @@ -70,14 +73,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}/groups/{group%2Did}/appRoleAssignments/$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}/groups/{group%2Did}/appRoleAssignments/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs b/src/generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs index 86977e950a..faa48c06bf 100644 --- a/src/generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/AppRoleAssignments/Item/AppRoleAssignmentItemRequestBuilder.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.Groups.Item.AppRoleAssignments.Item /// /// Provides operations to manage the appRoleAssignments property of the microsoft.graph.group entity. /// - public class AppRoleAssignmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppRoleAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Deletes an appRoleAssignment that a group has been granted. @@ -64,13 +67,13 @@ public Command BuildDeleteCommand() return command; } /// - /// Represents the app roles a group has been granted for an application. Supports $expand. + /// Represents the app roles granted to a group for an application. Supports $expand. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Represents the app roles a group has been granted for an application. Supports $expand."; + command.Description = "Represents the app roles granted to a group for an application. Supports $expand."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -163,8 +166,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(AppRoleAssignment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.AppRoleAssignment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -186,14 +189,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 AppRoleAssignmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/appRoleAssignments/{appRoleAssignment%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 AppRoleAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/appRoleAssignments/{appRoleAssignment%2Did}{?%24expand,%24select}", rawUrl) @@ -219,17 +222,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the app roles a group has been granted for an application. Supports $expand. + /// Represents the app roles granted to a group for an application. Supports $expand. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -245,11 +248,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(AppRoleAssignment body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AppRoleAssignment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AppRoleAssignment body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AppRoleAssignment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -259,9 +262,10 @@ public RequestInformation ToPatchRequestInformation(AppRoleAssignment body, Acti return requestInfo; } /// - /// Represents the app roles a group has been granted for an application. Supports $expand. + /// Represents the app roles granted to a group for an application. Supports $expand. /// - public class AppRoleAssignmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AppRoleAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -286,3 +290,4 @@ public class AppRoleAssignmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/AssignLicense/AssignLicensePostRequestBody.cs b/src/generated/Groups/Item/AssignLicense/AssignLicensePostRequestBody.cs index 264b5a1496..a7216206b3 100644 --- a/src/generated/Groups/Item/AssignLicense/AssignLicensePostRequestBody.cs +++ b/src/generated/Groups/Item/AssignLicense/AssignLicensePostRequestBody.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.Groups.Item.AssignLicense { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssignLicensePostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssignLicensePostRequestBody : 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. @@ -16,10 +18,10 @@ public class AssignLicensePostRequestBody : IAdditionalDataHolder, IParsable /// The addLicenses property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? AddLicenses { get; set; } + public List? AddLicenses { get; set; } #nullable restore #else - public List AddLicenses { get; set; } + public List AddLicenses { get; set; } #endif /// The removeLicenses property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -30,7 +32,7 @@ public class AssignLicensePostRequestBody : IAdditionalDataHolder, IParsable public List RemoveLicenses { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssignLicensePostRequestBody() { @@ -39,12 +41,12 @@ public AssignLicensePostRequestBody() /// /// 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 AssignLicensePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.AssignLicense.AssignLicensePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssignLicensePostRequestBody(); + return new global::ApiSdk.Groups.Item.AssignLicense.AssignLicensePostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +56,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "addLicenses", n => { AddLicenses = n.GetCollectionOfObjectValues(AssignedLicense.CreateFromDiscriminatorValue)?.ToList(); } }, - { "removeLicenses", n => { RemoveLicenses = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "addLicenses", n => { AddLicenses = n.GetCollectionOfObjectValues(global::ApiSdk.Models.AssignedLicense.CreateFromDiscriminatorValue)?.AsList(); } }, + { "removeLicenses", n => { RemoveLicenses = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -65,9 +67,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("addLicenses", AddLicenses); + writer.WriteCollectionOfObjectValues("addLicenses", AddLicenses); writer.WriteCollectionOfPrimitiveValues("removeLicenses", RemoveLicenses); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.cs b/src/generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.cs index f9342059cb..d93979a0a1 100644 --- a/src/generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.cs +++ b/src/generated/Groups/Item/AssignLicense/AssignLicenseRequestBuilder.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,17 +21,18 @@ namespace ApiSdk.Groups.Item.AssignLicense /// /// Provides operations to call the assignLicense method. /// - public class AssignLicenseRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignLicenseRequestBuilder : BaseCliRequestBuilder { /// - /// Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + /// Add or remove licenses on a group. Licenses assigned to the group will be assigned to all users in the group. Group-based licensing is an alternative to direct user licensing. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-assignlicense?view=graph-rest-1.0"; + command.Description = "Add or remove licenses on a group. Licenses assigned to the group will be assigned to all users in the group. Group-based licensing is an alternative to direct user licensing. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-assignlicense?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -52,8 +55,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(AssignLicensePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.AssignLicense.AssignLicensePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,32 +77,32 @@ 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 AssignLicenseRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/assignLicense", 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 AssignLicenseRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/assignLicense", rawUrl) { } /// - /// Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + /// Add or remove licenses on a group. Licenses assigned to the group will be assigned to all users in the group. Group-based licensing is an alternative to direct user licensing. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. To get the subscriptions available in the directory, perform a GET subscribedSkus request. /// /// 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 ToPostRequestInformation(AssignLicensePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.AssignLicense.AssignLicensePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssignLicensePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.AssignLicense.AssignLicensePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(AssignLicensePostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs index da2ef9461f..9cb05a5e13 100644 --- a/src/generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs +++ b/src/generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AllowedCalendarSharingRolesWithUserGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class AllowedCalendarSharingRolesWithUserGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AllowedCalendarSharingRolesWithUserGetResponse(); + return new global::ApiSdk.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfEnumValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfEnumValues()?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfEnumValues("value", Value); + writer.WriteCollectionOfEnumValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs index eab5ccac0f..38aba084a6 100644 --- a/src/generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.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.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser /// /// Provides operations to call the allowedCalendarSharingRoles method. /// - public class AllowedCalendarSharingRolesWithUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedCalendarSharingRolesWithUserRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function allowedCalendarSharingRoles @@ -108,14 +111,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 AllowedCalendarSharingRolesWithUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%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 AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) @@ -128,11 +131,11 @@ public AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl) : base(" /// 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); @@ -143,7 +146,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function allowedCalendarSharingRoles /// - public class AllowedCalendarSharingRolesWithUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedCalendarSharingRolesWithUserRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -177,3 +181,4 @@ public class AllowedCalendarSharingRolesWithUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs index 689f2356ac..6067834f54 100644 --- a/src/generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.CalendarPermissions.Count; using ApiSdk.Groups.Item.Calendar.CalendarPermissions.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.Groups.Item.Calendar.CalendarPermissions /// /// Provides operations to manage the calendarPermissions property of the microsoft.graph.calendar entity. /// - public class CalendarPermissionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the calendarPermissions property of the microsoft.graph.calendar entity. @@ -30,7 +33,7 @@ public class CalendarPermissionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new CalendarPermissionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder(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.Groups.Item.Calendar.CalendarPermissions.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(CalendarPermission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CalendarPermission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -146,6 +149,11 @@ public Command BuildListCommand() }; 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"); @@ -161,6 +169,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -177,6 +186,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -200,17 +210,17 @@ 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 CalendarPermissionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public CalendarPermissionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions{?%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 CalendarPermissionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public CalendarPermissionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -220,11 +230,11 @@ public CalendarPermissionsRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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); @@ -240,11 +250,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(CalendarPermission body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CalendarPermission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CalendarPermission body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.CalendarPermission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,11 +266,22 @@ public RequestInformation ToPostRequestInformation(CalendarPermission body, Acti /// /// The permissions of the users with whom the calendar is shared. /// - public class CalendarPermissionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -310,3 +331,4 @@ public class CalendarPermissionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs index 9e2b025cd5..b8b39a98b9 100644 --- a/src/generated/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarPermissions/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.Groups.Item.Calendar.CalendarPermissions.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}/groups/{group%2Did}/calendar/calendarPermissions/$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}/groups/{group%2Did}/calendar/calendarPermissions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs index b2adf2777c..bd6f72bb38 100644 --- a/src/generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.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.Groups.Item.Calendar.CalendarPermissions.Item /// /// Provides operations to manage the calendarPermissions property of the microsoft.graph.calendar entity. /// - public class CalendarPermissionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property calendarPermissions for groups @@ -83,6 +86,11 @@ public Command BuildGetCommand() }; 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"); @@ -91,6 +99,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var calendarPermissionId = invocationContext.ParseResult.GetValueForOption(calendarPermissionIdOption); 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"); @@ -99,6 +108,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (calendarPermissionId is not null) requestInfo.PathParameters.Add("calendarPermission%2Did", calendarPermissionId); @@ -148,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(CalendarPermission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CalendarPermission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,17 +181,17 @@ 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 CalendarPermissionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions/{calendarPermission%2Did}{?%24select}", pathParameters) + public CalendarPermissionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions/{calendarPermission%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 CalendarPermissionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions/{calendarPermission%2Did}{?%24select}", rawUrl) + public CalendarPermissionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions/{calendarPermission%2Did}{?%24expand,%24select}", rawUrl) { } /// @@ -210,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -230,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(CalendarPermission body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CalendarPermission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(CalendarPermission body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CalendarPermission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -246,8 +256,19 @@ public RequestInformation ToPatchRequestInformation(CalendarPermission body, Act /// /// The permissions of the users with whom the calendar is shared. /// - public class CalendarPermissionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilderGetQueryParameters { + /// 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 @@ -261,3 +282,4 @@ public class CalendarPermissionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarRequestBuilder.cs index cc395b8282..248b303155 100644 --- a/src/generated/Groups/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarRequestBuilder.cs @@ -1,11 +1,14 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser; using ApiSdk.Groups.Item.Calendar.CalendarPermissions; using ApiSdk.Groups.Item.Calendar.CalendarView; using ApiSdk.Groups.Item.Calendar.Events; using ApiSdk.Groups.Item.Calendar.GetSchedule; +using ApiSdk.Groups.Item.Calendar.PermanentDelete; 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.Groups.Item.Calendar /// /// Provides operations to manage the calendar property of the microsoft.graph.group entity. /// - public class CalendarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the allowedCalendarSharingRoles method. @@ -34,7 +38,7 @@ public Command BuildAllowedCalendarSharingRolesWithUserRbCommand() { var command = new Command("allowed-calendar-sharing-roles-with-user"); command.Description = "Provides operations to call the allowedCalendarSharingRoles method."; - var builder = new AllowedCalendarSharingRolesWithUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -51,7 +55,7 @@ public Command BuildCalendarPermissionsNavCommand() { var command = new Command("calendar-permissions"); command.Description = "Provides operations to manage the calendarPermissions property of the microsoft.graph.calendar entity."; - var builder = new CalendarPermissionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarPermissions.CalendarPermissionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -78,7 +82,7 @@ public Command BuildCalendarViewNavCommand() { var command = new Command("calendar-view"); command.Description = "Provides operations to manage the calendarView property of the microsoft.graph.calendar entity."; - var builder = new CalendarViewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.CalendarViewRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -105,7 +109,7 @@ public Command BuildEventsNavCommand() { var command = new Command("events"); command.Description = "Provides operations to manage the events property of the microsoft.graph.calendar entity."; - var builder = new EventsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.EventsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -142,6 +146,11 @@ public Command BuildGetCommand() }; 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"); @@ -149,6 +158,7 @@ public Command BuildGetCommand() command.SetHandler(async (invocationContext) => { var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); 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"); @@ -157,6 +167,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -178,7 +189,7 @@ public Command BuildGetScheduleNavCommand() { var command = new Command("get-schedule"); command.Description = "Provides operations to call the getSchedule method."; - var builder = new GetScheduleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.GetSchedule.GetScheduleRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -188,17 +199,34 @@ public Command BuildGetScheduleNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the permanentDelete method. + /// + /// A + public Command BuildPermanentDeleteNavCommand() + { + var command = new Command("permanent-delete"); + command.Description = "Provides operations to call the permanentDelete method."; + var builder = new global::ApiSdk.Groups.Item.Calendar.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar{?%24select}", pathParameters) + public CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar{?%24select}", rawUrl) + public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar{?%24expand,%24select}", rawUrl) { } /// @@ -208,11 +236,11 @@ public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -223,8 +251,19 @@ public RequestInformation ToGetRequestInformation(Action /// The group's calendar. Read-only. /// - public class CalendarRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters { + /// 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 @@ -238,3 +277,4 @@ public class CalendarRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs index 3066d353cf..794e3fb6b5 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.CalendarView.Count; using ApiSdk.Groups.Item.Calendar.CalendarView.Delta; using ApiSdk.Groups.Item.Calendar.CalendarView.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Calendar.CalendarView /// /// Provides operations to manage the calendarView property of the microsoft.graph.calendar entity. /// - public class CalendarViewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the calendarView property of the microsoft.graph.calendar entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.EventItemRequestBuilder(PathParameters); commands.Add(builder.BuildAcceptNavCommand()); commands.Add(builder.BuildAttachmentsNavCommand()); commands.Add(builder.BuildCalendarNavCommand()); @@ -43,6 +46,7 @@ public Tuple, List> BuildCommand() commands.Add(builder.BuildForwardNavCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildInstancesNavCommand()); + commands.Add(builder.BuildPermanentDeleteNavCommand()); commands.Add(builder.BuildSnoozeReminderNavCommand()); commands.Add(builder.BuildTentativelyAcceptNavCommand()); return new(executables, commands); @@ -55,7 +59,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.Groups.Item.Calendar.CalendarView.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -72,7 +76,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -131,6 +135,11 @@ public Command BuildListCommand() }; selectOption.IsRequired = false; command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); var outputOption = new Option("--output", () => FormatterType.JSON); command.AddOption(outputOption); var queryOption = new Option("--query"); @@ -148,6 +157,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -166,6 +176,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -189,17 +200,17 @@ 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 CalendarViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public CalendarViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 CalendarViewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public CalendarViewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -209,11 +220,11 @@ public CalendarViewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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); @@ -224,7 +235,8 @@ public RequestInformation ToGetRequestInformation(Action /// The calendar view for the calendar. Navigation property. Read-only. /// - public class CalendarViewRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -238,6 +250,16 @@ public class CalendarViewRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -298,3 +320,4 @@ public class CalendarViewRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Count/CountRequestBuilder.cs index a2904501be..169e4a2ba2 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/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.Groups.Item.Calendar.CalendarView.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}/groups/{group%2Did}/calendar/calendarView/$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}/groups/{group%2Did}/calendar/calendarView/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs index f18a5f7e5d..969ea76c7b 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Calendar.CalendarView.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Calendar.CalendarView.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs index 35985a5688..62dc1b29d0 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.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.Groups.Item.Calendar.CalendarView.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -136,14 +139,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -255,3 +259,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs index 1e4169e660..d896c92cf0 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Calendar.CalendarView.Item.Accept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcceptPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcceptPostRequestBody() { @@ -32,12 +34,12 @@ public AcceptPostRequestBody() /// /// 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 AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Accept.AcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 8d24a6e500..19d1408c42 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Accept/AcceptRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Accept /// /// Provides operations to call the accept method. /// - public class AcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseCliRequestBuilder { /// /// Accept the specified event in a user calendar. @@ -48,8 +51,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(AcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Accept.AcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 AcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/accept", 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 AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/accept", rawUrl) @@ -90,11 +93,11 @@ public AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(AcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Accept.AcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 0da2553c49..8a6625eee0 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments.Count; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.Calendar.CalendarView.Item.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -118,7 +121,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -236,14 +239,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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -256,11 +259,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -276,11 +279,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -292,7 +295,8 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -356,3 +360,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index 3a4a89f508..639576f098 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/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.Groups.Item.Calendar.CalendarView.Item.Attachments.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/$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}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 4a5ed224f2..40f50589d0 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.Calendar.CalendarView.Item.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index bccf18de89..860976f4eb 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Attachments.CreateUpload /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -57,8 +60,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) @@ -101,11 +104,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 27c96f83a9..851799977e 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Attachments.Item /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -133,14 +136,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -172,11 +175,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); @@ -187,7 +190,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -212,3 +216,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index 3740db2a85..e72acdd695 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Calendar/CalendarRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Calendar /// /// Provides operations to manage the calendar property of the microsoft.graph.event entity. /// - public class CalendarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseCliRequestBuilder { /// /// The calendar that contains the event. Navigation property. Read-only. @@ -42,6 +45,11 @@ public Command BuildGetCommand() }; 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"); @@ -50,6 +58,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); 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"); @@ -58,6 +67,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -73,17 +83,17 @@ 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 CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/calendar{?%24select}", pathParameters) + public CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/calendar{?%24select}", rawUrl) + public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/calendar{?%24expand,%24select}", rawUrl) { } /// @@ -93,11 +103,11 @@ public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -108,8 +118,19 @@ public RequestInformation ToGetRequestInformation(Action /// The calendar that contains the event. Navigation property. Read-only. /// - public class CalendarRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters { + /// 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 @@ -123,3 +144,4 @@ public class CalendarRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs index e4d58de12d..fbf8e22f00 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Calendar.CalendarView.Item.Cancel { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CancelPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CancelPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CancelPostRequestBody : IAdditionalDataHolder, IParsable public string Comment { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CancelPostRequestBody() { @@ -30,12 +32,12 @@ public CancelPostRequestBody() /// /// 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 CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CancelPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Cancel.CancelPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs index ada7968f15..13dbf5228c 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Cancel/CancelRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Cancel /// /// Provides operations to call the cancel method. /// - public class CancelRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. @@ -48,8 +51,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(CancelPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Cancel.CancelPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 CancelRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/cancel", 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 CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/cancel", rawUrl) @@ -90,11 +93,11 @@ public CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(CancelPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Cancel.CancelPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs index 382bfba265..6e789bcb1d 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclinePostRequestBody.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.Groups.Item.Calendar.CalendarView.Item.Decline { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DeclinePostRequestBody : 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,15 +26,15 @@ public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeclinePostRequestBody() { @@ -41,12 +43,12 @@ public DeclinePostRequestBody() /// /// 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 DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeclinePostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Decline.DeclinePostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs index 4bf0bdfbb2..f49835de80 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Decline/DeclineRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Decline /// /// Provides operations to call the decline method. /// - public class DeclineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseCliRequestBuilder { /// /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -48,8 +51,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(DeclinePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Decline.DeclinePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 DeclineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/decline", 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 DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/decline", rawUrl) @@ -90,11 +93,11 @@ public DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(DeclinePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Decline.DeclinePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index d2495e05d2..1f7e695070 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.DismissReminder /// /// Provides operations to call the dismissReminder method. /// - public class DismissReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseCliRequestBuilder { /// /// Dismiss a reminder that has been triggered for an event in a user calendar. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DismissReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/dismissReminder", 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 DismissReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/dismissReminder", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Accept; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Calendar; @@ -8,10 +9,12 @@ using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Extensions; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Forward; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances; +using ApiSdk.Groups.Item.Calendar.CalendarView.Item.PermanentDelete; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.SnoozeReminder; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.TentativelyAccept; 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; @@ -30,7 +33,8 @@ namespace ApiSdk.Groups.Item.Calendar.CalendarView.Item /// /// Provides operations to manage the calendarView property of the microsoft.graph.calendar entity. /// - public class EventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the accept method. @@ -40,7 +44,7 @@ public Command BuildAcceptNavCommand() { var command = new Command("accept"); command.Description = "Provides operations to call the accept method."; - var builder = new AcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Accept.AcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -57,7 +61,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.event entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +89,7 @@ public Command BuildCalendarNavCommand() { var command = new Command("calendar"); command.Description = "Provides operations to manage the calendar property of the microsoft.graph.event entity."; - var builder = new ApiSdk.Groups.Item.Calendar.CalendarView.Item.Calendar.CalendarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Calendar.CalendarRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,7 +106,7 @@ public Command BuildCancelNavCommand() { var command = new Command("cancel"); command.Description = "Provides operations to call the cancel method."; - var builder = new CancelRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Cancel.CancelRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -119,7 +123,7 @@ public Command BuildDeclineNavCommand() { var command = new Command("decline"); command.Description = "Provides operations to call the decline method."; - var builder = new DeclineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Decline.DeclineRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -136,7 +140,7 @@ public Command BuildDismissReminderNavCommand() { var command = new Command("dismiss-reminder"); command.Description = "Provides operations to call the dismissReminder method."; - var builder = new DismissReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -153,7 +157,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.event entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -180,7 +184,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -218,6 +222,11 @@ public Command BuildGetCommand() }; 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"); @@ -228,6 +237,7 @@ public Command BuildGetCommand() var startDateTime = invocationContext.ParseResult.GetValueForOption(startDateTimeOption); var endDateTime = invocationContext.ParseResult.GetValueForOption(endDateTimeOption); 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"); @@ -238,6 +248,7 @@ public Command BuildGetCommand() if (!string.IsNullOrEmpty(startDateTime)) q.QueryParameters.StartDateTime = startDateTime; if (!string.IsNullOrEmpty(endDateTime)) q.QueryParameters.EndDateTime = endDateTime; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -260,7 +271,7 @@ public Command BuildInstancesNavCommand() { var command = new Command("instances"); command.Description = "Provides operations to manage the instances property of the microsoft.graph.event entity."; - var builder = new InstancesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.InstancesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -280,6 +291,23 @@ public Command BuildInstancesNavCommand() return command; } /// + /// Provides operations to call the permanentDelete method. + /// + /// A + public Command BuildPermanentDeleteNavCommand() + { + var command = new Command("permanent-delete"); + command.Description = "Provides operations to call the permanentDelete method."; + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Provides operations to call the snoozeReminder method. /// /// A @@ -287,7 +315,7 @@ public Command BuildSnoozeReminderNavCommand() { var command = new Command("snooze-reminder"); command.Description = "Provides operations to call the snoozeReminder method."; - var builder = new SnoozeReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -304,7 +332,7 @@ public Command BuildTentativelyAcceptNavCommand() { var command = new Command("tentatively-accept"); command.Description = "Provides operations to call the tentativelyAccept method."; - var builder = new TentativelyAcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -314,17 +342,17 @@ public Command BuildTentativelyAcceptNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", pathParameters) + public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", rawUrl) + public EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}", rawUrl) { } /// @@ -334,11 +362,11 @@ public EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -349,7 +377,8 @@ public RequestInformation ToGetRequestInformation(Action /// The calendar view for the calendar. Navigation property. Read-only. /// - public class EventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters { /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -360,6 +389,16 @@ public class EventItemRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 @@ -384,3 +423,4 @@ public class EventItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index eba2fd20ee..f8e8f9da8a 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/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.Groups.Item.Calendar.CalendarView.Item.Extensions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions/$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}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index 5b52a37c5f..f114a1aaf4 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Extensions.Count; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Extensions.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.Groups.Item.Calendar.CalendarView.Item.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.Calendar.CalendarView.Item.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 888a470f32..66ee1e7a2b 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs index db20564463..83f91f6de6 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardPostRequestBody.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.Groups.Item.Calendar.CalendarView.Item.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs index 6fcbf7e66f..63d0eb4111 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Forward/ForwardRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Forward /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. @@ -48,8 +51,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/forward", rawUrl) @@ -90,11 +93,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index 20aef7473d..39a3dab2c5 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/$count{?%24filter,%24search}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index 2856d2383b..8725c9d137 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Calendar.CalendarView.Item.Instances.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index 96fcb4bb3b..0b1187f4ca 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -142,14 +145,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -162,11 +165,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -177,7 +180,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -261,3 +265,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs index 186f3e10d3..3001128237 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Count; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Delta; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. /// - public class InstancesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.EventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.EventItemRequestBuilder(PathParameters); commands.Add(builder.BuildAcceptNavCommand()); commands.Add(builder.BuildAttachmentsNavCommand()); commands.Add(builder.BuildCalendarNavCommand()); @@ -42,6 +45,7 @@ public Tuple, List> BuildCommand() commands.Add(builder.BuildExtensionsNavCommand()); commands.Add(builder.BuildForwardNavCommand()); executables.Add(builder.BuildGetCommand()); + commands.Add(builder.BuildPermanentDeleteNavCommand()); commands.Add(builder.BuildSnoozeReminderNavCommand()); commands.Add(builder.BuildTentativelyAcceptNavCommand()); return new(executables, commands); @@ -54,7 +58,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.Groups.Item.Calendar.CalendarView.Item.Instances.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -71,7 +75,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,13 +85,13 @@ public Command BuildDeltaNavCommand() return command; } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable."; + command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -134,6 +138,11 @@ public Command BuildListCommand() }; 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"); @@ -152,6 +161,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -170,6 +180,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -194,31 +205,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public InstancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public InstancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. - public InstancesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public InstancesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -227,9 +238,10 @@ public RequestInformation ToGetRequestInformation(Action - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// - public class InstancesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -243,6 +255,16 @@ public class InstancesRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -303,3 +325,4 @@ public class InstancesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index dc9038beac..3fe75221a7 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Accept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcceptPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcceptPostRequestBody() { @@ -32,12 +34,12 @@ public AcceptPostRequestBody() /// /// 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 AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Accept.AcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index e961db3232..fc8413e482 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Accept /// /// Provides operations to call the accept method. /// - public class AcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseCliRequestBuilder { /// /// Accept the specified event in a user calendar. @@ -53,8 +56,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(AcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Accept.AcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 AcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/accept", 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 AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) @@ -96,11 +99,11 @@ public AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(AcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Accept.AcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index e1b5d82cfe..9bc4018715 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.Count; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachmen /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -124,7 +127,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -161,6 +164,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -196,6 +203,7 @@ public Command BuildListCommand() var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -212,6 +220,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -242,17 +251,17 @@ 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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -262,11 +271,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -282,11 +291,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -298,7 +307,8 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -332,6 +342,16 @@ public class AttachmentsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -352,3 +372,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 81cbbb8c4b..1d0e0545d6 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachmen /// /// 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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; eventId1Option.IsRequired = true; command.AddOption(eventId1Option); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$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}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index de24ad9220..22e9006467 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 0a46b75418..2b3597c240 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachmen /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -62,8 +65,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) @@ -107,11 +110,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index e38e62132a..cb616557de 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachmen /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -145,14 +148,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -184,11 +187,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); @@ -199,7 +202,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -224,3 +228,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 305851afb8..fe0b32f863 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Calendar /// /// Provides operations to manage the calendar property of the microsoft.graph.event entity. /// - public class CalendarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseCliRequestBuilder { /// /// The calendar that contains the event. Navigation property. Read-only. @@ -46,6 +49,11 @@ public Command BuildGetCommand() }; 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"); @@ -55,6 +63,7 @@ public Command BuildGetCommand() var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); 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"); @@ -63,6 +72,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -79,17 +89,17 @@ 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 CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}", pathParameters) + public CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%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 CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}", rawUrl) + public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%24expand,%24select}", rawUrl) { } /// @@ -99,11 +109,11 @@ public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -114,8 +124,19 @@ public RequestInformation ToGetRequestInformation(Action /// The calendar that contains the event. Navigation property. Read-only. /// - public class CalendarRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters { + /// 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 @@ -129,3 +150,4 @@ public class CalendarRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index c4cfe6c4b3..87a8361a33 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Cancel { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CancelPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CancelPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CancelPostRequestBody : IAdditionalDataHolder, IParsable public string Comment { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CancelPostRequestBody() { @@ -30,12 +32,12 @@ public CancelPostRequestBody() /// /// 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 CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CancelPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Cancel.CancelPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index fc37e4f6a5..203e018ebf 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Cancel /// /// Provides operations to call the cancel method. /// - public class CancelRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. @@ -53,8 +56,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(CancelPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Cancel.CancelPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 CancelRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", 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 CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) @@ -96,11 +99,11 @@ public CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(CancelPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Cancel.CancelPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index d0b123b86f..7db812f851 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Decline { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DeclinePostRequestBody : 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,15 +26,15 @@ public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeclinePostRequestBody() { @@ -41,12 +43,12 @@ public DeclinePostRequestBody() /// /// 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 DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeclinePostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Decline.DeclinePostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index f2ef937768..614ef89c58 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Decline /// /// Provides operations to call the decline method. /// - public class DeclineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseCliRequestBuilder { /// /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -53,8 +56,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(DeclinePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Decline.DeclinePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 DeclineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/decline", 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 DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) @@ -96,11 +99,11 @@ public DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(DeclinePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Decline.DeclinePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 06be4f6c7a..3138573da1 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.DismissRe /// /// Provides operations to call the dismissReminder method. /// - public class DismissReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseCliRequestBuilder { /// /// Dismiss a reminder that has been triggered for an event in a user calendar. @@ -62,14 +65,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 DismissReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", 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 DismissReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Accept; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Calendar; @@ -7,10 +8,12 @@ using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.DismissReminder; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Extensions; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Forward; +using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.PermanentDelete; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SnoozeReminder; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.TentativelyAccept; 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; @@ -29,7 +32,8 @@ namespace ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. /// - public class EventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the accept method. @@ -39,7 +43,7 @@ public Command BuildAcceptNavCommand() { var command = new Command("accept"); command.Description = "Provides operations to call the accept method."; - var builder = new AcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Accept.AcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -56,7 +60,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.event entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -84,7 +88,7 @@ public Command BuildCalendarNavCommand() { var command = new Command("calendar"); command.Description = "Provides operations to manage the calendar property of the microsoft.graph.event entity."; - var builder = new ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Calendar.CalendarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Calendar.CalendarRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -101,7 +105,7 @@ public Command BuildCancelNavCommand() { var command = new Command("cancel"); command.Description = "Provides operations to call the cancel method."; - var builder = new CancelRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Cancel.CancelRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -118,7 +122,7 @@ public Command BuildDeclineNavCommand() { var command = new Command("decline"); command.Description = "Provides operations to call the decline method."; - var builder = new DeclineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Decline.DeclineRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -135,7 +139,7 @@ public Command BuildDismissReminderNavCommand() { var command = new Command("dismiss-reminder"); command.Description = "Provides operations to call the dismissReminder method."; - var builder = new DismissReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -152,7 +156,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.event entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -179,7 +183,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -189,13 +193,13 @@ public Command BuildForwardNavCommand() return command; } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable."; + command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -221,6 +225,11 @@ public Command BuildGetCommand() }; 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"); @@ -232,6 +241,7 @@ public Command BuildGetCommand() var startDateTime = invocationContext.ParseResult.GetValueForOption(startDateTimeOption); var endDateTime = invocationContext.ParseResult.GetValueForOption(endDateTimeOption); 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"); @@ -242,6 +252,7 @@ public Command BuildGetCommand() if (!string.IsNullOrEmpty(startDateTime)) q.QueryParameters.StartDateTime = startDateTime; if (!string.IsNullOrEmpty(endDateTime)) q.QueryParameters.EndDateTime = endDateTime; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -258,6 +269,23 @@ public Command BuildGetCommand() return command; } /// + /// Provides operations to call the permanentDelete method. + /// + /// A + public Command BuildPermanentDeleteNavCommand() + { + var command = new Command("permanent-delete"); + command.Description = "Provides operations to call the permanentDelete method."; + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Provides operations to call the snoozeReminder method. /// /// A @@ -265,7 +293,7 @@ public Command BuildSnoozeReminderNavCommand() { var command = new Command("snooze-reminder"); command.Description = "Provides operations to call the snoozeReminder method."; - var builder = new SnoozeReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -282,7 +310,7 @@ public Command BuildTentativelyAcceptNavCommand() { var command = new Command("tentatively-accept"); command.Description = "Provides operations to call the tentativelyAccept method."; - var builder = new TentativelyAcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -292,31 +320,31 @@ public Command BuildTentativelyAcceptNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", pathParameters) + public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", rawUrl) + public EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}", rawUrl) { } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -325,9 +353,10 @@ public RequestInformation ToGetRequestInformation(Action - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// - public class EventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters { /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -338,6 +367,16 @@ public class EventItemRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 @@ -362,3 +401,4 @@ public class EventItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 8e79e6e9dc..297dab4141 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Extension /// /// 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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; eventId1Option.IsRequired = true; command.AddOption(eventId1Option); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$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}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index b86a0137c1..9af6dafe85 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Extensions.Count; using ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Extensions.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Extension /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -144,6 +147,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -179,6 +186,7 @@ public Command BuildListCommand() var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -195,6 +203,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -225,17 +234,17 @@ 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 ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -245,11 +254,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -265,11 +274,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +290,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,6 +325,16 @@ public class ExtensionsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -335,3 +355,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 37b6bba5e8..1a9c35cf3b 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Extension /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -189,8 +192,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 230f19b677..6f0f568644 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 24b2043e4d..1404150ece 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Forward /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. @@ -53,8 +56,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) @@ -96,11 +99,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 0000000000..16c541b5d7 --- /dev/null +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,101 @@ +// +#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; +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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.PermanentDelete +{ + /// + /// Provides operations to call the permanentDelete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action permanentDelete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action permanentDelete"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var eventIdOption = new Option("--event-id", description: "The unique identifier of event") { + }; + eventIdOption.IsRequired = true; + command.AddOption(eventIdOption); + var eventId1Option = new Option("--event-id1", description: "The unique identifier of event") { + }; + eventId1Option.IsRequired = true; + command.AddOption(eventId1Option); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); + var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); + if (eventId1 is not null) requestInfo.PathParameters.Add("event%2Did1", eventId1); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public PermanentDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public PermanentDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete", rawUrl) + { + } + /// + /// Invoke action permanentDelete + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 8c6a8679f9..6643ac897d 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SnoozeReminder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SnoozeReminderPostRequestBody : 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. @@ -16,13 +18,13 @@ public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable /// The NewReminderTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone? NewReminderTime { get; set; } #nullable restore #else - public DateTimeTimeZone NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone NewReminderTime { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SnoozeReminderPostRequestBody() { @@ -31,12 +33,12 @@ public SnoozeReminderPostRequestBody() /// /// 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 SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SnoozeReminderPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::ApiSdk.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("NewReminderTime", NewReminderTime); + writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 6b687c7614..35ad335892 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SnoozeRem /// /// Provides operations to call the snoozeReminder method. /// - public class SnoozeReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseCliRequestBuilder { /// /// Postpone a reminder for an event in a user calendar until a new time. @@ -53,8 +56,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(SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 SnoozeReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", 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 SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) @@ -96,11 +99,11 @@ public SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index d8e616d2cf..0454b60ae7 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.TentativelyAccept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TentativelyAcceptPostRequestBody : 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,15 +26,15 @@ public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TentativelyAcceptPostRequestBody() { @@ -41,12 +43,12 @@ public TentativelyAcceptPostRequestBody() /// /// 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 TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TentativelyAcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index aff183988d..affd7a0308 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Tentative /// /// Provides operations to call the tentativelyAccept method. /// - public class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder { /// /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -53,8 +56,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(TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 TentativelyAcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", 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 TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) @@ -96,11 +99,11 @@ public TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/ /// 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(TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 0000000000..19c65bd0c2 --- /dev/null +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,95 @@ +// +#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; +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.Groups.Item.Calendar.CalendarView.Item.PermanentDelete +{ + /// + /// Provides operations to call the permanentDelete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action permanentDelete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action permanentDelete"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var eventIdOption = new Option("--event-id", description: "The unique identifier of event") { + }; + eventIdOption.IsRequired = true; + command.AddOption(eventIdOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public PermanentDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public PermanentDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Invoke action permanentDelete + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 10fd6301bd..6f4cc94d95 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.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.Groups.Item.Calendar.CalendarView.Item.SnoozeReminder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SnoozeReminderPostRequestBody : 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. @@ -16,13 +18,13 @@ public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable /// The NewReminderTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone? NewReminderTime { get; set; } #nullable restore #else - public DateTimeTimeZone NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone NewReminderTime { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SnoozeReminderPostRequestBody() { @@ -31,12 +33,12 @@ public SnoozeReminderPostRequestBody() /// /// 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 SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SnoozeReminderPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::ApiSdk.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("NewReminderTime", NewReminderTime); + writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index ad405af7f9..71adc9be29 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.SnoozeReminder /// /// Provides operations to call the snoozeReminder method. /// - public class SnoozeReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseCliRequestBuilder { /// /// Postpone a reminder for an event in a user calendar until a new time. @@ -48,8 +51,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(SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.SnoozeReminder.SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 SnoozeReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/snoozeReminder", 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 SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/snoozeReminder", rawUrl) @@ -90,11 +93,11 @@ public SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 6486cce6fa..44d88634e8 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.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.Groups.Item.Calendar.CalendarView.Item.TentativelyAccept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TentativelyAcceptPostRequestBody : 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,15 +26,15 @@ public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TentativelyAcceptPostRequestBody() { @@ -41,12 +43,12 @@ public TentativelyAcceptPostRequestBody() /// /// 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 TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TentativelyAcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 5f727bb3f0..5179ef6d74 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.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.Groups.Item.Calendar.CalendarView.Item.TentativelyAccept /// /// Provides operations to call the tentativelyAccept method. /// - public class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder { /// /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -48,8 +51,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(TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.TentativelyAccept.TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 TentativelyAcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/tentativelyAccept", 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 TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/tentativelyAccept", rawUrl) @@ -90,11 +93,11 @@ public TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/ /// 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(TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.CalendarView.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Count/CountRequestBuilder.cs index 1b901b7042..e9f7486a1e 100644 --- a/src/generated/Groups/Item/Calendar/Events/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/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.Groups.Item.Calendar.Events.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}/groups/{group%2Did}/calendar/events/$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}/groups/{group%2Did}/calendar/events/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs index d2c46b1b0e..4c4f99aa62 100644 --- a/src/generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Calendar.Events.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Calendar.Events.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs index 97882f8afc..e905a831d6 100644 --- a/src/generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.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.Groups.Item.Calendar.Events.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -136,14 +139,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -255,3 +259,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs index 1f8127aa5e..00dd0219c9 100644 --- a/src/generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/EventsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.Events.Count; using ApiSdk.Groups.Item.Calendar.Events.Delta; using ApiSdk.Groups.Item.Calendar.Events.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Calendar.Events /// /// Provides operations to manage the events property of the microsoft.graph.calendar entity. /// - public class EventsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the events property of the microsoft.graph.calendar entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.EventItemRequestBuilder(PathParameters); commands.Add(builder.BuildAcceptNavCommand()); commands.Add(builder.BuildAttachmentsNavCommand()); commands.Add(builder.BuildCalendarNavCommand()); @@ -45,6 +48,7 @@ public Tuple, List> BuildCommand() executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildInstancesNavCommand()); executables.Add(builder.BuildPatchCommand()); + commands.Add(builder.BuildPermanentDeleteNavCommand()); commands.Add(builder.BuildSnoozeReminderNavCommand()); commands.Add(builder.BuildTentativelyAcceptNavCommand()); return new(executables, commands); @@ -57,7 +61,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.Groups.Item.Calendar.Events.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -96,8 +100,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(Event.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,7 +129,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -237,14 +241,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 EventsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events{?%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 EventsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -257,11 +261,11 @@ public EventsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -277,11 +281,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(Event body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Event body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Event body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Event body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -293,7 +297,8 @@ public RequestInformation ToPostRequestInformation(Event body, Action /// The events in the calendar. Navigation property. Read-only. /// - public class EventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -357,3 +362,4 @@ public class EventsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs index 8769fb6d5d..58b8fa87be 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Calendar.Events.Item.Accept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcceptPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcceptPostRequestBody() { @@ -32,12 +34,12 @@ public AcceptPostRequestBody() /// /// 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 AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs index 05573aa5ed..7001f6798b 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.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.Groups.Item.Calendar.Events.Item.Accept /// /// Provides operations to call the accept method. /// - public class AcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseCliRequestBuilder { /// /// Accept the specified event in a user calendar. @@ -48,8 +51,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(AcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 AcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/accept", 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 AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/accept", rawUrl) @@ -90,11 +93,11 @@ public AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(AcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 0b69de4b7f..5e562a07c4 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.Events.Item.Attachments.Count; using ApiSdk.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.Calendar.Events.Item.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Calendar.Events.Item.Attachments /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.Calendar.Events.Item.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -118,7 +121,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -236,14 +239,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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -256,11 +259,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -276,11 +279,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -292,7 +295,8 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -356,3 +360,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs index 0053b2d507..141f4dfb96 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/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.Groups.Item.Calendar.Events.Item.Attachments.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/$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}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 952e43990d..3c674f4d4e 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index c56161938d..8964e79501 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSessio /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -57,8 +60,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession", rawUrl) @@ -101,11 +104,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 9c37f8e5d4..4448dc8e48 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.Calendar.Events.Item.Attachments.Item /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -133,14 +136,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -172,11 +175,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); @@ -187,7 +190,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -212,3 +216,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs index cce43198f0..10a90aa7a5 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.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.Groups.Item.Calendar.Events.Item.Calendar /// /// Provides operations to manage the calendar property of the microsoft.graph.event entity. /// - public class CalendarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseCliRequestBuilder { /// /// The calendar that contains the event. Navigation property. Read-only. @@ -42,6 +45,11 @@ public Command BuildGetCommand() }; 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"); @@ -50,6 +58,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); 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"); @@ -58,6 +67,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -73,17 +83,17 @@ 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 CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/calendar{?%24select}", pathParameters) + public CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/calendar{?%24select}", rawUrl) + public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/calendar{?%24expand,%24select}", rawUrl) { } /// @@ -93,11 +103,11 @@ public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -108,8 +118,19 @@ public RequestInformation ToGetRequestInformation(Action /// The calendar that contains the event. Navigation property. Read-only. /// - public class CalendarRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters { + /// 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 @@ -123,3 +144,4 @@ public class CalendarRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs index 9bb47b22f1..983899e0f3 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Calendar.Events.Item.Cancel { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CancelPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CancelPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CancelPostRequestBody : IAdditionalDataHolder, IParsable public string Comment { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CancelPostRequestBody() { @@ -30,12 +32,12 @@ public CancelPostRequestBody() /// /// 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 CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CancelPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs index 1e829f595d..b9b36660e9 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.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.Groups.Item.Calendar.Events.Item.Cancel /// /// Provides operations to call the cancel method. /// - public class CancelRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. @@ -48,8 +51,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(CancelPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 CancelRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/cancel", 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 CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/cancel", rawUrl) @@ -90,11 +93,11 @@ public CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(CancelPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs index 9b3a3c7c24..4ed948c3fa 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.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.Groups.Item.Calendar.Events.Item.Decline { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DeclinePostRequestBody : 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,15 +26,15 @@ public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeclinePostRequestBody() { @@ -41,12 +43,12 @@ public DeclinePostRequestBody() /// /// 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 DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeclinePostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs index 61f02183c6..2a3e63ac6e 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.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.Groups.Item.Calendar.Events.Item.Decline /// /// Provides operations to call the decline method. /// - public class DeclineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseCliRequestBuilder { /// /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -48,8 +51,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(DeclinePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 DeclineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/decline", 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 DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/decline", rawUrl) @@ -90,11 +93,11 @@ public DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(DeclinePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 939ad3b00a..2f65d885e3 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.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.Groups.Item.Calendar.Events.Item.DismissReminder /// /// Provides operations to call the dismissReminder method. /// - public class DismissReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseCliRequestBuilder { /// /// Dismiss a reminder that has been triggered for an event in a user calendar. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DismissReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/dismissReminder", 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 DismissReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/dismissReminder", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.Events.Item.Accept; using ApiSdk.Groups.Item.Calendar.Events.Item.Attachments; using ApiSdk.Groups.Item.Calendar.Events.Item.Calendar; @@ -8,10 +9,12 @@ using ApiSdk.Groups.Item.Calendar.Events.Item.Extensions; using ApiSdk.Groups.Item.Calendar.Events.Item.Forward; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances; +using ApiSdk.Groups.Item.Calendar.Events.Item.PermanentDelete; using ApiSdk.Groups.Item.Calendar.Events.Item.SnoozeReminder; using ApiSdk.Groups.Item.Calendar.Events.Item.TentativelyAccept; 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; @@ -30,7 +33,8 @@ namespace ApiSdk.Groups.Item.Calendar.Events.Item /// /// Provides operations to manage the events property of the microsoft.graph.calendar entity. /// - public class EventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the accept method. @@ -40,7 +44,7 @@ public Command BuildAcceptNavCommand() { var command = new Command("accept"); command.Description = "Provides operations to call the accept method."; - var builder = new AcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Accept.AcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -57,7 +61,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.event entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +89,7 @@ public Command BuildCalendarNavCommand() { var command = new Command("calendar"); command.Description = "Provides operations to manage the calendar property of the microsoft.graph.event entity."; - var builder = new ApiSdk.Groups.Item.Calendar.Events.Item.Calendar.CalendarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Calendar.CalendarRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,7 +106,7 @@ public Command BuildCancelNavCommand() { var command = new Command("cancel"); command.Description = "Provides operations to call the cancel method."; - var builder = new CancelRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Cancel.CancelRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -119,7 +123,7 @@ public Command BuildDeclineNavCommand() { var command = new Command("decline"); command.Description = "Provides operations to call the decline method."; - var builder = new DeclineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Decline.DeclineRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -177,7 +181,7 @@ public Command BuildDismissReminderNavCommand() { var command = new Command("dismiss-reminder"); command.Description = "Provides operations to call the dismissReminder method."; - var builder = new DismissReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -194,7 +198,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.event entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -221,7 +225,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -296,7 +300,7 @@ public Command BuildInstancesNavCommand() { var command = new Command("instances"); command.Description = "Provides operations to manage the instances property of the microsoft.graph.event entity."; - var builder = new InstancesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.InstancesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -351,8 +355,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(Event.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -374,6 +378,23 @@ public Command BuildPatchCommand() return command; } /// + /// Provides operations to call the permanentDelete method. + /// + /// A + public Command BuildPermanentDeleteNavCommand() + { + var command = new Command("permanent-delete"); + command.Description = "Provides operations to call the permanentDelete method."; + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Provides operations to call the snoozeReminder method. /// /// A @@ -381,7 +402,7 @@ public Command BuildSnoozeReminderNavCommand() { var command = new Command("snooze-reminder"); command.Description = "Provides operations to call the snoozeReminder method."; - var builder = new SnoozeReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -398,7 +419,7 @@ public Command BuildTentativelyAcceptNavCommand() { var command = new Command("tentatively-accept"); command.Description = "Provides operations to call the tentativelyAccept method."; - var builder = new TentativelyAcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -408,14 +429,14 @@ public Command BuildTentativelyAcceptNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%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 EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}{?%24expand,%24select}", rawUrl) @@ -447,11 +468,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); @@ -467,11 +488,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(Event body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Event body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Event body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Event body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -483,7 +504,8 @@ public RequestInformation ToPatchRequestInformation(Event body, Action /// The events in the calendar. Navigation property. Read-only. /// - public class EventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -508,3 +530,4 @@ public class EventItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs index 04bb7638c5..efeb3313fd 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Extensions/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.Groups.Item.Calendar.Events.Item.Extensions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/$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}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs index 1b1004d5a7..8be1676964 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.Events.Item.Extensions.Count; using ApiSdk.Groups.Item.Calendar.Events.Item.Extensions.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.Groups.Item.Calendar.Events.Item.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.Calendar.Events.Item.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 41405eb663..e513e4e0c9 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.Calendar.Events.Item.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs index 69969dea21..2dfd99d302 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.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.Groups.Item.Calendar.Events.Item.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs index bae38edc46..dfef6da0fa 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.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.Groups.Item.Calendar.Events.Item.Forward /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. @@ -48,8 +51,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/forward", rawUrl) @@ -90,11 +93,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs index cb1ce389a0..63b2744083 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/$count{?%24filter,%24search}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs index 608904f5d2..9051d408bf 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Calendar.Events.Item.Instances.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index b7dff8b6d1..1445b66b07 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -142,14 +145,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -162,11 +165,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -177,7 +180,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -261,3 +265,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs index d8edd17581..e5fa5399df 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Count; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Delta; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Calendar.Events.Item.Instances /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. /// - public class InstancesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.EventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.EventItemRequestBuilder(PathParameters); commands.Add(builder.BuildAcceptNavCommand()); commands.Add(builder.BuildAttachmentsNavCommand()); commands.Add(builder.BuildCalendarNavCommand()); @@ -42,6 +45,7 @@ public Tuple, List> BuildCommand() commands.Add(builder.BuildExtensionsNavCommand()); commands.Add(builder.BuildForwardNavCommand()); executables.Add(builder.BuildGetCommand()); + commands.Add(builder.BuildPermanentDeleteNavCommand()); commands.Add(builder.BuildSnoozeReminderNavCommand()); commands.Add(builder.BuildTentativelyAcceptNavCommand()); return new(executables, commands); @@ -54,7 +58,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.Groups.Item.Calendar.Events.Item.Instances.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -71,7 +75,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,13 +85,13 @@ public Command BuildDeltaNavCommand() return command; } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable."; + command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -134,6 +138,11 @@ public Command BuildListCommand() }; 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"); @@ -152,6 +161,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -170,6 +180,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -194,31 +205,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public InstancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public InstancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. - public InstancesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public InstancesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -227,9 +238,10 @@ public RequestInformation ToGetRequestInformation(Action - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// - public class InstancesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -243,6 +255,16 @@ public class InstancesRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -303,3 +325,4 @@ public class InstancesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 34078f3e64..4c252d10bd 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Accept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcceptPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcceptPostRequestBody() { @@ -32,12 +34,12 @@ public AcceptPostRequestBody() /// /// 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 AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Accept.AcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 1206828e8c..4600ef7f4a 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Item.Accept /// /// Provides operations to call the accept method. /// - public class AcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseCliRequestBuilder { /// /// Accept the specified event in a user calendar. @@ -53,8 +56,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(AcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Accept.AcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 AcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/accept", 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 AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) @@ -96,11 +99,11 @@ public AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(AcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Accept.AcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 82e8bada79..8dff511b9b 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.Count; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -124,7 +127,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -161,6 +164,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -196,6 +203,7 @@ public Command BuildListCommand() var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -212,6 +220,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -242,17 +251,17 @@ 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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -262,11 +271,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -282,11 +291,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -298,7 +307,8 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -332,6 +342,16 @@ public class AttachmentsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -352,3 +372,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index 50a6d5fb7b..3942b9d5bf 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/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.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.Cou /// /// 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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; eventId1Option.IsRequired = true; command.AddOption(eventId1Option); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/$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}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 07ef07dd88..c725db7c8e 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 04c5d0d885..ad1272a529 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.Cre /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -62,8 +65,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) @@ -107,11 +110,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 4aab1d5761..47e127afb6 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.Ite /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -145,14 +148,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -184,11 +187,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); @@ -199,7 +202,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -224,3 +228,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index b21f48b68a..401aafcad6 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Item.Calendar /// /// Provides operations to manage the calendar property of the microsoft.graph.event entity. /// - public class CalendarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseCliRequestBuilder { /// /// The calendar that contains the event. Navigation property. Read-only. @@ -46,6 +49,11 @@ public Command BuildGetCommand() }; 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"); @@ -55,6 +63,7 @@ public Command BuildGetCommand() var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); 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"); @@ -63,6 +72,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -79,17 +89,17 @@ 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 CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}", pathParameters) + public CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/calendar{?%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 CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}", rawUrl) + public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/calendar{?%24expand,%24select}", rawUrl) { } /// @@ -99,11 +109,11 @@ public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -114,8 +124,19 @@ public RequestInformation ToGetRequestInformation(Action /// The calendar that contains the event. Navigation property. Read-only. /// - public class CalendarRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters { + /// 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 @@ -129,3 +150,4 @@ public class CalendarRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 997609436d..9682ac71f7 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Cancel { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CancelPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CancelPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CancelPostRequestBody : IAdditionalDataHolder, IParsable public string Comment { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CancelPostRequestBody() { @@ -30,12 +32,12 @@ public CancelPostRequestBody() /// /// 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 CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CancelPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Cancel.CancelPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index b54899c654..1e523bfa4e 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Item.Cancel /// /// Provides operations to call the cancel method. /// - public class CancelRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. @@ -53,8 +56,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(CancelPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Cancel.CancelPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 CancelRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/cancel", 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 CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) @@ -96,11 +99,11 @@ public CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(CancelPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Cancel.CancelPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index cab68365e1..69d56d64fd 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.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.Groups.Item.Calendar.Events.Item.Instances.Item.Decline { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DeclinePostRequestBody : 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,15 +26,15 @@ public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeclinePostRequestBody() { @@ -41,12 +43,12 @@ public DeclinePostRequestBody() /// /// 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 DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeclinePostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Decline.DeclinePostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 6e7e27cc37..e40835d2e2 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Item.Decline /// /// Provides operations to call the decline method. /// - public class DeclineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseCliRequestBuilder { /// /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -53,8 +56,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(DeclinePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Decline.DeclinePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 DeclineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/decline", 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 DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) @@ -96,11 +99,11 @@ public DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(DeclinePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Decline.DeclinePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index 4521ce0144..77c2667e54 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Item.DismissReminder /// /// Provides operations to call the dismissReminder method. /// - public class DismissReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseCliRequestBuilder { /// /// Dismiss a reminder that has been triggered for an event in a user calendar. @@ -62,14 +65,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 DismissReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", 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 DismissReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Accept; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Calendar; @@ -7,10 +8,12 @@ using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.DismissReminder; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Extensions; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Forward; +using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.PermanentDelete; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.SnoozeReminder; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.TentativelyAccept; 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; @@ -29,7 +32,8 @@ namespace ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. /// - public class EventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the accept method. @@ -39,7 +43,7 @@ public Command BuildAcceptNavCommand() { var command = new Command("accept"); command.Description = "Provides operations to call the accept method."; - var builder = new AcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Accept.AcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -56,7 +60,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.event entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -84,7 +88,7 @@ public Command BuildCalendarNavCommand() { var command = new Command("calendar"); command.Description = "Provides operations to manage the calendar property of the microsoft.graph.event entity."; - var builder = new ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Calendar.CalendarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Calendar.CalendarRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -101,7 +105,7 @@ public Command BuildCancelNavCommand() { var command = new Command("cancel"); command.Description = "Provides operations to call the cancel method."; - var builder = new CancelRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Cancel.CancelRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -118,7 +122,7 @@ public Command BuildDeclineNavCommand() { var command = new Command("decline"); command.Description = "Provides operations to call the decline method."; - var builder = new DeclineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Decline.DeclineRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -135,7 +139,7 @@ public Command BuildDismissReminderNavCommand() { var command = new Command("dismiss-reminder"); command.Description = "Provides operations to call the dismissReminder method."; - var builder = new DismissReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -152,7 +156,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.event entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -179,7 +183,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -189,13 +193,13 @@ public Command BuildForwardNavCommand() return command; } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable."; + command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -221,6 +225,11 @@ public Command BuildGetCommand() }; 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"); @@ -232,6 +241,7 @@ public Command BuildGetCommand() var startDateTime = invocationContext.ParseResult.GetValueForOption(startDateTimeOption); var endDateTime = invocationContext.ParseResult.GetValueForOption(endDateTimeOption); 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"); @@ -242,6 +252,7 @@ public Command BuildGetCommand() if (!string.IsNullOrEmpty(startDateTime)) q.QueryParameters.StartDateTime = startDateTime; if (!string.IsNullOrEmpty(endDateTime)) q.QueryParameters.EndDateTime = endDateTime; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -258,6 +269,23 @@ public Command BuildGetCommand() return command; } /// + /// Provides operations to call the permanentDelete method. + /// + /// A + public Command BuildPermanentDeleteNavCommand() + { + var command = new Command("permanent-delete"); + command.Description = "Provides operations to call the permanentDelete method."; + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Provides operations to call the snoozeReminder method. /// /// A @@ -265,7 +293,7 @@ public Command BuildSnoozeReminderNavCommand() { var command = new Command("snooze-reminder"); command.Description = "Provides operations to call the snoozeReminder method."; - var builder = new SnoozeReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -282,7 +310,7 @@ public Command BuildTentativelyAcceptNavCommand() { var command = new Command("tentatively-accept"); command.Description = "Provides operations to call the tentativelyAccept method."; - var builder = new TentativelyAcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -292,31 +320,31 @@ public Command BuildTentativelyAcceptNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", pathParameters) + public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", rawUrl) + public EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}", rawUrl) { } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -325,9 +353,10 @@ public RequestInformation ToGetRequestInformation(Action - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// - public class EventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters { /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -338,6 +367,16 @@ public class EventItemRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 @@ -362,3 +401,4 @@ public class EventItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index d75655b0c7..4c39457462 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/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.Groups.Item.Calendar.Events.Item.Instances.Item.Extensions.Coun /// /// 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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; eventId1Option.IsRequired = true; command.AddOption(eventId1Option); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions/$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}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 414cb30eb7..67bacfbe9e 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Extensions.Count; using ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Extensions.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.Groups.Item.Calendar.Events.Item.Instances.Item.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.Calendar.Events.Item.Instances.Item.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -144,6 +147,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -179,6 +186,7 @@ public Command BuildListCommand() var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -195,6 +203,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -225,17 +234,17 @@ 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 ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -245,11 +254,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -265,11 +274,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +290,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,6 +325,16 @@ public class ExtensionsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -335,3 +355,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 6a88022fc1..c961e10ac5 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Item.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -189,8 +192,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 3a498c1d3f..61b6cbc79e 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.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.Groups.Item.Calendar.Events.Item.Instances.Item.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 23cb508851..337df698b4 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Item.Forward /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. @@ -53,8 +56,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) @@ -96,11 +99,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 0000000000..d5d5005c81 --- /dev/null +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,101 @@ +// +#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; +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.Groups.Item.Calendar.Events.Item.Instances.Item.PermanentDelete +{ + /// + /// Provides operations to call the permanentDelete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action permanentDelete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action permanentDelete"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var eventIdOption = new Option("--event-id", description: "The unique identifier of event") { + }; + eventIdOption.IsRequired = true; + command.AddOption(eventIdOption); + var eventId1Option = new Option("--event-id1", description: "The unique identifier of event") { + }; + eventId1Option.IsRequired = true; + command.AddOption(eventId1Option); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); + var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); + if (eventId1 is not null) requestInfo.PathParameters.Add("event%2Did1", eventId1); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public PermanentDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public PermanentDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/permanentDelete", rawUrl) + { + } + /// + /// Invoke action permanentDelete + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index ca46557062..a55ad1cf20 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.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.Groups.Item.Calendar.Events.Item.Instances.Item.SnoozeReminder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SnoozeReminderPostRequestBody : 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. @@ -16,13 +18,13 @@ public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable /// The NewReminderTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone? NewReminderTime { get; set; } #nullable restore #else - public DateTimeTimeZone NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone NewReminderTime { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SnoozeReminderPostRequestBody() { @@ -31,12 +33,12 @@ public SnoozeReminderPostRequestBody() /// /// 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 SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SnoozeReminderPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::ApiSdk.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("NewReminderTime", NewReminderTime); + writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 98f38458f6..6dc660beb2 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Item.SnoozeReminder /// /// Provides operations to call the snoozeReminder method. /// - public class SnoozeReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseCliRequestBuilder { /// /// Postpone a reminder for an event in a user calendar until a new time. @@ -53,8 +56,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(SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 SnoozeReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", 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 SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) @@ -96,11 +99,11 @@ public SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index f70fb18ea5..4833b88e2f 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.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.Groups.Item.Calendar.Events.Item.Instances.Item.TentativelyAccept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TentativelyAcceptPostRequestBody : 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,15 +26,15 @@ public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TentativelyAcceptPostRequestBody() { @@ -41,12 +43,12 @@ public TentativelyAcceptPostRequestBody() /// /// 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 TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TentativelyAcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index ebf8782a05..36349b1a04 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.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.Groups.Item.Calendar.Events.Item.Instances.Item.TentativelyAcce /// /// Provides operations to call the tentativelyAccept method. /// - public class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder { /// /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -53,8 +56,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(TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 TentativelyAcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", 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 TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) @@ -96,11 +99,11 @@ public TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/ /// 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(TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 0000000000..a5769da93f --- /dev/null +++ b/src/generated/Groups/Item/Calendar/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,95 @@ +// +#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; +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.Groups.Item.Calendar.Events.Item.PermanentDelete +{ + /// + /// Provides operations to call the permanentDelete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action permanentDelete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action permanentDelete"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var eventIdOption = new Option("--event-id", description: "The unique identifier of event") { + }; + eventIdOption.IsRequired = true; + command.AddOption(eventIdOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public PermanentDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public PermanentDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Invoke action permanentDelete + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 3ea3585e36..03f82df55d 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.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.Groups.Item.Calendar.Events.Item.SnoozeReminder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SnoozeReminderPostRequestBody : 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. @@ -16,13 +18,13 @@ public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable /// The NewReminderTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone? NewReminderTime { get; set; } #nullable restore #else - public DateTimeTimeZone NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone NewReminderTime { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SnoozeReminderPostRequestBody() { @@ -31,12 +33,12 @@ public SnoozeReminderPostRequestBody() /// /// 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 SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SnoozeReminderPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::ApiSdk.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("NewReminderTime", NewReminderTime); + writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index b1b467a731..9171e27f62 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.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.Groups.Item.Calendar.Events.Item.SnoozeReminder /// /// Provides operations to call the snoozeReminder method. /// - public class SnoozeReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseCliRequestBuilder { /// /// Postpone a reminder for an event in a user calendar until a new time. @@ -48,8 +51,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(SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 SnoozeReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/snoozeReminder", 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 SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/snoozeReminder", rawUrl) @@ -90,11 +93,11 @@ public SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 477229c823..84da2b2352 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.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.Groups.Item.Calendar.Events.Item.TentativelyAccept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TentativelyAcceptPostRequestBody : 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,15 +26,15 @@ public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TentativelyAcceptPostRequestBody() { @@ -41,12 +43,12 @@ public TentativelyAcceptPostRequestBody() /// /// 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 TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TentativelyAcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 094a788bc0..2c1627b207 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.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.Groups.Item.Calendar.Events.Item.TentativelyAccept /// /// Provides operations to call the tentativelyAccept method. /// - public class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder { /// /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -48,8 +51,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(TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 TentativelyAcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/tentativelyAccept", 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 TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/tentativelyAccept", rawUrl) @@ -90,11 +93,11 @@ public TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/ /// 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(TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs b/src/generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs index 39265ae3a5..9393f5033e 100644 --- a/src/generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs +++ b/src/generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.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.Groups.Item.Calendar.GetSchedule { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetSchedulePostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetSchedulePostRequestBody : 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. @@ -18,10 +20,10 @@ public class GetSchedulePostRequestBody : IAdditionalDataHolder, IParsable /// The EndTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? EndTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone? EndTime { get; set; } #nullable restore #else - public DateTimeTimeZone EndTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone EndTime { get; set; } #endif /// The Schedules property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -34,13 +36,13 @@ public class GetSchedulePostRequestBody : IAdditionalDataHolder, IParsable /// The StartTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? StartTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone? StartTime { get; set; } #nullable restore #else - public DateTimeTimeZone StartTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone StartTime { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetSchedulePostRequestBody() { @@ -49,12 +51,12 @@ public GetSchedulePostRequestBody() /// /// 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 GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetSchedulePostRequestBody(); + return new global::ApiSdk.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody(); } /// /// The deserialization information for the current model @@ -65,9 +67,9 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, - { "EndTime", n => { EndTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, - { "Schedules", n => { Schedules = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "StartTime", n => { StartTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "EndTime", n => { EndTime = n.GetObjectValue(global::ApiSdk.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "Schedules", n => { Schedules = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "StartTime", n => { StartTime = n.GetObjectValue(global::ApiSdk.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; } /// @@ -78,10 +80,11 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); - writer.WriteObjectValue("EndTime", EndTime); + writer.WriteObjectValue("EndTime", EndTime); writer.WriteCollectionOfPrimitiveValues("Schedules", Schedules); - writer.WriteObjectValue("StartTime", StartTime); + writer.WriteObjectValue("StartTime", StartTime); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs b/src/generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs index 73a26a6fac..dfc0d9b67a 100644 --- a/src/generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs +++ b/src/generated/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Calendar.GetSchedule { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetSchedulePostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetSchedulePostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Calendar.GetSchedule.GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetSchedulePostResponse(); + return new global::ApiSdk.Groups.Item.Calendar.GetSchedule.GetSchedulePostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ScheduleInformation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ScheduleInformation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs b/src/generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs index 1fcf1a8c70..670a28a7fc 100644 --- a/src/generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.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.Groups.Item.Calendar.GetSchedule /// /// Provides operations to call the getSchedule method. /// - public class GetScheduleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetScheduleRequestBuilder : BaseCliRequestBuilder { /// /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. @@ -55,8 +58,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(GetSchedulePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 GetScheduleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/getSchedule", 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 GetScheduleRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/getSchedule", rawUrl) @@ -107,11 +110,11 @@ public GetScheduleRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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(GetSchedulePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetSchedulePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetSchedulePostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Calendar/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/generated/Groups/Item/Calendar/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 0000000000..88e23b4c5f --- /dev/null +++ b/src/generated/Groups/Item/Calendar/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,90 @@ +// +#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; +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.Groups.Item.Calendar.PermanentDelete +{ + /// + /// Provides operations to call the permanentDelete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure deleted item retention and recoverable items quotas. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure deleted item retention and recoverable items quotas.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/calendar-permanentdelete?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public PermanentDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendar/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public PermanentDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendar/permanentDelete", rawUrl) + { + } + /// + /// Permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure deleted item retention and recoverable items quotas. + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs index b88928dbd6..40fc58738f 100644 --- a/src/generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.CalendarView.Count; using ApiSdk.Groups.Item.CalendarView.Delta; using ApiSdk.Groups.Item.CalendarView.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.CalendarView /// /// Provides operations to manage the calendarView property of the microsoft.graph.group entity. /// - public class CalendarViewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the calendarView property of the microsoft.graph.group entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.EventItemRequestBuilder(PathParameters); commands.Add(builder.BuildAcceptNavCommand()); commands.Add(builder.BuildAttachmentsNavCommand()); commands.Add(builder.BuildCalendarNavCommand()); @@ -43,6 +46,7 @@ public Tuple, List> BuildCommand() commands.Add(builder.BuildForwardNavCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildInstancesNavCommand()); + commands.Add(builder.BuildPermanentDeleteNavCommand()); commands.Add(builder.BuildSnoozeReminderNavCommand()); commands.Add(builder.BuildTentativelyAcceptNavCommand()); return new(executables, commands); @@ -55,7 +59,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.Groups.Item.CalendarView.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -72,7 +76,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -132,6 +136,11 @@ public Command BuildListCommand() }; 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"); @@ -149,6 +158,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -167,6 +177,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -190,17 +201,17 @@ 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 CalendarViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public CalendarViewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 CalendarViewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public CalendarViewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -210,11 +221,11 @@ public CalendarViewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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); @@ -225,7 +236,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range,from the default calendar of a group. /// - public class CalendarViewRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -239,6 +251,16 @@ public class CalendarViewRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -299,3 +321,4 @@ public class CalendarViewRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Count/CountRequestBuilder.cs index 91fc0c7621..ce0bc4d010 100644 --- a/src/generated/Groups/Item/CalendarView/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/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.Groups.Item.CalendarView.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 @@ -75,14 +78,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}/groups/{group%2Did}/calendarView/$count?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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}/groups/{group%2Did}/calendarView/$count?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 { /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -155,3 +159,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs index ad96e0b7ab..bb5ab19832 100644 --- a/src/generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.CalendarView.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.CalendarView.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.CalendarView.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs index 8481abe097..8fbb052cff 100644 --- a/src/generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.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.Groups.Item.CalendarView.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -136,14 +139,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -255,3 +259,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs index c411f9a136..06cf94e6f9 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Accept/AcceptPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.CalendarView.Item.Accept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcceptPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcceptPostRequestBody() { @@ -32,12 +34,12 @@ public AcceptPostRequestBody() /// /// 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 AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Accept.AcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs index 608e66e7fd..6aa590759e 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Accept/AcceptRequestBuilder.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.Groups.Item.CalendarView.Item.Accept /// /// Provides operations to call the accept method. /// - public class AcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseCliRequestBuilder { /// /// Accept the specified event in a user calendar. @@ -48,8 +51,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(AcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Accept.AcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 AcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/accept", 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 AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/accept", rawUrl) @@ -90,11 +93,11 @@ public AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(AcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Accept.AcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 9bb28b3124..975d19ce41 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.CalendarView.Item.Attachments.Count; using ApiSdk.Groups.Item.CalendarView.Item.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.CalendarView.Item.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.CalendarView.Item.Attachments /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.CalendarView.Item.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -118,7 +121,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -236,14 +239,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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -256,11 +259,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -276,11 +279,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -292,7 +295,8 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -356,3 +360,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs index fe449d3aed..b68e6d1cc9 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Attachments/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.Groups.Item.CalendarView.Item.Attachments.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/$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}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 0af40caa29..364a08a45a 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.CalendarView.Item.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 6fd4f95776..da7a82020d 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.CalendarView.Item.Attachments.CreateUploadSession /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -57,8 +60,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) @@ -101,11 +104,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index b656b9f321..993dc871b4 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.CalendarView.Item.Attachments.Item /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -133,14 +136,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -172,11 +175,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); @@ -187,7 +190,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -212,3 +216,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs index f83b38ea22..577fd0c8f7 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Calendar/CalendarRequestBuilder.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.Groups.Item.CalendarView.Item.Calendar /// /// Provides operations to manage the calendar property of the microsoft.graph.event entity. /// - public class CalendarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseCliRequestBuilder { /// /// The calendar that contains the event. Navigation property. Read-only. @@ -42,6 +45,11 @@ public Command BuildGetCommand() }; 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"); @@ -50,6 +58,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); 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"); @@ -58,6 +67,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -73,17 +83,17 @@ 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 CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/calendar{?%24select}", pathParameters) + public CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/calendar{?%24select}", rawUrl) + public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/calendar{?%24expand,%24select}", rawUrl) { } /// @@ -93,11 +103,11 @@ public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -108,8 +118,19 @@ public RequestInformation ToGetRequestInformation(Action /// The calendar that contains the event. Navigation property. Read-only. /// - public class CalendarRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters { + /// 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 @@ -123,3 +144,4 @@ public class CalendarRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs index cc097745cb..45e8b715d5 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Cancel/CancelPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.CalendarView.Item.Cancel { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CancelPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CancelPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CancelPostRequestBody : IAdditionalDataHolder, IParsable public string Comment { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CancelPostRequestBody() { @@ -30,12 +32,12 @@ public CancelPostRequestBody() /// /// 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 CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CancelPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Cancel.CancelPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs index 7b5d4a0a9b..59ea484926 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Cancel/CancelRequestBuilder.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.Groups.Item.CalendarView.Item.Cancel /// /// Provides operations to call the cancel method. /// - public class CancelRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. @@ -48,8 +51,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(CancelPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Cancel.CancelPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 CancelRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/cancel", 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 CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/cancel", rawUrl) @@ -90,11 +93,11 @@ public CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(CancelPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Cancel.CancelPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs index b23c4fed35..56d3e70c82 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Decline/DeclinePostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Decline/DeclinePostRequestBody.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.Groups.Item.CalendarView.Item.Decline { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DeclinePostRequestBody : 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,15 +26,15 @@ public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeclinePostRequestBody() { @@ -41,12 +43,12 @@ public DeclinePostRequestBody() /// /// 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 DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeclinePostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Decline.DeclinePostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs index baba8e9d6c..06b27a3d71 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Decline/DeclineRequestBuilder.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.Groups.Item.CalendarView.Item.Decline /// /// Provides operations to call the decline method. /// - public class DeclineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseCliRequestBuilder { /// /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -48,8 +51,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(DeclinePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Decline.DeclinePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 DeclineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/decline", 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 DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/decline", rawUrl) @@ -90,11 +93,11 @@ public DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(DeclinePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Decline.DeclinePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs index 1969a7d711..20e1cf6198 100644 --- a/src/generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/DismissReminder/DismissReminderRequestBuilder.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.Groups.Item.CalendarView.Item.DismissReminder /// /// Provides operations to call the dismissReminder method. /// - public class DismissReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseCliRequestBuilder { /// /// Dismiss a reminder that has been triggered for an event in a user calendar. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DismissReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/dismissReminder", 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 DismissReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/dismissReminder", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.CalendarView.Item.Accept; using ApiSdk.Groups.Item.CalendarView.Item.Attachments; using ApiSdk.Groups.Item.CalendarView.Item.Calendar; @@ -8,10 +9,12 @@ using ApiSdk.Groups.Item.CalendarView.Item.Extensions; using ApiSdk.Groups.Item.CalendarView.Item.Forward; using ApiSdk.Groups.Item.CalendarView.Item.Instances; +using ApiSdk.Groups.Item.CalendarView.Item.PermanentDelete; using ApiSdk.Groups.Item.CalendarView.Item.SnoozeReminder; using ApiSdk.Groups.Item.CalendarView.Item.TentativelyAccept; 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; @@ -30,7 +33,8 @@ namespace ApiSdk.Groups.Item.CalendarView.Item /// /// Provides operations to manage the calendarView property of the microsoft.graph.group entity. /// - public class EventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the accept method. @@ -40,7 +44,7 @@ public Command BuildAcceptNavCommand() { var command = new Command("accept"); command.Description = "Provides operations to call the accept method."; - var builder = new AcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Accept.AcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -57,7 +61,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.event entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +89,7 @@ public Command BuildCalendarNavCommand() { var command = new Command("calendar"); command.Description = "Provides operations to manage the calendar property of the microsoft.graph.event entity."; - var builder = new CalendarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Calendar.CalendarRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,7 +106,7 @@ public Command BuildCancelNavCommand() { var command = new Command("cancel"); command.Description = "Provides operations to call the cancel method."; - var builder = new CancelRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Cancel.CancelRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -119,7 +123,7 @@ public Command BuildDeclineNavCommand() { var command = new Command("decline"); command.Description = "Provides operations to call the decline method."; - var builder = new DeclineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Decline.DeclineRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -136,7 +140,7 @@ public Command BuildDismissReminderNavCommand() { var command = new Command("dismiss-reminder"); command.Description = "Provides operations to call the dismissReminder method."; - var builder = new DismissReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -153,7 +157,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.event entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -180,7 +184,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -218,6 +222,11 @@ public Command BuildGetCommand() }; 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"); @@ -228,6 +237,7 @@ public Command BuildGetCommand() var startDateTime = invocationContext.ParseResult.GetValueForOption(startDateTimeOption); var endDateTime = invocationContext.ParseResult.GetValueForOption(endDateTimeOption); 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"); @@ -238,6 +248,7 @@ public Command BuildGetCommand() if (!string.IsNullOrEmpty(startDateTime)) q.QueryParameters.StartDateTime = startDateTime; if (!string.IsNullOrEmpty(endDateTime)) q.QueryParameters.EndDateTime = endDateTime; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -260,7 +271,7 @@ public Command BuildInstancesNavCommand() { var command = new Command("instances"); command.Description = "Provides operations to manage the instances property of the microsoft.graph.event entity."; - var builder = new InstancesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.InstancesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -280,6 +291,23 @@ public Command BuildInstancesNavCommand() return command; } /// + /// Provides operations to call the permanentDelete method. + /// + /// A + public Command BuildPermanentDeleteNavCommand() + { + var command = new Command("permanent-delete"); + command.Description = "Provides operations to call the permanentDelete method."; + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Provides operations to call the snoozeReminder method. /// /// A @@ -287,7 +315,7 @@ public Command BuildSnoozeReminderNavCommand() { var command = new Command("snooze-reminder"); command.Description = "Provides operations to call the snoozeReminder method."; - var builder = new SnoozeReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -304,7 +332,7 @@ public Command BuildTentativelyAcceptNavCommand() { var command = new Command("tentatively-accept"); command.Description = "Provides operations to call the tentativelyAccept method."; - var builder = new TentativelyAcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -314,17 +342,17 @@ public Command BuildTentativelyAcceptNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", pathParameters) + public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", rawUrl) + public EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}", rawUrl) { } /// @@ -334,11 +362,11 @@ public EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -349,7 +377,8 @@ public RequestInformation ToGetRequestInformation(Action /// The calendar view for the calendar. Read-only. /// - public class EventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters { /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -360,6 +389,16 @@ public class EventItemRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 @@ -384,3 +423,4 @@ public class EventItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs index d1b38abb1d..bfc5059b07 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Extensions/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.Groups.Item.CalendarView.Item.Extensions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions/$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}/groups/{group%2Did}/calendarView/{event%2Did}/extensions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs index ccf1928253..e410c220cc 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.CalendarView.Item.Extensions.Count; using ApiSdk.Groups.Item.CalendarView.Item.Extensions.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.Groups.Item.CalendarView.Item.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.CalendarView.Item.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 0baee32bbd..1fb3d31785 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.CalendarView.Item.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs index 2b5bb63f22..157173d950 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Forward/ForwardPostRequestBody.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.Groups.Item.CalendarView.Item.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs index b4d5ca1174..3b5dc584f1 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Forward/ForwardRequestBuilder.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.Groups.Item.CalendarView.Item.Forward /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. @@ -48,8 +51,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/forward", rawUrl) @@ -90,11 +93,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs index 38a4baa264..f8388da16a 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Count/CountRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.CalendarView.Item.Instances.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/$count{?%24filter,%24search}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs index 261f223acc..f65e187e3d 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.CalendarView.Item.Instances.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs index c0c249edba..77f452b93a 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Delta/DeltaRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -142,14 +145,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -162,11 +165,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -177,7 +180,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -261,3 +265,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs index 0bc4e21701..ca108f71c3 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/InstancesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.CalendarView.Item.Instances.Count; using ApiSdk.Groups.Item.CalendarView.Item.Instances.Delta; using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.CalendarView.Item.Instances /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. /// - public class InstancesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.EventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.EventItemRequestBuilder(PathParameters); commands.Add(builder.BuildAcceptNavCommand()); commands.Add(builder.BuildAttachmentsNavCommand()); commands.Add(builder.BuildCalendarNavCommand()); @@ -42,6 +45,7 @@ public Tuple, List> BuildCommand() commands.Add(builder.BuildExtensionsNavCommand()); commands.Add(builder.BuildForwardNavCommand()); executables.Add(builder.BuildGetCommand()); + commands.Add(builder.BuildPermanentDeleteNavCommand()); commands.Add(builder.BuildSnoozeReminderNavCommand()); commands.Add(builder.BuildTentativelyAcceptNavCommand()); return new(executables, commands); @@ -54,7 +58,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.Groups.Item.CalendarView.Item.Instances.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -71,7 +75,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,13 +85,13 @@ public Command BuildDeltaNavCommand() return command; } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable."; + command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -134,6 +138,11 @@ public Command BuildListCommand() }; 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"); @@ -152,6 +161,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -170,6 +180,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -194,31 +205,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public InstancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public InstancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. - public InstancesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public InstancesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -227,9 +238,10 @@ public RequestInformation ToGetRequestInformation(Action - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// - public class InstancesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -243,6 +255,16 @@ public class InstancesRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -303,3 +325,4 @@ public class InstancesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index c4ee16daca..f251eb4fbc 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Accept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcceptPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcceptPostRequestBody() { @@ -32,12 +34,12 @@ public AcceptPostRequestBody() /// /// 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 AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Accept.AcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index eecc271595..1554005025 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Accept/AcceptRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Item.Accept /// /// Provides operations to call the accept method. /// - public class AcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseCliRequestBuilder { /// /// Accept the specified event in a user calendar. @@ -53,8 +56,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(AcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Accept.AcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 AcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept", 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 AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) @@ -96,11 +99,11 @@ public AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(AcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Accept.AcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index f847dacb28..dd517a48f3 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments.Count; using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.CalendarView.Item.Instances.Item.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -124,7 +127,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -161,6 +164,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -196,6 +203,7 @@ public Command BuildListCommand() var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -212,6 +220,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -242,17 +251,17 @@ 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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -262,11 +271,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -282,11 +291,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -298,7 +307,8 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -332,6 +342,16 @@ public class AttachmentsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -352,3 +372,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index c4738f6512..3d5d75db1b 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/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.Groups.Item.CalendarView.Item.Instances.Item.Attachments.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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; eventId1Option.IsRequired = true; command.AddOption(eventId1Option); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$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}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 29ac75be5b..dc926b92ec 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 7046b7e128..b03442025f 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Item.Attachments.Create /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -62,8 +65,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) @@ -107,11 +110,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 8ede410446..abf3a84748 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Item.Attachments.Item /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -145,14 +148,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -184,11 +187,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); @@ -199,7 +202,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -224,3 +228,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index c3a8a997f8..c2af435493 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Calendar/CalendarRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Item.Calendar /// /// Provides operations to manage the calendar property of the microsoft.graph.event entity. /// - public class CalendarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseCliRequestBuilder { /// /// The calendar that contains the event. Navigation property. Read-only. @@ -46,6 +49,11 @@ public Command BuildGetCommand() }; 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"); @@ -55,6 +63,7 @@ public Command BuildGetCommand() var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); 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"); @@ -63,6 +72,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -79,17 +89,17 @@ 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 CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}", pathParameters) + public CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%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 CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}", rawUrl) + public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/calendar{?%24expand,%24select}", rawUrl) { } /// @@ -99,11 +109,11 @@ public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -114,8 +124,19 @@ public RequestInformation ToGetRequestInformation(Action /// The calendar that contains the event. Navigation property. Read-only. /// - public class CalendarRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters { + /// 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 @@ -129,3 +150,4 @@ public class CalendarRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 69bac0491a..1874ea1608 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Cancel { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CancelPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CancelPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CancelPostRequestBody : IAdditionalDataHolder, IParsable public string Comment { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CancelPostRequestBody() { @@ -30,12 +32,12 @@ public CancelPostRequestBody() /// /// 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 CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CancelPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Cancel.CancelPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index eb958983cb..f1be98e885 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Cancel/CancelRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Item.Cancel /// /// Provides operations to call the cancel method. /// - public class CancelRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. @@ -53,8 +56,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(CancelPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Cancel.CancelPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 CancelRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", 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 CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) @@ -96,11 +99,11 @@ public CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(CancelPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Cancel.CancelPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index 6b7df8f899..bc228ac933 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclinePostRequestBody.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.Groups.Item.CalendarView.Item.Instances.Item.Decline { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DeclinePostRequestBody : 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,15 +26,15 @@ public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeclinePostRequestBody() { @@ -41,12 +43,12 @@ public DeclinePostRequestBody() /// /// 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 DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeclinePostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Decline.DeclinePostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index 48f77eb52c..a0965e747b 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Decline/DeclineRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Item.Decline /// /// Provides operations to call the decline method. /// - public class DeclineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseCliRequestBuilder { /// /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -53,8 +56,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(DeclinePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Decline.DeclinePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 DeclineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline", 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 DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) @@ -96,11 +99,11 @@ public DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(DeclinePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Decline.DeclinePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index d9dfa006fc..b5de9d5567 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Item.DismissReminder /// /// Provides operations to call the dismissReminder method. /// - public class DismissReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseCliRequestBuilder { /// /// Dismiss a reminder that has been triggered for an event in a user calendar. @@ -62,14 +65,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 DismissReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", 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 DismissReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Accept; using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments; using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Calendar; @@ -7,10 +8,12 @@ using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.DismissReminder; using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Extensions; using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Forward; +using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.PermanentDelete; using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.SnoozeReminder; using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.TentativelyAccept; 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; @@ -29,7 +32,8 @@ namespace ApiSdk.Groups.Item.CalendarView.Item.Instances.Item /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. /// - public class EventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the accept method. @@ -39,7 +43,7 @@ public Command BuildAcceptNavCommand() { var command = new Command("accept"); command.Description = "Provides operations to call the accept method."; - var builder = new AcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Accept.AcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -56,7 +60,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.event entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -84,7 +88,7 @@ public Command BuildCalendarNavCommand() { var command = new Command("calendar"); command.Description = "Provides operations to manage the calendar property of the microsoft.graph.event entity."; - var builder = new CalendarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Calendar.CalendarRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -101,7 +105,7 @@ public Command BuildCancelNavCommand() { var command = new Command("cancel"); command.Description = "Provides operations to call the cancel method."; - var builder = new CancelRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Cancel.CancelRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -118,7 +122,7 @@ public Command BuildDeclineNavCommand() { var command = new Command("decline"); command.Description = "Provides operations to call the decline method."; - var builder = new DeclineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Decline.DeclineRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -135,7 +139,7 @@ public Command BuildDismissReminderNavCommand() { var command = new Command("dismiss-reminder"); command.Description = "Provides operations to call the dismissReminder method."; - var builder = new DismissReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -152,7 +156,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.event entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -179,7 +183,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -189,13 +193,13 @@ public Command BuildForwardNavCommand() return command; } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable."; + command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -221,6 +225,11 @@ public Command BuildGetCommand() }; 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"); @@ -232,6 +241,7 @@ public Command BuildGetCommand() var startDateTime = invocationContext.ParseResult.GetValueForOption(startDateTimeOption); var endDateTime = invocationContext.ParseResult.GetValueForOption(endDateTimeOption); 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"); @@ -242,6 +252,7 @@ public Command BuildGetCommand() if (!string.IsNullOrEmpty(startDateTime)) q.QueryParameters.StartDateTime = startDateTime; if (!string.IsNullOrEmpty(endDateTime)) q.QueryParameters.EndDateTime = endDateTime; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -258,6 +269,23 @@ public Command BuildGetCommand() return command; } /// + /// Provides operations to call the permanentDelete method. + /// + /// A + public Command BuildPermanentDeleteNavCommand() + { + var command = new Command("permanent-delete"); + command.Description = "Provides operations to call the permanentDelete method."; + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Provides operations to call the snoozeReminder method. /// /// A @@ -265,7 +293,7 @@ public Command BuildSnoozeReminderNavCommand() { var command = new Command("snooze-reminder"); command.Description = "Provides operations to call the snoozeReminder method."; - var builder = new SnoozeReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -282,7 +310,7 @@ public Command BuildTentativelyAcceptNavCommand() { var command = new Command("tentatively-accept"); command.Description = "Provides operations to call the tentativelyAccept method."; - var builder = new TentativelyAcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -292,31 +320,31 @@ public Command BuildTentativelyAcceptNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", pathParameters) + public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", rawUrl) + public EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}", rawUrl) { } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -325,9 +353,10 @@ public RequestInformation ToGetRequestInformation(Action - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// - public class EventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters { /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -338,6 +367,16 @@ public class EventItemRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 @@ -362,3 +401,4 @@ public class EventItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 7ab2be6284..ed1595bbfb 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/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.Groups.Item.CalendarView.Item.Instances.Item.Extensions.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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; eventId1Option.IsRequired = true; command.AddOption(eventId1Option); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$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}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 9accc726c1..1543be1497 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Extensions.Count; using ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Extensions.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.Groups.Item.CalendarView.Item.Instances.Item.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.CalendarView.Item.Instances.Item.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -144,6 +147,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -179,6 +186,7 @@ public Command BuildListCommand() var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -195,6 +203,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -225,17 +234,17 @@ 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 ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -245,11 +254,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -265,11 +274,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +290,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,6 +325,16 @@ public class ExtensionsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -335,3 +355,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 60d1a453f9..b61ad2069b 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Item.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -189,8 +192,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 8f7eddba49..7eafd12cf0 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardPostRequestBody.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.Groups.Item.CalendarView.Item.Instances.Item.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 47b010167f..4292f00a8d 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Forward/ForwardRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Item.Forward /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. @@ -53,8 +56,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) @@ -96,11 +99,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 0000000000..f8ae339682 --- /dev/null +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,101 @@ +// +#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; +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.Groups.Item.CalendarView.Item.Instances.Item.PermanentDelete +{ + /// + /// Provides operations to call the permanentDelete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action permanentDelete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action permanentDelete"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var eventIdOption = new Option("--event-id", description: "The unique identifier of event") { + }; + eventIdOption.IsRequired = true; + command.AddOption(eventIdOption); + var eventId1Option = new Option("--event-id1", description: "The unique identifier of event") { + }; + eventId1Option.IsRequired = true; + command.AddOption(eventId1Option); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); + var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); + if (eventId1 is not null) requestInfo.PathParameters.Add("event%2Did1", eventId1); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public PermanentDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public PermanentDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete", rawUrl) + { + } + /// + /// Invoke action permanentDelete + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 63b35adf6b..15fd85940c 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.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.Groups.Item.CalendarView.Item.Instances.Item.SnoozeReminder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SnoozeReminderPostRequestBody : 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. @@ -16,13 +18,13 @@ public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable /// The NewReminderTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone? NewReminderTime { get; set; } #nullable restore #else - public DateTimeTimeZone NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone NewReminderTime { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SnoozeReminderPostRequestBody() { @@ -31,12 +33,12 @@ public SnoozeReminderPostRequestBody() /// /// 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 SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SnoozeReminderPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::ApiSdk.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("NewReminderTime", NewReminderTime); + writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 91def44c0a..a263f0e338 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Item.SnoozeReminder /// /// Provides operations to call the snoozeReminder method. /// - public class SnoozeReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseCliRequestBuilder { /// /// Postpone a reminder for an event in a user calendar until a new time. @@ -53,8 +56,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(SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 SnoozeReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", 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 SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) @@ -96,11 +99,11 @@ public SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index efdc63d07a..b1b5103599 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.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.Groups.Item.CalendarView.Item.Instances.Item.TentativelyAccept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TentativelyAcceptPostRequestBody : 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,15 +26,15 @@ public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TentativelyAcceptPostRequestBody() { @@ -41,12 +43,12 @@ public TentativelyAcceptPostRequestBody() /// /// 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 TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TentativelyAcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 5fd2ba02b4..cfcdf7da27 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.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.Groups.Item.CalendarView.Item.Instances.Item.TentativelyAccept /// /// Provides operations to call the tentativelyAccept method. /// - public class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder { /// /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -53,8 +56,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(TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 TentativelyAcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", 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 TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) @@ -96,11 +99,11 @@ public TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/ /// 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(TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 0000000000..ebd6ab6ac9 --- /dev/null +++ b/src/generated/Groups/Item/CalendarView/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,95 @@ +// +#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; +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.Groups.Item.CalendarView.Item.PermanentDelete +{ + /// + /// Provides operations to call the permanentDelete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action permanentDelete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action permanentDelete"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var eventIdOption = new Option("--event-id", description: "The unique identifier of event") { + }; + eventIdOption.IsRequired = true; + command.AddOption(eventIdOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public PermanentDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public PermanentDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Invoke action permanentDelete + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index 77d13ae441..d21dbfa9af 100644 --- a/src/generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderPostRequestBody.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.Groups.Item.CalendarView.Item.SnoozeReminder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SnoozeReminderPostRequestBody : 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. @@ -16,13 +18,13 @@ public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable /// The NewReminderTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone? NewReminderTime { get; set; } #nullable restore #else - public DateTimeTimeZone NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone NewReminderTime { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SnoozeReminderPostRequestBody() { @@ -31,12 +33,12 @@ public SnoozeReminderPostRequestBody() /// /// 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 SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SnoozeReminderPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::ApiSdk.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("NewReminderTime", NewReminderTime); + writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index aaee84daab..ef850ee451 100644 --- a/src/generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/SnoozeReminder/SnoozeReminderRequestBuilder.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.Groups.Item.CalendarView.Item.SnoozeReminder /// /// Provides operations to call the snoozeReminder method. /// - public class SnoozeReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseCliRequestBuilder { /// /// Postpone a reminder for an event in a user calendar until a new time. @@ -48,8 +51,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(SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.SnoozeReminder.SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 SnoozeReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/snoozeReminder", 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 SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/snoozeReminder", rawUrl) @@ -90,11 +93,11 @@ public SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 03d058209d..6d5f524b60 100644 --- a/src/generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.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.Groups.Item.CalendarView.Item.TentativelyAccept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TentativelyAcceptPostRequestBody : 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,15 +26,15 @@ public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TentativelyAcceptPostRequestBody() { @@ -41,12 +43,12 @@ public TentativelyAcceptPostRequestBody() /// /// 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 TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CalendarView.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TentativelyAcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.CalendarView.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index c8a96839be..69a587afa7 100644 --- a/src/generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.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.Groups.Item.CalendarView.Item.TentativelyAccept /// /// Provides operations to call the tentativelyAccept method. /// - public class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder { /// /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -48,8 +51,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(TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CalendarView.Item.TentativelyAccept.TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 TentativelyAcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/tentativelyAccept", 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 TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/tentativelyAccept", rawUrl) @@ -90,11 +93,11 @@ public TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/ /// 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(TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CalendarView.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.cs b/src/generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.cs index 691c50e9be..aec27fd6cb 100644 --- a/src/generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.cs +++ b/src/generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.CheckGrantedPermissionsForApp { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckGrantedPermissionsForAppPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckGrantedPermissionsForAppPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new CheckGrantedPermissionsForAppPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.CheckGrantedPermissionsForApp.CheckGrantedPermissionsForAppPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckGrantedPermissionsForAppPostResponse(); + return new global::ApiSdk.Groups.Item.CheckGrantedPermissionsForApp.CheckGrantedPermissionsForAppPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.cs b/src/generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.cs index 4c231094f5..1729d7438a 100644 --- a/src/generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.cs +++ b/src/generated/Groups/Item/CheckGrantedPermissionsForApp/CheckGrantedPermissionsForAppRequestBuilder.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.Groups.Item.CheckGrantedPermissionsForApp /// /// Provides operations to call the checkGrantedPermissionsForApp method. /// - public class CheckGrantedPermissionsForAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckGrantedPermissionsForAppRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action checkGrantedPermissionsForApp @@ -72,14 +75,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 CheckGrantedPermissionsForAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/checkGrantedPermissionsForApp", 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 CheckGrantedPermissionsForAppRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/checkGrantedPermissionsForApp", rawUrl) @@ -106,3 +109,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberGroupsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable public List GroupIds { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberGroupsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberGroupsPostRequestBody() /// /// 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 CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostRequestBody(); + return new global::ApiSdk.Groups.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "groupIds", n => { GroupIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs b/src/generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs index 51fa48943b..6f0cee7d3c 100644 --- a/src/generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.cs +++ b/src/generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsPostResponse.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.Groups.Item.CheckMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberGroupsPostResponse : BaseCollectionPaginationCountRespon /// /// 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 new CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.CheckMemberGroups.CheckMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberGroupsPostResponse(); + return new global::ApiSdk.Groups.Item.CheckMemberGroups.CheckMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs b/src/generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs index 709a6d21da..be71938127 100644 --- a/src/generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/CheckMemberGroups/CheckMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Item.CheckMemberGroups /// /// Provides operations to call the checkMemberGroups method. /// - public class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; + command.Description = "Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -55,8 +58,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(CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 CheckMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/checkMemberGroups", 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 CheckMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/checkMemberGroups", rawUrl) { } /// - /// Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + /// Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. /// /// 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 ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CheckMemberGroups.CheckMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberGroupsPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs b/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs index 95fe06b423..83044d6392 100644 --- a/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs +++ b/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CheckMemberObjectsPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CheckMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsabl public List Ids { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CheckMemberObjectsPostRequestBody() { @@ -30,12 +32,12 @@ public CheckMemberObjectsPostRequestBody() /// /// 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 CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostRequestBody(); + return new global::ApiSdk.Groups.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "ids", n => { Ids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs b/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs index a108b3bb0e..a39c7fa4a7 100644 --- a/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.cs +++ b/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsPostResponse.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.Groups.Item.CheckMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class CheckMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class CheckMemberObjectsPostResponse : BaseCollectionPaginationCountRespo /// /// 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 new CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.CheckMemberObjects.CheckMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CheckMemberObjectsPostResponse(); + return new global::ApiSdk.Groups.Item.CheckMemberObjects.CheckMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs b/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs index 86a0548443..9529953a8a 100644 --- a/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.cs +++ b/src/generated/Groups/Item/CheckMemberObjects/CheckMemberObjectsRequestBuilder.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.Groups.Item.CheckMemberObjects /// /// Provides operations to call the checkMemberObjects method. /// - public class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action checkMemberObjects @@ -54,8 +57,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(CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -85,14 +88,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 CheckMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/checkMemberObjects", 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 CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/checkMemberObjects", rawUrl) @@ -106,11 +109,11 @@ public CheckMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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(CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.CheckMemberObjects.CheckMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -121,3 +124,4 @@ public RequestInformation ToPostRequestInformation(CheckMemberObjectsPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs b/src/generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs index d00e91e52d..7a7ca8fbb4 100644 --- a/src/generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Conversations.Count; using ApiSdk.Groups.Item.Conversations.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.Groups.Item.Conversations /// /// Provides operations to manage the conversations property of the microsoft.graph.group entity. /// - public class ConversationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the conversations property of the microsoft.graph.group entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ConversationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.ConversationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildThreadsNavCommand()); @@ -45,7 +48,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.Groups.Item.Conversations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(Conversation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Conversation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -149,6 +152,11 @@ public Command BuildListCommand() }; 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"); @@ -164,6 +172,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -180,6 +189,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -203,17 +213,17 @@ 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 ConversationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public ConversationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations{?%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 ConversationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public ConversationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -223,11 +233,11 @@ public ConversationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -243,11 +253,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(Conversation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Conversation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Conversation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Conversation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -259,11 +269,22 @@ public RequestInformation ToPostRequestInformation(Conversation body, Action /// Retrieve the list of conversations in this group. /// - public class ConversationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -313,3 +334,4 @@ public class ConversationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Count/CountRequestBuilder.cs index ac6264a011..7ac2db3638 100644 --- a/src/generated/Groups/Item/Conversations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/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.Groups.Item.Conversations.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}/groups/{group%2Did}/conversations/$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}/groups/{group%2Did}/conversations/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs index 7bab9cc665..665af64318 100644 --- a/src/generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Conversations.Item.Threads; 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.Groups.Item.Conversations.Item /// /// Provides operations to manage the conversations property of the microsoft.graph.group entity. /// - public class ConversationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete conversation. @@ -65,14 +68,14 @@ public Command BuildDeleteCommand() return command; } /// - /// The group's conversations. - /// Find more info here + /// Retrieve the properties and relationships of conversation object. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The group's conversations.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-get-conversation?view=graph-rest-1.0"; + command.Description = "Retrieve the properties and relationships of conversation object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversation-get?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -86,6 +89,11 @@ public Command BuildGetCommand() }; 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"); @@ -94,6 +102,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var conversationId = invocationContext.ParseResult.GetValueForOption(conversationIdOption); 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"); @@ -102,6 +111,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (conversationId is not null) requestInfo.PathParameters.Add("conversation%2Did", conversationId); @@ -124,7 +134,7 @@ public Command BuildThreadsNavCommand() { var command = new Command("threads"); command.Description = "Provides operations to manage the threads property of the microsoft.graph.conversation entity."; - var builder = new ThreadsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.ThreadsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -144,17 +154,17 @@ public Command BuildThreadsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public ConversationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}{?%24select}", pathParameters) + public ConversationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%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 ConversationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}{?%24select}", rawUrl) + public ConversationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}{?%24expand,%24select}", rawUrl) { } /// @@ -177,17 +187,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The group's conversations. + /// Retrieve the properties and relationships of conversation object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -196,10 +206,21 @@ public RequestInformation ToGetRequestInformation(Action - /// The group's conversations. + /// Retrieve the properties and relationships of conversation object. /// - public class ConversationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationItemRequestBuilderGetQueryParameters { + /// 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 @@ -213,3 +234,4 @@ public class ConversationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Count/CountRequestBuilder.cs index b05d08dae4..031ed622d0 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/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.Groups.Item.Conversations.Item.Threads.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/$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}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs index cd7216ee03..c32da98627 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Reply; 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.Groups.Item.Conversations.Item.Threads.Item /// /// Provides operations to manage the threads property of the microsoft.graph.conversation entity. /// - public class ConversationThreadItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationThreadItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property threads for groups @@ -174,8 +177,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(ConversationThread.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationThread.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -205,7 +208,7 @@ public Command BuildPostsNavCommand() { var command = new Command("posts"); command.Description = "Provides operations to manage the posts property of the microsoft.graph.conversationThread entity."; - var builder = new PostsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.PostsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -231,7 +234,7 @@ public Command BuildReplyNavCommand() { var command = new Command("reply"); command.Description = "Provides operations to call the reply method."; - var builder = new ReplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Reply.ReplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -241,14 +244,14 @@ public Command BuildReplyNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ConversationThreadItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%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 ConversationThreadItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}{?%24expand,%24select}", rawUrl) @@ -280,11 +283,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); @@ -300,11 +303,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(ConversationThread body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationThread body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ConversationThread body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationThread body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -316,7 +319,8 @@ public RequestInformation ToPatchRequestInformation(ConversationThread body, Act /// /// A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable. /// - public class ConversationThreadItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationThreadItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -341,3 +345,4 @@ public class ConversationThreadItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs index f549da523b..2e167276d8 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/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.Groups.Item.Conversations.Item.Threads.Item.Posts.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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; conversationThreadIdOption.IsRequired = true; command.AddOption(conversationThreadIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var conversationId = invocationContext.ParseResult.GetValueForOption(conversationIdOption); var conversationThreadId = invocationContext.ParseResult.GetValueForOption(conversationThreadIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/$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}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs index a5cf08a45d..4bfe1a57a8 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.Count; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachme /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -98,8 +101,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(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -130,7 +133,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -171,6 +174,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -207,6 +214,7 @@ public Command BuildListCommand() var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -223,6 +231,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -254,17 +263,17 @@ 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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -274,11 +283,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -294,11 +303,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -310,7 +319,8 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// Read-only. Nullable. Supports $expand. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -344,6 +354,16 @@ public class AttachmentsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -364,3 +384,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs index 1bda8433e7..7b03398826 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachme /// /// 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 @@ -44,6 +47,10 @@ public Command BuildGetCommand() }; postIdOption.IsRequired = true; command.AddOption(postIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -53,11 +60,13 @@ public Command BuildGetCommand() var conversationId = invocationContext.ParseResult.GetValueForOption(conversationIdOption); var conversationThreadId = invocationContext.ParseResult.GetValueForOption(conversationThreadIdOption); var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -75,17 +84,17 @@ 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}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$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}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$count{?%24filter,%24search}", rawUrl) { } /// @@ -95,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +119,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 @@ -121,7 +131,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 0441b8d4a0..f0760553d1 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index bbf645928d..a82538a27f 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachme /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -67,8 +70,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession", rawUrl) @@ -113,11 +116,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index c9ae4ad724..421d8247eb 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachme /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -157,14 +160,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -196,11 +199,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); @@ -211,7 +214,8 @@ public RequestInformation ToGetRequestInformation(Action /// Read-only. Nullable. Supports $expand. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -236,3 +240,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs index 5dd3888935..6a498ce3e6 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Extensio /// /// 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 @@ -44,6 +47,10 @@ public Command BuildGetCommand() }; postIdOption.IsRequired = true; command.AddOption(postIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -53,11 +60,13 @@ public Command BuildGetCommand() var conversationId = invocationContext.ParseResult.GetValueForOption(conversationIdOption); var conversationThreadId = invocationContext.ParseResult.GetValueForOption(conversationThreadIdOption); var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -75,17 +84,17 @@ 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}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$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}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$count{?%24filter,%24search}", rawUrl) { } /// @@ -95,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +119,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 @@ -121,7 +131,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs index 1264bb02a1..8dcd7bb919 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Extensions.Count; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Extensions.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Extensio /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -98,8 +101,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -154,6 +157,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -190,6 +197,7 @@ public Command BuildListCommand() var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -206,6 +214,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -237,17 +246,17 @@ 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 ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -257,11 +266,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -277,11 +286,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -293,7 +302,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,6 +337,16 @@ public class ExtensionsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -347,3 +367,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 2c6c720e45..d148844fcd 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Extensio /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -206,8 +209,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs index cc74d34c76..ede4e6276c 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs index 1819e52e01..a576584e79 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Forward /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. @@ -58,8 +61,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/forward", rawUrl) @@ -102,11 +105,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs index e37291c864..1536f07d41 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.Count; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyT /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -98,8 +101,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(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -130,7 +133,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -171,6 +174,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -207,6 +214,7 @@ public Command BuildListCommand() var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -223,6 +231,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -254,17 +263,17 @@ 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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -274,11 +283,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -294,11 +303,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -310,7 +319,8 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// Read-only. Nullable. Supports $expand. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -344,6 +354,16 @@ public class AttachmentsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -364,3 +384,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs index 2a561dab11..e64f8fb643 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyT /// /// 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 @@ -44,6 +47,10 @@ public Command BuildGetCommand() }; postIdOption.IsRequired = true; command.AddOption(postIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -53,11 +60,13 @@ public Command BuildGetCommand() var conversationId = invocationContext.ParseResult.GetValueForOption(conversationIdOption); var conversationThreadId = invocationContext.ParseResult.GetValueForOption(conversationThreadIdOption); var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -75,17 +84,17 @@ 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}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$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}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$count{?%24filter,%24search}", rawUrl) { } /// @@ -95,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +119,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 @@ -121,7 +131,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 8d59e89495..4c527a89cc 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index cb0e3c3f87..6e4953306b 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyT /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -67,8 +70,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession", rawUrl) @@ -113,11 +116,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs index 168dbeb6fd..463217a487 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyT /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -157,14 +160,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -196,11 +199,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); @@ -211,7 +214,8 @@ public RequestInformation ToGetRequestInformation(Action /// Read-only. Nullable. Supports $expand. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -236,3 +240,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs index c6b2aa7e24..b278ea85a9 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyT /// /// 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 @@ -44,6 +47,10 @@ public Command BuildGetCommand() }; postIdOption.IsRequired = true; command.AddOption(postIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -53,11 +60,13 @@ public Command BuildGetCommand() var conversationId = invocationContext.ParseResult.GetValueForOption(conversationIdOption); var conversationThreadId = invocationContext.ParseResult.GetValueForOption(conversationThreadIdOption); var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -75,17 +84,17 @@ 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}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$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}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$count{?%24filter,%24search}", rawUrl) { } /// @@ -95,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +119,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 @@ -121,7 +131,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs index b65fa1fa60..adc9c0de88 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.Count; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyT /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -98,8 +101,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -154,6 +157,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -190,6 +197,7 @@ public Command BuildListCommand() var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -206,6 +214,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -237,17 +246,17 @@ 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 ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -257,11 +266,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -277,11 +286,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -293,7 +302,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,6 +337,16 @@ public class ExtensionsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -347,3 +367,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs index bcf816fb98..307daf1437 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyT /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -206,8 +209,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs index 91abc7300c..382ce84aab 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs index 88a7794de7..15ace23244 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyT /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. @@ -58,8 +61,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/forward", rawUrl) @@ -102,11 +105,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs index 01cb1a0fa8..c21ebdd38b 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Extensions; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Forward; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Reply; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyT /// /// Provides operations to manage the inReplyTo property of the microsoft.graph.post entity. /// - public class InReplyToRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InReplyToRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. @@ -33,7 +36,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.post entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -61,7 +64,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.post entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -88,7 +91,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -175,7 +178,7 @@ public Command BuildReplyNavCommand() { var command = new Command("reply"); command.Description = "Provides operations to call the reply method."; - var builder = new ReplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -185,14 +188,14 @@ public Command BuildReplyNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public InReplyToRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo{?%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 InReplyToRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo{?%24expand,%24select}", rawUrl) @@ -205,11 +208,11 @@ public InReplyToRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -220,7 +223,8 @@ public RequestInformation ToGetRequestInformation(Action /// Read-only. Supports $expand. /// - public class InReplyToRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InReplyToRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -245,3 +249,4 @@ public class InReplyToRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs index 897fb66d3e..c16f5e75aa 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Reply { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReplyPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable /// The Post property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.Post? Post { get; set; } + public global::ApiSdk.Models.Post? Post { get; set; } #nullable restore #else - public ApiSdk.Models.Post Post { get; set; } + public global::ApiSdk.Models.Post Post { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReplyPostRequestBody() { @@ -31,12 +33,12 @@ public ReplyPostRequestBody() /// /// 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 ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReplyPostRequestBody(); + return new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "Post", n => { Post = n.GetObjectValue(ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, + { "Post", n => { Post = n.GetObjectValue(global::ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("Post", Post); + writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index f020309d99..a5c1df2983 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyT /// /// Provides operations to call the reply method. /// - public class ReplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReplyRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action reply @@ -57,8 +60,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(ReplyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ReplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", 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 ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", rawUrl) @@ -101,11 +104,11 @@ public ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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(ReplyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs index d34c7f371d..fde37aed4e 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Extensions; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Forward; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Reply; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item /// /// Provides operations to manage the posts property of the microsoft.graph.conversationThread entity. /// - public class PostItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PostItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. @@ -34,7 +37,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.post entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -62,7 +65,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.post entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -89,7 +92,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -176,7 +179,7 @@ public Command BuildInReplyToNavCommand() { var command = new Command("in-reply-to"); command.Description = "Provides operations to manage the inReplyTo property of the microsoft.graph.post entity."; - var builder = new InReplyToRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.InReplyTo.InReplyToRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAttachmentsNavCommand()); @@ -202,7 +205,7 @@ public Command BuildReplyNavCommand() { var command = new Command("reply"); command.Description = "Provides operations to call the reply method."; - var builder = new ReplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Reply.ReplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -212,14 +215,14 @@ public Command BuildReplyNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PostItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%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 PostItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}{?%24expand,%24select}", rawUrl) @@ -232,11 +235,11 @@ public PostItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -247,7 +250,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get posts from groups /// - public class PostItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PostItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -272,3 +276,4 @@ public class PostItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs index 18099926b8..895f739a93 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Reply { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReplyPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable /// The Post property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.Post? Post { get; set; } + public global::ApiSdk.Models.Post? Post { get; set; } #nullable restore #else - public ApiSdk.Models.Post Post { get; set; } + public global::ApiSdk.Models.Post Post { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReplyPostRequestBody() { @@ -31,12 +33,12 @@ public ReplyPostRequestBody() /// /// 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 ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Reply.ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReplyPostRequestBody(); + return new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Reply.ReplyPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "Post", n => { Post = n.GetObjectValue(ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, + { "Post", n => { Post = n.GetObjectValue(global::ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("Post", Post); + writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index 65598faffd..e9915db92c 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.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.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Reply /// /// Provides operations to call the reply method. /// - public class ReplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReplyRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action reply @@ -57,8 +60,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(ReplyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Reply.ReplyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 ReplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", 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 ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", rawUrl) @@ -101,11 +104,11 @@ public ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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(ReplyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Reply.ReplyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.Reply.ReplyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs index 70d9c4bdb5..80644d9f95 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Count; using ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.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.Groups.Item.Conversations.Item.Threads.Item.Posts /// /// Provides operations to manage the posts property of the microsoft.graph.conversationThread entity. /// - public class PostsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PostsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the posts property of the microsoft.graph.conversationThread entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new PostItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Posts.Item.PostItemRequestBuilder(PathParameters); commands.Add(builder.BuildAttachmentsNavCommand()); commands.Add(builder.BuildExtensionsNavCommand()); commands.Add(builder.BuildForwardNavCommand()); @@ -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.Groups.Item.Conversations.Item.Threads.Item.Posts.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,6 +88,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -120,6 +127,7 @@ public Command BuildListCommand() var conversationThreadId = invocationContext.ParseResult.GetValueForOption(conversationThreadIdOption); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -136,6 +144,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -166,17 +175,17 @@ 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 PostsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public PostsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%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 PostsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public PostsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -186,11 +195,11 @@ public PostsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -201,7 +210,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get posts from groups /// - public class PostsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PostsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,6 +245,16 @@ public class PostsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -255,3 +275,4 @@ public class PostsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyPostRequestBody.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyPostRequestBody.cs index f156ebc8f3..f31452ef00 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyPostRequestBody.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyPostRequestBody.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.Groups.Item.Conversations.Item.Threads.Item.Reply { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReplyPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable /// The Post property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.Post? Post { get; set; } + public global::ApiSdk.Models.Post? Post { get; set; } #nullable restore #else - public ApiSdk.Models.Post Post { get; set; } + public global::ApiSdk.Models.Post Post { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReplyPostRequestBody() { @@ -31,12 +33,12 @@ public ReplyPostRequestBody() /// /// 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 ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Reply.ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReplyPostRequestBody(); + return new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Reply.ReplyPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "Post", n => { Post = n.GetObjectValue(ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, + { "Post", n => { Post = n.GetObjectValue(global::ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("Post", Post); + writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index e95fd65dbb..ef1831b8df 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Reply /// /// Provides operations to call the reply method. /// - public class ReplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReplyRequestBuilder : BaseCliRequestBuilder { /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0"; + command.Description = "Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -53,8 +56,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(ReplyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Reply.ReplyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,32 +78,32 @@ 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 ReplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply", 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 ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// 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 ToPostRequestInformation(ReplyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Reply.ReplyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Reply.ReplyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs index a099d5d80f..588c7849aa 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/ThreadsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Conversations.Item.Threads.Count; using ApiSdk.Groups.Item.Conversations.Item.Threads.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.Groups.Item.Conversations.Item.Threads /// /// Provides operations to manage the threads property of the microsoft.graph.conversation entity. /// - public class ThreadsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ThreadsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the threads property of the microsoft.graph.conversation entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ConversationThreadItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.Item.Threads.Item.ConversationThreadItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Conversations.Item.Threads.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -92,8 +95,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(ConversationThread.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationThread.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,14 +227,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 ThreadsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads{?%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 ThreadsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -244,11 +247,11 @@ public ThreadsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -264,11 +267,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(ConversationThread body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationThread body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ConversationThread body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationThread body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -280,7 +283,8 @@ public RequestInformation ToPostRequestInformation(ConversationThread body, Acti /// /// Get all the threads in a group conversation. Note: You can also get all the threads of a group. /// - public class ThreadsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ThreadsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -344,3 +348,4 @@ public class ThreadsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs b/src/generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs index 7b32330624..1a99264448 100644 --- a/src/generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.cs +++ b/src/generated/Groups/Item/CreatedOnBehalfOf/CreatedOnBehalfOfRequestBuilder.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,16 +21,17 @@ namespace ApiSdk.Groups.Item.CreatedOnBehalfOf /// /// Provides operations to manage the createdOnBehalfOf property of the microsoft.graph.group entity. /// - public class CreatedOnBehalfOfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedOnBehalfOfRequestBuilder : BaseCliRequestBuilder { /// - /// The user (or application) that created the group. NOTE: This is not set if the user is an administrator. Read-only. + /// The user (or application) that created the group. NOTE: This property isn't set if the user is an administrator. Read-only. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The user (or application) that created the group. NOTE: This is not set if the user is an administrator. Read-only."; + command.Description = "The user (or application) that created the group. NOTE: This property isn't set if the user is an administrator. Read-only."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -74,31 +77,31 @@ 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 CreatedOnBehalfOfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/createdOnBehalfOf{?%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 CreatedOnBehalfOfRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/createdOnBehalfOf{?%24expand,%24select}", rawUrl) { } /// - /// The user (or application) that created the group. NOTE: This is not set if the user is an administrator. Read-only. + /// The user (or application) that created the group. NOTE: This property isn't set if the user is an administrator. Read-only. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -107,9 +110,10 @@ public RequestInformation ToGetRequestInformation(Action - /// The user (or application) that created the group. NOTE: This is not set if the user is an administrator. Read-only. + /// The user (or application) that created the group. NOTE: This property isn't set if the user is an administrator. Read-only. /// - public class CreatedOnBehalfOfRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedOnBehalfOfRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class CreatedOnBehalfOfRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Drive/DriveRequestBuilder.cs b/src/generated/Groups/Item/Drive/DriveRequestBuilder.cs index cf0984b81e..6a61a250f7 100644 --- a/src/generated/Groups/Item/Drive/DriveRequestBuilder.cs +++ b/src/generated/Groups/Item/Drive/DriveRequestBuilder.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.Groups.Item.Drive /// /// Provides operations to manage the drive property of the microsoft.graph.group entity. /// - public class DriveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveRequestBuilder : BaseCliRequestBuilder { /// /// The group's default drive. Read-only. @@ -74,14 +77,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 DriveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/drive{?%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 DriveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/drive{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public DriveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// The group's default drive. Read-only. /// - public class DriveRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class DriveRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Drives/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Drives/Count/CountRequestBuilder.cs index 6b3a350c06..91c12a5f4d 100644 --- a/src/generated/Groups/Item/Drives/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Drives/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.Groups.Item.Drives.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}/groups/{group%2Did}/drives/$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}/groups/{group%2Did}/drives/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Drives/DrivesRequestBuilder.cs b/src/generated/Groups/Item/Drives/DrivesRequestBuilder.cs index 0ad4d60113..ac4bf6bcb0 100644 --- a/src/generated/Groups/Item/Drives/DrivesRequestBuilder.cs +++ b/src/generated/Groups/Item/Drives/DrivesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Drives.Count; using ApiSdk.Groups.Item.Drives.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.Groups.Item.Drives /// /// Provides operations to manage the drives property of the microsoft.graph.group entity. /// - public class DrivesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DrivesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the drives property of the microsoft.graph.group entity. @@ -30,7 +33,7 @@ public class DrivesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DriveItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Drives.Item.DriveItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Drives.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 DrivesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/drives{?%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 DrivesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public DrivesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// The group's drives. Read-only. /// - public class DrivesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DrivesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class DrivesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.cs b/src/generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.cs index b47144d4c6..e6e0592b08 100644 --- a/src/generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Drives/Item/DriveItemRequestBuilder.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.Groups.Item.Drives.Item /// /// Provides operations to manage the drives property of the microsoft.graph.group entity. /// - public class DriveItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilder : BaseCliRequestBuilder { /// /// The group's drives. Read-only. @@ -80,14 +83,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 DriveItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/drives/{drive%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 DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/drives/{drive%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The group's drives. Read-only. /// - public class DriveItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class DriveItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Events/Count/CountRequestBuilder.cs index d711d9b13e..8fa979d32a 100644 --- a/src/generated/Groups/Item/Events/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/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.Groups.Item.Events.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}/groups/{group%2Did}/events/$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}/groups/{group%2Did}/events/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Events/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Events/Delta/DeltaGetResponse.cs index 5302e7cd06..ba5962eb9c 100644 --- a/src/generated/Groups/Item/Events/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Events/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Events.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Events.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Events.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Events/Delta/DeltaRequestBuilder.cs index d730aa1384..892967976d 100644 --- a/src/generated/Groups/Item/Events/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Delta/DeltaRequestBuilder.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.Groups.Item.Events.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -136,14 +139,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -255,3 +259,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/EventsRequestBuilder.cs b/src/generated/Groups/Item/Events/EventsRequestBuilder.cs index 18c2085692..b32de98f61 100644 --- a/src/generated/Groups/Item/Events/EventsRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/EventsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Events.Count; using ApiSdk.Groups.Item.Events.Delta; using ApiSdk.Groups.Item.Events.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Events /// /// Provides operations to manage the events property of the microsoft.graph.group entity. /// - public class EventsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the events property of the microsoft.graph.group entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new EventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.EventItemRequestBuilder(PathParameters); commands.Add(builder.BuildAcceptNavCommand()); commands.Add(builder.BuildAttachmentsNavCommand()); commands.Add(builder.BuildCalendarNavCommand()); @@ -45,6 +48,7 @@ public Tuple, List> BuildCommand() executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildInstancesNavCommand()); executables.Add(builder.BuildPatchCommand()); + commands.Add(builder.BuildPermanentDeleteNavCommand()); commands.Add(builder.BuildSnoozeReminderNavCommand()); commands.Add(builder.BuildTentativelyAcceptNavCommand()); return new(executables, commands); @@ -57,7 +61,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.Groups.Item.Events.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -97,8 +101,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(Event.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -126,7 +130,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -178,6 +182,11 @@ public Command BuildListCommand() }; 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"); @@ -193,6 +202,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -209,6 +219,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -232,17 +243,17 @@ 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 EventsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public EventsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events{?%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 EventsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public EventsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -252,11 +263,11 @@ public EventsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -272,11 +283,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(Event body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Event body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Event body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Event body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -288,11 +299,22 @@ public RequestInformation ToPostRequestInformation(Event body, Action /// Retrieve a list of event objects. /// - public class EventsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -342,3 +364,4 @@ public class EventsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.cs index b485824960..111b95fcc6 100644 --- a/src/generated/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Events.Item.Accept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcceptPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcceptPostRequestBody() { @@ -32,12 +34,12 @@ public AcceptPostRequestBody() /// /// 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 AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Accept.AcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs index 6926d96265..dda2bb80f7 100644 --- a/src/generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.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.Groups.Item.Events.Item.Accept /// /// Provides operations to call the accept method. /// - public class AcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseCliRequestBuilder { /// /// Accept the specified event in a user calendar. @@ -48,8 +51,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(AcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Accept.AcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 AcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/accept", 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 AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/accept", rawUrl) @@ -90,11 +93,11 @@ public AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(AcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Accept.AcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 3db5499f86..05d229c52d 100644 --- a/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Events.Item.Attachments.Count; using ApiSdk.Groups.Item.Events.Item.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.Events.Item.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Events.Item.Attachments /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.Events.Item.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -118,7 +121,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -236,14 +239,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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -256,11 +259,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -276,11 +279,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -292,7 +295,8 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -356,3 +360,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs index 57366dafb4..a335db8964 100644 --- a/src/generated/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Attachments/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.Groups.Item.Events.Item.Attachments.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/$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}/groups/{group%2Did}/events/{event%2Did}/attachments/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index e7fa86de14..5d68c44150 100644 --- a/src/generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.Events.Item.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 26594e7c7b..857e528fbc 100644 --- a/src/generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.Events.Item.Attachments.CreateUploadSession /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -57,8 +60,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) @@ -101,11 +104,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 2b27399f3e..8bf98eda6c 100644 --- a/src/generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.Events.Item.Attachments.Item /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -133,14 +136,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -172,11 +175,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); @@ -187,7 +190,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -212,3 +216,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.cs index dbec3c5221..cb6561e596 100644 --- a/src/generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.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.Groups.Item.Events.Item.Calendar /// /// Provides operations to manage the calendar property of the microsoft.graph.event entity. /// - public class CalendarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseCliRequestBuilder { /// /// The calendar that contains the event. Navigation property. Read-only. @@ -42,6 +45,11 @@ public Command BuildGetCommand() }; 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"); @@ -50,6 +58,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); 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"); @@ -58,6 +67,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -73,17 +83,17 @@ 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 CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/calendar{?%24select}", pathParameters) + public CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/calendar{?%24select}", rawUrl) + public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/calendar{?%24expand,%24select}", rawUrl) { } /// @@ -93,11 +103,11 @@ public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -108,8 +118,19 @@ public RequestInformation ToGetRequestInformation(Action /// The calendar that contains the event. Navigation property. Read-only. /// - public class CalendarRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters { + /// 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 @@ -123,3 +144,4 @@ public class CalendarRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.cs index 91a5ebca14..56af9a19d7 100644 --- a/src/generated/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Events.Item.Cancel { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CancelPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CancelPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CancelPostRequestBody : IAdditionalDataHolder, IParsable public string Comment { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CancelPostRequestBody() { @@ -30,12 +32,12 @@ public CancelPostRequestBody() /// /// 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 CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CancelPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Cancel.CancelPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs index cf131266ee..fc7a5ddb4b 100644 --- a/src/generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.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.Groups.Item.Events.Item.Cancel /// /// Provides operations to call the cancel method. /// - public class CancelRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. @@ -48,8 +51,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(CancelPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Cancel.CancelPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 CancelRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/cancel", 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 CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/cancel", rawUrl) @@ -90,11 +93,11 @@ public CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(CancelPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Cancel.CancelPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.cs index a8d0093470..c04f5bf904 100644 --- a/src/generated/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.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.Groups.Item.Events.Item.Decline { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DeclinePostRequestBody : 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,15 +26,15 @@ public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeclinePostRequestBody() { @@ -41,12 +43,12 @@ public DeclinePostRequestBody() /// /// 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 DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeclinePostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Decline.DeclinePostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs index 6c4f2dff6c..6c3d9df948 100644 --- a/src/generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.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.Groups.Item.Events.Item.Decline /// /// Provides operations to call the decline method. /// - public class DeclineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseCliRequestBuilder { /// /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -48,8 +51,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(DeclinePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Decline.DeclinePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 DeclineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/decline", 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 DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/decline", rawUrl) @@ -90,11 +93,11 @@ public DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(DeclinePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Decline.DeclinePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs index 5eb8dcf547..8907924ffa 100644 --- a/src/generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.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.Groups.Item.Events.Item.DismissReminder /// /// Provides operations to call the dismissReminder method. /// - public class DismissReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseCliRequestBuilder { /// /// Dismiss a reminder that has been triggered for an event in a user calendar. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DismissReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/dismissReminder", 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 DismissReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/dismissReminder", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Events.Item.Accept; using ApiSdk.Groups.Item.Events.Item.Attachments; using ApiSdk.Groups.Item.Events.Item.Calendar; @@ -8,10 +9,12 @@ using ApiSdk.Groups.Item.Events.Item.Extensions; using ApiSdk.Groups.Item.Events.Item.Forward; using ApiSdk.Groups.Item.Events.Item.Instances; +using ApiSdk.Groups.Item.Events.Item.PermanentDelete; using ApiSdk.Groups.Item.Events.Item.SnoozeReminder; using ApiSdk.Groups.Item.Events.Item.TentativelyAccept; 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; @@ -30,7 +33,8 @@ namespace ApiSdk.Groups.Item.Events.Item /// /// Provides operations to manage the events property of the microsoft.graph.group entity. /// - public class EventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the accept method. @@ -40,7 +44,7 @@ public Command BuildAcceptNavCommand() { var command = new Command("accept"); command.Description = "Provides operations to call the accept method."; - var builder = new AcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Accept.AcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -57,7 +61,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.event entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -85,7 +89,7 @@ public Command BuildCalendarNavCommand() { var command = new Command("calendar"); command.Description = "Provides operations to manage the calendar property of the microsoft.graph.event entity."; - var builder = new CalendarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Calendar.CalendarRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,7 +106,7 @@ public Command BuildCancelNavCommand() { var command = new Command("cancel"); command.Description = "Provides operations to call the cancel method."; - var builder = new CancelRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Cancel.CancelRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -119,7 +123,7 @@ public Command BuildDeclineNavCommand() { var command = new Command("decline"); command.Description = "Provides operations to call the decline method."; - var builder = new DeclineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Decline.DeclineRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -178,7 +182,7 @@ public Command BuildDismissReminderNavCommand() { var command = new Command("dismiss-reminder"); command.Description = "Provides operations to call the dismissReminder method."; - var builder = new DismissReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -195,7 +199,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.event entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -222,7 +226,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -253,6 +257,11 @@ public Command BuildGetCommand() }; 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"); @@ -261,6 +270,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); 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"); @@ -269,6 +279,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -291,7 +302,7 @@ public Command BuildInstancesNavCommand() { var command = new Command("instances"); command.Description = "Provides operations to manage the instances property of the microsoft.graph.event entity."; - var builder = new InstancesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.InstancesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -345,8 +356,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(Event.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -368,6 +379,23 @@ public Command BuildPatchCommand() return command; } /// + /// Provides operations to call the permanentDelete method. + /// + /// A + public Command BuildPermanentDeleteNavCommand() + { + var command = new Command("permanent-delete"); + command.Description = "Provides operations to call the permanentDelete method."; + var builder = new global::ApiSdk.Groups.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Provides operations to call the snoozeReminder method. /// /// A @@ -375,7 +403,7 @@ public Command BuildSnoozeReminderNavCommand() { var command = new Command("snooze-reminder"); command.Description = "Provides operations to call the snoozeReminder method."; - var builder = new SnoozeReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -392,7 +420,7 @@ public Command BuildTentativelyAcceptNavCommand() { var command = new Command("tentatively-accept"); command.Description = "Provides operations to call the tentativelyAccept method."; - var builder = new TentativelyAcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -402,17 +430,17 @@ public Command BuildTentativelyAcceptNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}{?%24select}", pathParameters) + public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%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 EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}{?%24select}", rawUrl) + public EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}{?%24expand,%24select}", rawUrl) { } /// @@ -441,11 +469,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); @@ -461,11 +489,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(Event body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Event body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Event body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Event body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -477,8 +505,19 @@ public RequestInformation ToPatchRequestInformation(Event body, Action /// Get an event object. /// - public class EventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters { + /// 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 @@ -492,3 +531,4 @@ public class EventItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs index 2d3b5c0c87..5e50ecc82c 100644 --- a/src/generated/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Extensions/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.Groups.Item.Events.Item.Extensions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions/$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}/groups/{group%2Did}/events/{event%2Did}/extensions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs index c185a0930b..c003a98fff 100644 --- a/src/generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Events.Item.Extensions.Count; using ApiSdk.Groups.Item.Events.Item.Extensions.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.Groups.Item.Events.Item.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.Events.Item.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -89,8 +92,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -220,14 +223,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 ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -240,11 +243,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -260,11 +263,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -276,7 +279,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -340,3 +344,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index d9fd9abb65..41e6b3a306 100644 --- a/src/generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.Events.Item.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -173,8 +176,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -197,14 +200,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 ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -236,11 +239,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); @@ -256,11 +259,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -272,7 +275,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -297,3 +301,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.cs index 5196268ee5..1ba98bac11 100644 --- a/src/generated/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.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.Groups.Item.Events.Item.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs index 41045263be..437a828751 100644 --- a/src/generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.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.Groups.Item.Events.Item.Forward /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. @@ -48,8 +51,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/forward", rawUrl) @@ -90,11 +93,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.cs index 7a54863110..0f47d68162 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Count/CountRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Events.Item.Instances.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/$count{?%24filter,%24search}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs index 845a1b313d..af21926049 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Events.Item.Instances.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Events.Item.Instances.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Events.Item.Instances.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(Event.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs index bf83395f23..76f91c8623 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.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.Groups.Item.Events.Item.Instances.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. @@ -142,14 +145,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -162,11 +165,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -177,7 +180,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates) of the user's primary calendar. Typically, synchronizing events in a calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendarView, without having to fetch all the events of that calendar from the server every time. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -261,3 +265,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs index e7d4792854..c712779ffd 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Events.Item.Instances.Count; using ApiSdk.Groups.Item.Events.Item.Instances.Delta; using ApiSdk.Groups.Item.Events.Item.Instances.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Events.Item.Instances /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. /// - public class InstancesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Events.Item.Instances.Item.EventItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.EventItemRequestBuilder(PathParameters); commands.Add(builder.BuildAcceptNavCommand()); commands.Add(builder.BuildAttachmentsNavCommand()); commands.Add(builder.BuildCalendarNavCommand()); @@ -42,6 +45,7 @@ public Tuple, List> BuildCommand() commands.Add(builder.BuildExtensionsNavCommand()); commands.Add(builder.BuildForwardNavCommand()); executables.Add(builder.BuildGetCommand()); + commands.Add(builder.BuildPermanentDeleteNavCommand()); commands.Add(builder.BuildSnoozeReminderNavCommand()); commands.Add(builder.BuildTentativelyAcceptNavCommand()); return new(executables, commands); @@ -54,7 +58,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.Groups.Item.Events.Item.Instances.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -71,7 +75,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -81,13 +85,13 @@ public Command BuildDeltaNavCommand() return command; } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable."; + command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -134,6 +138,11 @@ public Command BuildListCommand() }; 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"); @@ -152,6 +161,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -170,6 +180,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -194,31 +205,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public InstancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public InstancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. - public InstancesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public InstancesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -227,9 +238,10 @@ public RequestInformation ToGetRequestInformation(Action - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// - public class InstancesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -243,6 +255,16 @@ public class InstancesRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -303,3 +325,4 @@ public class InstancesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs index 43865c4cf4..e5fb6a17bb 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Events.Item.Instances.Item.Accept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AcceptPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AcceptPostRequestBody() { @@ -32,12 +34,12 @@ public AcceptPostRequestBody() /// /// 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 AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Accept.AcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs index 0778e29b2c..0ff7c67b1e 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Accept/AcceptRequestBuilder.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.Groups.Item.Events.Item.Instances.Item.Accept /// /// Provides operations to call the accept method. /// - public class AcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseCliRequestBuilder { /// /// Accept the specified event in a user calendar. @@ -53,8 +56,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(AcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Accept.AcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 AcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept", 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 AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/accept", rawUrl) @@ -96,11 +99,11 @@ public AcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(AcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Accept.AcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(AcceptPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 3e0f9487cf..e8efc0810a 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments.Count; using ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.Events.Item.Instances.Item.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -124,7 +127,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -161,6 +164,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -196,6 +203,7 @@ public Command BuildListCommand() var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -212,6 +220,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -242,17 +251,17 @@ 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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -262,11 +271,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -282,11 +291,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -298,7 +307,8 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -332,6 +342,16 @@ public class AttachmentsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -352,3 +372,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs index a20b34d3e8..0854c1a118 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/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.Groups.Item.Events.Item.Instances.Item.Attachments.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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; eventId1Option.IsRequired = true; command.AddOption(eventId1Option); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/$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}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 3120b2b11d..de94ca0792 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.Events.Item.Instances.Item.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 03176ce967..91a9b1634b 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.Events.Item.Instances.Item.Attachments.CreateUpload /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -62,8 +65,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) @@ -107,11 +110,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 70fbb6a9d1..8ce6bd075e 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.Events.Item.Instances.Item.Attachments.Item /// /// Provides operations to manage the attachments property of the microsoft.graph.event entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -145,14 +148,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -184,11 +187,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); @@ -199,7 +202,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -224,3 +228,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs index 2e7f7b6f26..1208b9703c 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Calendar/CalendarRequestBuilder.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.Groups.Item.Events.Item.Instances.Item.Calendar /// /// Provides operations to manage the calendar property of the microsoft.graph.event entity. /// - public class CalendarRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseCliRequestBuilder { /// /// The calendar that contains the event. Navigation property. Read-only. @@ -46,6 +49,11 @@ public Command BuildGetCommand() }; 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"); @@ -55,6 +63,7 @@ public Command BuildGetCommand() var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); 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"); @@ -63,6 +72,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -79,17 +89,17 @@ 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 CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}", pathParameters) + public CalendarRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/calendar{?%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 CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/calendar{?%24select}", rawUrl) + public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/calendar{?%24expand,%24select}", rawUrl) { } /// @@ -99,11 +109,11 @@ public CalendarRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -114,8 +124,19 @@ public RequestInformation ToGetRequestInformation(Action /// The calendar that contains the event. Navigation property. Read-only. /// - public class CalendarRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters { + /// 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 @@ -129,3 +150,4 @@ public class CalendarRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs index 398260eca8..034765844a 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Events.Item.Instances.Item.Cancel { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CancelPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CancelPostRequestBody : 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. @@ -21,7 +23,7 @@ public class CancelPostRequestBody : IAdditionalDataHolder, IParsable public string Comment { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CancelPostRequestBody() { @@ -30,12 +32,12 @@ public CancelPostRequestBody() /// /// 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 CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CancelPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Cancel.CancelPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs index 4e08df169d..08b815c432 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Cancel/CancelRequestBuilder.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.Groups.Item.Events.Item.Instances.Item.Cancel /// /// Provides operations to call the cancel method. /// - public class CancelRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. @@ -53,8 +56,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(CancelPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Cancel.CancelPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 CancelRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/cancel", 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 CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/cancel", rawUrl) @@ -96,11 +99,11 @@ public CancelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(CancelPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Cancel.CancelPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(CancelPostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs index deafdae933..04a6230fb3 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclinePostRequestBody.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.Groups.Item.Events.Item.Instances.Item.Decline { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable + public partial class DeclinePostRequestBody : 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,15 +26,15 @@ public class DeclinePostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DeclinePostRequestBody() { @@ -41,12 +43,12 @@ public DeclinePostRequestBody() /// /// 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 DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeclinePostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Decline.DeclinePostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs index fa82262a34..90e2f430fd 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Decline/DeclineRequestBuilder.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.Groups.Item.Events.Item.Instances.Item.Decline /// /// Provides operations to call the decline method. /// - public class DeclineRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseCliRequestBuilder { /// /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -53,8 +56,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(DeclinePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Decline.DeclinePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 DeclineRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline", 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 DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/decline", rawUrl) @@ -96,11 +99,11 @@ public DeclineRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(DeclinePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Decline.DeclinePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(DeclinePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs index bb98062b8f..4d74c748e8 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/DismissReminder/DismissReminderRequestBuilder.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.Groups.Item.Events.Item.Instances.Item.DismissReminder /// /// Provides operations to call the dismissReminder method. /// - public class DismissReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseCliRequestBuilder { /// /// Dismiss a reminder that has been triggered for an event in a user calendar. @@ -62,14 +65,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 DismissReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", 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 DismissReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/dismissReminder", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Events.Item.Instances.Item.Accept; using ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments; using ApiSdk.Groups.Item.Events.Item.Instances.Item.Calendar; @@ -7,10 +8,12 @@ using ApiSdk.Groups.Item.Events.Item.Instances.Item.DismissReminder; using ApiSdk.Groups.Item.Events.Item.Instances.Item.Extensions; using ApiSdk.Groups.Item.Events.Item.Instances.Item.Forward; +using ApiSdk.Groups.Item.Events.Item.Instances.Item.PermanentDelete; using ApiSdk.Groups.Item.Events.Item.Instances.Item.SnoozeReminder; using ApiSdk.Groups.Item.Events.Item.Instances.Item.TentativelyAccept; 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; @@ -29,7 +32,8 @@ namespace ApiSdk.Groups.Item.Events.Item.Instances.Item /// /// Provides operations to manage the instances property of the microsoft.graph.event entity. /// - public class EventItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the accept method. @@ -39,7 +43,7 @@ public Command BuildAcceptNavCommand() { var command = new Command("accept"); command.Description = "Provides operations to call the accept method."; - var builder = new AcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Accept.AcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -56,7 +60,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.event entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -84,7 +88,7 @@ public Command BuildCalendarNavCommand() { var command = new Command("calendar"); command.Description = "Provides operations to manage the calendar property of the microsoft.graph.event entity."; - var builder = new CalendarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Calendar.CalendarRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -101,7 +105,7 @@ public Command BuildCancelNavCommand() { var command = new Command("cancel"); command.Description = "Provides operations to call the cancel method."; - var builder = new CancelRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Cancel.CancelRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -118,7 +122,7 @@ public Command BuildDeclineNavCommand() { var command = new Command("decline"); command.Description = "Provides operations to call the decline method."; - var builder = new DeclineRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Decline.DeclineRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -135,7 +139,7 @@ public Command BuildDismissReminderNavCommand() { var command = new Command("dismiss-reminder"); command.Description = "Provides operations to call the dismissReminder method."; - var builder = new DismissReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -152,7 +156,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.event entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -179,7 +183,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -189,13 +193,13 @@ public Command BuildForwardNavCommand() return command; } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable."; + command.Description = "The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -221,6 +225,11 @@ public Command BuildGetCommand() }; 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"); @@ -232,6 +241,7 @@ public Command BuildGetCommand() var startDateTime = invocationContext.ParseResult.GetValueForOption(startDateTimeOption); var endDateTime = invocationContext.ParseResult.GetValueForOption(endDateTimeOption); 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"); @@ -242,6 +252,7 @@ public Command BuildGetCommand() if (!string.IsNullOrEmpty(startDateTime)) q.QueryParameters.StartDateTime = startDateTime; if (!string.IsNullOrEmpty(endDateTime)) q.QueryParameters.EndDateTime = endDateTime; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); @@ -258,6 +269,23 @@ public Command BuildGetCommand() return command; } /// + /// Provides operations to call the permanentDelete method. + /// + /// A + public Command BuildPermanentDeleteNavCommand() + { + var command = new Command("permanent-delete"); + command.Description = "Provides operations to call the permanentDelete method."; + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Provides operations to call the snoozeReminder method. /// /// A @@ -265,7 +293,7 @@ public Command BuildSnoozeReminderNavCommand() { var command = new Command("snooze-reminder"); command.Description = "Provides operations to call the snoozeReminder method."; - var builder = new SnoozeReminderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -282,7 +310,7 @@ public Command BuildTentativelyAcceptNavCommand() { var command = new Command("tentatively-accept"); command.Description = "Provides operations to call the tentativelyAccept method."; - var builder = new TentativelyAcceptRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -292,31 +320,31 @@ public Command BuildTentativelyAcceptNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", pathParameters) + public EventItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24select}", rawUrl) + public EventItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24expand,%24select}", rawUrl) { } /// - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -325,9 +353,10 @@ public RequestInformation ToGetRequestInformation(Action - /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but does not include occurrences that have been cancelled from the series. Navigation property. Read-only. Nullable. + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions modified, but doesn't include occurrences cancelled from the series. Navigation property. Read-only. Nullable. /// - public class EventItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters { /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -338,6 +367,16 @@ public class EventItemRequestBuilderGetQueryParameters #else [QueryParameter("endDateTime")] public string EndDateTime { get; set; } +#endif + /// 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 @@ -362,3 +401,4 @@ public class EventItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs index 1958f99faa..3bf43cdcd6 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/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.Groups.Item.Events.Item.Instances.Item.Extensions.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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; eventId1Option.IsRequired = true; command.AddOption(eventId1Option); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions/$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}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs index 4b69c74462..ddab74e4fe 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Events.Item.Instances.Item.Extensions.Count; using ApiSdk.Groups.Item.Events.Item.Instances.Item.Extensions.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.Groups.Item.Events.Item.Instances.Item.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.Events.Item.Instances.Item.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -144,6 +147,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -179,6 +186,7 @@ public Command BuildListCommand() var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -195,6 +203,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -225,17 +234,17 @@ 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 ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -245,11 +254,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -265,11 +274,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +290,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,6 +325,16 @@ public class ExtensionsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -335,3 +355,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index a2c5e080bc..826e352836 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.Events.Item.Instances.Item.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.event entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -189,8 +192,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the event. Nullable. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs index 572695d733..060def104b 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardPostRequestBody.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.Groups.Item.Events.Item.Instances.Item.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs index 6cc21766e4..c90a4cf8dc 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Forward/ForwardRequestBuilder.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.Groups.Item.Events.Item.Instances.Item.Forward /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. @@ -53,8 +56,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/forward", rawUrl) @@ -96,11 +99,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 0000000000..1e5005743c --- /dev/null +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,101 @@ +// +#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; +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.Groups.Item.Events.Item.Instances.Item.PermanentDelete +{ + /// + /// Provides operations to call the permanentDelete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action permanentDelete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action permanentDelete"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var eventIdOption = new Option("--event-id", description: "The unique identifier of event") { + }; + eventIdOption.IsRequired = true; + command.AddOption(eventIdOption); + var eventId1Option = new Option("--event-id1", description: "The unique identifier of event") { + }; + eventId1Option.IsRequired = true; + command.AddOption(eventId1Option); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); + var eventId1 = invocationContext.ParseResult.GetValueForOption(eventId1Option); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); + if (eventId1 is not null) requestInfo.PathParameters.Add("event%2Did1", eventId1); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public PermanentDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public PermanentDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/permanentDelete", rawUrl) + { + } + /// + /// Invoke action permanentDelete + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index ad8fba6f38..934a8c8ef9 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderPostRequestBody.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.Groups.Item.Events.Item.Instances.Item.SnoozeReminder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SnoozeReminderPostRequestBody : 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. @@ -16,13 +18,13 @@ public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable /// The NewReminderTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone? NewReminderTime { get; set; } #nullable restore #else - public DateTimeTimeZone NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone NewReminderTime { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SnoozeReminderPostRequestBody() { @@ -31,12 +33,12 @@ public SnoozeReminderPostRequestBody() /// /// 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 SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SnoozeReminderPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::ApiSdk.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("NewReminderTime", NewReminderTime); + writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index 06d26c97ed..d97578f840 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/SnoozeReminder/SnoozeReminderRequestBuilder.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.Groups.Item.Events.Item.Instances.Item.SnoozeReminder /// /// Provides operations to call the snoozeReminder method. /// - public class SnoozeReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseCliRequestBuilder { /// /// Postpone a reminder for an event in a user calendar until a new time. @@ -53,8 +56,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(SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 SnoozeReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", 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 SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/snoozeReminder", rawUrl) @@ -96,11 +99,11 @@ public SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 6abfbef867..b7254b66b9 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.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.Groups.Item.Events.Item.Instances.Item.TentativelyAccept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TentativelyAcceptPostRequestBody : 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,15 +26,15 @@ public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TentativelyAcceptPostRequestBody() { @@ -41,12 +43,12 @@ public TentativelyAcceptPostRequestBody() /// /// 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 TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TentativelyAcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 4f142b132a..6878881791 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.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.Groups.Item.Events.Item.Instances.Item.TentativelyAccept /// /// Provides operations to call the tentativelyAccept method. /// - public class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder { /// /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -53,8 +56,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(TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 TentativelyAcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", 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 TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/tentativelyAccept", rawUrl) @@ -96,11 +99,11 @@ public TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/ /// 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(TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.Instances.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 0000000000..5908de1c86 --- /dev/null +++ b/src/generated/Groups/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,95 @@ +// +#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; +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.Groups.Item.Events.Item.PermanentDelete +{ + /// + /// Provides operations to call the permanentDelete method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action permanentDelete + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action permanentDelete"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var eventIdOption = new Option("--event-id", description: "The unique identifier of event") { + }; + eventIdOption.IsRequired = true; + command.AddOption(eventIdOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var eventId = invocationContext.ParseResult.GetValueForOption(eventIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (eventId is not null) requestInfo.PathParameters.Add("event%2Did", eventId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public PermanentDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public PermanentDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Invoke action permanentDelete + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs index bbd8f76e02..a16f1f0e31 100644 --- a/src/generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.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.Groups.Item.Events.Item.SnoozeReminder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SnoozeReminderPostRequestBody : 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. @@ -16,13 +18,13 @@ public class SnoozeReminderPostRequestBody : IAdditionalDataHolder, IParsable /// The NewReminderTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone? NewReminderTime { get; set; } #nullable restore #else - public DateTimeTimeZone NewReminderTime { get; set; } + public global::ApiSdk.Models.DateTimeTimeZone NewReminderTime { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SnoozeReminderPostRequestBody() { @@ -31,12 +33,12 @@ public SnoozeReminderPostRequestBody() /// /// 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 SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SnoozeReminderPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::ApiSdk.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("NewReminderTime", NewReminderTime); + writer.WriteObjectValue("NewReminderTime", NewReminderTime); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs index f9dbe445f5..a6b1fe62d2 100644 --- a/src/generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.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.Groups.Item.Events.Item.SnoozeReminder /// /// Provides operations to call the snoozeReminder method. /// - public class SnoozeReminderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseCliRequestBuilder { /// /// Postpone a reminder for an event in a user calendar until a new time. @@ -48,8 +51,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(SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 SnoozeReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/snoozeReminder", 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 SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/snoozeReminder", rawUrl) @@ -90,11 +93,11 @@ public SnoozeReminderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(SnoozeReminderPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs index 7c5a374735..b7897978a4 100644 --- a/src/generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs +++ b/src/generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.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.Groups.Item.Events.Item.TentativelyAccept { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable + public partial class TentativelyAcceptPostRequestBody : 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,15 +26,15 @@ public class TentativelyAcceptPostRequestBody : IAdditionalDataHolder, IParsable /// The ProposedNewTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TimeSlot? ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot? ProposedNewTime { get; set; } #nullable restore #else - public TimeSlot ProposedNewTime { get; set; } + public global::ApiSdk.Models.TimeSlot ProposedNewTime { get; set; } #endif /// The SendResponse property public bool? SendResponse { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TentativelyAcceptPostRequestBody() { @@ -41,12 +43,12 @@ public TentativelyAcceptPostRequestBody() /// /// 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 TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TentativelyAcceptPostRequestBody(); + return new global::ApiSdk.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(TimeSlot.CreateFromDiscriminatorValue); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::ApiSdk.Models.TimeSlot.CreateFromDiscriminatorValue); } }, { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, }; } @@ -69,9 +71,10 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); writer.WriteBoolValue("SendResponse", SendResponse); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs index 8dc42b5bf0..70f5704581 100644 --- a/src/generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.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.Groups.Item.Events.Item.TentativelyAccept /// /// Provides operations to call the tentativelyAccept method. /// - public class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseCliRequestBuilder { /// /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. @@ -48,8 +51,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(TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 TentativelyAcceptRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/tentativelyAccept", 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 TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/events/{event%2Did}/tentativelyAccept", rawUrl) @@ -90,11 +93,11 @@ public TentativelyAcceptRequestBuilder(string rawUrl) : base("{+baseurl}/groups/ /// 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(TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(TentativelyAcceptPostRequestB } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Extensions/Count/CountRequestBuilder.cs index 5ff17fb4ca..1fd0afd345 100644 --- a/src/generated/Groups/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Extensions/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.Groups.Item.Extensions.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}/groups/{group%2Did}/extensions/$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}/groups/{group%2Did}/extensions/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/Extensions/ExtensionsRequestBuilder.cs index 8dab11a022..c47dba1f07 100644 --- a/src/generated/Groups/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Extensions.Count; using ApiSdk.Groups.Item.Extensions.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.Groups.Item.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.group entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.group entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.Extensions.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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -247,11 +250,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the group. Read-only. Nullable. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 83d9ff9873..b8a9ead48c 100644 --- a/src/generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.group entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the group. Read-only. Nullable. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs b/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs index d87170289b..b231db64c4 100644 --- a/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs +++ b/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberGroupsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberGroupsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberGroupsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberGroupsPostRequestBody() /// /// 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 GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.GetMemberGroups.GetMemberGroupsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostRequestBody(); + return new global::ApiSdk.Groups.Item.GetMemberGroups.GetMemberGroupsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs b/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs index 148be6e7fd..88192f69eb 100644 --- a/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.cs +++ b/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsPostResponse.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.Groups.Item.GetMemberGroups { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberGroupsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberGroupsPostResponse : BaseCollectionPaginationCountResponse /// /// 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 new GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.GetMemberGroups.GetMemberGroupsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberGroupsPostResponse(); + return new global::ApiSdk.Groups.Item.GetMemberGroups.GetMemberGroupsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs b/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs index f673e456cd..7dc1162f3a 100644 --- a/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/GetMemberGroups/GetMemberGroupsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Item.GetMemberGroups /// /// Provides operations to call the getMemberGroups method. /// - public class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberGroupsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; + command.Description = "Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.GetMemberGroups.GetMemberGroupsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/getMemberGroups", 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 GetMemberGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/getMemberGroups", rawUrl) { } /// - /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + /// Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. /// /// 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 ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.GetMemberGroups.GetMemberGroupsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberGroupsPostRequestBod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs b/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs index 029820f663..ce2220090b 100644 --- a/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs +++ b/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetMemberObjectsPostRequestBody : 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. @@ -15,7 +17,7 @@ public class GetMemberObjectsPostRequestBody : IAdditionalDataHolder, IParsable /// The securityEnabledOnly property public bool? SecurityEnabledOnly { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetMemberObjectsPostRequestBody() { @@ -24,12 +26,12 @@ public GetMemberObjectsPostRequestBody() /// /// 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 GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.GetMemberObjects.GetMemberObjectsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostRequestBody(); + return new global::ApiSdk.Groups.Item.GetMemberObjects.GetMemberObjectsPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs b/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs index f0c70c2f15..bdde34e96c 100644 --- a/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.cs +++ b/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsPostResponse.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.Groups.Item.GetMemberObjects { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetMemberObjectsPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property @@ -22,12 +24,12 @@ public class GetMemberObjectsPostResponse : BaseCollectionPaginationCountRespons /// /// 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 new GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.GetMemberObjects.GetMemberObjectsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetMemberObjectsPostResponse(); + return new global::ApiSdk.Groups.Item.GetMemberObjects.GetMemberObjectsPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -52,3 +54,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs b/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs index 895dcf64ec..fbb5791ab3 100644 --- a/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.cs +++ b/src/generated/Groups/Item/GetMemberObjects/GetMemberObjectsRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Item.GetMemberObjects /// /// Provides operations to call the getMemberObjects method. /// - public class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetMemberObjectsRequestBuilder : BaseCliRequestBuilder { /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; + command.Description = "Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -55,8 +58,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(GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.GetMemberObjects.GetMemberObjectsPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,32 +89,32 @@ 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 GetMemberObjectsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/getMemberObjects", 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 GetMemberObjectsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/getMemberObjects", rawUrl) { } /// - /// Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + /// Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. /// /// 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 ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.GetMemberObjects.GetMemberObjectsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(GetMemberObjectsPostRequestBo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GroupItemRequestBuilder.cs b/src/generated/Groups/Item/GroupItemRequestBuilder.cs index 90e10ac554..d816fc5183 100644 --- a/src/generated/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/GroupItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.AcceptedSenders; using ApiSdk.Groups.Item.AddFavorite; using ApiSdk.Groups.Item.AppRoleAssignments; @@ -44,6 +45,7 @@ using ApiSdk.Groups.Item.ValidateProperties; 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; @@ -62,7 +64,8 @@ namespace ApiSdk.Groups.Item /// /// Provides operations to manage the collection of group entities. /// - public class GroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the acceptedSenders property of the microsoft.graph.group entity. @@ -72,7 +75,7 @@ public Command BuildAcceptedSendersNavCommand() { var command = new Command("accepted-senders"); command.Description = "Provides operations to manage the acceptedSenders property of the microsoft.graph.group entity."; - var builder = new AcceptedSendersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.AcceptedSenders.AcceptedSendersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildAddFavoriteNavCommand() { var command = new Command("add-favorite"); command.Description = "Provides operations to call the addFavorite method."; - var builder = new AddFavoriteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.AddFavorite.AddFavoriteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -116,7 +119,7 @@ public Command BuildAppRoleAssignmentsNavCommand() { var command = new Command("app-role-assignments"); command.Description = "Provides operations to manage the appRoleAssignments property of the microsoft.graph.group entity."; - var builder = new AppRoleAssignmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.AppRoleAssignments.AppRoleAssignmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -143,7 +146,7 @@ public Command BuildAssignLicenseNavCommand() { var command = new Command("assign-license"); command.Description = "Provides operations to call the assignLicense method."; - var builder = new AssignLicenseRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.AssignLicense.AssignLicenseRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -160,7 +163,7 @@ public Command BuildCalendarNavCommand() { var command = new Command("calendar"); command.Description = "Provides operations to manage the calendar property of the microsoft.graph.group entity."; - var builder = new CalendarRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Calendar.CalendarRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAllowedCalendarSharingRolesWithUserRbCommand()); @@ -169,6 +172,7 @@ public Command BuildCalendarNavCommand() nonExecCommands.Add(builder.BuildEventsNavCommand()); execCommands.Add(builder.BuildGetCommand()); nonExecCommands.Add(builder.BuildGetScheduleNavCommand()); + nonExecCommands.Add(builder.BuildPermanentDeleteNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); @@ -187,7 +191,7 @@ public Command BuildCalendarViewNavCommand() { var command = new Command("calendar-view"); command.Description = "Provides operations to manage the calendarView property of the microsoft.graph.group entity."; - var builder = new CalendarViewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CalendarView.CalendarViewRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -214,7 +218,7 @@ public Command BuildCheckGrantedPermissionsForAppNavCommand() { var command = new Command("check-granted-permissions-for-app"); command.Description = "Provides operations to call the checkGrantedPermissionsForApp method."; - var builder = new CheckGrantedPermissionsForAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CheckGrantedPermissionsForApp.CheckGrantedPermissionsForAppRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -231,7 +235,7 @@ public Command BuildCheckMemberGroupsNavCommand() { var command = new Command("check-member-groups"); command.Description = "Provides operations to call the checkMemberGroups method."; - var builder = new CheckMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CheckMemberGroups.CheckMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -248,7 +252,7 @@ public Command BuildCheckMemberObjectsNavCommand() { var command = new Command("check-member-objects"); command.Description = "Provides operations to call the checkMemberObjects method."; - var builder = new CheckMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CheckMemberObjects.CheckMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -265,7 +269,7 @@ public Command BuildConversationsNavCommand() { var command = new Command("conversations"); command.Description = "Provides operations to manage the conversations property of the microsoft.graph.group entity."; - var builder = new ConversationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Conversations.ConversationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -292,7 +296,7 @@ public Command BuildCreatedOnBehalfOfNavCommand() { var command = new Command("created-on-behalf-of"); command.Description = "Provides operations to manage the createdOnBehalfOf property of the microsoft.graph.group entity."; - var builder = new CreatedOnBehalfOfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.CreatedOnBehalfOf.CreatedOnBehalfOfRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -302,14 +306,14 @@ public Command BuildCreatedOnBehalfOfNavCommand() return command; } /// - /// Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. + /// Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-delete?view=graph-rest-1.0"; + command.Description = "Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-delete?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -345,7 +349,7 @@ public Command BuildDriveNavCommand() { var command = new Command("drive"); command.Description = "Provides operations to manage the drive property of the microsoft.graph.group entity."; - var builder = new DriveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Drive.DriveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -362,7 +366,7 @@ public Command BuildDrivesNavCommand() { var command = new Command("drives"); command.Description = "Provides operations to manage the drives property of the microsoft.graph.group entity."; - var builder = new DrivesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Drives.DrivesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -388,7 +392,7 @@ public Command BuildEventsNavCommand() { var command = new Command("events"); command.Description = "Provides operations to manage the events property of the microsoft.graph.group entity."; - var builder = new EventsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Events.EventsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -416,7 +420,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.group entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -496,7 +500,7 @@ public Command BuildGetMemberGroupsNavCommand() { var command = new Command("get-member-groups"); command.Description = "Provides operations to call the getMemberGroups method."; - var builder = new GetMemberGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.GetMemberGroups.GetMemberGroupsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -513,7 +517,7 @@ public Command BuildGetMemberObjectsNavCommand() { var command = new Command("get-member-objects"); command.Description = "Provides operations to call the getMemberObjects method."; - var builder = new GetMemberObjectsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.GetMemberObjects.GetMemberObjectsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -530,7 +534,7 @@ public Command BuildGroupLifecyclePoliciesNavCommand() { var command = new Command("group-lifecycle-policies"); command.Description = "Provides operations to manage the groupLifecyclePolicies property of the microsoft.graph.group entity."; - var builder = new GroupLifecyclePoliciesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.GroupLifecyclePolicies.GroupLifecyclePoliciesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -557,7 +561,7 @@ public Command BuildMemberOfNavCommand() { var command = new Command("member-of"); command.Description = "Provides operations to manage the memberOf property of the microsoft.graph.group entity."; - var builder = new MemberOfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MemberOf.MemberOfRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -585,7 +589,7 @@ public Command BuildMembersNavCommand() { var command = new Command("members"); command.Description = "Provides operations to manage the members property of the microsoft.graph.group entity."; - var builder = new MembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.MembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -618,7 +622,7 @@ public Command BuildMembersWithLicenseErrorsNavCommand() { var command = new Command("members-with-license-errors"); command.Description = "Provides operations to manage the membersWithLicenseErrors property of the microsoft.graph.group entity."; - var builder = new MembersWithLicenseErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.MembersWithLicenseErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -650,7 +654,7 @@ public Command BuildOnenoteNavCommand() { var command = new Command("onenote"); command.Description = "Provides operations to manage the onenote property of the microsoft.graph.group entity."; - var builder = new OnenoteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.OnenoteRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -680,7 +684,7 @@ public Command BuildOwnersNavCommand() { var command = new Command("owners"); command.Description = "Provides operations to manage the owners property of the microsoft.graph.group entity."; - var builder = new OwnersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.OwnersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -736,8 +740,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.Group.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Group.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -765,7 +769,7 @@ public Command BuildPermissionGrantsNavCommand() { var command = new Command("permission-grants"); command.Description = "Provides operations to manage the permissionGrants property of the microsoft.graph.group entity."; - var builder = new PermissionGrantsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.PermissionGrants.PermissionGrantsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -792,7 +796,7 @@ public Command BuildPhotoNavCommand() { var command = new Command("photo"); command.Description = "Provides operations to manage the photo property of the microsoft.graph.group entity."; - var builder = new PhotoRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Photo.PhotoRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildContentNavCommand()); @@ -817,7 +821,7 @@ public Command BuildPhotosNavCommand() { var command = new Command("photos"); command.Description = "Provides operations to manage the photos property of the microsoft.graph.group entity."; - var builder = new PhotosRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Photos.PhotosRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildListCommand()); @@ -842,7 +846,7 @@ public Command BuildPlannerNavCommand() { var command = new Command("planner"); command.Description = "Provides operations to manage the planner property of the microsoft.graph.group entity."; - var builder = new PlannerRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.PlannerRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -867,7 +871,7 @@ public Command BuildRejectedSendersNavCommand() { var command = new Command("rejected-senders"); command.Description = "Provides operations to manage the rejectedSenders property of the microsoft.graph.group entity."; - var builder = new RejectedSendersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.RejectedSenders.RejectedSendersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -894,7 +898,7 @@ public Command BuildRemoveFavoriteNavCommand() { var command = new Command("remove-favorite"); command.Description = "Provides operations to call the removeFavorite method."; - var builder = new RemoveFavoriteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.RemoveFavorite.RemoveFavoriteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -911,7 +915,7 @@ public Command BuildRenewNavCommand() { var command = new Command("renew"); command.Description = "Provides operations to call the renew method."; - var builder = new RenewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Renew.RenewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -928,7 +932,7 @@ public Command BuildResetUnseenCountNavCommand() { var command = new Command("reset-unseen-count"); command.Description = "Provides operations to call the resetUnseenCount method."; - var builder = new ResetUnseenCountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.ResetUnseenCount.ResetUnseenCountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -945,7 +949,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -962,7 +966,7 @@ public Command BuildRetryServiceProvisioningNavCommand() { var command = new Command("retry-service-provisioning"); command.Description = "Provides operations to call the retryServiceProvisioning method."; - var builder = new RetryServiceProvisioningRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.RetryServiceProvisioning.RetryServiceProvisioningRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -979,7 +983,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1002,7 +1006,7 @@ public Command BuildSettingsNavCommand() { var command = new Command("settings"); command.Description = "Provides operations to manage the settings property of the microsoft.graph.group entity."; - var builder = new SettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Settings.SettingsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1029,7 +1033,7 @@ public Command BuildSitesNavCommand() { var command = new Command("sites"); command.Description = "Provides operations to manage the sites property of the microsoft.graph.group entity."; - var builder = new SitesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.SitesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); @@ -1059,7 +1063,7 @@ public Command BuildSubscribeByMailNavCommand() { var command = new Command("subscribe-by-mail"); command.Description = "Provides operations to call the subscribeByMail method."; - var builder = new SubscribeByMailRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.SubscribeByMail.SubscribeByMailRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1076,7 +1080,7 @@ public Command BuildTeamNavCommand() { var command = new Command("team"); command.Description = "Provides operations to manage the team property of the microsoft.graph.group entity."; - var builder = new TeamRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.TeamRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAllChannelsNavCommand()); @@ -1118,7 +1122,7 @@ public Command BuildThreadsNavCommand() { var command = new Command("threads"); command.Description = "Provides operations to manage the threads property of the microsoft.graph.group entity."; - var builder = new ThreadsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.ThreadsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1145,7 +1149,7 @@ public Command BuildTransitiveMemberOfNavCommand() { var command = new Command("transitive-member-of"); command.Description = "Provides operations to manage the transitiveMemberOf property of the microsoft.graph.group entity."; - var builder = new TransitiveMemberOfRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.TransitiveMemberOf.TransitiveMemberOfRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1173,7 +1177,7 @@ public Command BuildTransitiveMembersNavCommand() { var command = new Command("transitive-members"); command.Description = "Provides operations to manage the transitiveMembers property of the microsoft.graph.group entity."; - var builder = new TransitiveMembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.TransitiveMembers.TransitiveMembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -1205,7 +1209,7 @@ public Command BuildUnsubscribeByMailNavCommand() { var command = new Command("unsubscribe-by-mail"); command.Description = "Provides operations to call the unsubscribeByMail method."; - var builder = new UnsubscribeByMailRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.UnsubscribeByMail.UnsubscribeByMailRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1222,7 +1226,7 @@ public Command BuildValidatePropertiesByIdNavCommand() { var command = new Command("validate-properties-by-id"); command.Description = "Provides operations to call the validateProperties method."; - var builder = new ValidatePropertiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.ValidateProperties.ValidatePropertiesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -1232,21 +1236,21 @@ public Command BuildValidatePropertiesByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%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 GroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Delete group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. + /// Delete a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they're permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -1271,11 +1275,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); @@ -1291,11 +1295,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.Group body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Group body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Group body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Group body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -1307,7 +1311,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Group body, Ac /// /// Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that aren't_ returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and aren't returned in the $select query. /// - public class GroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1332,3 +1337,4 @@ public class GroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GroupLifecyclePolicies/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/GroupLifecyclePolicies/Count/CountRequestBuilder.cs index 1acc8dfa3c..ae6db2f25a 100644 --- a/src/generated/Groups/Item/GroupLifecyclePolicies/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/GroupLifecyclePolicies/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.Groups.Item.GroupLifecyclePolicies.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}/groups/{group%2Did}/groupLifecyclePolicies/$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}/groups/{group%2Did}/groupLifecyclePolicies/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs b/src/generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs index 0b708a0b01..ed963ce0e4 100644 --- a/src/generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs +++ b/src/generated/Groups/Item/GroupLifecyclePolicies/GroupLifecyclePoliciesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.GroupLifecyclePolicies.Count; using ApiSdk.Groups.Item.GroupLifecyclePolicies.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.Groups.Item.GroupLifecyclePolicies /// /// Provides operations to manage the groupLifecyclePolicies property of the microsoft.graph.group entity. /// - public class GroupLifecyclePoliciesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupLifecyclePoliciesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the groupLifecyclePolicies property of the microsoft.graph.group entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new GroupLifecyclePolicyItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.GroupLifecyclePolicyItemRequestBuilder(PathParameters); commands.Add(builder.BuildAddGroupNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.Groups.Item.GroupLifecyclePolicies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(GroupLifecyclePolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.GroupLifecyclePolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 GroupLifecyclePoliciesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies{?%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 GroupLifecyclePoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -231,11 +234,11 @@ public GroupLifecyclePoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/gr /// 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); @@ -251,11 +254,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(GroupLifecyclePolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.GroupLifecyclePolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GroupLifecyclePolicy body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.GroupLifecyclePolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(GroupLifecyclePolicy body, Ac /// /// Retrieves a list of groupLifecyclePolicy objects to which a group belongs. /// - public class GroupLifecyclePoliciesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupLifecyclePoliciesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class GroupLifecyclePoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs index 2a22324e33..d8b263365e 100644 --- a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs +++ b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddGroupPostRequestBody : 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. @@ -21,7 +23,7 @@ public class AddGroupPostRequestBody : IAdditionalDataHolder, IParsable public string GroupId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddGroupPostRequestBody() { @@ -30,12 +32,12 @@ public AddGroupPostRequestBody() /// /// 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 AddGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddGroupPostRequestBody(); + return new global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs index aef7e4602e..24994993eb 100644 --- a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs +++ b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupPostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddGroupPostResponse : IAdditionalDataHolder, IParsable + public partial class AddGroupPostResponse : 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. @@ -15,7 +17,7 @@ public class AddGroupPostResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddGroupPostResponse() { @@ -24,12 +26,12 @@ public AddGroupPostResponse() /// /// 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 AddGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddGroupPostResponse(); + return new global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs index 5ac39f229f..c3117cface 100644 --- a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/AddGroup/AddGroupRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup /// /// Provides operations to call the addGroup method. /// - public class AddGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddGroupRequestBuilder : BaseCliRequestBuilder { /// - /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + /// Add a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/grouplifecyclepolicy-addgroup?view=graph-rest-1.0"; + command.Description = "Add a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/grouplifecyclepolicy-addgroup?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -56,8 +59,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(AddGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,32 +82,32 @@ 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 AddGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/addGroup", 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 AddGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/addGroup", rawUrl) { } /// - /// Adds specific groups to a lifecycle policy. This action limits the group lifecycle policy to a set of groups only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected. + /// Add a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected. /// /// 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 ToPostRequestInformation(AddGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup.AddGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(AddGroupPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs index 0d26dc8f58..52a16af64d 100644 --- a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs +++ b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/GroupLifecyclePolicyItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup; using ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup; 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.Groups.Item.GroupLifecyclePolicies.Item /// /// Provides operations to manage the groupLifecyclePolicies property of the microsoft.graph.group entity. /// - public class GroupLifecyclePolicyItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupLifecyclePolicyItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the addGroup method. @@ -31,7 +34,7 @@ public Command BuildAddGroupNavCommand() { var command = new Command("add-group"); command.Description = "Provides operations to call the addGroup method."; - var builder = new AddGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.AddGroup.AddGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -174,8 +177,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(GroupLifecyclePolicy.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.GroupLifecyclePolicy.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildRemoveGroupNavCommand() { var command = new Command("remove-group"); command.Description = "Provides operations to call the removeGroup method."; - var builder = new RemoveGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -214,14 +217,14 @@ public Command BuildRemoveGroupNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GroupLifecyclePolicyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%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 GroupLifecyclePolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(GroupLifecyclePolicy body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.GroupLifecyclePolicy body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(GroupLifecyclePolicy body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.GroupLifecyclePolicy body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(GroupLifecyclePolicy body, A /// /// The collection of lifecycle policies for this group. Read-only. Nullable. /// - public class GroupLifecyclePolicyItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupLifecyclePolicyItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class GroupLifecyclePolicyItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs index cbc298ff44..876d2f6bce 100644 --- a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs +++ b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RemoveGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class RemoveGroupPostRequestBody : 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. @@ -21,7 +23,7 @@ public class RemoveGroupPostRequestBody : IAdditionalDataHolder, IParsable public string GroupId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RemoveGroupPostRequestBody() { @@ -30,12 +32,12 @@ public RemoveGroupPostRequestBody() /// /// 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 RemoveGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RemoveGroupPostRequestBody(); + return new global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs index b472eaf84b..44fd05a63e 100644 --- a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs +++ b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupPostResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RemoveGroupPostResponse : IAdditionalDataHolder, IParsable + public partial class RemoveGroupPostResponse : 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. @@ -15,7 +17,7 @@ public class RemoveGroupPostResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RemoveGroupPostResponse() { @@ -24,12 +26,12 @@ public RemoveGroupPostResponse() /// /// 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 RemoveGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RemoveGroupPostResponse(); + return new global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs index be9fe68039..0a6bbb2d53 100644 --- a/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/GroupLifecyclePolicies/Item/RemoveGroup/RemoveGroupRequestBuilder.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.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup /// /// Provides operations to call the removeGroup method. /// - public class RemoveGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveGroupRequestBuilder : BaseCliRequestBuilder { /// /// Removes a group from a lifecycle policy. @@ -56,8 +59,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(RemoveGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -79,14 +82,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 RemoveGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/removeGroup", 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 RemoveGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/{groupLifecyclePolicy%2Did}/removeGroup", rawUrl) @@ -100,11 +103,11 @@ public RemoveGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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(RemoveGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RemoveGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.GroupLifecyclePolicies.Item.RemoveGroup.RemoveGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -115,3 +118,4 @@ public RequestInformation ToPostRequestInformation(RemoveGroupPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MemberOf/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/MemberOf/Count/CountRequestBuilder.cs index 2082211627..973d9ac0a0 100644 --- a/src/generated/Groups/Item/MemberOf/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/MemberOf/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.Groups.Item.MemberOf.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 @@ -70,14 +73,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}/groups/{group%2Did}/memberOf/$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}/groups/{group%2Did}/memberOf/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index 22d217af29..bc0688af2c 100644 --- a/src/generated/Groups/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/MemberOf/GraphAdministrativeUnit/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.Groups.Item.MemberOf.GraphAdministrativeUnit.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 @@ -70,14 +73,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}/groups/{group%2Did}/memberOf/graph.administrativeUnit/$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}/groups/{group%2Did}/memberOf/graph.administrativeUnit/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 24d834d517..ba6f0f76b8 100644 --- a/src/generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Groups/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MemberOf.GraphAdministrativeUnit.Count; 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.Groups.Item.MemberOf.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.MemberOf.GraphAdministrativeUnit.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/memberOf/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/memberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/g /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs index d04bdc7701..cf779837eb 100644 --- a/src/generated/Groups/Item/MemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/MemberOf/GraphGroup/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.Groups.Item.MemberOf.GraphGroup.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 @@ -70,14 +73,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}/groups/{group%2Did}/memberOf/graph.group/$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}/groups/{group%2Did}/memberOf/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs index 572b92a40e..caca39824f 100644 --- a/src/generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/MemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MemberOf.GraphGroup.Count; 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.Groups.Item.MemberOf.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.MemberOf.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -150,14 +153,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/memberOf/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/memberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -170,11 +173,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -185,7 +188,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -249,3 +253,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 468878a262..83d4698017 100644 --- a/src/generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Groups/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MemberOf.Item.GraphAdministrativeUnit; using ApiSdk.Groups.Item.MemberOf.Item.GraphGroup; 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.Groups.Item.MemberOf.Item /// /// Provides operations to manage the memberOf property of the microsoft.graph.group entity. /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. @@ -96,7 +99,7 @@ public Command BuildGraphAdministrativeUnitByIdNavCommand() { var command = new Command("graph-administrative-unit-by-id"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MemberOf.Item.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -113,7 +116,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MemberOf.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -123,14 +126,14 @@ public Command BuildGraphGroupByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. /// - public class DirectoryObjectItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class DirectoryObjectItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 2ee9da9d97..74a7a65515 100644 --- a/src/generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Groups/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.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.Groups.Item.MemberOf.Item.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -87,14 +90,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/g /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index 3da6583820..c8dd7e6763 100644 --- a/src/generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/MemberOf/Item/GraphGroup/GraphGroupRequestBuilder.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.Groups.Item.MemberOf.Item.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. @@ -88,14 +91,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/memberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -108,11 +111,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -123,7 +126,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -148,3 +152,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MemberOf/MemberOfRequestBuilder.cs b/src/generated/Groups/Item/MemberOf/MemberOfRequestBuilder.cs index 8932c87f19..68dcab70ce 100644 --- a/src/generated/Groups/Item/MemberOf/MemberOfRequestBuilder.cs +++ b/src/generated/Groups/Item/MemberOf/MemberOfRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MemberOf.Count; using ApiSdk.Groups.Item.MemberOf.GraphAdministrativeUnit; using ApiSdk.Groups.Item.MemberOf.GraphGroup; using ApiSdk.Groups.Item.MemberOf.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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.MemberOf /// /// Provides operations to manage the memberOf property of the microsoft.graph.group entity. /// - public class MemberOfRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MemberOfRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the memberOf property of the microsoft.graph.group entity. @@ -33,7 +36,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MemberOf.Item.DirectoryObjectItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGraphAdministrativeUnitByIdNavCommand()); commands.Add(builder.BuildGraphGroupByIdNavCommand()); @@ -47,7 +50,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.Groups.Item.MemberOf.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -64,7 +67,7 @@ public Command BuildGraphAdministrativeUnitNavCommand() { var command = new Command("graph-administrative-unit"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MemberOf.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -87,7 +90,7 @@ public Command BuildGraphGroupNavCommand() { var command = new Command("graph-group"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MemberOf.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -213,14 +216,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 MemberOfRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/memberOf{?%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 MemberOfRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/memberOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -233,11 +236,11 @@ public MemberOfRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,7 +251,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get groups that the group is a direct member of. This operation is not transitive. Unlike getting a user's Microsoft 365 groups, this returns all types of groups, not just Microsoft 365 groups. /// - public class MemberOfRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MemberOfRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -312,3 +316,4 @@ public class MemberOfRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Members/Count/CountRequestBuilder.cs index c0dde63a57..f998142b0f 100644 --- a/src/generated/Groups/Item/Members/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/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.Groups.Item.Members.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 @@ -70,14 +73,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}/groups/{group%2Did}/members/$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}/groups/{group%2Did}/members/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphApplication/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphApplication/Count/CountRequestBuilder.cs index b297634f74..4ceb0dc6d9 100644 --- a/src/generated/Groups/Item/Members/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphApplication/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.Groups.Item.Members.GraphApplication.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 @@ -70,14 +73,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}/groups/{group%2Did}/members/graph.application/$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}/groups/{group%2Did}/members/graph.application/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs index cb2eadc22c..5d5fbcabfb 100644 --- a/src/generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphApplication/GraphApplicationRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Members.GraphApplication.Count; 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.Groups.Item.Members.GraphApplication /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Members.GraphApplication.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphDevice/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphDevice/Count/CountRequestBuilder.cs index cace186e60..c2b48c2a2c 100644 --- a/src/generated/Groups/Item/Members/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphDevice/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.Groups.Item.Members.GraphDevice.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 @@ -70,14 +73,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}/groups/{group%2Did}/members/graph.device/$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}/groups/{group%2Did}/members/graph.device/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs index ab53069b75..93f881ee95 100644 --- a/src/generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphDevice/GraphDeviceRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Members.GraphDevice.Count; 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.Groups.Item.Members.GraphDevice /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Members.GraphDevice.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphGroup/Count/CountRequestBuilder.cs index f2777f266d..3d2e48e990 100644 --- a/src/generated/Groups/Item/Members/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphGroup/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.Groups.Item.Members.GraphGroup.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 @@ -70,14 +73,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}/groups/{group%2Did}/members/graph.group/$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}/groups/{group%2Did}/members/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs index 8e81b45ac0..becb17c7bb 100644 --- a/src/generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Members.GraphGroup.Count; 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.Groups.Item.Members.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Members.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs index 4a46e867a8..142187d62a 100644 --- a/src/generated/Groups/Item/Members/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphOrgContact/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.Groups.Item.Members.GraphOrgContact.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 @@ -70,14 +73,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}/groups/{group%2Did}/members/graph.orgContact/$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}/groups/{group%2Did}/members/graph.orgContact/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 5a1372edfb..82b7ef0e02 100644 --- a/src/generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Members.GraphOrgContact.Count; 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.Groups.Item.Members.GraphOrgContact /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Members.GraphOrgContact.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs index 62f18cdfcc..cef5aa7e35 100644 --- a/src/generated/Groups/Item/Members/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphServicePrincipal/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.Groups.Item.Members.GraphServicePrincipal.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 @@ -70,14 +73,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}/groups/{group%2Did}/members/graph.servicePrincipal/$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}/groups/{group%2Did}/members/graph.servicePrincipal/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index a1c537b1bf..c4811c9721 100644 --- a/src/generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Members.GraphServicePrincipal.Count; 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.Groups.Item.Members.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Members.GraphServicePrincipal.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/gro /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphUser/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphUser/Count/CountRequestBuilder.cs index b78302eaf5..36db47a7ec 100644 --- a/src/generated/Groups/Item/Members/GraphUser/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphUser/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.Groups.Item.Members.GraphUser.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 @@ -70,14 +73,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}/groups/{group%2Did}/members/graph.user/$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}/groups/{group%2Did}/members/graph.user/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.cs index 49acb60bc8..d6dd288d71 100644 --- a/src/generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/GraphUser/GraphUserRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Members.GraphUser.Count; 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.Groups.Item.Members.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Members.GraphUser.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -150,14 +153,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -170,11 +173,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -185,7 +188,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -249,3 +253,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Groups/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs index b179cfd362..e355eb18d2 100644 --- a/src/generated/Groups/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Members.Item.GraphApplication; using ApiSdk.Groups.Item.Members.Item.GraphDevice; using ApiSdk.Groups.Item.Members.Item.GraphGroup; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Members.Item.GraphServicePrincipal; using ApiSdk.Groups.Item.Members.Item.GraphUser; using ApiSdk.Groups.Item.Members.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -21,7 +23,8 @@ namespace ApiSdk.Groups.Item.Members.Item /// /// Builds and executes requests for operations under \groups\{group-id}\members\{directoryObject-id} /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Casts the previous resource to application. @@ -31,7 +34,7 @@ public Command BuildGraphApplicationByIdNavCommand() { var command = new Command("graph-application-by-id"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.Item.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -48,7 +51,7 @@ public Command BuildGraphDeviceByIdNavCommand() { var command = new Command("graph-device-by-id"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.Item.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -65,7 +68,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -82,7 +85,7 @@ public Command BuildGraphOrgContactByIdNavCommand() { var command = new Command("graph-org-contact-by-id"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.Item.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -99,7 +102,7 @@ public Command BuildGraphServicePrincipalByIdNavCommand() { var command = new Command("graph-service-principal-by-id"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.Item.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -116,7 +119,7 @@ public Command BuildGraphUserByIdNavCommand() { var command = new Command("graph-user-by-id"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.Item.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -133,7 +136,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of group entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -143,14 +146,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}", 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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}", rawUrl) @@ -158,3 +161,4 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/group } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs index 2e291ab279..6bd86a7d0b 100644 --- a/src/generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/Item/GraphApplication/GraphApplicationRequestBuilder.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.Groups.Item.Members.Item.GraphApplication /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -87,14 +90,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.application{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs index f25a158fa4..2614953f0f 100644 --- a/src/generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/Item/GraphDevice/GraphDeviceRequestBuilder.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.Groups.Item.Members.Item.GraphDevice /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -87,14 +90,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.device{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs index 2ef4996b92..694068171a 100644 --- a/src/generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/Item/GraphGroup/GraphGroupRequestBuilder.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.Groups.Item.Members.Item.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -87,14 +90,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index e0f5a358a1..fb806f1159 100644 --- a/src/generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/Item/GraphOrgContact/GraphOrgContactRequestBuilder.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.Groups.Item.Members.Item.GraphOrgContact /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -87,14 +90,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 2ba50541f1..0ba2a81a9a 100644 --- a/src/generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.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.Groups.Item.Members.Item.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -87,14 +90,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/gro /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs index b3cd1a8b06..a3def3c1d9 100644 --- a/src/generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/Item/GraphUser/GraphUserRequestBuilder.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.Groups.Item.Members.Item.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. @@ -88,14 +91,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/graph.user{?%24expand,%24select}", rawUrl) @@ -108,11 +111,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -123,7 +126,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -148,3 +152,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs index 61e00cfef2..ad3fead12f 100644 --- a/src/generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.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.Groups.Item.Members.Item.Ref /// /// Provides operations to manage the collection of group entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Members.Count; using ApiSdk.Groups.Item.Members.GraphApplication; using ApiSdk.Groups.Item.Members.GraphDevice; @@ -10,6 +11,7 @@ using ApiSdk.Groups.Item.Members.Ref; 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; @@ -28,7 +30,8 @@ namespace ApiSdk.Groups.Item.Members /// /// Provides operations to manage the members property of the microsoft.graph.group entity. /// - public class MembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.groups.item.members.item collection @@ -37,7 +40,7 @@ public class MembersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.Item.DirectoryObjectItemRequestBuilder(PathParameters); commands.Add(builder.BuildGraphApplicationByIdNavCommand()); commands.Add(builder.BuildGraphDeviceByIdNavCommand()); commands.Add(builder.BuildGraphGroupByIdNavCommand()); @@ -55,7 +58,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.Groups.Item.Members.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -72,7 +75,7 @@ public Command BuildGraphApplicationNavCommand() { var command = new Command("graph-application"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -95,7 +98,7 @@ public Command BuildGraphDeviceNavCommand() { var command = new Command("graph-device"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -118,7 +121,7 @@ public Command BuildGraphGroupNavCommand() { var command = new Command("graph-group"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -141,7 +144,7 @@ public Command BuildGraphOrgContactNavCommand() { var command = new Command("graph-org-contact"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -164,7 +167,7 @@ public Command BuildGraphServicePrincipalNavCommand() { var command = new Command("graph-service-principal"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -187,7 +190,7 @@ public Command BuildGraphUserNavCommand() { var command = new Command("graph-user"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -320,7 +323,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of group entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Members.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -332,14 +335,14 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members{?%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 MembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -352,11 +355,11 @@ public MembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -367,7 +370,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -431,3 +435,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Members/Ref/RefRequestBuilder.cs b/src/generated/Groups/Item/Members/Ref/RefRequestBuilder.cs index 6c866c53cb..a9c34c556b 100644 --- a/src/generated/Groups/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/generated/Groups/Item/Members/Ref/RefRequestBuilder.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.Groups.Item.Members.Ref /// /// Provides operations to manage the collection of group entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. @@ -160,14 +163,14 @@ public Command BuildGetCommand() return command; } /// - /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. + /// Add a member to a security or Microsoft 365 group. When using the API to add multiple members in one request, you can add up to only 20 members. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-post-members?view=graph-rest-1.0"; + command.Description = "Add a member to a security or Microsoft 365 group. When using the API to add multiple members in one request, you can add up to only 20 members. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-post-members?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -182,8 +185,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -202,14 +205,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -222,11 +225,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/m /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/groups/{group%2Did}/members/$ref?@id={%40id}", PathParameters); @@ -241,11 +244,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, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -254,18 +257,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. + /// Add a member to a security or Microsoft 365 group. When using the API to add multiple members in one request, you can add up to only 20 members. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. /// /// 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 ToPostRequestInformation(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -293,7 +297,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// Get a list of the group's direct members. A group can have users, organizational contacts, devices, service principals and other groups as members. This operation is not transitive. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -337,3 +342,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/Count/CountRequestBuilder.cs index ee5d95c7fa..6afe188460 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/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.Groups.Item.MembersWithLicenseErrors.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 @@ -70,14 +73,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}/groups/{group%2Did}/membersWithLicenseErrors/$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}/groups/{group%2Did}/membersWithLicenseErrors/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/Count/CountRequestBuilder.cs index c1a4715bb3..bdf92d08e3 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/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.Groups.Item.MembersWithLicenseErrors.GraphApplication.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 @@ -70,14 +73,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}/groups/{group%2Did}/membersWithLicenseErrors/graph.application/$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}/groups/{group%2Did}/membersWithLicenseErrors/graph.application/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.cs index 6366d8b905..26ffabf8d7 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphApplication/GraphApplicationRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphApplication.Count; 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.Groups.Item.MembersWithLicenseErrors.GraphApplication /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.MembersWithLicenseErrors.GraphApplication.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/Count/CountRequestBuilder.cs index 47fd1a9f8f..fa7f120328 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/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.Groups.Item.MembersWithLicenseErrors.GraphDevice.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 @@ -70,14 +73,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}/groups/{group%2Did}/membersWithLicenseErrors/graph.device/$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}/groups/{group%2Did}/membersWithLicenseErrors/graph.device/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.cs index d51e2b607e..dca8d2a6ed 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphDevice/GraphDeviceRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphDevice.Count; 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.Groups.Item.MembersWithLicenseErrors.GraphDevice /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.MembersWithLicenseErrors.GraphDevice.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/Count/CountRequestBuilder.cs index 707c8fa7bb..ed5e9271cf 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/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.Groups.Item.MembersWithLicenseErrors.GraphGroup.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 @@ -70,14 +73,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}/groups/{group%2Did}/membersWithLicenseErrors/graph.group/$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}/groups/{group%2Did}/membersWithLicenseErrors/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.cs index f379c6cc61..973336e7b3 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphGroup.Count; 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.Groups.Item.MembersWithLicenseErrors.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.MembersWithLicenseErrors.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/Count/CountRequestBuilder.cs index 6f714f1ae5..0c375e95b2 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/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.Groups.Item.MembersWithLicenseErrors.GraphOrgContact.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 @@ -70,14 +73,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}/groups/{group%2Did}/membersWithLicenseErrors/graph.orgContact/$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}/groups/{group%2Did}/membersWithLicenseErrors/graph.orgContact/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.cs index d9cffb4d2b..bbc520c6a4 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphOrgContact.Count; 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.Groups.Item.MembersWithLicenseErrors.GraphOrgContact /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.MembersWithLicenseErrors.GraphOrgContact.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/Count/CountRequestBuilder.cs index 3588bb26e1..f999e44144 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/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.Groups.Item.MembersWithLicenseErrors.GraphServicePrincipal.Coun /// /// 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 @@ -70,14 +73,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}/groups/{group%2Did}/membersWithLicenseErrors/graph.servicePrincipal/$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}/groups/{group%2Did}/membersWithLicenseErrors/graph.servicePrincipal/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 1aee35bca8..bcb797e598 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphServicePrincipal.Count; 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.Groups.Item.MembersWithLicenseErrors.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.MembersWithLicenseErrors.GraphServicePrincipal.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/gro /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphUser/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphUser/Count/CountRequestBuilder.cs index f0c886b075..080bc44e72 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphUser/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphUser/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.Groups.Item.MembersWithLicenseErrors.GraphUser.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 @@ -70,14 +73,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}/groups/{group%2Did}/membersWithLicenseErrors/graph.user/$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}/groups/{group%2Did}/membersWithLicenseErrors/graph.user/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.cs index efd3174e31..bb6cc02f3b 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/GraphUser/GraphUserRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphUser.Count; 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.Groups.Item.MembersWithLicenseErrors.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.MembersWithLicenseErrors.GraphUser.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.cs index fd23f41074..c7df48da82 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MembersWithLicenseErrors.Item.GraphApplication; using ApiSdk.Groups.Item.MembersWithLicenseErrors.Item.GraphDevice; using ApiSdk.Groups.Item.MembersWithLicenseErrors.Item.GraphGroup; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.MembersWithLicenseErrors.Item.GraphUser; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.MembersWithLicenseErrors.Item /// /// Provides operations to manage the membersWithLicenseErrors property of the microsoft.graph.group entity. /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// A list of group members with license errors from this group-based license assignment. Read-only. @@ -100,7 +103,7 @@ public Command BuildGraphApplicationByIdNavCommand() { var command = new Command("graph-application-by-id"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.Item.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -117,7 +120,7 @@ public Command BuildGraphDeviceByIdNavCommand() { var command = new Command("graph-device-by-id"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.Item.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -134,7 +137,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -151,7 +154,7 @@ public Command BuildGraphOrgContactByIdNavCommand() { var command = new Command("graph-org-contact-by-id"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.Item.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -168,7 +171,7 @@ public Command BuildGraphServicePrincipalByIdNavCommand() { var command = new Command("graph-service-principal-by-id"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.Item.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -185,7 +188,7 @@ public Command BuildGraphUserByIdNavCommand() { var command = new Command("graph-user-by-id"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.Item.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -195,14 +198,14 @@ public Command BuildGraphUserByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) @@ -215,11 +218,11 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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); @@ -230,7 +233,8 @@ public RequestInformation ToGetRequestInformation(Action /// A list of group members with license errors from this group-based license assignment. Read-only. /// - public class DirectoryObjectItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -255,3 +259,4 @@ public class DirectoryObjectItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.cs index df5bb7cc2a..f1eee69ab3 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphApplication/GraphApplicationRequestBuilder.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.Groups.Item.MembersWithLicenseErrors.Item.GraphApplication /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -87,14 +90,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.application{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.cs index 758a5121d9..0e2ba4a344 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphDevice/GraphDeviceRequestBuilder.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.Groups.Item.MembersWithLicenseErrors.Item.GraphDevice /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -87,14 +90,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.device{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.cs index e334c0fcee..7931318b40 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphGroup/GraphGroupRequestBuilder.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.Groups.Item.MembersWithLicenseErrors.Item.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -87,14 +90,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index edf02d1997..f2cf5c39d2 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphOrgContact/GraphOrgContactRequestBuilder.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.Groups.Item.MembersWithLicenseErrors.Item.GraphOrgContact /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -87,14 +90,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index eaffb30412..a3c860ab4a 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.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.Groups.Item.MembersWithLicenseErrors.Item.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -87,14 +90,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/gro /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.cs index 3de87f2989..0f623a4a06 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/Item/GraphUser/GraphUserRequestBuilder.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.Groups.Item.MembersWithLicenseErrors.Item.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -87,14 +90,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors/{directoryObject%2Did}/graph.user{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.cs b/src/generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.cs index feb734c83e..f26e839c92 100644 --- a/src/generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/MembersWithLicenseErrors/MembersWithLicenseErrorsRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.MembersWithLicenseErrors.Count; using ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphApplication; using ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphDevice; @@ -9,6 +10,7 @@ using ApiSdk.Groups.Item.MembersWithLicenseErrors.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; @@ -27,7 +29,8 @@ namespace ApiSdk.Groups.Item.MembersWithLicenseErrors /// /// Provides operations to manage the membersWithLicenseErrors property of the microsoft.graph.group entity. /// - public class MembersWithLicenseErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersWithLicenseErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the membersWithLicenseErrors property of the microsoft.graph.group entity. @@ -37,7 +40,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.Item.DirectoryObjectItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGraphApplicationByIdNavCommand()); commands.Add(builder.BuildGraphDeviceByIdNavCommand()); @@ -55,7 +58,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.Groups.Item.MembersWithLicenseErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -72,7 +75,7 @@ public Command BuildGraphApplicationNavCommand() { var command = new Command("graph-application"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -95,7 +98,7 @@ public Command BuildGraphDeviceNavCommand() { var command = new Command("graph-device"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -118,7 +121,7 @@ public Command BuildGraphGroupNavCommand() { var command = new Command("graph-group"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -141,7 +144,7 @@ public Command BuildGraphOrgContactNavCommand() { var command = new Command("graph-org-contact"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -164,7 +167,7 @@ public Command BuildGraphServicePrincipalNavCommand() { var command = new Command("graph-service-principal"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -187,7 +190,7 @@ public Command BuildGraphUserNavCommand() { var command = new Command("graph-user"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.MembersWithLicenseErrors.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -312,14 +315,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 MembersWithLicenseErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors{?%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 MembersWithLicenseErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/membersWithLicenseErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -332,11 +335,11 @@ public MembersWithLicenseErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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); @@ -347,7 +350,8 @@ public RequestInformation ToGetRequestInformation(Action /// A list of group members with license errors from this group-based license assignment. Read-only. /// - public class MembersWithLicenseErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersWithLicenseErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -411,3 +415,4 @@ public class MembersWithLicenseErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs index efecd2a6c0..2672f2e85f 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/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.Groups.Item.Onenote.Notebooks.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}/groups/{group%2Did}/onenote/notebooks/$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}/groups/{group%2Did}/onenote/notebooks/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs index b4c1307ce0..96ec495a0c 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Notebooks.GetNotebookFromWebUrl { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetNotebookFromWebUrlPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetNotebookFromWebUrlPostRequestBody : 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. @@ -21,7 +23,7 @@ public class GetNotebookFromWebUrlPostRequestBody : IAdditionalDataHolder, IPars public string WebUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetNotebookFromWebUrlPostRequestBody() { @@ -30,12 +32,12 @@ public GetNotebookFromWebUrlPostRequestBody() /// /// 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 GetNotebookFromWebUrlPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetNotebookFromWebUrlPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index 9fdad32f6c..607d215d4f 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.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.Groups.Item.Onenote.Notebooks.GetNotebookFromWebUrl /// /// Provides operations to call the getNotebookFromWebUrl method. /// - public class GetNotebookFromWebUrlRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetNotebookFromWebUrlRequestBuilder : BaseCliRequestBuilder { /// /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. @@ -52,8 +55,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(GetNotebookFromWebUrlPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 GetNotebookFromWebUrlRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/getNotebookFromWebUrl", 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 GetNotebookFromWebUrlRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/getNotebookFromWebUrl", rawUrl) @@ -95,11 +98,11 @@ public GetNotebookFromWebUrlRequestBuilder(string rawUrl) : base("{+baseurl}/gro /// 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(GetNotebookFromWebUrlPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetNotebookFromWebUrlPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(GetNotebookFromWebUrlPostRequ } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs index 4984ae2b19..739805e9fc 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetRecentNotebooksWithIncludePersonalNotebooksGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetRecentNotebooksWithIncludePersonalNotebooksGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks.GetRecentNotebooksWithIncludePersonalNotebooksGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse(); + return new global::ApiSdk.Groups.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks.GetRecentNotebooksWithIncludePersonalNotebooksGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.RecentNotebook.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index 0ac934d2bb..b48af086ff 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.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.Groups.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePers /// /// Provides operations to call the getRecentNotebooks method. /// - public class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of recentNotebook instances that have been accessed by the signed-in user. @@ -109,14 +112,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 GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks={includePersonalNotebooks}){?%24count,%24filter,%24search,%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 GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks={includePersonalNotebooks}){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) @@ -129,11 +132,11 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(string rawUr /// 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); @@ -144,7 +147,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of recentNotebook instances that have been accessed by the signed-in user. /// - public class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -178,3 +182,4 @@ public class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQuer } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs index 89f427e475..b6ca848dab 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.CopyNotebook { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyNotebookPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyNotebookPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyNotebookPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyNotebookPostRequestBody() { @@ -62,12 +64,12 @@ public CopyNotebookPostRequestBody() /// /// 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 CopyNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyNotebookPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index 7e02014bfd..9c7722a005 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.CopyNotebook /// /// Provides operations to call the copyNotebook method. /// - public class CopyNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyNotebookRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -57,8 +60,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(CopyNotebookPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 CopyNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook", 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 CopyNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook", rawUrl) @@ -101,11 +104,11 @@ public CopyNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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(CopyNotebookPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyNotebookPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(CopyNotebookPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index 891a308e90..6919633f27 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.CopyNotebook; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections; 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.Groups.Item.Onenote.Notebooks.Item /// /// Provides operations to manage the notebooks property of the microsoft.graph.onenote entity. /// - public class NotebookItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotebookItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the copyNotebook method. @@ -32,7 +35,7 @@ public Command BuildCopyNotebookNavCommand() { var command = new Command("copy-notebook"); command.Description = "Provides operations to call the copyNotebook method."; - var builder = new CopyNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -175,8 +178,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(Notebook.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Notebook.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -205,7 +208,7 @@ public Command BuildSectionGroupsNavCommand() { var command = new Command("section-groups"); command.Description = "Provides operations to manage the sectionGroups property of the microsoft.graph.notebook entity."; - var builder = new SectionGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.SectionGroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -232,7 +235,7 @@ public Command BuildSectionsNavCommand() { var command = new Command("sections"); command.Description = "Provides operations to manage the sections property of the microsoft.graph.notebook entity."; - var builder = new SectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.SectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -252,14 +255,14 @@ public Command BuildSectionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public NotebookItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%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 NotebookItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}{?%24expand,%24select}", rawUrl) @@ -291,11 +294,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); @@ -311,11 +314,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(Notebook body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Notebook body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Notebook body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Notebook body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPatchRequestInformation(Notebook body, Action /// The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class NotebookItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotebookItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -352,3 +356,4 @@ public class NotebookItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs index 56d60d9b7e..0e1e59290d 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/$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}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 4e87f9de3e..9bdb6b7444 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.ParentNot /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.sectionGroup entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section group. Read-only. @@ -86,14 +89,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section group. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index cd92ec7ffd..34628c7451 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.ParentSec /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.sectionGroup entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section group. Read-only. @@ -86,14 +89,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section group. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index ba42fd5061..48ebcad9a8 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.ParentNotebook; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.ParentSectionGroup; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.notebook entity. /// - public class SectionGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property sectionGroups for groups @@ -144,7 +147,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.sectionGroup entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -161,7 +164,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.sectionGroup entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -210,8 +213,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(SectionGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SectionGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -241,7 +244,7 @@ public Command BuildSectionsNavCommand() { var command = new Command("sections"); command.Description = "Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity."; - var builder = new SectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.SectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -268,7 +271,7 @@ public Command BuildSubSectionGroupsNavCommand() { var command = new Command("sub-section-groups"); command.Description = "Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity."; - var builder = new ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.SectionGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.SectionGroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -287,14 +290,14 @@ public Command BuildSubSectionGroupsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SectionGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%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 SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}{?%24expand,%24select}", rawUrl) @@ -326,11 +329,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); @@ -346,11 +349,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(SectionGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SectionGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SectionGroup body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SectionGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -362,7 +365,8 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action /// The section groups in the notebook. Read-only. Nullable. /// - public class SectionGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -387,3 +391,4 @@ public class SectionGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index 7365f4973d..4461ab1094 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGr /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/$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}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index f08a367d3e..803cc23788 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGr /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. /// - public class SectionGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// The section groups in the section. Read-only. Nullable. @@ -92,14 +95,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 SectionGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section groups in the section. Read-only. Nullable. /// - public class SectionGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class SectionGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 9637135f6a..d558b8ebb0 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.Count; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGr /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. /// - public class SectionGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. @@ -30,7 +33,7 @@ public class SectionGroupsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -166,14 +169,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 SectionGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%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 SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -186,11 +189,11 @@ public SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -201,7 +204,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section groups in the section. Read-only. Nullable. /// - public class SectionGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -265,3 +269,4 @@ public class SectionGroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index 3072d99569..c2d10bd9b6 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/$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}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 0334b56024..88346757d6 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToNotebookPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToNotebookPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToNotebookPostRequestBody() /// /// 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 CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToNotebookPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index eba4b5a02e..fcdc6b8aef 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to call the copyToNotebook method. /// - public class CopyToNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToNotebookRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -67,8 +70,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(CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 CopyToNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", 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 CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) @@ -113,11 +116,11 @@ public CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 733f933de6..c71ec676fb 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionGroupPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsabl public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionGroupPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToSectionGroupPostRequestBody() /// /// 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 CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionGroupPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 730ccf9039..c53dd0a70d 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to call the copyToSectionGroup method. /// - public class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -67,8 +70,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(CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 CopyToSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", 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 CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) @@ -113,11 +116,11 @@ public CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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(CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index c73b36ed49..700ac7988a 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.ParentSectionGroup; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. /// - public class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the copyToNotebook method. @@ -34,7 +37,7 @@ public Command BuildCopyToNotebookNavCommand() { var command = new Command("copy-to-notebook"); command.Description = "Provides operations to call the copyToNotebook method."; - var builder = new CopyToNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCopyToSectionGroupNavCommand() { var command = new Command("copy-to-section-group"); command.Description = "Provides operations to call the copyToSectionGroup method."; - var builder = new CopyToSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,7 +194,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -218,7 +221,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -235,7 +238,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -289,8 +292,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -314,14 +317,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 OnenoteSectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%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 OnenoteSectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}", rawUrl) @@ -353,11 +356,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); @@ -373,11 +376,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -389,7 +392,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< /// /// The sections in the section group. Read-only. Nullable. /// - public class OnenoteSectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -414,3 +418,4 @@ public class OnenoteSectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 0361419a21..7b53d38416 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$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}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 644b3ce2a1..4afb3ce2f2 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The page's HTML content. @@ -217,14 +220,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", rawUrl) @@ -292,3 +295,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionPostRequestBody : 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. @@ -45,7 +47,7 @@ public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionPostRequestBody() { @@ -54,12 +56,12 @@ public CopyToSectionPostRequestBody() /// /// 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 CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 68523edc81..963183b237 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to call the copyToSection method. /// - public class CopyToSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionRequestBuilder : BaseCliRequestBuilder { /// /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -72,8 +75,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(CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -98,14 +101,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 CopyToSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", 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 CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) @@ -119,11 +122,11 @@ public CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -134,3 +137,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index d8d6437578..be4027c959 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.Content; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.Preview; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class OnenotePageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -35,7 +38,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -54,7 +57,7 @@ public Command BuildCopyToSectionNavCommand() { var command = new Command("copy-to-section"); command.Description = "Provides operations to call the copyToSection method."; - var builder = new CopyToSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -206,7 +209,7 @@ public Command BuildOnenotePatchContentNavCommand() { var command = new Command("onenote-patch-content"); command.Description = "Provides operations to call the onenotePatchContent method."; - var builder = new OnenotePatchContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -223,7 +226,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -240,7 +243,7 @@ public Command BuildParentSectionNavCommand() { var command = new Command("parent-section"); command.Description = "Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity."; - var builder = new ParentSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.ParentSection.ParentSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -299,8 +302,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -332,7 +335,7 @@ public Command BuildPreviewNavCommand() { var command = new Command("preview"); command.Description = "Provides operations to call the preview method."; - var builder = new PreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.Preview.PreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -342,14 +345,14 @@ public Command BuildPreviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenotePageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%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 OnenotePageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}", rawUrl) @@ -381,11 +384,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); @@ -401,11 +404,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -417,7 +420,8 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class OnenotePageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -442,3 +446,4 @@ public class OnenotePageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 5c622a308c..52cea270b4 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OnenotePatchContentPostRequestBody : 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. @@ -16,13 +18,13 @@ public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsab /// The commands property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Commands { get; set; } + public List? Commands { get; set; } #nullable restore #else - public List Commands { get; set; } + public List Commands { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OnenotePatchContentPostRequestBody() { @@ -31,12 +33,12 @@ public OnenotePatchContentPostRequestBody() /// /// 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 OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OnenotePatchContentPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, + { "commands", n => { Commands = n.GetCollectionOfObjectValues(global::ApiSdk.Models.OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("commands", Commands); + writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index a074d651f9..9ca9ed2985 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to call the onenotePatchContent method. /// - public class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action onenotePatchContent @@ -62,8 +65,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(OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 OnenotePatchContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", 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 OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", rawUrl) @@ -107,11 +110,11 @@ public OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index d4fddafa76..17b267f9ae 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the page. Read-only. @@ -98,14 +101,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the page. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index f86daf75b9..e5e859f723 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity. /// - public class ParentSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilder : BaseCliRequestBuilder { /// /// The section that contains the page. Read-only. @@ -98,14 +101,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 ParentSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%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 ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section that contains the page. Read-only. /// - public class ParentSectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ParentSectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 6852e5dd07..64cd65f825 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to call the preview method. /// - public class PreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PreviewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function preview @@ -84,14 +87,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 PreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", 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 PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", rawUrl) @@ -118,3 +121,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Count; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenotePageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePageItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); commands.Add(builder.BuildCopyToSectionNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -51,7 +54,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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -105,8 +108,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -250,14 +253,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -270,11 +273,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -290,11 +293,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -306,7 +309,8 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -370,3 +374,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 81d2ddce50..9c9f5ca779 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section. Read-only. @@ -92,14 +95,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 3fc87dd14a..db55c151a6 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections. /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section. Read-only. @@ -92,14 +95,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 050dbdddb1..abe2ca6d4e 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Count; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. /// - public class SectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenoteSectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.OnenoteSectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildCopyToNotebookNavCommand()); commands.Add(builder.BuildCopyToSectionGroupNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -50,7 +53,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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -99,8 +102,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -237,14 +240,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 SectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%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 SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -257,11 +260,11 @@ public SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -277,11 +280,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -293,7 +296,8 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action /// The sections in the section group. Read-only. Nullable. /// - public class SectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -357,3 +361,4 @@ public class SectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index ee9bd1d483..d087c90dca 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Count; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.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.Groups.Item.Onenote.Notebooks.Item.SectionGroups /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.notebook entity. /// - public class SectionGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.notebook entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SectionGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildParentNotebookNavCommand()); @@ -49,7 +52,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.Groups.Item.Onenote.Notebooks.Item.SectionGroups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(SectionGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SectionGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,14 +227,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 SectionGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%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 SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -244,11 +247,11 @@ public SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -264,11 +267,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(SectionGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SectionGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SectionGroup body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SectionGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -280,7 +283,8 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action /// The section groups in the notebook. Read-only. Nullable. /// - public class SectionGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -344,3 +348,4 @@ public class SectionGroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs index a059efcbfb..5b0166ff6f 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/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.Groups.Item.Onenote.Notebooks.Item.Sections.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/$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}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index a534fcc84b..817cac702c 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToNotebookPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToNotebookPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToNotebookPostRequestBody() /// /// 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 CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToNotebookPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index c3430852d3..19d17afc34 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook /// /// Provides operations to call the copyToNotebook method. /// - public class CopyToNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToNotebookRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -62,8 +65,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(CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CopyToNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", 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 CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) @@ -107,11 +110,11 @@ public CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 38d8b6262a..04045eb4b4 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionGroupPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsabl public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionGroupPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToSectionGroupPostRequestBody() /// /// 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 CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionGroupPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index e2102ab067..6171e4d51d 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionG /// /// Provides operations to call the copyToSectionGroup method. /// - public class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -62,8 +65,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(CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CopyToSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", 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 CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) @@ -107,11 +110,11 @@ public CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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(CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 8e47781391..2dc1868b59 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.ParentSectionGroup; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item /// /// Provides operations to manage the sections property of the microsoft.graph.notebook entity. /// - public class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the copyToNotebook method. @@ -34,7 +37,7 @@ public Command BuildCopyToNotebookNavCommand() { var command = new Command("copy-to-notebook"); command.Description = "Provides operations to call the copyToNotebook method."; - var builder = new CopyToNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCopyToSectionGroupNavCommand() { var command = new Command("copy-to-section-group"); command.Description = "Provides operations to call the copyToSectionGroup method."; - var builder = new CopyToSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -179,7 +182,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -206,7 +209,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -223,7 +226,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -272,8 +275,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -296,14 +299,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 OnenoteSectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%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 OnenoteSectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}", rawUrl) @@ -335,11 +338,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); @@ -355,11 +358,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -371,7 +374,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< /// /// The sections in the notebook. Read-only. Nullable. /// - public class OnenoteSectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -396,3 +400,4 @@ public class OnenoteSectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 79e698705a..bfad75bb7a 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.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 @@ -75,14 +78,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}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/$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}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 9adb908a55..22eaa0b65b 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Con /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The page's HTML content. @@ -199,14 +202,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", rawUrl) @@ -274,3 +277,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionPostRequestBody : 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. @@ -45,7 +47,7 @@ public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionPostRequestBody() { @@ -54,12 +56,12 @@ public CopyToSectionPostRequestBody() /// /// 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 CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index da92acb9cd..88e09d06c4 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Cop /// /// Provides operations to call the copyToSection method. /// - public class CopyToSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionRequestBuilder : BaseCliRequestBuilder { /// /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -67,8 +70,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(CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 CopyToSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", 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 CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) @@ -113,11 +116,11 @@ public CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index b17b8f19d8..2245cf9f11 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Content; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Preview; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class OnenotePageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -35,7 +38,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -54,7 +57,7 @@ public Command BuildCopyToSectionNavCommand() { var command = new Command("copy-to-section"); command.Description = "Provides operations to call the copyToSection method."; - var builder = new CopyToSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -194,7 +197,7 @@ public Command BuildOnenotePatchContentNavCommand() { var command = new Command("onenote-patch-content"); command.Description = "Provides operations to call the onenotePatchContent method."; - var builder = new OnenotePatchContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -211,7 +214,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -228,7 +231,7 @@ public Command BuildParentSectionNavCommand() { var command = new Command("parent-section"); command.Description = "Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity."; - var builder = new ParentSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.ParentSection.ParentSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -282,8 +285,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -314,7 +317,7 @@ public Command BuildPreviewNavCommand() { var command = new Command("preview"); command.Description = "Provides operations to call the preview method."; - var builder = new PreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Preview.PreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -324,14 +327,14 @@ public Command BuildPreviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenotePageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%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 OnenotePageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}", rawUrl) @@ -363,11 +366,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); @@ -383,11 +386,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -399,7 +402,8 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class OnenotePageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -424,3 +428,4 @@ public class OnenotePageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 085f7ec650..8ef49b3191 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OnenotePatchContentPostRequestBody : 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. @@ -16,13 +18,13 @@ public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsab /// The commands property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Commands { get; set; } + public List? Commands { get; set; } #nullable restore #else - public List Commands { get; set; } + public List Commands { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OnenotePatchContentPostRequestBody() { @@ -31,12 +33,12 @@ public OnenotePatchContentPostRequestBody() /// /// 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 OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OnenotePatchContentPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, + { "commands", n => { Commands = n.GetCollectionOfObjectValues(global::ApiSdk.Models.OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("commands", Commands); + writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 6308faa171..43e1f23abc 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.One /// /// Provides operations to call the onenotePatchContent method. /// - public class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action onenotePatchContent @@ -57,8 +60,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(OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 OnenotePatchContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", 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 OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", rawUrl) @@ -101,11 +104,11 @@ public OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 61f3641207..d84d4616cf 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Par /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the page. Read-only. @@ -92,14 +95,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the page. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index c6a415e5d2..a32605ada1 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Par /// /// Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity. /// - public class ParentSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilder : BaseCliRequestBuilder { /// /// The section that contains the page. Read-only. @@ -92,14 +95,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 ParentSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%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 ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section that contains the page. Read-only. /// - public class ParentSectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentSectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index f4f839f8b7..cbdf5e64f5 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Pre /// /// Provides operations to call the preview method. /// - public class PreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PreviewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function preview @@ -78,14 +81,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 PreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", 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 PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", rawUrl) @@ -112,3 +115,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Count; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenotePageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePageItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); commands.Add(builder.BuildCopyToSectionNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -51,7 +54,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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -100,8 +103,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -238,14 +241,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -258,11 +261,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -278,11 +281,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -294,7 +297,8 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -358,3 +362,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index da2dcfc454..526ee30f73 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.ParentNotebook /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section. Read-only. @@ -86,14 +89,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index a32e5b3d46..db27bb4e29 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Onenote.Notebooks.Item.Sections.Item.ParentSectionG /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section. Read-only. @@ -86,14 +89,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index 08403d8f4e..aa2597f033 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Count; using ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.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.Groups.Item.Onenote.Notebooks.Item.Sections /// /// Provides operations to manage the sections property of the microsoft.graph.notebook entity. /// - public class SectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sections property of the microsoft.graph.notebook entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenoteSectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.Sections.Item.OnenoteSectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildCopyToNotebookNavCommand()); commands.Add(builder.BuildCopyToSectionGroupNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -50,7 +53,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.Groups.Item.Onenote.Notebooks.Item.Sections.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -94,8 +97,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -225,14 +228,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 SectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%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 SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -245,11 +248,11 @@ public SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -265,11 +268,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +284,8 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action /// The sections in the notebook. Read-only. Nullable. /// - public class SectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -345,3 +349,4 @@ public class SectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs index 376c6b8fcd..17bb0fe5e0 100644 --- a/src/generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks.Count; using ApiSdk.Groups.Item.Onenote.Notebooks.GetNotebookFromWebUrl; using ApiSdk.Groups.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks; using ApiSdk.Groups.Item.Onenote.Notebooks.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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Onenote.Notebooks /// /// Provides operations to manage the notebooks property of the microsoft.graph.onenote entity. /// - public class NotebooksRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotebooksRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the notebooks property of the microsoft.graph.onenote entity. @@ -33,7 +36,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new NotebookItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.Item.NotebookItemRequestBuilder(PathParameters); commands.Add(builder.BuildCopyNotebookNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -50,7 +53,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.Groups.Item.Onenote.Notebooks.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -89,8 +92,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(Notebook.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Notebook.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -118,7 +121,7 @@ public Command BuildGetNotebookFromWebUrlNavCommand() { var command = new Command("get-notebook-from-web-url"); command.Description = "Provides operations to call the getNotebookFromWebUrl method."; - var builder = new GetNotebookFromWebUrlRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -135,7 +138,7 @@ public Command BuildGetRecentNotebooksWithIncludePersonalNotebooksRbCommand() { var command = new Command("get-recent-notebooks-with-include-personal-notebooks"); command.Description = "Provides operations to call the getRecentNotebooks method."; - var builder = new GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks.GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -247,14 +250,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 NotebooksRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks{?%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 NotebooksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/notebooks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public NotebooksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -287,11 +290,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(Notebook body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Notebook body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Notebook body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Notebook body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Notebook body, Action /// The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class NotebooksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotebooksRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class NotebooksRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/OnenoteRequestBuilder.cs b/src/generated/Groups/Item/Onenote/OnenoteRequestBuilder.cs index b44f844bd2..117c5feff5 100644 --- a/src/generated/Groups/Item/Onenote/OnenoteRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/OnenoteRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Notebooks; using ApiSdk.Groups.Item.Onenote.Operations; using ApiSdk.Groups.Item.Onenote.Pages; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Onenote.Sections; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Onenote /// /// Provides operations to manage the onenote property of the microsoft.graph.group entity. /// - public class OnenoteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property onenote for groups @@ -122,7 +125,7 @@ public Command BuildNotebooksNavCommand() { var command = new Command("notebooks"); command.Description = "Provides operations to manage the notebooks property of the microsoft.graph.onenote entity."; - var builder = new NotebooksRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Notebooks.NotebooksRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -151,7 +154,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.onenote entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -178,7 +181,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.onenote entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -227,8 +230,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.Onenote.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Onenote.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -256,7 +259,7 @@ public Command BuildResourcesNavCommand() { var command = new Command("resources"); command.Description = "Provides operations to manage the resources property of the microsoft.graph.onenote entity."; - var builder = new ResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Resources.ResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -283,7 +286,7 @@ public Command BuildSectionGroupsNavCommand() { var command = new Command("section-groups"); command.Description = "Provides operations to manage the sectionGroups property of the microsoft.graph.onenote entity."; - var builder = new SectionGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.SectionGroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -310,7 +313,7 @@ public Command BuildSectionsNavCommand() { var command = new Command("sections"); command.Description = "Provides operations to manage the sections property of the microsoft.graph.onenote entity."; - var builder = new SectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.SectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -330,14 +333,14 @@ public Command BuildSectionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenoteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote{?%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 OnenoteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote{?%24expand,%24select}", rawUrl) @@ -369,11 +372,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); @@ -389,11 +392,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.Onenote body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Onenote body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Onenote body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Onenote body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -405,7 +408,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Onenote body, /// /// Get onenote from groups /// - public class OnenoteRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -430,3 +434,4 @@ public class OnenoteRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Operations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Operations/Count/CountRequestBuilder.cs index 3a02a4d506..741a44e8c2 100644 --- a/src/generated/Groups/Item/Onenote/Operations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Operations/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.Groups.Item.Onenote.Operations.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}/groups/{group%2Did}/onenote/operations/$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}/groups/{group%2Did}/onenote/operations/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index 8768226efe..fd964fb911 100644 --- a/src/generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.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.Groups.Item.Onenote.Operations.Item /// /// Provides operations to manage the operations property of the microsoft.graph.onenote entity. /// - public class OnenoteOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property operations for groups @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(OnenoteOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenoteOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/operations/{onenoteOperation%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 OnenoteOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/operations/{onenoteOperation%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(OnenoteOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteOperation body, Actio /// /// The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. /// - public class OnenoteOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class OnenoteOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs index a6fe93b1f9..64191cb576 100644 --- a/src/generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Operations/OperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Operations.Count; using ApiSdk.Groups.Item.Onenote.Operations.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.Groups.Item.Onenote.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.onenote entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the operations property of the microsoft.graph.onenote entity. @@ -30,7 +33,7 @@ public class OperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new OnenoteOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Operations.Item.OnenoteOperationItemRequestBuilder(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.Groups.Item.Onenote.Operations.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(OnenoteOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -247,11 +250,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(OnenoteOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(OnenoteOperation body, Action /// /// The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class OperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Pages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Pages/Count/CountRequestBuilder.cs index 91158723c8..234c8654da 100644 --- a/src/generated/Groups/Item/Onenote/Pages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Pages/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.Groups.Item.Onenote.Pages.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}/groups/{group%2Did}/onenote/pages/$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}/groups/{group%2Did}/onenote/pages/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs index dcefc9a1eb..fbda95b62a 100644 --- a/src/generated/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.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.Groups.Item.Onenote.Pages.Item.Content /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The page's HTML content. @@ -163,14 +166,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/content", rawUrl) @@ -238,3 +241,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Pages.Item.CopyToSection { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionPostRequestBody : 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. @@ -45,7 +47,7 @@ public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionPostRequestBody() { @@ -54,12 +56,12 @@ public CopyToSectionPostRequestBody() /// /// 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 CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 1431477ff9..60c3b8fb0f 100644 --- a/src/generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.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.Groups.Item.Onenote.Pages.Item.CopyToSection /// /// Provides operations to call the copyToSection method. /// - public class CopyToSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionRequestBuilder : BaseCliRequestBuilder { /// /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -57,8 +60,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(CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 CopyToSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/copyToSection", 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 CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/copyToSection", rawUrl) @@ -101,11 +104,11 @@ public CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index 9361d81696..36223afd31 100644 --- a/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Pages.Item.Content; using ApiSdk.Groups.Item.Onenote.Pages.Item.CopyToSection; using ApiSdk.Groups.Item.Onenote.Pages.Item.OnenotePatchContent; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Onenote.Pages.Item.Preview; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Onenote.Pages.Item /// /// Provides operations to manage the pages property of the microsoft.graph.onenote entity. /// - public class OnenotePageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -35,7 +38,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Pages.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -54,7 +57,7 @@ public Command BuildCopyToSectionNavCommand() { var command = new Command("copy-to-section"); command.Description = "Provides operations to call the copyToSection method."; - var builder = new CopyToSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -170,7 +173,7 @@ public Command BuildOnenotePatchContentNavCommand() { var command = new Command("onenote-patch-content"); command.Description = "Provides operations to call the onenotePatchContent method."; - var builder = new OnenotePatchContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -187,7 +190,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Pages.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -204,7 +207,7 @@ public Command BuildParentSectionNavCommand() { var command = new Command("parent-section"); command.Description = "Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity."; - var builder = new ParentSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Pages.Item.ParentSection.ParentSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -248,8 +251,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -278,7 +281,7 @@ public Command BuildPreviewNavCommand() { var command = new Command("preview"); command.Description = "Provides operations to call the preview method."; - var builder = new PreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Pages.Item.Preview.PreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -288,14 +291,14 @@ public Command BuildPreviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenotePageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%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 OnenotePageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}{?%24expand,%24select}", rawUrl) @@ -327,11 +330,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); @@ -347,11 +350,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -363,7 +366,8 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action /// The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class OnenotePageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -388,3 +392,4 @@ public class OnenotePageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 2abbaba7a2..b6cbc8eed0 100644 --- a/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.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.Groups.Item.Onenote.Pages.Item.OnenotePatchContent { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OnenotePatchContentPostRequestBody : 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. @@ -16,13 +18,13 @@ public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsab /// The commands property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Commands { get; set; } + public List? Commands { get; set; } #nullable restore #else - public List Commands { get; set; } + public List Commands { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OnenotePatchContentPostRequestBody() { @@ -31,12 +33,12 @@ public OnenotePatchContentPostRequestBody() /// /// 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 OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OnenotePatchContentPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, + { "commands", n => { Commands = n.GetCollectionOfObjectValues(global::ApiSdk.Models.OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("commands", Commands); + writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 61f29f5922..70861701c6 100644 --- a/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.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.Groups.Item.Onenote.Pages.Item.OnenotePatchContent /// /// Provides operations to call the onenotePatchContent method. /// - public class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action onenotePatchContent @@ -47,8 +50,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(OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -68,14 +71,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 OnenotePatchContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/onenotePatchContent", 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 OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/onenotePatchContent", rawUrl) @@ -89,11 +92,11 @@ public OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -104,3 +107,4 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index f71d8eb4b8..1ecf709f4c 100644 --- a/src/generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Onenote.Pages.Item.ParentNotebook /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the page. Read-only. @@ -80,14 +83,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the page. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index da1428bf25..dc75528c1e 100644 --- a/src/generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.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.Groups.Item.Onenote.Pages.Item.ParentSection /// /// Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity. /// - public class ParentSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilder : BaseCliRequestBuilder { /// /// The section that contains the page. Read-only. @@ -80,14 +83,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 ParentSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/parentSection{?%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 ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section that contains the page. Read-only. /// - public class ParentSectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class ParentSectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs index 504776f29e..de270d2298 100644 --- a/src/generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.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.Groups.Item.Onenote.Pages.Item.Preview /// /// Provides operations to call the preview method. /// - public class PreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PreviewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function preview @@ -66,14 +69,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 PreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/preview()", 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 PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/pages/{onenotePage%2Did}/preview()", rawUrl) @@ -100,3 +103,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Pages.Count; using ApiSdk.Groups.Item.Onenote.Pages.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.Groups.Item.Onenote.Pages /// /// Provides operations to manage the pages property of the microsoft.graph.onenote entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pages property of the microsoft.graph.onenote entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenotePageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Pages.Item.OnenotePageItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); commands.Add(builder.BuildCopyToSectionNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -51,7 +54,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.Groups.Item.Onenote.Pages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -234,11 +237,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -254,11 +257,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -270,7 +273,8 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action /// The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -334,3 +338,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Resources/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Resources/Count/CountRequestBuilder.cs index e5dff26cc2..91f0715533 100644 --- a/src/generated/Groups/Item/Onenote/Resources/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Resources/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.Groups.Item.Onenote.Resources.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}/groups/{group%2Did}/onenote/resources/$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}/groups/{group%2Did}/onenote/resources/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs index ba9a3cb10d..9c8084b5c2 100644 --- a/src/generated/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.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.Groups.Item.Onenote.Resources.Item.Content /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream @@ -163,14 +166,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/resources/{onenoteResource%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/resources/{onenoteResource%2Did}/content", rawUrl) @@ -238,3 +241,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Resources.Item.Content; 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.Groups.Item.Onenote.Resources.Item /// /// Provides operations to manage the resources property of the microsoft.graph.onenote entity. /// - public class OnenoteResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteResourceItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Resources.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -175,8 +178,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(OnenoteResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -198,14 +201,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 OnenoteResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/resources/{onenoteResource%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 OnenoteResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/resources/{onenoteResource%2Did}{?%24expand,%24select}", rawUrl) @@ -237,11 +240,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); @@ -257,11 +260,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(OnenoteResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -273,7 +276,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteResource body, Action /// /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// - public class OnenoteResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -298,3 +302,4 @@ public class OnenoteResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs index 209b464be0..ec37ba41a8 100644 --- a/src/generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Resources/ResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Resources.Count; using ApiSdk.Groups.Item.Onenote.Resources.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.Groups.Item.Onenote.Resources /// /// Provides operations to manage the resources property of the microsoft.graph.onenote entity. /// - public class ResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the resources property of the microsoft.graph.onenote entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenoteResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Resources.Item.OnenoteResourceItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Groups.Item.Onenote.Resources.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(OnenoteResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteResource.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 ResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/resources{?%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 ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -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(OnenoteResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(OnenoteResource body, Action< /// /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// - public class ResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class ResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs index 4f5fb704c8..ea9b67db9a 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/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.Groups.Item.Onenote.SectionGroups.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}/groups/{group%2Did}/onenote/sectionGroups/$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}/groups/{group%2Did}/onenote/sectionGroups/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 910e2594b3..b04bdad32d 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.ParentNotebook /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.sectionGroup entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section group. Read-only. @@ -80,14 +83,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section group. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 59966ffbb5..4c0df18ac2 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.ParentSectionGroup /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.sectionGroup entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section group. Read-only. @@ -80,14 +83,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section group. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index cb666a3569..865418fc15 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.ParentNotebook; using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.ParentSectionGroup; using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.SectionGroups; using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Onenote.SectionGroups.Item /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.onenote entity. /// - public class SectionGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property sectionGroups for groups @@ -132,7 +135,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.sectionGroup entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,7 +152,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.sectionGroup entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -193,8 +196,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(SectionGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SectionGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -223,7 +226,7 @@ public Command BuildSectionsNavCommand() { var command = new Command("sections"); command.Description = "Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity."; - var builder = new SectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.SectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -250,7 +253,7 @@ public Command BuildSubSectionGroupsNavCommand() { var command = new Command("sub-section-groups"); command.Description = "Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity."; - var builder = new ApiSdk.Groups.Item.Onenote.SectionGroups.Item.SectionGroups.SectionGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.SectionGroups.SectionGroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -269,14 +272,14 @@ public Command BuildSubSectionGroupsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SectionGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%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 SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}{?%24expand,%24select}", rawUrl) @@ -308,11 +311,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); @@ -328,11 +331,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(SectionGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SectionGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SectionGroup body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SectionGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -344,7 +347,8 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action /// The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class SectionGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -369,3 +373,4 @@ public class SectionGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index e6c28919df..40c7dc46e8 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/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.Groups.Item.Onenote.SectionGroups.Item.SectionGroups.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/$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}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index ffa8de8a9e..2caad501f4 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.SectionGroups.Item /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. /// - public class SectionGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// The section groups in the section. Read-only. Nullable. @@ -86,14 +89,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 SectionGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section groups in the section. Read-only. Nullable. /// - public class SectionGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class SectionGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 0d3e2a7e34..0785492333 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.SectionGroups.Count; using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.SectionGroups.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.Groups.Item.Onenote.SectionGroups.Item.SectionGroups /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. /// - public class SectionGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. @@ -30,7 +33,7 @@ public class SectionGroupsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ApiSdk.Groups.Item.Onenote.SectionGroups.Item.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Onenote.SectionGroups.Item.SectionGroups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -160,14 +163,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 SectionGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%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 SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -180,11 +183,11 @@ public SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -195,7 +198,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section groups in the section. Read-only. Nullable. /// - public class SectionGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -259,3 +263,4 @@ public class SectionGroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index 8561f64014..ae08bc0338 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/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.Groups.Item.Onenote.SectionGroups.Item.Sections.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/$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}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 89247f7f6c..123e2b05c6 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToNotebookPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToNotebookPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToNotebookPostRequestBody() /// /// 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 CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToNotebookPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 810389ab6d..21c3bb00cc 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNote /// /// Provides operations to call the copyToNotebook method. /// - public class CopyToNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToNotebookRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -62,8 +65,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(CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CopyToNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", 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 CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) @@ -107,11 +110,11 @@ public CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 9ef78a9b11..74ffd21551 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionGroupPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsabl public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionGroupPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToSectionGroupPostRequestBody() /// /// 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 CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionGroupPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index c434d6edc8..0b9b2fd287 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSect /// /// Provides operations to call the copyToSectionGroup method. /// - public class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -62,8 +65,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(CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CopyToSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", 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 CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) @@ -107,11 +110,11 @@ public CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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(CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index aba3dac556..6946ff8704 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook; using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup; using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.ParentSectionGroup; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. /// - public class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the copyToNotebook method. @@ -34,7 +37,7 @@ public Command BuildCopyToNotebookNavCommand() { var command = new Command("copy-to-notebook"); command.Description = "Provides operations to call the copyToNotebook method."; - var builder = new CopyToNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCopyToSectionGroupNavCommand() { var command = new Command("copy-to-section-group"); command.Description = "Provides operations to call the copyToSectionGroup method."; - var builder = new CopyToSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -179,7 +182,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -206,7 +209,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -223,7 +226,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -272,8 +275,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -296,14 +299,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 OnenoteSectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%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 OnenoteSectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}", rawUrl) @@ -335,11 +338,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); @@ -355,11 +358,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -371,7 +374,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< /// /// The sections in the section group. Read-only. Nullable. /// - public class OnenoteSectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -396,3 +400,4 @@ public class OnenoteSectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index ec33287821..6b585c8cfd 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Coun /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$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}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index f2cd3ffb97..b321ddcc77 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The page's HTML content. @@ -199,14 +202,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", rawUrl) @@ -274,3 +277,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionPostRequestBody : 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. @@ -45,7 +47,7 @@ public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionPostRequestBody() { @@ -54,12 +56,12 @@ public CopyToSectionPostRequestBody() /// /// 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 CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index db4f3e10ba..da9eb3acda 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item /// /// Provides operations to call the copyToSection method. /// - public class CopyToSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionRequestBuilder : BaseCliRequestBuilder { /// /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -67,8 +70,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(CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 CopyToSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", 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 CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) @@ -113,11 +116,11 @@ public CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 3696932dd4..f5375f19f7 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.Content; using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection; using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.Preview; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class OnenotePageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -35,7 +38,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -54,7 +57,7 @@ public Command BuildCopyToSectionNavCommand() { var command = new Command("copy-to-section"); command.Description = "Provides operations to call the copyToSection method."; - var builder = new CopyToSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -194,7 +197,7 @@ public Command BuildOnenotePatchContentNavCommand() { var command = new Command("onenote-patch-content"); command.Description = "Provides operations to call the onenotePatchContent method."; - var builder = new OnenotePatchContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -211,7 +214,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -228,7 +231,7 @@ public Command BuildParentSectionNavCommand() { var command = new Command("parent-section"); command.Description = "Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity."; - var builder = new ParentSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.ParentSection.ParentSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -282,8 +285,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -314,7 +317,7 @@ public Command BuildPreviewNavCommand() { var command = new Command("preview"); command.Description = "Provides operations to call the preview method."; - var builder = new PreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.Preview.PreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -324,14 +327,14 @@ public Command BuildPreviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenotePageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%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 OnenotePageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}", rawUrl) @@ -363,11 +366,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); @@ -383,11 +386,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -399,7 +402,8 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class OnenotePageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -424,3 +428,4 @@ public class OnenotePageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 3a8d8731e1..f818a57acd 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OnenotePatchContentPostRequestBody : 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. @@ -16,13 +18,13 @@ public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsab /// The commands property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Commands { get; set; } + public List? Commands { get; set; } #nullable restore #else - public List Commands { get; set; } + public List Commands { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OnenotePatchContentPostRequestBody() { @@ -31,12 +33,12 @@ public OnenotePatchContentPostRequestBody() /// /// 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 OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OnenotePatchContentPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, + { "commands", n => { Commands = n.GetCollectionOfObjectValues(global::ApiSdk.Models.OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("commands", Commands); + writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 31e7b5dd99..ed4e50334c 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item /// /// Provides operations to call the onenotePatchContent method. /// - public class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action onenotePatchContent @@ -57,8 +60,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(OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 OnenotePatchContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", 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 OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", rawUrl) @@ -101,11 +104,11 @@ public OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index cd99c1fbe3..9c02159ff0 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the page. Read-only. @@ -92,14 +95,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the page. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index f785894152..b0635c1153 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item /// /// Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity. /// - public class ParentSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilder : BaseCliRequestBuilder { /// /// The section that contains the page. Read-only. @@ -92,14 +95,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 ParentSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%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 ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section that contains the page. Read-only. /// - public class ParentSectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentSectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 4829725f0b..263c99d92d 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item /// /// Provides operations to call the preview method. /// - public class PreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PreviewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function preview @@ -78,14 +81,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 PreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", 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 PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", rawUrl) @@ -112,3 +115,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Count; using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenotePageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePageItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); commands.Add(builder.BuildCopyToSectionNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -51,7 +54,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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -100,8 +103,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -238,14 +241,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -258,11 +261,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -278,11 +281,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -294,7 +297,8 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -358,3 +362,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 2b79547d5d..2007d34e8d 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.ParentNote /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section. Read-only. @@ -86,14 +89,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 73f79e6f6a..68762d0a6e 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.ParentSect /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section. Read-only. @@ -86,14 +89,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index ec4a1057e0..44faca9aba 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Count; using ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.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.Groups.Item.Onenote.SectionGroups.Item.Sections /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. /// - public class SectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenoteSectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.Sections.Item.OnenoteSectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildCopyToNotebookNavCommand()); commands.Add(builder.BuildCopyToSectionGroupNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -50,7 +53,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.Groups.Item.Onenote.SectionGroups.Item.Sections.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -94,8 +97,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -225,14 +228,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 SectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%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 SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -245,11 +248,11 @@ public SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -265,11 +268,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +284,8 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action /// The sections in the section group. Read-only. Nullable. /// - public class SectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -345,3 +349,4 @@ public class SectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index bfa1906201..c4ea5b1c5f 100644 --- a/src/generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.SectionGroups.Count; using ApiSdk.Groups.Item.Onenote.SectionGroups.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.Groups.Item.Onenote.SectionGroups /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.onenote entity. /// - public class SectionGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.onenote entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SectionGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildParentNotebookNavCommand()); @@ -49,7 +52,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.Groups.Item.Onenote.SectionGroups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(SectionGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SectionGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -212,14 +215,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 SectionGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups{?%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 SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -232,11 +235,11 @@ public SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -252,11 +255,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(SectionGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SectionGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SectionGroup body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SectionGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -268,7 +271,8 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action /// The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class SectionGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -332,3 +336,4 @@ public class SectionGroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Count/CountRequestBuilder.cs index a012d0033e..0216f24586 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/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.Groups.Item.Onenote.Sections.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}/groups/{group%2Did}/onenote/sections/$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}/groups/{group%2Did}/onenote/sections/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 6d40a3f300..723a096cd2 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToNotebook { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToNotebookPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToNotebookPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToNotebookPostRequestBody() /// /// 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 CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToNotebookPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 225f189996..141f8a43c1 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.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.Groups.Item.Onenote.Sections.Item.CopyToNotebook /// /// Provides operations to call the copyToNotebook method. /// - public class CopyToNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToNotebookRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -57,8 +60,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(CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 CopyToNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/copyToNotebook", 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 CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) @@ -101,11 +104,11 @@ public CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 3c6cc92d61..e514618dd9 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToSectionGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionGroupPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsabl public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionGroupPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToSectionGroupPostRequestBody() /// /// 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 CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionGroupPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 05d46e3940..d11dcb0cf3 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.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.Groups.Item.Onenote.Sections.Item.CopyToSectionGroup /// /// Provides operations to call the copyToSectionGroup method. /// - public class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -57,8 +60,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(CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 CopyToSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup", 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 CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) @@ -101,11 +104,11 @@ public CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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(CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 0fdf43886f..12d8831fc5 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToNotebook; using ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToSectionGroup; using ApiSdk.Groups.Item.Onenote.Sections.Item.Pages; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Onenote.Sections.Item.ParentSectionGroup; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Onenote.Sections.Item /// /// Provides operations to manage the sections property of the microsoft.graph.onenote entity. /// - public class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the copyToNotebook method. @@ -34,7 +37,7 @@ public Command BuildCopyToNotebookNavCommand() { var command = new Command("copy-to-notebook"); command.Description = "Provides operations to call the copyToNotebook method."; - var builder = new CopyToNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCopyToSectionGroupNavCommand() { var command = new Command("copy-to-section-group"); command.Description = "Provides operations to call the copyToSectionGroup method."; - var builder = new CopyToSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -167,7 +170,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -194,7 +197,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -211,7 +214,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -255,8 +258,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -278,14 +281,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 OnenoteSectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%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 OnenoteSectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}{?%24expand,%24select}", rawUrl) @@ -317,11 +320,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); @@ -337,11 +340,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -353,7 +356,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< /// /// The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class OnenoteSectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -378,3 +382,4 @@ public class OnenoteSectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs index c8bf3d3fd7..d6ba281495 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/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.Groups.Item.Onenote.Sections.Item.Pages.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/$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}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 752bf9fe42..f27fb4e002 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.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.Groups.Item.Onenote.Sections.Item.Pages.Item.Content /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The page's HTML content. @@ -181,14 +184,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", rawUrl) @@ -256,3 +259,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.CopyToSection { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionPostRequestBody : 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. @@ -45,7 +47,7 @@ public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionPostRequestBody() { @@ -54,12 +56,12 @@ public CopyToSectionPostRequestBody() /// /// 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 CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index b0fcb12668..1da2692101 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.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.Groups.Item.Onenote.Sections.Item.Pages.Item.CopyToSection /// /// Provides operations to call the copyToSection method. /// - public class CopyToSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionRequestBuilder : BaseCliRequestBuilder { /// /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -62,8 +65,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(CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CopyToSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", 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 CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) @@ -107,11 +110,11 @@ public CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index fd3a06dc64..32dc1daba2 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.Content; using ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.CopyToSection; using ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.Preview; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class OnenotePageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -35,7 +38,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -54,7 +57,7 @@ public Command BuildCopyToSectionNavCommand() { var command = new Command("copy-to-section"); command.Description = "Provides operations to call the copyToSection method."; - var builder = new CopyToSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -182,7 +185,7 @@ public Command BuildOnenotePatchContentNavCommand() { var command = new Command("onenote-patch-content"); command.Description = "Provides operations to call the onenotePatchContent method."; - var builder = new OnenotePatchContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -199,7 +202,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -216,7 +219,7 @@ public Command BuildParentSectionNavCommand() { var command = new Command("parent-section"); command.Description = "Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity."; - var builder = new ParentSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.ParentSection.ParentSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -265,8 +268,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -296,7 +299,7 @@ public Command BuildPreviewNavCommand() { var command = new Command("preview"); command.Description = "Provides operations to call the preview method."; - var builder = new PreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.Preview.PreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -306,14 +309,14 @@ public Command BuildPreviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenotePageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%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 OnenotePageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}", rawUrl) @@ -345,11 +348,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); @@ -365,11 +368,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -381,7 +384,8 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class OnenotePageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -406,3 +410,4 @@ public class OnenotePageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 82a862d75a..2a48736401 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.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.Groups.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OnenotePatchContentPostRequestBody : 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. @@ -16,13 +18,13 @@ public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsab /// The commands property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Commands { get; set; } + public List? Commands { get; set; } #nullable restore #else - public List Commands { get; set; } + public List Commands { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OnenotePatchContentPostRequestBody() { @@ -31,12 +33,12 @@ public OnenotePatchContentPostRequestBody() /// /// 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 OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OnenotePatchContentPostRequestBody(); + return new global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, + { "commands", n => { Commands = n.GetCollectionOfObjectValues(global::ApiSdk.Models.OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("commands", Commands); + writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index e4ef9076de..79fbdf584b 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.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.Groups.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchConten /// /// Provides operations to call the onenotePatchContent method. /// - public class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action onenotePatchContent @@ -52,8 +55,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(OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 OnenotePatchContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", 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 OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", rawUrl) @@ -95,11 +98,11 @@ public OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 0d7bb60778..6a7c787052 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Onenote.Sections.Item.Pages.Item.ParentNotebook /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the page. Read-only. @@ -86,14 +89,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the page. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 720f27620b..4dc81b7665 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.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.Groups.Item.Onenote.Sections.Item.Pages.Item.ParentSection /// /// Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity. /// - public class ParentSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilder : BaseCliRequestBuilder { /// /// The section that contains the page. Read-only. @@ -86,14 +89,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 ParentSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%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 ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section that contains the page. Read-only. /// - public class ParentSectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentSectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 749f4ce197..46c8b62206 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.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.Groups.Item.Onenote.Sections.Item.Pages.Item.Preview /// /// Provides operations to call the preview method. /// - public class PreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PreviewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function preview @@ -72,14 +75,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 PreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", 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 PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", rawUrl) @@ -106,3 +109,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Count; using ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.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.Groups.Item.Onenote.Sections.Item.Pages /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenotePageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.Pages.Item.OnenotePageItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); commands.Add(builder.BuildCopyToSectionNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -51,7 +54,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.Groups.Item.Onenote.Sections.Item.Pages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -226,14 +229,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -246,11 +249,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -266,11 +269,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -282,7 +285,8 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -346,3 +350,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 1fa037bad1..5aaa96287d 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Onenote.Sections.Item.ParentNotebook /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section. Read-only. @@ -80,14 +83,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 75c058b4e0..84597d7b86 100644 --- a/src/generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Onenote.Sections.Item.ParentSectionGroup /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section. Read-only. @@ -80,14 +83,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs b/src/generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs index 1bae5d43a8..efdad61b08 100644 --- a/src/generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Onenote/Sections/SectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Onenote.Sections.Count; using ApiSdk.Groups.Item.Onenote.Sections.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.Groups.Item.Onenote.Sections /// /// Provides operations to manage the sections property of the microsoft.graph.onenote entity. /// - public class SectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sections property of the microsoft.graph.onenote entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenoteSectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Onenote.Sections.Item.OnenoteSectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildCopyToNotebookNavCommand()); commands.Add(builder.BuildCopyToSectionGroupNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -50,7 +53,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.Groups.Item.Onenote.Sections.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -89,8 +92,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -213,14 +216,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 SectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/onenote/sections{?%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 SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/onenote/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -233,11 +236,11 @@ public SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -253,11 +256,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -269,7 +272,8 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action /// The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class SectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -333,3 +337,4 @@ public class SectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Owners/Count/CountRequestBuilder.cs index c3e3accfef..67cdb8dcfd 100644 --- a/src/generated/Groups/Item/Owners/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/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.Groups.Item.Owners.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 @@ -70,14 +73,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}/groups/{group%2Did}/owners/$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}/groups/{group%2Did}/owners/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphApplication/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphApplication/Count/CountRequestBuilder.cs index 1dcf4b1de3..be3e508c37 100644 --- a/src/generated/Groups/Item/Owners/GraphApplication/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphApplication/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.Groups.Item.Owners.GraphApplication.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 @@ -70,14 +73,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}/groups/{group%2Did}/owners/graph.application/$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}/groups/{group%2Did}/owners/graph.application/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.cs index ef715a540c..deadee4e06 100644 --- a/src/generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphApplication/GraphApplicationRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Owners.GraphApplication.Count; 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.Groups.Item.Owners.GraphApplication /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Owners.GraphApplication.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/graph.application{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphDevice/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphDevice/Count/CountRequestBuilder.cs index 698853953e..64249000da 100644 --- a/src/generated/Groups/Item/Owners/GraphDevice/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphDevice/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.Groups.Item.Owners.GraphDevice.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 @@ -70,14 +73,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}/groups/{group%2Did}/owners/graph.device/$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}/groups/{group%2Did}/owners/graph.device/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.cs index 61708d5004..b5c87ae6ee 100644 --- a/src/generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphDevice/GraphDeviceRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Owners.GraphDevice.Count; 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.Groups.Item.Owners.GraphDevice /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Owners.GraphDevice.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/graph.device{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphGroup/Count/CountRequestBuilder.cs index dfe7308a72..3bf863d9e8 100644 --- a/src/generated/Groups/Item/Owners/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphGroup/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.Groups.Item.Owners.GraphGroup.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 @@ -70,14 +73,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}/groups/{group%2Did}/owners/graph.group/$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}/groups/{group%2Did}/owners/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.cs index 74b4b49490..16f3165ec5 100644 --- a/src/generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Owners.GraphGroup.Count; 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.Groups.Item.Owners.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Owners.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphOrgContact/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphOrgContact/Count/CountRequestBuilder.cs index 2be43505df..263c037261 100644 --- a/src/generated/Groups/Item/Owners/GraphOrgContact/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphOrgContact/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.Groups.Item.Owners.GraphOrgContact.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 @@ -70,14 +73,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}/groups/{group%2Did}/owners/graph.orgContact/$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}/groups/{group%2Did}/owners/graph.orgContact/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.cs index 2cf7df5bb3..04d9bd3fbe 100644 --- a/src/generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphOrgContact/GraphOrgContactRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Owners.GraphOrgContact.Count; 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.Groups.Item.Owners.GraphOrgContact /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Owners.GraphOrgContact.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/graph.orgContact{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs index 869aa82ea8..481a2d77b8 100644 --- a/src/generated/Groups/Item/Owners/GraphServicePrincipal/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphServicePrincipal/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.Groups.Item.Owners.GraphServicePrincipal.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 @@ -70,14 +73,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}/groups/{group%2Did}/owners/graph.servicePrincipal/$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}/groups/{group%2Did}/owners/graph.servicePrincipal/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index 2a7abacbaf..6473e905d9 100644 --- a/src/generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Owners.GraphServicePrincipal.Count; 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.Groups.Item.Owners.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Owners.GraphServicePrincipal.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/graph.servicePrincipal{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/gro /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphUser/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphUser/Count/CountRequestBuilder.cs index 0f2f93d801..7a2776afc0 100644 --- a/src/generated/Groups/Item/Owners/GraphUser/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphUser/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.Groups.Item.Owners.GraphUser.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 @@ -70,14 +73,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}/groups/{group%2Did}/owners/graph.user/$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}/groups/{group%2Did}/owners/graph.user/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.cs index 15e59eb278..38fe4a9137 100644 --- a/src/generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/GraphUser/GraphUserRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Owners.GraphUser.Count; 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.Groups.Item.Owners.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Owners.GraphUser.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/graph.user{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Groups/Item/Owners/Item/DirectoryObjectItemRequestBuilder.cs index 59245ed31c..ea14669d65 100644 --- a/src/generated/Groups/Item/Owners/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Owners.Item.GraphApplication; using ApiSdk.Groups.Item.Owners.Item.GraphDevice; using ApiSdk.Groups.Item.Owners.Item.GraphGroup; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Owners.Item.GraphServicePrincipal; using ApiSdk.Groups.Item.Owners.Item.GraphUser; using ApiSdk.Groups.Item.Owners.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -21,7 +23,8 @@ namespace ApiSdk.Groups.Item.Owners.Item /// /// Builds and executes requests for operations under \groups\{group-id}\owners\{directoryObject-id} /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Casts the previous resource to application. @@ -31,7 +34,7 @@ public Command BuildGraphApplicationByIdNavCommand() { var command = new Command("graph-application-by-id"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.Item.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -48,7 +51,7 @@ public Command BuildGraphDeviceByIdNavCommand() { var command = new Command("graph-device-by-id"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.Item.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -65,7 +68,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -82,7 +85,7 @@ public Command BuildGraphOrgContactByIdNavCommand() { var command = new Command("graph-org-contact-by-id"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.Item.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -99,7 +102,7 @@ public Command BuildGraphServicePrincipalByIdNavCommand() { var command = new Command("graph-service-principal-by-id"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.Item.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -116,7 +119,7 @@ public Command BuildGraphUserByIdNavCommand() { var command = new Command("graph-user-by-id"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.Item.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -133,7 +136,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of group entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -143,14 +146,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}", 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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}", rawUrl) @@ -158,3 +161,4 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/group } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.cs b/src/generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.cs index d71621095d..263c0a4a12 100644 --- a/src/generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/Item/GraphApplication/GraphApplicationRequestBuilder.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.Groups.Item.Owners.Item.GraphApplication /// /// Casts the previous resource to application. /// - public class GraphApplicationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application @@ -87,14 +90,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 GraphApplicationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.application{?%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 GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.application{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphApplicationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.application /// - public class GraphApplicationRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphApplicationRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphApplicationRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.cs b/src/generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.cs index 84204b3f24..fc534f5989 100644 --- a/src/generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/Item/GraphDevice/GraphDeviceRequestBuilder.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.Groups.Item.Owners.Item.GraphDevice /// /// Casts the previous resource to device. /// - public class GraphDeviceRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device @@ -87,14 +90,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 GraphDeviceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.device{?%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 GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.device{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphDeviceRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device /// - public class GraphDeviceRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeviceRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphDeviceRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.cs index af5f35ab3a..c043635491 100644 --- a/src/generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/Item/GraphGroup/GraphGroupRequestBuilder.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.Groups.Item.Owners.Item.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -87,14 +90,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs b/src/generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs index db8624351f..3d7b6f2205 100644 --- a/src/generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/Item/GraphOrgContact/GraphOrgContactRequestBuilder.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.Groups.Item.Owners.Item.GraphOrgContact /// /// Casts the previous resource to orgContact. /// - public class GraphOrgContactRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact @@ -87,14 +90,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 GraphOrgContactRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.orgContact{?%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 GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.orgContact{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphOrgContactRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact /// - public class GraphOrgContactRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphOrgContactRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphOrgContactRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs b/src/generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs index ab894087f9..ed60162e64 100644 --- a/src/generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.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.Groups.Item.Owners.Item.GraphServicePrincipal /// /// Casts the previous resource to servicePrincipal. /// - public class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal @@ -87,14 +90,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 GraphServicePrincipalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.servicePrincipal{?%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 GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.servicePrincipal{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphServicePrincipalRequestBuilder(string rawUrl) : base("{+baseurl}/gro /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal /// - public class GraphServicePrincipalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphServicePrincipalRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphServicePrincipalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs b/src/generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs index ccf65be164..497682f10c 100644 --- a/src/generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/Item/GraphUser/GraphUserRequestBuilder.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.Groups.Item.Owners.Item.GraphUser /// /// Casts the previous resource to user. /// - public class GraphUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user @@ -87,14 +90,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 GraphUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.user{?%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 GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/graph.user{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.user /// - public class GraphUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs index 7af5b28b9b..5ab254d124 100644 --- a/src/generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.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.Groups.Item.Owners.Item.Ref /// /// Provides operations to manage the collection of group entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Owners.Count; using ApiSdk.Groups.Item.Owners.GraphApplication; using ApiSdk.Groups.Item.Owners.GraphDevice; @@ -10,6 +11,7 @@ using ApiSdk.Groups.Item.Owners.Ref; 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; @@ -28,7 +30,8 @@ namespace ApiSdk.Groups.Item.Owners /// /// Provides operations to manage the owners property of the microsoft.graph.group entity. /// - public class OwnersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OwnersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.groups.item.owners.item collection @@ -37,7 +40,7 @@ public class OwnersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.Item.DirectoryObjectItemRequestBuilder(PathParameters); commands.Add(builder.BuildGraphApplicationByIdNavCommand()); commands.Add(builder.BuildGraphDeviceByIdNavCommand()); commands.Add(builder.BuildGraphGroupByIdNavCommand()); @@ -55,7 +58,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.Groups.Item.Owners.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -72,7 +75,7 @@ public Command BuildGraphApplicationNavCommand() { var command = new Command("graph-application"); command.Description = "Casts the previous resource to application."; - var builder = new GraphApplicationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.GraphApplication.GraphApplicationRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -95,7 +98,7 @@ public Command BuildGraphDeviceNavCommand() { var command = new Command("graph-device"); command.Description = "Casts the previous resource to device."; - var builder = new GraphDeviceRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.GraphDevice.GraphDeviceRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -118,7 +121,7 @@ public Command BuildGraphGroupNavCommand() { var command = new Command("graph-group"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -141,7 +144,7 @@ public Command BuildGraphOrgContactNavCommand() { var command = new Command("graph-org-contact"); command.Description = "Casts the previous resource to orgContact."; - var builder = new GraphOrgContactRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.GraphOrgContact.GraphOrgContactRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -164,7 +167,7 @@ public Command BuildGraphServicePrincipalNavCommand() { var command = new Command("graph-service-principal"); command.Description = "Casts the previous resource to servicePrincipal."; - var builder = new GraphServicePrincipalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.GraphServicePrincipal.GraphServicePrincipalRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -187,7 +190,7 @@ public Command BuildGraphUserNavCommand() { var command = new Command("graph-user"); command.Description = "Casts the previous resource to user."; - var builder = new GraphUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.GraphUser.GraphUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -203,14 +206,14 @@ public Command BuildGraphUserNavCommand() return command; } /// - /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange or groups that are synchronized from an on-premises environment. + /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange or groups that are synchronized from an on-premises environment.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-list-owners?view=graph-rest-1.0"; + command.Description = "Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-list-owners?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -320,7 +323,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of group entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Owners.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -332,31 +335,31 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OwnersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners{?%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 OwnersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange or groups that are synchronized from an on-premises environment. + /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -365,9 +368,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange or groups that are synchronized from an on-premises environment. + /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. /// - public class OwnersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OwnersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -431,3 +435,4 @@ public class OwnersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs b/src/generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs index 28e31b94b8..9b3f07f18b 100644 --- a/src/generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/generated/Groups/Item/Owners/Ref/RefRequestBuilder.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.Groups.Item.Owners.Ref /// /// Provides operations to manage the collection of group entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. @@ -64,14 +67,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange or groups that are synchronized from an on-premises environment. + /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange or groups that are synchronized from an on-premises environment.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-list-owners?view=graph-rest-1.0"; + command.Description = "Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-list-owners?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -182,8 +185,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -202,14 +205,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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/owners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/owners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) @@ -222,11 +225,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/o /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/groups/{group%2Did}/owners/$ref?@id={%40id}", PathParameters); @@ -235,17 +238,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange or groups that are synchronized from an on-premises environment. + /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); @@ -261,11 +264,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -291,9 +295,10 @@ public class RefRequestBuilderDeleteQueryParameters #endif } /// - /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange or groups that are synchronized from an on-premises environment. + /// Retrieve a list of the group's owners. The owners are a set of users or service principals who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -337,3 +342,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/PermissionGrants/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/PermissionGrants/Count/CountRequestBuilder.cs index fe105f7850..36a7e1bdd1 100644 --- a/src/generated/Groups/Item/PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/PermissionGrants/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.Groups.Item.PermissionGrants.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}/groups/{group%2Did}/permissionGrants/$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}/groups/{group%2Did}/permissionGrants/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/generated/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index abfdae3fed..cd93b2c867 100644 --- a/src/generated/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/generated/Groups/Item/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.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.Groups.Item.PermissionGrants.Item /// /// Provides operations to manage the permissionGrants property of the microsoft.graph.group entity. /// - public class ResourceSpecificPermissionGrantItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceSpecificPermissionGrantItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property permissionGrants for groups @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ResourceSpecificPermissionGrantItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%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 ResourceSpecificPermissionGrantItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/permissionGrants/{resourceSpecificPermissionGrant%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr /// /// Get permissionGrants from groups /// - public class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index cab67f5256..073a7a675b 100644 --- a/src/generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.PermissionGrants.Count; using ApiSdk.Groups.Item.PermissionGrants.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.Groups.Item.PermissionGrants /// /// Provides operations to manage the permissionGrants property of the microsoft.graph.group entity. /// - public class PermissionGrantsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionGrantsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the permissionGrants property of the microsoft.graph.group entity. @@ -30,7 +33,7 @@ public class PermissionGrantsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ResourceSpecificPermissionGrantItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.PermissionGrants.Item.ResourceSpecificPermissionGrantItemRequestBuilder(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.Groups.Item.PermissionGrants.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(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -208,14 +211,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PermissionGrantsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/permissionGrants{?%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 PermissionGrantsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/permissionGrants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -228,11 +231,11 @@ public PermissionGrantsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +267,8 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra /// /// List all resource-specific permission grants on the group. This list specifies the Microsoft Entra apps that have access to the group, along with the corresponding resource-specific access that each app has. /// - public class PermissionGrantsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -328,3 +332,4 @@ public class PermissionGrantsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Photo/PhotoRequestBuilder.cs b/src/generated/Groups/Item/Photo/PhotoRequestBuilder.cs index e826979a5c..0525995f80 100644 --- a/src/generated/Groups/Item/Photo/PhotoRequestBuilder.cs +++ b/src/generated/Groups/Item/Photo/PhotoRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Photo.Value; 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.Groups.Item.Photo /// /// Provides operations to manage the photo property of the microsoft.graph.group entity. /// - public class PhotoRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PhotoRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Photo.Value.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -93,6 +96,11 @@ public Command BuildGetCommand() }; 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"); @@ -100,6 +108,7 @@ public Command BuildGetCommand() command.SetHandler(async (invocationContext) => { var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); 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"); @@ -108,6 +117,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -151,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(ProfilePhoto.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ProfilePhoto.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -173,17 +183,17 @@ 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 PhotoRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/photo{?%24select}", pathParameters) + public PhotoRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/photo{?%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 PhotoRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/photo{?%24select}", rawUrl) + public PhotoRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/photo{?%24expand,%24select}", rawUrl) { } /// @@ -212,11 +222,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); @@ -232,11 +242,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(ProfilePhoto body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -248,8 +258,19 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action /// The group's profile photo /// - public class PhotoRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PhotoRequestBuilderGetQueryParameters { + /// 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 @@ -263,3 +284,4 @@ public class PhotoRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Photo/Value/ContentRequestBuilder.cs b/src/generated/Groups/Item/Photo/Value/ContentRequestBuilder.cs index 5acfc5a7be..3d99cbddfb 100644 --- a/src/generated/Groups/Item/Photo/Value/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Photo/Value/ContentRequestBuilder.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.Groups.Item.Photo.Value /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The group's profile photo @@ -146,14 +149,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/photo/$value", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/photo/$value", rawUrl) @@ -221,3 +224,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Photos.Item.Value; 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.Groups.Item.Photos.Item /// /// Provides operations to manage the photos property of the microsoft.graph.group entity. /// - public class ProfilePhotoItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProfilePhotoItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Photos.Item.Value.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -62,6 +65,11 @@ public Command BuildGetCommand() }; 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"); @@ -70,6 +78,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var profilePhotoId = invocationContext.ParseResult.GetValueForOption(profilePhotoIdOption); 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"); @@ -78,6 +87,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (profilePhotoId is not null) requestInfo.PathParameters.Add("profilePhoto%2Did", profilePhotoId); @@ -93,17 +103,17 @@ 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 ProfilePhotoItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/photos/{profilePhoto%2Did}{?%24select}", pathParameters) + public ProfilePhotoItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/photos/{profilePhoto%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 ProfilePhotoItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/photos/{profilePhoto%2Did}{?%24select}", rawUrl) + public ProfilePhotoItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/photos/{profilePhoto%2Did}{?%24expand,%24select}", rawUrl) { } /// @@ -113,11 +123,11 @@ public ProfilePhotoItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -128,8 +138,19 @@ public RequestInformation ToGetRequestInformation(Action /// The profile photos owned by the group. Read-only. Nullable. /// - public class ProfilePhotoItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProfilePhotoItemRequestBuilderGetQueryParameters { + /// 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 @@ -143,3 +164,4 @@ public class ProfilePhotoItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.cs b/src/generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.cs index 5e66744935..1aa67f0b36 100644 --- a/src/generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Photos/Item/Value/ContentRequestBuilder.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.Groups.Item.Photos.Item.Value /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The unique identifier for an entity. Read-only. @@ -62,13 +65,14 @@ public Command BuildDeleteCommand() return command; } /// - /// The unique identifier for an entity. Read-only. + /// Retrieve a list of profilePhoto objects. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The unique identifier for an entity. Read-only."; + command.Description = "Retrieve a list of profilePhoto objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-list-photos?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -164,14 +168,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/photos/{profilePhoto%2Did}/$value", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/photos/{profilePhoto%2Did}/$value", rawUrl) @@ -197,7 +201,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The unique identifier for an entity. Read-only. + /// Retrieve a list of profilePhoto objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -239,3 +243,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Photos.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; @@ -20,7 +22,8 @@ namespace ApiSdk.Groups.Item.Photos /// /// Provides operations to manage the photos property of the microsoft.graph.group entity. /// - public class PhotosRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PhotosRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the photos property of the microsoft.graph.group entity. @@ -30,7 +33,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ProfilePhotoItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Photos.Item.ProfilePhotoItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, commands); @@ -78,6 +81,11 @@ public Command BuildListCommand() }; 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"); @@ -93,6 +101,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -109,6 +118,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -132,17 +142,17 @@ 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 PhotosRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/photos{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public PhotosRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/photos{?%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 PhotosRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/photos{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public PhotosRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/photos{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -152,11 +162,11 @@ public PhotosRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -167,11 +177,22 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve a list of profilePhoto objects. /// - public class PhotosRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PhotosRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -221,3 +242,4 @@ public class PhotosRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/PlannerRequestBuilder.cs b/src/generated/Groups/Item/Planner/PlannerRequestBuilder.cs index 48cad84244..861b0dcd36 100644 --- a/src/generated/Groups/Item/Planner/PlannerRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/PlannerRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Planner.Plans; 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.Groups.Item.Planner /// /// Provides operations to manage the planner property of the microsoft.graph.group entity. /// - public class PlannerRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlannerRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property planner for groups @@ -145,8 +148,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(PlannerGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -175,7 +178,7 @@ public Command BuildPlansNavCommand() { var command = new Command("plans"); command.Description = "Provides operations to manage the plans property of the microsoft.graph.plannerGroup entity."; - var builder = new PlansRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.PlansRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -195,14 +198,14 @@ public Command BuildPlansNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PlannerRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner{?%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 PlannerRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner{?%24expand,%24select}", rawUrl) @@ -234,11 +237,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); @@ -254,11 +257,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(PlannerGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerGroup body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -270,7 +273,8 @@ public RequestInformation ToPatchRequestInformation(PlannerGroup body, Action /// Entry-point to Planner resource that might exist for a Unified Group. /// - public class PlannerRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlannerRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -295,3 +299,4 @@ public class PlannerRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Count/CountRequestBuilder.cs index 0b636338f4..1877552b1e 100644 --- a/src/generated/Groups/Item/Planner/Plans/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/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.Groups.Item.Planner.Plans.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}/groups/{group%2Did}/planner/plans/$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}/groups/{group%2Did}/planner/plans/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs index d268781130..685b6826dd 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/BucketsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Count; using ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.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.Groups.Item.Planner.Plans.Item.Buckets /// /// Provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity. /// - public class BucketsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BucketsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new PlannerBucketItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.PlannerBucketItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Groups.Item.Planner.Plans.Item.Buckets.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(PlannerBucket.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerBucket.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 BucketsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets{?%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 BucketsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public BucketsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -261,11 +264,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(PlannerBucket body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.PlannerBucket body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PlannerBucket body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.PlannerBucket body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(PlannerBucket body, Action /// Read-only. Nullable. Collection of buckets in the plan. /// - public class BucketsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BucketsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class BucketsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs index 84ddc88b5a..e5693aacd4 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/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.Groups.Item.Planner.Plans.Item.Buckets.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/$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}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs index 4bf00ec1ea..76fa991749 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/PlannerBucketItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks; 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.Groups.Item.Planner.Plans.Item.Buckets.Item /// /// Provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity. /// - public class PlannerBucketItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlannerBucketItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property buckets for groups @@ -173,8 +176,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(PlannerBucket.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerBucket.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildTasksNavCommand() { var command = new Command("tasks"); command.Description = "Provides operations to manage the tasks property of the microsoft.graph.plannerBucket entity."; - var builder = new TasksRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.TasksRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -224,14 +227,14 @@ public Command BuildTasksNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PlannerBucketItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%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 PlannerBucketItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}{?%24expand,%24select}", rawUrl) @@ -263,11 +266,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); @@ -283,11 +286,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(PlannerBucket body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerBucket body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerBucket body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerBucket body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPatchRequestInformation(PlannerBucket body, Action /// Read-only. Nullable. Collection of buckets in the plan. /// - public class PlannerBucketItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlannerBucketItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -324,3 +328,4 @@ public class PlannerBucketItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs index 24d3270f8d..c004c9be07 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/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.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.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 @@ -75,14 +78,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}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/$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}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index b5d4ec2267..6d13385d6b 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.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.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.Assigned /// /// Provides operations to manage the assignedToTaskBoardFormat property of the microsoft.graph.plannerTask entity. /// - public class AssignedToTaskBoardFormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignedToTaskBoardFormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignedToTaskBoardFormat for groups @@ -195,8 +198,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(PlannerAssignedToTaskBoardTaskFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerAssignedToTaskBoardTaskFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 AssignedToTaskBoardFormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/assignedToTaskBoardFormat{?%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 AssignedToTaskBoardFormatRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/assignedToTaskBoardFormat{?%24expand,%24select}", rawUrl) @@ -260,11 +263,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); @@ -280,11 +283,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(PlannerAssignedToTaskBoardTaskFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerAssignedToTaskBoardTaskFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTaskFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerAssignedToTaskBoardTaskFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -296,7 +299,8 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa /// /// Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. /// - public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -321,3 +325,4 @@ public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 2a77a7ab87..422ddfc7aa 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.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.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.BucketTa /// /// Provides operations to manage the bucketTaskBoardFormat property of the microsoft.graph.plannerTask entity. /// - public class BucketTaskBoardFormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BucketTaskBoardFormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property bucketTaskBoardFormat for groups @@ -195,8 +198,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(PlannerBucketTaskBoardTaskFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerBucketTaskBoardTaskFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 BucketTaskBoardFormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/bucketTaskBoardFormat{?%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 BucketTaskBoardFormatRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/bucketTaskBoardFormat{?%24expand,%24select}", rawUrl) @@ -260,11 +263,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); @@ -280,11 +283,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(PlannerBucketTaskBoardTaskFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerBucketTaskBoardTaskFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerBucketTaskBoardTaskFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -296,7 +299,8 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo /// /// Read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. /// - public class BucketTaskBoardFormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -321,3 +325,4 @@ public class BucketTaskBoardFormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index f879825677..19be11cf65 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/Details/DetailsRequestBuilder.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.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.Details /// /// Provides operations to manage the details property of the microsoft.graph.plannerTask entity. /// - public class DetailsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetailsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property details for groups @@ -195,8 +198,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(PlannerTaskDetails.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerTaskDetails.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 DetailsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/details{?%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 DetailsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/details{?%24expand,%24select}", rawUrl) @@ -260,11 +263,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); @@ -280,11 +283,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(PlannerTaskDetails body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerTaskDetails body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerTaskDetails body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -296,7 +299,8 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act /// /// Read-only. Nullable. More details about the task. /// - public class DetailsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetailsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -321,3 +325,4 @@ public class DetailsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs index 8e07852ac6..76547bb8e0 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.AssignedToTaskBoardFormat; using ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.BucketTaskBoardFormat; using ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.Details; using ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.ProgressTaskBoardFormat; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item /// /// Provides operations to manage the tasks property of the microsoft.graph.plannerBucket entity. /// - public class PlannerTaskItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlannerTaskItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignedToTaskBoardFormat property of the microsoft.graph.plannerTask entity. @@ -33,7 +36,7 @@ public Command BuildAssignedToTaskBoardFormatNavCommand() { var command = new Command("assigned-to-task-board-format"); command.Description = "Provides operations to manage the assignedToTaskBoardFormat property of the microsoft.graph.plannerTask entity."; - var builder = new AssignedToTaskBoardFormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.AssignedToTaskBoardFormat.AssignedToTaskBoardFormatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -52,7 +55,7 @@ public Command BuildBucketTaskBoardFormatNavCommand() { var command = new Command("bucket-task-board-format"); command.Description = "Provides operations to manage the bucketTaskBoardFormat property of the microsoft.graph.plannerTask entity."; - var builder = new BucketTaskBoardFormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.BucketTaskBoardFormat.BucketTaskBoardFormatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -124,7 +127,7 @@ public Command BuildDetailsNavCommand() { var command = new Command("details"); command.Description = "Provides operations to manage the details property of the microsoft.graph.plannerTask entity."; - var builder = new DetailsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.Details.DetailsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -250,8 +253,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(PlannerTask.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerTask.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -282,7 +285,7 @@ public Command BuildProgressTaskBoardFormatNavCommand() { var command = new Command("progress-task-board-format"); command.Description = "Provides operations to manage the progressTaskBoardFormat property of the microsoft.graph.plannerTask entity."; - var builder = new ProgressTaskBoardFormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.ProgressTaskBoardFormat.ProgressTaskBoardFormatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -294,14 +297,14 @@ public Command BuildProgressTaskBoardFormatNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PlannerTaskItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%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 PlannerTaskItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}{?%24expand,%24select}", rawUrl) @@ -333,11 +336,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); @@ -353,11 +356,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(PlannerTask body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerTask body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerTask body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerTask body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -369,7 +372,8 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action /// Read-only. Nullable. The collection of tasks in the bucket. /// - public class PlannerTaskItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlannerTaskItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -394,3 +398,4 @@ public class PlannerTaskItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 9c1d33c595..99f17ea9d9 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.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.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.Progress /// /// Provides operations to manage the progressTaskBoardFormat property of the microsoft.graph.plannerTask entity. /// - public class ProgressTaskBoardFormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProgressTaskBoardFormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property progressTaskBoardFormat for groups @@ -195,8 +198,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(PlannerProgressTaskBoardTaskFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerProgressTaskBoardTaskFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 ProgressTaskBoardFormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/progressTaskBoardFormat{?%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 ProgressTaskBoardFormatRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks/{plannerTask%2Did}/progressTaskBoardFormat{?%24expand,%24select}", rawUrl) @@ -260,11 +263,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); @@ -280,11 +283,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(PlannerProgressTaskBoardTaskFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerProgressTaskBoardTaskFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTaskFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerProgressTaskBoardTaskFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -296,7 +299,8 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask /// /// Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. /// - public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -321,3 +325,4 @@ public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs index 3f6dd041fe..c7ebe1e2c2 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Buckets/Item/Tasks/TasksRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Count; using ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.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.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks /// /// Provides operations to manage the tasks property of the microsoft.graph.plannerBucket entity. /// - public class TasksRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TasksRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the tasks property of the microsoft.graph.plannerBucket entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new PlannerTaskItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Item.PlannerTaskItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignedToTaskBoardFormatNavCommand()); commands.Add(builder.BuildBucketTaskBoardFormatNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -49,7 +52,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.Groups.Item.Planner.Plans.Item.Buckets.Item.Tasks.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -98,8 +101,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(PlannerTask.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerTask.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -236,14 +239,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 TasksRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks{?%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 TasksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/buckets/{plannerBucket%2Did}/tasks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -256,11 +259,11 @@ public TasksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -276,11 +279,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(PlannerTask body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.PlannerTask body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PlannerTask body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.PlannerTask body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -292,7 +295,8 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action /// Read-only. Nullable. The collection of tasks in the bucket. /// - public class TasksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TasksRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -356,3 +360,4 @@ public class TasksRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs index e89e71ab82..1e0406831b 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Details/DetailsRequestBuilder.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.Groups.Item.Planner.Plans.Item.Details /// /// Provides operations to manage the details property of the microsoft.graph.plannerPlan entity. /// - public class DetailsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetailsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property details for groups @@ -161,8 +164,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(PlannerPlanDetails.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerPlanDetails.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -185,14 +188,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 DetailsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/details{?%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 DetailsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/details{?%24expand,%24select}", rawUrl) @@ -224,11 +227,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); @@ -244,11 +247,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(PlannerPlanDetails body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerPlanDetails body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerPlanDetails body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerPlanDetails body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -260,7 +263,8 @@ public RequestInformation ToPatchRequestInformation(PlannerPlanDetails body, Act /// /// Read-only. Nullable. Extra details about the plan. /// - public class DetailsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetailsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -285,3 +289,4 @@ public class DetailsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs index 664b31e628..6f8dc8f737 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/PlannerPlanItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Planner.Plans.Item.Buckets; using ApiSdk.Groups.Item.Planner.Plans.Item.Details; using ApiSdk.Groups.Item.Planner.Plans.Item.Tasks; 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.Groups.Item.Planner.Plans.Item /// /// Provides operations to manage the plans property of the microsoft.graph.plannerGroup entity. /// - public class PlannerPlanItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlannerPlanItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity. @@ -32,7 +35,7 @@ public Command BuildBucketsNavCommand() { var command = new Command("buckets"); command.Description = "Provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity."; - var builder = new BucketsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Buckets.BucketsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -100,7 +103,7 @@ public Command BuildDetailsNavCommand() { var command = new Command("details"); command.Description = "Provides operations to manage the details property of the microsoft.graph.plannerPlan entity."; - var builder = new DetailsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Details.DetailsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -204,8 +207,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(PlannerPlan.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerPlan.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,7 +237,7 @@ public Command BuildTasksNavCommand() { var command = new Command("tasks"); command.Description = "Provides operations to manage the tasks property of the microsoft.graph.plannerPlan entity."; - var builder = new TasksRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.TasksRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -254,14 +257,14 @@ public Command BuildTasksNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PlannerPlanItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%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 PlannerPlanItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}{?%24expand,%24select}", rawUrl) @@ -293,11 +296,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); @@ -313,11 +316,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(PlannerPlan body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerPlan body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerPlan body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerPlan body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -329,7 +332,8 @@ public RequestInformation ToPatchRequestInformation(PlannerPlan body, Action /// Read-only. Nullable. Returns the plannerPlans owned by the group. /// - public class PlannerPlanItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlannerPlanItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -354,3 +358,4 @@ public class PlannerPlanItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs index b1c4064729..b3c501fc60 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/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.Groups.Item.Planner.Plans.Item.Tasks.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/$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}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs index c92c6e8f86..c9c1c4e607 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/AssignedToTaskBoardFormat/AssignedToTaskBoardFormatRequestBuilder.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.Groups.Item.Planner.Plans.Item.Tasks.Item.AssignedToTaskBoardFo /// /// Provides operations to manage the assignedToTaskBoardFormat property of the microsoft.graph.plannerTask entity. /// - public class AssignedToTaskBoardFormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignedToTaskBoardFormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property assignedToTaskBoardFormat for groups @@ -178,8 +181,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(PlannerAssignedToTaskBoardTaskFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerAssignedToTaskBoardTaskFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -203,14 +206,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 AssignedToTaskBoardFormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/assignedToTaskBoardFormat{?%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 AssignedToTaskBoardFormatRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/assignedToTaskBoardFormat{?%24expand,%24select}", rawUrl) @@ -242,11 +245,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); @@ -262,11 +265,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(PlannerAssignedToTaskBoardTaskFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerAssignedToTaskBoardTaskFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTaskFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerAssignedToTaskBoardTaskFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPatchRequestInformation(PlannerAssignedToTaskBoardTa /// /// Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. /// - public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -303,3 +307,4 @@ public class AssignedToTaskBoardFormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs index 210cb54b4c..1e9a19cde9 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/BucketTaskBoardFormat/BucketTaskBoardFormatRequestBuilder.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.Groups.Item.Planner.Plans.Item.Tasks.Item.BucketTaskBoardFormat /// /// Provides operations to manage the bucketTaskBoardFormat property of the microsoft.graph.plannerTask entity. /// - public class BucketTaskBoardFormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BucketTaskBoardFormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property bucketTaskBoardFormat for groups @@ -178,8 +181,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(PlannerBucketTaskBoardTaskFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerBucketTaskBoardTaskFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -203,14 +206,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 BucketTaskBoardFormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/bucketTaskBoardFormat{?%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 BucketTaskBoardFormatRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/bucketTaskBoardFormat{?%24expand,%24select}", rawUrl) @@ -242,11 +245,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); @@ -262,11 +265,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(PlannerBucketTaskBoardTaskFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerBucketTaskBoardTaskFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerBucketTaskBoardTaskFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPatchRequestInformation(PlannerBucketTaskBoardTaskFo /// /// Read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. /// - public class BucketTaskBoardFormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BucketTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -303,3 +307,4 @@ public class BucketTaskBoardFormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs index 5811f943da..65f8c3dd60 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/Details/DetailsRequestBuilder.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.Groups.Item.Planner.Plans.Item.Tasks.Item.Details /// /// Provides operations to manage the details property of the microsoft.graph.plannerTask entity. /// - public class DetailsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetailsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property details for groups @@ -178,8 +181,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(PlannerTaskDetails.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerTaskDetails.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -203,14 +206,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 DetailsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/details{?%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 DetailsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/details{?%24expand,%24select}", rawUrl) @@ -242,11 +245,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); @@ -262,11 +265,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(PlannerTaskDetails body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerTaskDetails body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerTaskDetails body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPatchRequestInformation(PlannerTaskDetails body, Act /// /// Read-only. Nullable. More details about the task. /// - public class DetailsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DetailsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -303,3 +307,4 @@ public class DetailsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs index 1390b5ac18..e25b6233e6 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/PlannerTaskItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.Item.AssignedToTaskBoardFormat; using ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.Item.BucketTaskBoardFormat; using ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.Item.Details; using ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.Item.ProgressTaskBoardFormat; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.Item /// /// Provides operations to manage the tasks property of the microsoft.graph.plannerPlan entity. /// - public class PlannerTaskItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlannerTaskItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the assignedToTaskBoardFormat property of the microsoft.graph.plannerTask entity. @@ -33,7 +36,7 @@ public Command BuildAssignedToTaskBoardFormatNavCommand() { var command = new Command("assigned-to-task-board-format"); command.Description = "Provides operations to manage the assignedToTaskBoardFormat property of the microsoft.graph.plannerTask entity."; - var builder = new AssignedToTaskBoardFormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.Item.AssignedToTaskBoardFormat.AssignedToTaskBoardFormatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -52,7 +55,7 @@ public Command BuildBucketTaskBoardFormatNavCommand() { var command = new Command("bucket-task-board-format"); command.Description = "Provides operations to manage the bucketTaskBoardFormat property of the microsoft.graph.plannerTask entity."; - var builder = new BucketTaskBoardFormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.Item.BucketTaskBoardFormat.BucketTaskBoardFormatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -118,7 +121,7 @@ public Command BuildDetailsNavCommand() { var command = new Command("details"); command.Description = "Provides operations to manage the details property of the microsoft.graph.plannerTask entity."; - var builder = new DetailsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.Item.Details.DetailsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -233,8 +236,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(PlannerTask.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerTask.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -264,7 +267,7 @@ public Command BuildProgressTaskBoardFormatNavCommand() { var command = new Command("progress-task-board-format"); command.Description = "Provides operations to manage the progressTaskBoardFormat property of the microsoft.graph.plannerTask entity."; - var builder = new ProgressTaskBoardFormatRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.Item.ProgressTaskBoardFormat.ProgressTaskBoardFormatRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -276,14 +279,14 @@ public Command BuildProgressTaskBoardFormatNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PlannerTaskItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%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 PlannerTaskItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}{?%24expand,%24select}", rawUrl) @@ -315,11 +318,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); @@ -335,11 +338,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(PlannerTask body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerTask body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerTask body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerTask body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -351,7 +354,8 @@ public RequestInformation ToPatchRequestInformation(PlannerTask body, Action /// Read-only. Nullable. Collection of tasks in the plan. /// - public class PlannerTaskItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlannerTaskItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -376,3 +380,4 @@ public class PlannerTaskItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs index 2eaafb323d..2bec8153f4 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/Item/ProgressTaskBoardFormat/ProgressTaskBoardFormatRequestBuilder.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.Groups.Item.Planner.Plans.Item.Tasks.Item.ProgressTaskBoardForm /// /// Provides operations to manage the progressTaskBoardFormat property of the microsoft.graph.plannerTask entity. /// - public class ProgressTaskBoardFormatRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProgressTaskBoardFormatRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property progressTaskBoardFormat for groups @@ -178,8 +181,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(PlannerProgressTaskBoardTaskFormat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerProgressTaskBoardTaskFormat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -203,14 +206,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 ProgressTaskBoardFormatRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/progressTaskBoardFormat{?%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 ProgressTaskBoardFormatRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks/{plannerTask%2Did}/progressTaskBoardFormat{?%24expand,%24select}", rawUrl) @@ -242,11 +245,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); @@ -262,11 +265,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(PlannerProgressTaskBoardTaskFormat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerProgressTaskBoardTaskFormat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTaskFormat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PlannerProgressTaskBoardTaskFormat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPatchRequestInformation(PlannerProgressTaskBoardTask /// /// Read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. /// - public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProgressTaskBoardFormatRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -303,3 +307,4 @@ public class ProgressTaskBoardFormatRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs index 2adb580a1b..a5724e2d3b 100644 --- a/src/generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/Item/Tasks/TasksRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.Count; using ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.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.Groups.Item.Planner.Plans.Item.Tasks /// /// Provides operations to manage the tasks property of the microsoft.graph.plannerPlan entity. /// - public class TasksRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TasksRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the tasks property of the microsoft.graph.plannerPlan entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new PlannerTaskItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.Tasks.Item.PlannerTaskItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssignedToTaskBoardFormatNavCommand()); commands.Add(builder.BuildBucketTaskBoardFormatNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -49,7 +52,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.Groups.Item.Planner.Plans.Item.Tasks.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(PlannerTask.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerTask.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,14 +227,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 TasksRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks{?%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 TasksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/tasks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -244,11 +247,11 @@ public TasksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -264,11 +267,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(PlannerTask body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.PlannerTask body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PlannerTask body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.PlannerTask body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -280,7 +283,8 @@ public RequestInformation ToPostRequestInformation(PlannerTask body, Action /// Read-only. Nullable. Collection of tasks in the plan. /// - public class TasksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TasksRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -344,3 +348,4 @@ public class TasksRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs b/src/generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs index d97fe934d2..def25b1fcb 100644 --- a/src/generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs +++ b/src/generated/Groups/Item/Planner/Plans/PlansRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Planner.Plans.Count; using ApiSdk.Groups.Item.Planner.Plans.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.Groups.Item.Planner.Plans /// /// Provides operations to manage the plans property of the microsoft.graph.plannerGroup entity. /// - public class PlansRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlansRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the plans property of the microsoft.graph.plannerGroup entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new PlannerPlanItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Planner.Plans.Item.PlannerPlanItemRequestBuilder(PathParameters); commands.Add(builder.BuildBucketsNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDetailsNavCommand()); @@ -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.Groups.Item.Planner.Plans.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -87,8 +90,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(PlannerPlan.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.PlannerPlan.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -212,14 +215,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 PlansRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/planner/plans{?%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 PlansRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/planner/plans{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -232,11 +235,11 @@ public PlansRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -252,11 +255,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(PlannerPlan body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.PlannerPlan body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PlannerPlan body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.PlannerPlan body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -268,7 +271,8 @@ public RequestInformation ToPostRequestInformation(PlannerPlan body, Action /// Retrieve a list of plannerPlan objects owned by a group object. /// - public class PlansRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlansRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -332,3 +336,4 @@ public class PlansRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/RejectedSenders/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/RejectedSenders/Count/CountRequestBuilder.cs index 0c30d4c303..018c20d37e 100644 --- a/src/generated/Groups/Item/RejectedSenders/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/RejectedSenders/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.Groups.Item.RejectedSenders.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}/groups/{group%2Did}/rejectedSenders/$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}/groups/{group%2Did}/rejectedSenders/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/RejectedSenders/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Groups/Item/RejectedSenders/Item/DirectoryObjectItemRequestBuilder.cs index fef3504986..a4af1ca486 100644 --- a/src/generated/Groups/Item/RejectedSenders/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Groups/Item/RejectedSenders/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,5 +1,7 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.RejectedSenders.Item.Ref; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.IO; using Microsoft.Kiota.Cli.Commons; @@ -15,7 +17,8 @@ namespace ApiSdk.Groups.Item.RejectedSenders.Item /// /// Builds and executes requests for operations under \groups\{group-id}\rejectedSenders\{directoryObject-id} /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the collection of group entities. @@ -25,7 +28,7 @@ public Command BuildRefByIdNavCommand() { var command = new Command("ref-by-id"); command.Description = "Provides operations to manage the collection of group entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.RejectedSenders.Item.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); foreach (var cmd in execCommands) @@ -35,14 +38,14 @@ public Command BuildRefByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}", 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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}", rawUrl) @@ -50,3 +53,4 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/group } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs b/src/generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs index 4d65ccce84..7b121f0fe2 100644 --- a/src/generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs +++ b/src/generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.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.Groups.Item.RejectedSenders.Item.Ref /// /// Provides operations to manage the collection of group entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove rejectedSender @@ -63,14 +66,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref", 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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref", rawUrl) @@ -97,3 +100,4 @@ public RequestInformation ToDeleteRequestInformation(Action +#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.Groups.Item.RejectedSenders.Ref /// /// Provides operations to manage the collection of group entities. /// - public class RefRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilder : BaseCliRequestBuilder { /// /// Remove rejectedSender @@ -84,6 +87,10 @@ public Command BuildGetCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -107,6 +114,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -121,6 +129,7 @@ public Command BuildGetCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -169,8 +178,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(ReferenceCreate.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ReferenceCreate.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -189,17 +198,17 @@ 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 RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24skip,%24top}", pathParameters) + public RefRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%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 RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24skip,%24top}", rawUrl) + public RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl) { } /// @@ -209,11 +218,11 @@ public RefRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/r /// 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) + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref?@id={%40id}", PathParameters); @@ -228,14 +237,14 @@ 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, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24count,%24filter,%24orderby,%24skip,%24top}", PathParameters); + var requestInfo = new RequestInformation(Method.GET, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; @@ -248,11 +257,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(ReferenceCreate body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ReferenceCreate body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -264,7 +273,8 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< /// /// Remove rejectedSender /// - public class RefRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderDeleteQueryParameters { /// The delete Uri #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,7 +290,8 @@ public class RefRequestBuilderDeleteQueryParameters /// /// Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. /// - public class RefRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -304,6 +315,16 @@ public class RefRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Skip the first n items [QueryParameter("%24skip")] @@ -314,3 +335,4 @@ public class RefRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs b/src/generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs index 88a06ddcd2..e3b3c43f62 100644 --- a/src/generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs +++ b/src/generated/Groups/Item/RejectedSenders/RejectedSendersRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.RejectedSenders.Count; using ApiSdk.Groups.Item.RejectedSenders.Item; using ApiSdk.Groups.Item.RejectedSenders.Ref; 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.Groups.Item.RejectedSenders /// /// Provides operations to manage the rejectedSenders property of the microsoft.graph.group entity. /// - public class RejectedSendersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RejectedSendersRequestBuilder : BaseCliRequestBuilder { /// /// Gets an item from the ApiSdk.groups.item.rejectedSenders.item collection @@ -31,7 +34,7 @@ public class RejectedSendersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var commands = new List(); - var builder = new DirectoryObjectItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.RejectedSenders.Item.DirectoryObjectItemRequestBuilder(PathParameters); commands.Add(builder.BuildRefByIdNavCommand()); return new(new(0), commands); } @@ -43,7 +46,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.Groups.Item.RejectedSenders.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,6 +98,11 @@ public Command BuildListCommand() }; 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"); @@ -110,6 +118,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -126,6 +135,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -156,7 +166,7 @@ public Command BuildRefNavCommand() { var command = new Command("ref"); command.Description = "Provides operations to manage the collection of group entities."; - var builder = new RefRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.RejectedSenders.Ref.RefRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -168,17 +178,17 @@ public Command BuildRefNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public RejectedSendersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public RejectedSendersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders{?%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 RejectedSendersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public RejectedSendersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/rejectedSenders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -188,11 +198,11 @@ public RejectedSendersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -203,11 +213,22 @@ public RequestInformation ToGetRequestInformation(Action /// Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. /// - public class RejectedSendersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RejectedSendersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -257,3 +278,4 @@ public class RejectedSendersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.cs b/src/generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.cs index 6b358891fa..415b8b48d0 100644 --- a/src/generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.cs +++ b/src/generated/Groups/Item/RemoveFavorite/RemoveFavoriteRequestBuilder.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.Groups.Item.RemoveFavorite /// /// Provides operations to call the removeFavorite method. /// - public class RemoveFavoriteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveFavoriteRequestBuilder : BaseCliRequestBuilder { /// /// Remove the group from the list of the current user's favorite groups. Supported for Microsoft 365 groups only. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RemoveFavoriteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/removeFavorite", 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 RemoveFavoriteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/removeFavorite", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,17 +20,18 @@ namespace ApiSdk.Groups.Item.Renew /// /// Provides operations to call the renew method. /// - public class RenewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RenewRequestBuilder : BaseCliRequestBuilder { /// - /// Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. + /// Renew a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-renew?view=graph-rest-1.0"; + command.Description = "Renew a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-renew?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -50,21 +53,21 @@ 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 RenewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/renew", 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 RenewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/renew", rawUrl) { } /// - /// Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. + /// Renew a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.ResetUnseenCount /// /// Provides operations to call the resetUnseenCount method. /// - public class ResetUnseenCountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResetUnseenCountRequestBuilder : BaseCliRequestBuilder { /// /// Reset the unseenCount of all the posts that the current user hasn't seen since their last visit. Supported for Microsoft 365 groups only. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ResetUnseenCountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/resetUnseenCount", 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 ResetUnseenCountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/resetUnseenCount", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#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,17 +21,18 @@ namespace ApiSdk.Groups.Item.Restore /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -61,21 +64,21 @@ 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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.RetryServiceProvisioning /// /// Provides operations to call the retryServiceProvisioning method. /// - public class RetryServiceProvisioningRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RetryServiceProvisioningRequestBuilder : BaseCliRequestBuilder { /// /// Retry the group service provisioning. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RetryServiceProvisioningRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/retryServiceProvisioning", 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 RetryServiceProvisioningRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/retryServiceProvisioning", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.ServiceProvisioningErrors.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}/groups/{group%2Did}/serviceProvisioningErrors/$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}/groups/{group%2Did}/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 3f89f7d22c..7a87963073 100644 --- a/src/generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.ServiceProvisioningErrors.Count; 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.Groups.Item.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \groups\{group-id}\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -142,31 +145,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -175,9 +178,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -241,3 +245,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Settings/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Settings/Count/CountRequestBuilder.cs index 3586624764..a8332d095b 100644 --- a/src/generated/Groups/Item/Settings/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Settings/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.Groups.Item.Settings.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}/groups/{group%2Did}/settings/$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}/groups/{group%2Did}/settings/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.cs b/src/generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.cs index 6b78f98da2..c8f01fdc3d 100644 --- a/src/generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Settings/Item/GroupSettingItemRequestBuilder.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.Groups.Item.Settings.Item /// /// Provides operations to manage the settings property of the microsoft.graph.group entity. /// - public class GroupSettingItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupSettingItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property settings for groups @@ -157,8 +160,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(GroupSetting.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.GroupSetting.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -180,14 +183,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 GroupSettingItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/settings/{groupSetting%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 GroupSettingItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/settings/{groupSetting%2Did}{?%24expand,%24select}", rawUrl) @@ -219,11 +222,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); @@ -239,11 +242,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(GroupSetting body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.GroupSetting body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(GroupSetting body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.GroupSetting body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPatchRequestInformation(GroupSetting body, Action /// Retrieve the properties of a specific group setting object. The setting can be a tenant-level or group-specific setting. /// - public class GroupSettingItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupSettingItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -280,3 +284,4 @@ public class GroupSettingItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Settings/SettingsRequestBuilder.cs b/src/generated/Groups/Item/Settings/SettingsRequestBuilder.cs index 84b1c18093..416820336b 100644 --- a/src/generated/Groups/Item/Settings/SettingsRequestBuilder.cs +++ b/src/generated/Groups/Item/Settings/SettingsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Settings.Count; using ApiSdk.Groups.Item.Settings.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.Groups.Item.Settings /// /// Provides operations to manage the settings property of the microsoft.graph.group entity. /// - public class SettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SettingsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the settings property of the microsoft.graph.group entity. @@ -30,7 +33,7 @@ public class SettingsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new GroupSettingItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Settings.Item.GroupSettingItemRequestBuilder(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.Groups.Item.Settings.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(GroupSetting.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.GroupSetting.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 SettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/settings{?%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 SettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/settings{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public SettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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(GroupSetting body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.GroupSetting body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GroupSetting body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.GroupSetting body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(GroupSetting body, Action /// Retrieve a list of tenant-level or group-specific group settings objects. /// - public class SettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SettingsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class SettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Add/AddPostRequestBody.cs b/src/generated/Groups/Item/Sites/Add/AddPostRequestBody.cs index c2536a7ea9..1b000640f7 100644 --- a/src/generated/Groups/Item/Sites/Add/AddPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Add/AddPostRequestBody.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.Groups.Item.Sites.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -31,12 +33,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Add/AddPostResponse.cs b/src/generated/Groups/Item/Sites/Add/AddPostResponse.cs index 990db12103..53bc6bdfc5 100644 --- a/src/generated/Groups/Item/Sites/Add/AddPostResponse.cs +++ b/src/generated/Groups/Item/Sites/Add/AddPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class AddPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Add.AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostResponse(); + return new global::ApiSdk.Groups.Item.Sites.Add.AddPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Add/AddRequestBuilder.cs b/src/generated/Groups/Item/Sites/Add/AddRequestBuilder.cs index 2a62309167..254377d38d 100644 --- a/src/generated/Groups/Item/Sites/Add/AddRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Add/AddRequestBuilder.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.Groups.Item.Sites.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Follow a user's site or multiple sites. @@ -55,8 +58,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/add", rawUrl) @@ -107,11 +110,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Count/CountRequestBuilder.cs index 7f28258b84..2fc7d89033 100644 --- a/src/generated/Groups/Item/Sites/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/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.Groups.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}/groups/{group%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}/groups/{group%2Did}/sites/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Sites/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Sites/Delta/DeltaGetResponse.cs index 0d4c9cac95..1d0631d7d6 100644 --- a/src/generated/Groups/Item/Sites/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Sites/Delta/DeltaRequestBuilder.cs index 58720ee262..998d42876d 100644 --- a/src/generated/Groups/Item/Sites/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Delta/DeltaRequestBuilder.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.Groups.Item.Sites.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get newly created, updated, or deleted sites without having to perform a full read of the entire sites collection. A delta function call for sites is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls,you can query for incremental changes in the sites. It allows you to maintain and synchronize a local store of a user's sites without having to fetch all the sites from the server every time.The application calls the API without specifying any parameters.The service begins enumerating sites and returns pages of changes to these sites, accompanied by either an @odata.nextLink or an @odata.deltaLink.Your application should continue making calls using the @odata.nextLink until there's an @odata.deltaLink in the response. After you receive all the changes, you can apply them to your local state.To monitor future changes, call the delta API by using the @odata.deltaLink in the previous response. Any resources marked as deleted should be removed from your local state. @@ -124,14 +127,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -144,11 +147,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get newly created, updated, or deleted sites without having to perform a full read of the entire sites collection. A delta function call for sites is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls,you can query for incremental changes in the sites. It allows you to maintain and synchronize a local store of a user's sites without having to fetch all the sites from the server every time.The application calls the API without specifying any parameters.The service begins enumerating sites and returns pages of changes to these sites, accompanied by either an @odata.nextLink or an @odata.deltaLink.Your application should continue making calls using the @odata.nextLink until there's an @odata.deltaLink in the response. After you receive all the changes, you can apply them to your local state.To monitor future changes, call the delta API by using the @odata.deltaLink in the previous response. Any resources marked as deleted should be removed from your local state. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.cs b/src/generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.cs index e739977cce..d58a0bebd5 100644 --- a/src/generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.cs +++ b/src/generated/Groups/Item/Sites/GetAllSites/GetAllSitesGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.GetAllSites { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAllSitesGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAllSitesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAllSitesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.GetAllSites.GetAllSitesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAllSitesGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.GetAllSites.GetAllSitesGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.cs b/src/generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.cs index 0a7457b7c5..c13691705a 100644 --- a/src/generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/GetAllSites/GetAllSitesRequestBuilder.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.Groups.Item.Sites.GetAllSites /// /// Provides operations to call the getAllSites method. /// - public class GetAllSitesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllSitesRequestBuilder : BaseCliRequestBuilder { /// /// List sites across geographies in an organization. This API can also be used to enumerate all sites in a non-multi-geo tenant. For more information, see Best practices for discovering files and detecting changes at scale. @@ -124,14 +127,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 GetAllSitesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/getAllSites(){?%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 GetAllSitesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/getAllSites(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -144,11 +147,11 @@ public GetAllSitesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -159,7 +162,8 @@ public RequestInformation ToGetRequestInformation(Action /// List sites across geographies in an organization. This API can also be used to enumerate all sites in a non-multi-geo tenant. For more information, see Best practices for discovering files and detecting changes at scale. /// - public class GetAllSitesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllSitesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class GetAllSitesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs index 1951719d9b..9a45bad9fc 100644 --- a/src/generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Analytics/AllTime/AllTimeRequestBuilder.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.Groups.Item.Sites.Item.Analytics.AllTime /// /// Provides operations to manage the allTime property of the microsoft.graph.itemAnalytics entity. /// - public class AllTimeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllTimeRequestBuilder : BaseCliRequestBuilder { /// /// Get allTime from groups @@ -80,14 +83,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 AllTimeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/allTime{?%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 AllTimeRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/allTime{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public AllTimeRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get allTime from groups /// - public class AllTimeRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllTimeRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class AllTimeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.cs index 4bf9332e44..3ac0892bad 100644 --- a/src/generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Analytics/AnalyticsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Analytics.AllTime; using ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats; using ApiSdk.Groups.Item.Sites.Item.Analytics.LastSevenDays; 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.Groups.Item.Sites.Item.Analytics /// /// Provides operations to manage the analytics property of the microsoft.graph.site entity. /// - public class AnalyticsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AnalyticsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the allTime property of the microsoft.graph.itemAnalytics entity. @@ -32,7 +35,7 @@ public Command BuildAllTimeNavCommand() { var command = new Command("all-time"); command.Description = "Provides operations to manage the allTime property of the microsoft.graph.itemAnalytics entity."; - var builder = new AllTimeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Analytics.AllTime.AllTimeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -148,7 +151,7 @@ public Command BuildItemActivityStatsNavCommand() { var command = new Command("item-activity-stats"); command.Description = "Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity."; - var builder = new ItemActivityStatsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.ItemActivityStatsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -175,7 +178,7 @@ public Command BuildLastSevenDaysNavCommand() { var command = new Command("last-seven-days"); command.Description = "Provides operations to manage the lastSevenDays property of the microsoft.graph.itemAnalytics entity."; - var builder = new LastSevenDaysRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Analytics.LastSevenDays.LastSevenDaysRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -219,8 +222,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(ItemAnalytics.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemAnalytics.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -242,14 +245,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 AnalyticsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics{?%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 AnalyticsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics{?%24expand,%24select}", rawUrl) @@ -281,11 +284,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); @@ -301,11 +304,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(ItemAnalytics body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemAnalytics body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ItemAnalytics body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemAnalytics body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -317,7 +320,8 @@ public RequestInformation ToPatchRequestInformation(ItemAnalytics body, Action /// Analytics about the view activities that took place on this site. /// - public class AnalyticsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AnalyticsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -342,3 +346,4 @@ public class AnalyticsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs index 7bee28f8d5..d12d7055db 100644 --- a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/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.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/$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}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs index d2545e9b80..fa52e0276d 100644 --- a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/ActivitiesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activities.Count; using ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activities.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.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activit /// /// Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. /// - public class ActivitiesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ActivitiesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ItemActivityItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activities.Item.ItemActivityItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDriveItemNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activities.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(ItemActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 ActivitiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities{?%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 ActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public ActivitiesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -273,11 +276,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(ItemActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ItemActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ItemActivity body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ItemActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(ItemActivity body, Action /// Exposes the itemActivities represented in this itemActivityStat resource. /// - public class ActivitiesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ActivitiesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class ActivitiesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs index 5493cefa75..b41a275ea1 100644 --- a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/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.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activit /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/$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}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs index 9179baec36..ceae0cb35c 100644 --- a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/Content/ContentRequestBuilder.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.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activit /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -205,14 +208,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content{?%24format*}", rawUrl) @@ -244,11 +247,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); @@ -281,7 +284,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs index 44c9cb7476..25036ccc81 100644 --- a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/DriveItem/DriveItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activities.Item.DriveItem.Content; 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.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activit /// /// Provides operations to manage the driveItem property of the microsoft.graph.itemActivity entity. /// - public class DriveItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activities.Item.DriveItem.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -112,14 +115,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 DriveItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem{?%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 DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem{?%24expand,%24select}", rawUrl) @@ -132,11 +135,11 @@ public DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -147,7 +150,8 @@ public RequestInformation ToGetRequestInformation(Action /// Exposes the driveItem that was the target of this activity. /// - public class DriveItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -172,3 +176,4 @@ public class DriveItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs index 471b166f36..8731d83a9d 100644 --- a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/Activities/Item/ItemActivityItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activities.Item.DriveItem; 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.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activit /// /// Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. /// - public class ItemActivityItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property activities for groups @@ -83,7 +86,7 @@ public Command BuildDriveItemNavCommand() { var command = new Command("drive-item"); command.Description = "Provides operations to manage the driveItem property of the microsoft.graph.itemActivity entity."; - var builder = new DriveItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activities.Item.DriveItem.DriveItemRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildContentNavCommand()); @@ -213,8 +216,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(ItemActivity.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemActivity.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -238,14 +241,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 ItemActivityItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%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 ItemActivityItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}{?%24expand,%24select}", rawUrl) @@ -277,11 +280,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); @@ -297,11 +300,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(ItemActivity body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemActivity body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ItemActivity body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemActivity body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -313,7 +316,8 @@ public RequestInformation ToPatchRequestInformation(ItemActivity body, Action /// Exposes the itemActivities represented in this itemActivityStat resource. /// - public class ItemActivityItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -338,3 +342,4 @@ public class ItemActivityItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs index 7a6a5120e1..a5230a140e 100644 --- a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/Item/ItemActivityStatItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activities; 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.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item /// /// Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. /// - public class ItemActivityStatItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityStatItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. @@ -30,7 +33,7 @@ public Command BuildActivitiesNavCommand() { var command = new Command("activities"); command.Description = "Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity."; - var builder = new ActivitiesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.Activities.ActivitiesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -200,8 +203,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(ItemActivityStat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,14 +227,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 ItemActivityStatItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%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 ItemActivityStatItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}{?%24expand,%24select}", rawUrl) @@ -263,11 +266,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); @@ -283,11 +286,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(ItemActivityStat body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemActivityStat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ItemActivityStat body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemActivityStat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPatchRequestInformation(ItemActivityStat body, Actio /// /// Get itemActivityStats from groups /// - public class ItemActivityStatItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityStatItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -324,3 +328,4 @@ public class ItemActivityStatItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs index 2476c26141..db879586bc 100644 --- a/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Analytics/ItemActivityStats/ItemActivityStatsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Count; using ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.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.Groups.Item.Sites.Item.Analytics.ItemActivityStats /// /// Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. /// - public class ItemActivityStatsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityStatsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ItemActivityStatItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Item.ItemActivityStatItemRequestBuilder(PathParameters); commands.Add(builder.BuildActivitiesNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Analytics.ItemActivityStats.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(ItemActivityStat.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 ItemActivityStatsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats{?%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 ItemActivityStatsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/itemActivityStats{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public ItemActivityStatsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/ /// 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); @@ -261,11 +264,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(ItemActivityStat body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ItemActivityStat body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ItemActivityStat body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ItemActivityStat body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ItemActivityStat body, Action /// /// Get itemActivityStats from groups /// - public class ItemActivityStatsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemActivityStatsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class ItemActivityStatsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs index 24c8830245..1185776222 100644 --- a/src/generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Analytics/LastSevenDays/LastSevenDaysRequestBuilder.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.Groups.Item.Sites.Item.Analytics.LastSevenDays /// /// Provides operations to manage the lastSevenDays property of the microsoft.graph.itemAnalytics entity. /// - public class LastSevenDaysRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastSevenDaysRequestBuilder : BaseCliRequestBuilder { /// /// Get lastSevenDays from groups @@ -80,14 +83,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 LastSevenDaysRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/lastSevenDays{?%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 LastSevenDaysRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/analytics/lastSevenDays{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public LastSevenDaysRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get lastSevenDays from groups /// - public class LastSevenDaysRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastSevenDaysRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class LastSevenDaysRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs index edc30b22b7..a0716a423f 100644 --- a/src/generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Columns/ColumnsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Columns.Count; using ApiSdk.Groups.Item.Sites.Item.Columns.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.Groups.Item.Sites.Item.Columns /// /// Provides operations to manage the columns property of the microsoft.graph.site entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columns property of the microsoft.graph.site entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ColumnDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Columns.Item.ColumnDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Columns.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -261,11 +264,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(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action /// /// The collection of column definitions reusable across lists under this site. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Columns/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Columns/Count/CountRequestBuilder.cs index 06c6feeb2d..dbcc944c3b 100644 --- a/src/generated/Groups/Item/Sites/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Columns/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.Groups.Item.Sites.Item.Columns.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns/$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}/groups/{group%2Did}/sites/{site%2Did}/columns/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index a5fe74acf2..219f2f94c6 100644 --- a/src/generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Columns.Item.SourceColumn; 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.Groups.Item.Sites.Item.Columns.Item /// /// Provides operations to manage the columns property of the microsoft.graph.site entity. /// - public class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property columns for groups @@ -173,8 +176,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildSourceColumnNavCommand() { var command = new Command("source-column"); command.Description = "Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity."; - var builder = new SourceColumnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Columns.Item.SourceColumn.SourceColumnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -214,14 +217,14 @@ public Command BuildSourceColumnNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ColumnDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns/{columnDefinition%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 ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio /// /// The collection of column definitions reusable across lists under this site. /// - public class ColumnDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class ColumnDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index 13a6c60d1a..6d3e53fd69 100644 --- a/src/generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.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.Groups.Item.Sites.Item.Columns.Item.SourceColumn /// /// Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. /// - public class SourceColumnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilder : BaseCliRequestBuilder { /// /// The source column for the content type column. @@ -86,14 +89,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 SourceColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%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 SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The source column for the content type column. /// - public class SourceColumnRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class SourceColumnRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs index da55426fef..e3e11c59e6 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopy { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddCopyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddCopyPostRequestBody : 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. @@ -21,7 +23,7 @@ public class AddCopyPostRequestBody : IAdditionalDataHolder, IParsable public string ContentType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddCopyPostRequestBody() { @@ -30,12 +32,12 @@ public AddCopyPostRequestBody() /// /// 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 AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopy.AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddCopyPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopy.AddCopyPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index 3232a9b13c..d9b116629e 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.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.Groups.Item.Sites.Item.ContentTypes.AddCopy /// /// Provides operations to call the addCopy method. /// - public class AddCopyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddCopyRequestBuilder : BaseCliRequestBuilder { /// /// Add a copy of a content type from a site to a list. @@ -57,8 +60,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(AddCopyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopy.AddCopyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 AddCopyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/addCopy", 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 AddCopyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/addCopy", rawUrl) @@ -101,11 +104,11 @@ public AddCopyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(AddCopyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopy.AddCopyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopy.AddCopyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs index 1f6d07b938..1a4fe5d3a3 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopyFromContentTypeHub { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddCopyFromContentTypeHubPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddCopyFromContentTypeHubPostRequestBody : 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. @@ -21,7 +23,7 @@ public class AddCopyFromContentTypeHubPostRequestBody : IAdditionalDataHolder, I public string ContentTypeId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddCopyFromContentTypeHubPostRequestBody() { @@ -30,12 +32,12 @@ public AddCopyFromContentTypeHubPostRequestBody() /// /// 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 AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddCopyFromContentTypeHubPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index 3e99029bb4..1297eb9c64 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.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.Groups.Item.Sites.Item.ContentTypes.AddCopyFromContentTypeHub /// /// Provides operations to call the addCopyFromContentTypeHub method. /// - public class AddCopyFromContentTypeHubRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddCopyFromContentTypeHubRequestBuilder : BaseCliRequestBuilder { /// /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. @@ -57,8 +60,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(AddCopyFromContentTypeHubPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 AddCopyFromContentTypeHubRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/addCopyFromContentTypeHub", 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 AddCopyFromContentTypeHubRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/addCopyFromContentTypeHub", rawUrl) @@ -101,11 +104,11 @@ public AddCopyFromContentTypeHubRequestBuilder(string rawUrl) : base("{+baseurl} /// 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(AddCopyFromContentTypeHubPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPost } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs index fa4d67fe01..441d9d5700 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/ContentTypesRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopy; using ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopyFromContentTypeHub; using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Count; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Sites.Item.ContentTypes.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; @@ -24,7 +26,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.ContentTypes /// /// Provides operations to manage the contentTypes property of the microsoft.graph.site entity. /// - public class ContentTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the addCopyFromContentTypeHub method. @@ -34,7 +37,7 @@ public Command BuildAddCopyFromContentTypeHubNavCommand() { var command = new Command("add-copy-from-content-type-hub"); command.Description = "Provides operations to call the addCopyFromContentTypeHub method."; - var builder = new AddCopyFromContentTypeHubRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildAddCopyNavCommand() { var command = new Command("add-copy"); command.Description = "Provides operations to call the addCopy method."; - var builder = new AddCopyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.AddCopy.AddCopyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -68,7 +71,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ContentTypeItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.ContentTypeItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssociateWithHubSitesNavCommand()); commands.Add(builder.BuildBaseNavCommand()); commands.Add(builder.BuildBaseTypesNavCommand()); @@ -92,7 +95,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.Groups.Item.Sites.Item.ContentTypes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,8 +139,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(ContentType.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -166,7 +169,7 @@ public Command BuildGetCompatibleHubContentTypesNavCommand() { var command = new Command("get-compatible-hub-content-types"); command.Description = "Provides operations to call the getCompatibleHubContentTypes method."; - var builder = new GetCompatibleHubContentTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.GetCompatibleHubContentTypes.GetCompatibleHubContentTypesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -284,14 +287,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 ContentTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes{?%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 ContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -304,11 +307,11 @@ public ContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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); @@ -324,11 +327,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(ContentType body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ContentType body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ContentType body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ContentType body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -340,7 +343,8 @@ public RequestInformation ToPostRequestInformation(ContentType body, Action /// The collection of content types defined for this site. /// - public class ContentTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -404,3 +408,4 @@ public class ContentTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Count/CountRequestBuilder.cs index 9e93617bfa..8be0c6be4f 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/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.Groups.Item.Sites.Item.ContentTypes.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/$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}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs index 848db7b8ba..9bf30a138f 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.ContentTypes.GetCompatibleHubContentTypes { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetCompatibleHubContentTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetCompatibleHubContentTypesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.GetCompatibleHubContentTypes.GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetCompatibleHubContentTypesGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.GetCompatibleHubContentTypes.GetCompatibleHubContentTypesGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index ed7095d4c6..cdc3aa3479 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.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.Groups.Item.Sites.Item.ContentTypes.GetCompatibleHubContentType /// /// Provides operations to call the getCompatibleHubContentTypes method. /// - public class GetCompatibleHubContentTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetCompatibleHubContentTypesRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. @@ -130,14 +133,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 GetCompatibleHubContentTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/getCompatibleHubContentTypes(){?%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 GetCompatibleHubContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/getCompatibleHubContentTypes(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -150,11 +153,11 @@ public GetCompatibleHubContentTypesRequestBuilder(string rawUrl) : base("{+baseu /// 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); @@ -165,7 +168,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. /// - public class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs index 24ca3b1f2b..326d0c89c0 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.AssociateWithHubSites { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssociateWithHubSitesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssociateWithHubSitesPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AssociateWithHubSitesPostRequestBody : IAdditionalDataHolder, IPars /// The propagateToExistingLists property public bool? PropagateToExistingLists { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssociateWithHubSitesPostRequestBody() { @@ -32,12 +34,12 @@ public AssociateWithHubSitesPostRequestBody() /// /// 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 AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssociateWithHubSitesPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody(); } /// /// The deserialization information for the current model @@ -47,7 +49,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "propagateToExistingLists", n => { PropagateToExistingLists = n.GetBoolValue(); } }, }; } @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 0879926069..eba6adefd4 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.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.Groups.Item.Sites.Item.ContentTypes.Item.AssociateWithHubSites /// /// Provides operations to call the associateWithHubSites method. /// - public class AssociateWithHubSitesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssociateWithHubSitesRequestBuilder : BaseCliRequestBuilder { /// /// Associate a published content type present in a content type hub with a list of hub sites. @@ -53,8 +56,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(AssociateWithHubSitesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 AssociateWithHubSitesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites", 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 AssociateWithHubSitesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites", rawUrl) @@ -96,11 +99,11 @@ public AssociateWithHubSitesRequestBuilder(string rawUrl) : base("{+baseurl}/gro /// 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(AssociateWithHubSitesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequ } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs index 61ff974970..07f47a2f61 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.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.Groups.Item.Sites.Item.ContentTypes.Item.Base /// /// Provides operations to manage the base property of the microsoft.graph.contentType entity. /// - public class BaseRequestBuilderEscaped : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseRequestBuilderEscaped : BaseCliRequestBuilder { /// /// Parent contentType from which this content type is derived. @@ -86,14 +89,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 BaseRequestBuilderEscaped(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/base{?%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 BaseRequestBuilderEscaped(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/base{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public BaseRequestBuilderEscaped(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// Parent contentType from which this content type is derived. /// - public class BaseRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class BaseRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs index 92cf45817e..daec6f6d0e 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.BaseTypes.Count; using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.BaseTypes.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.Groups.Item.Sites.Item.ContentTypes.Item.BaseTypes /// /// Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. /// - public class BaseTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseTypesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. @@ -30,7 +33,7 @@ public class BaseTypesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.BaseTypes.Item.ContentTypeItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.BaseTypes.Item.ContentTypeItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Sites.Item.ContentTypes.Item.BaseTypes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -166,14 +169,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 BaseTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes{?%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 BaseTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -186,11 +189,11 @@ public BaseTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -201,7 +204,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of content types that are ancestors of this content type. /// - public class BaseTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -265,3 +269,4 @@ public class BaseTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs index f5dc2852fa..a4e31d882f 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/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.Groups.Item.Sites.Item.ContentTypes.Item.BaseTypes.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes/$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}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs index 78e703a399..104532ef3d 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.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.Groups.Item.Sites.Item.ContentTypes.Item.BaseTypes.Item /// /// Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. /// - public class ContentTypeItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilder : BaseCliRequestBuilder { /// /// The collection of content types that are ancestors of this content type. @@ -92,14 +95,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 ContentTypeItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public ContentTypeItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ContentTypeItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of content types that are ancestors of this content type. /// - public class ContentTypeItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ContentTypeItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs index 161c6d0141..dc9898d84e 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.ColumnLinks.Count; using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.ColumnLinks.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.Groups.Item.Sites.Item.ContentTypes.Item.ColumnLinks /// /// Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. /// - public class ColumnLinksRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinksRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. @@ -30,7 +33,7 @@ public class ColumnLinksRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ColumnLinkItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.ColumnLinks.Item.ColumnLinkItemRequestBuilder(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.Groups.Item.Sites.Item.ContentTypes.Item.ColumnLinks.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(ColumnLink.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnLink.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -231,14 +234,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 ColumnLinksRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks{?%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 ColumnLinksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -251,11 +254,11 @@ public ColumnLinksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -271,11 +274,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(ColumnLink body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnLink body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnLink body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnLink body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,7 +290,8 @@ public RequestInformation ToPostRequestInformation(ColumnLink body, Action /// The collection of columns that are required by this content type. /// - public class ColumnLinksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinksRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -351,3 +355,4 @@ public class ColumnLinksRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs index 9260e01223..c24f5c6a60 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/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.Groups.Item.Sites.Item.ContentTypes.Item.ColumnLinks.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks/$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}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs index 1aae889f50..6939ccac77 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.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.Groups.Item.Sites.Item.ContentTypes.Item.ColumnLinks.Item /// /// Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. /// - public class ColumnLinkItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinkItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property columnLinks for groups @@ -189,8 +192,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(ColumnLink.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnLink.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 ColumnLinkItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks/{columnLink%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 ColumnLinkItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(ColumnLink body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnLink body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ColumnLink body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnLink body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(ColumnLink body, Action /// The collection of columns that are required by this content type. /// - public class ColumnLinkItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinkItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class ColumnLinkItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs index 82b6521bb4..a4c3f6cdab 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.ColumnPositions.Count; using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.ColumnPositions.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.Groups.Item.Sites.Item.ContentTypes.Item.ColumnPositions /// /// Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. /// - public class ColumnPositionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnPositionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. @@ -30,7 +33,7 @@ public class ColumnPositionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ColumnDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.ColumnPositions.Item.ColumnDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Sites.Item.ContentTypes.Item.ColumnPositions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -166,14 +169,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 ColumnPositionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions{?%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 ColumnPositionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -186,11 +189,11 @@ public ColumnPositionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -201,7 +204,8 @@ public RequestInformation ToGetRequestInformation(Action /// Column order information in a content type. /// - public class ColumnPositionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnPositionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -265,3 +269,4 @@ public class ColumnPositionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs index c314ee60f1..baa68ff570 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/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.Groups.Item.Sites.Item.ContentTypes.Item.ColumnPositions.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions/$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}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs index 9d1945a70f..073eea0399 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.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.Groups.Item.Sites.Item.ContentTypes.Item.ColumnPositions.Item /// /// Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. /// - public class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Column order information in a content type. @@ -92,14 +95,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 ColumnDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%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 ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/grou /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// Column order information in a content type. /// - public class ColumnDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ColumnDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index 5f9b90bb6a..76ad370f4d 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.Columns.Count; using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.Columns.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.Groups.Item.Sites.Item.ContentTypes.Item.Columns /// /// Provides operations to manage the columns property of the microsoft.graph.contentType entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columns property of the microsoft.graph.contentType entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ColumnDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.Columns.Item.ColumnDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.ContentTypes.Item.Columns.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -273,11 +276,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(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action /// /// The collection of column definitions for this content type. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs index 81304c6926..33a4c58b1d 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/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.Groups.Item.Sites.Item.ContentTypes.Item.Columns.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/$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}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 1499904106..002c6b2e21 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.Columns.Item.SourceColumn; 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.Groups.Item.Sites.Item.ContentTypes.Item.Columns.Item /// /// Provides operations to manage the columns property of the microsoft.graph.contentType entity. /// - public class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property columns for groups @@ -190,8 +193,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildSourceColumnNavCommand() { var command = new Command("source-column"); command.Description = "Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity."; - var builder = new SourceColumnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.Columns.Item.SourceColumn.SourceColumnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildSourceColumnNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ColumnDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%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 ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio /// /// The collection of column definitions for this content type. /// - public class ColumnDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class ColumnDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index 4bb43a80d8..4066b30482 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.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.Groups.Item.Sites.Item.ContentTypes.Item.Columns.Item.SourceCol /// /// Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. /// - public class SourceColumnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilder : BaseCliRequestBuilder { /// /// The source column for the content type column. @@ -92,14 +95,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 SourceColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%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 SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The source column for the content type column. /// - public class SourceColumnRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class SourceColumnRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs index 4025a1ea48..d04d678a81 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.AssociateWithHubSites; using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.Base; using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.BaseTypes; @@ -11,6 +12,7 @@ using ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.Unpublish; 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; @@ -29,7 +31,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item /// /// Provides operations to manage the contentTypes property of the microsoft.graph.site entity. /// - public class ContentTypeItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the associateWithHubSites method. @@ -39,7 +42,7 @@ public Command BuildAssociateWithHubSitesNavCommand() { var command = new Command("associate-with-hub-sites"); command.Description = "Provides operations to call the associateWithHubSites method."; - var builder = new AssociateWithHubSitesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -56,7 +59,7 @@ public Command BuildBaseNavCommand() { var command = new Command("base"); command.Description = "Provides operations to manage the base property of the microsoft.graph.contentType entity."; - var builder = new BaseRequestBuilderEscaped(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.Base.BaseRequestBuilderEscaped(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -73,7 +76,7 @@ public Command BuildBaseTypesNavCommand() { var command = new Command("base-types"); command.Description = "Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity."; - var builder = new BaseTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.BaseTypes.BaseTypesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildColumnLinksNavCommand() { var command = new Command("column-links"); command.Description = "Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity."; - var builder = new ColumnLinksRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.ColumnLinks.ColumnLinksRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -126,7 +129,7 @@ public Command BuildColumnPositionsNavCommand() { var command = new Command("column-positions"); command.Description = "Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity."; - var builder = new ColumnPositionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.ColumnPositions.ColumnPositionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -152,7 +155,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.contentType entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -179,7 +182,7 @@ public Command BuildCopyToDefaultContentLocationNavCommand() { var command = new Command("copy-to-default-content-location"); command.Description = "Provides operations to call the copyToDefaultContentLocation method."; - var builder = new CopyToDefaultContentLocationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -307,7 +310,7 @@ public Command BuildIsPublishedNavCommand() { var command = new Command("is-published"); command.Description = "Provides operations to call the isPublished method."; - var builder = new IsPublishedRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.IsPublished.IsPublishedRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -356,8 +359,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(ContentType.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -387,7 +390,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.Groups.Item.Sites.Item.ContentTypes.Item.Publish.PublishRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -404,7 +407,7 @@ public Command BuildUnpublishNavCommand() { var command = new Command("unpublish"); command.Description = "Provides operations to call the unpublish method."; - var builder = new UnpublishRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.Unpublish.UnpublishRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -414,14 +417,14 @@ public Command BuildUnpublishNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentTypeItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%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 ContentTypeItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}{?%24expand,%24select}", rawUrl) @@ -453,11 +456,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); @@ -473,11 +476,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(ContentType body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ContentType body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ContentType body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ContentType body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -489,7 +492,8 @@ public RequestInformation ToPatchRequestInformation(ContentType body, Action /// The collection of content types defined for this site. /// - public class ContentTypeItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -514,3 +518,4 @@ public class ContentTypeItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs index 4df57b46a6..52a1ca92eb 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.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.Groups.Item.Sites.Item.ContentTypes.Item.CopyToDefaultContentLocation { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToDefaultContentLocationPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToDefaultContentLocationPostRequestBody : 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,13 +26,13 @@ public class CopyToDefaultContentLocationPostRequestBody : IAdditionalDataHolder /// The sourceFile property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ItemReference? SourceFile { get; set; } + public global::ApiSdk.Models.ItemReference? SourceFile { get; set; } #nullable restore #else - public ItemReference SourceFile { get; set; } + public global::ApiSdk.Models.ItemReference SourceFile { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToDefaultContentLocationPostRequestBody() { @@ -39,12 +41,12 @@ public CopyToDefaultContentLocationPostRequestBody() /// /// 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 CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToDefaultContentLocationPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "destinationFileName", n => { DestinationFileName = n.GetStringValue(); } }, - { "sourceFile", n => { SourceFile = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, + { "sourceFile", n => { SourceFile = n.GetObjectValue(global::ApiSdk.Models.ItemReference.CreateFromDiscriminatorValue); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("destinationFileName", DestinationFileName); - writer.WriteObjectValue("sourceFile", SourceFile); + writer.WriteObjectValue("sourceFile", SourceFile); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index 4d8f8ddfeb..32f0388cf7 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.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.Groups.Item.Sites.Item.ContentTypes.Item.CopyToDefaultContentLo /// /// Provides operations to call the copyToDefaultContentLocation method. /// - public class CopyToDefaultContentLocationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToDefaultContentLocationRequestBuilder : BaseCliRequestBuilder { /// /// Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. @@ -53,8 +56,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(CopyToDefaultContentLocationPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 CopyToDefaultContentLocationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", 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 CopyToDefaultContentLocationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", rawUrl) @@ -96,11 +99,11 @@ public CopyToDefaultContentLocationRequestBuilder(string rawUrl) : base("{+baseu /// 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(CopyToDefaultContentLocationPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationP } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs index 0f8047d69a..d80c135f93 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.IsPublished { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsPublishedGetResponse : IAdditionalDataHolder, IParsable + public partial class IsPublishedGetResponse : 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. @@ -15,7 +17,7 @@ public class IsPublishedGetResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsPublishedGetResponse() { @@ -24,12 +26,12 @@ public IsPublishedGetResponse() /// /// 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 IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.IsPublished.IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsPublishedGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.IsPublished.IsPublishedGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index 0a24a307c4..d6c0a40262 100644 --- a/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.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.Groups.Item.Sites.Item.ContentTypes.Item.IsPublished /// /// Provides operations to call the isPublished method. /// - public class IsPublishedRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsPublishedRequestBuilder : BaseCliRequestBuilder { /// /// Check the publishing status of a contentType in a content type hub site. @@ -72,14 +75,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 IsPublishedRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/isPublished()", 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 IsPublishedRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/isPublished()", rawUrl) @@ -106,3 +109,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.ContentTypes.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 { /// /// Publishes a contentType present in the content type hub site. @@ -62,14 +65,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}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%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}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/publish", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.ContentTypes.Item.Unpublish /// /// Provides operations to call the unpublish method. /// - public class UnpublishRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnpublishRequestBuilder : BaseCliRequestBuilder { /// /// Unpublish a contentType from a content type hub site. @@ -62,14 +65,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 UnpublishRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/unpublish", 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 UnpublishRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentTypes/{contentType%2Did}/unpublish", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.CreatedByUser.MailboxSettings; using ApiSdk.Groups.Item.Sites.Item.CreatedByUser.ServiceProvisioningErrors; 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.Groups.Item.Sites.Item.CreatedByUser /// /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. /// - public class CreatedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who created the item. Read-only. @@ -89,7 +92,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.CreatedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -107,7 +110,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.CreatedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -123,14 +126,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CreatedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser{?%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 CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who created the item. Read-only. /// - public class CreatedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class CreatedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 1f077be926..b9f82859ab 100644 --- a/src/generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Groups.Item.Sites.Item.CreatedByUser.MailboxSettings /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\createdByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -114,8 +117,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -137,14 +140,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -157,11 +160,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -177,11 +180,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -193,7 +196,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -218,3 +222,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 4735d0dad3..d72156bafb 100644 --- a/src/generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/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.Groups.Item.Sites.Item.CreatedByUser.ServiceProvisioningErrors. /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors/$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}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 78debd9c9b..457a8e410e 100644 --- a/src/generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.CreatedByUser.ServiceProvisioningErrors.Count; 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.Groups.Item.Sites.Item.CreatedByUser.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\createdByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Sites.Item.CreatedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -148,31 +151,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -181,9 +184,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -247,3 +251,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.cs index 01a639a417..bdb83d8fa0 100644 --- a/src/generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.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.Groups.Item.Sites.Item.Drive /// /// Provides operations to manage the drive property of the microsoft.graph.site entity. /// - public class DriveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveRequestBuilder : BaseCliRequestBuilder { /// /// The default drive (document library) for this site. @@ -80,14 +83,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 DriveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drive{?%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 DriveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drive{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public DriveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The default drive (document library) for this site. /// - public class DriveRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class DriveRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Drives/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Drives/Count/CountRequestBuilder.cs index 6534b48690..1089071af1 100644 --- a/src/generated/Groups/Item/Sites/Item/Drives/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Drives/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.Groups.Item.Sites.Item.Drives.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives/$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}/groups/{group%2Did}/sites/{site%2Did}/drives/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs index 35087227d3..e4b2550772 100644 --- a/src/generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Drives.Count; using ApiSdk.Groups.Item.Sites.Item.Drives.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.Groups.Item.Sites.Item.Drives /// /// Provides operations to manage the drives property of the microsoft.graph.site entity. /// - public class DrivesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DrivesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the drives property of the microsoft.graph.site entity. @@ -30,7 +33,7 @@ public class DrivesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new DriveItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Drives.Item.DriveItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Sites.Item.Drives.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -160,14 +163,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 DrivesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives{?%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 DrivesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -180,11 +183,11 @@ public DrivesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -195,7 +198,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of drives (document libraries) under this site. /// - public class DrivesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DrivesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -259,3 +263,4 @@ public class DrivesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.cs index ef46b130e9..06eaeaf8e0 100644 --- a/src/generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Drives/Item/DriveItemRequestBuilder.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.Groups.Item.Sites.Item.Drives.Item /// /// Provides operations to manage the drives property of the microsoft.graph.site entity. /// - public class DriveItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilder : BaseCliRequestBuilder { /// /// The collection of drives (document libraries) under this site. @@ -86,14 +89,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 DriveItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives/{drive%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 DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives/{drive%2Did}{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of drives (document libraries) under this site. /// - public class DriveItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class DriveItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ExternalColumns/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ExternalColumns/Count/CountRequestBuilder.cs index d345885941..d48b30ea3d 100644 --- a/src/generated/Groups/Item/Sites/Item/ExternalColumns/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ExternalColumns/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.Groups.Item.Sites.Item.ExternalColumns.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/externalColumns/$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}/groups/{group%2Did}/sites/{site%2Did}/externalColumns/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs index 3ac6c9a2cd..82f8b03c61 100644 --- a/src/generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ExternalColumns/ExternalColumnsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.ExternalColumns.Count; using ApiSdk.Groups.Item.Sites.Item.ExternalColumns.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.Groups.Item.Sites.Item.ExternalColumns /// /// Provides operations to manage the externalColumns property of the microsoft.graph.site entity. /// - public class ExternalColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the externalColumns property of the microsoft.graph.site entity. @@ -30,7 +33,7 @@ public class ExternalColumnsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ColumnDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ExternalColumns.Item.ColumnDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Sites.Item.ExternalColumns.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -160,14 +163,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 ExternalColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/externalColumns{?%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 ExternalColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -180,11 +183,11 @@ public ExternalColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -195,7 +198,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get externalColumns from groups /// - public class ExternalColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -259,3 +263,4 @@ public class ExternalColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.cs index f54572fddf..5849f405dd 100644 --- a/src/generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/ExternalColumns/Item/ColumnDefinitionItemRequestBuilder.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.Groups.Item.Sites.Item.ExternalColumns.Item /// /// Provides operations to manage the externalColumns property of the microsoft.graph.site entity. /// - public class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Get externalColumns from groups @@ -86,14 +89,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 ColumnDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/externalColumns/{columnDefinition%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 ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/externalColumns/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/grou /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get externalColumns from groups /// - public class ColumnDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ColumnDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs index 783e0a83bd..daa65ee7ce 100644 --- a/src/generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.GetActivitiesByInterval { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetActivitiesByIntervalGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.GetActivitiesByInterval.GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetActivitiesByIntervalGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.GetActivitiesByInterval.GetActivitiesByIntervalGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index 04c5d015c9..aa9aaeb1be 100644 --- a/src/generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.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.Groups.Item.Sites.Item.GetActivitiesByInterval /// /// Provides operations to call the getActivitiesByInterval method. /// - public class GetActivitiesByIntervalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function getActivitiesByInterval @@ -129,14 +132,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 GetActivitiesByIntervalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getActivitiesByInterval(){?%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 GetActivitiesByIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -149,11 +152,11 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/g /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function getActivitiesByInterval /// - public class GetActivitiesByIntervalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -228,3 +232,4 @@ public class GetActivitiesByIntervalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index dcf6eccf45..f4c6863987 100644 --- a/src/generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 583f426056..b2b58807c5 100644 --- a/src/generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.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.Groups.Item.Sites.Item.GetActivitiesByIntervalWithStartDateTime /// /// Provides operations to call the getActivitiesByInterval method. /// - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function getActivitiesByInterval @@ -147,14 +150,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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -167,11 +170,11 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// 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); @@ -182,7 +185,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function getActivitiesByInterval /// - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -246,3 +250,4 @@ public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs b/src/generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs index cb9f9afd8f..d5589c6496 100644 --- a/src/generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.GetApplicableContentTypesForListWithListId { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetApplicableContentTypesForListWithListIdGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetApplicableContentTypesForListWithListIdGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetApplicableContentTypesForListWithListIdGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.GetApplicableContentTypesForListWithListId.GetApplicableContentTypesForListWithListIdGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetApplicableContentTypesForListWithListIdGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.GetApplicableContentTypesForListWithListId.GetApplicableContentTypesForListWithListIdGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs index a7b54eef71..25c0b0e2e7 100644 --- a/src/generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.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.Groups.Item.Sites.Item.GetApplicableContentTypesForListWithList /// /// Provides operations to call the getApplicableContentTypesForList method. /// - public class GetApplicableContentTypesForListWithListIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetApplicableContentTypesForListWithListIdRequestBuilder : BaseCliRequestBuilder { /// /// Get site contentTypes that can be added to a list. @@ -136,14 +139,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 GetApplicableContentTypesForListWithListIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getApplicableContentTypesForList(listId='{listId}'){?%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 GetApplicableContentTypesForListWithListIdRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getApplicableContentTypesForList(listId='{listId}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GetApplicableContentTypesForListWithListIdRequestBuilder(string rawUrl) : /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get site contentTypes that can be added to a list. /// - public class GetApplicableContentTypesForListWithListIdRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetApplicableContentTypesForListWithListIdRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GetApplicableContentTypesForListWithListIdRequestBuilderGetQueryPar } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Analytics/AnalyticsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Analytics/AnalyticsRequestBuilder.cs index bee1f03bbe..5341beaaae 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Analytics/AnalyticsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Analytics/AnalyticsRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.Analytics /// /// Provides operations to manage the analytics property of the microsoft.graph.site entity. /// - public class AnalyticsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AnalyticsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property analytics for groups @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ItemAnalytics.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ItemAnalytics.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public AnalyticsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/analytics{?%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 AnalyticsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/analytics{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ItemAnalytics body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemAnalytics body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ItemAnalytics body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ItemAnalytics body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(ItemAnalytics body, Action /// Analytics about the view activities that took place on this site. /// - public class AnalyticsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AnalyticsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class AnalyticsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Columns/ColumnsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Columns/ColumnsRequestBuilder.cs index 7a4642d57a..008458aa73 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Columns/ColumnsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Columns/ColumnsRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.Columns /// /// Provides operations to manage the columns property of the microsoft.graph.site entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// /// The collection of column definitions reusable across lists under this site. @@ -175,8 +178,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -239,11 +242,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(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action /// /// The collection of column definitions reusable across lists under this site. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/ContentTypes/ContentTypesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/ContentTypes/ContentTypesRequestBuilder.cs index 41ad0b5991..addb5e5c89 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/ContentTypes/ContentTypesRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.ContentTypes /// /// Provides operations to manage the contentTypes property of the microsoft.graph.site entity. /// - public class ContentTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypesRequestBuilder : BaseCliRequestBuilder { /// /// The collection of content types defined for this site. @@ -175,8 +178,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(ContentType.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 ContentTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/contentTypes{?%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 ContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public ContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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); @@ -239,11 +242,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(ContentType body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ContentType body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ContentType body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ContentType body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(ContentType body, Action /// The collection of content types defined for this site. /// - public class ContentTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class ContentTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/CreatedByUser/CreatedByUserRequestBuilder.cs index 53e1f1c180..e3e85f61c7 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/CreatedByUser/CreatedByUserRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.CreatedByUser /// /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. /// - public class CreatedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who created the item. Read-only. @@ -86,14 +89,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 CreatedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/createdByUser{?%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 CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/createdByUser{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who created the item. Read-only. /// - public class CreatedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class CreatedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Drive/DriveRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Drive/DriveRequestBuilder.cs index 376e5474d0..1653808cce 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Drive/DriveRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Drive/DriveRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.Drive /// /// Provides operations to manage the drive property of the microsoft.graph.site entity. /// - public class DriveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveRequestBuilder : BaseCliRequestBuilder { /// /// The default drive (document library) for this site. @@ -86,14 +89,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 DriveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/drive{?%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 DriveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/drive{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public DriveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The default drive (document library) for this site. /// - public class DriveRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class DriveRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Drives/DrivesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Drives/DrivesRequestBuilder.cs index 0e0c9b78c6..e857e8493a 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Drives/DrivesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Drives/DrivesRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.Drives /// /// Provides operations to manage the drives property of the microsoft.graph.site entity. /// - public class DrivesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DrivesRequestBuilder : BaseCliRequestBuilder { /// /// The collection of drives (document libraries) under this site. @@ -136,14 +139,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 DrivesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/drives{?%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 DrivesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public DrivesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of drives (document libraries) under this site. /// - public class DrivesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DrivesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class DrivesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/ExternalColumns/ExternalColumnsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/ExternalColumns/ExternalColumnsRequestBuilder.cs index 548b2b88d4..591c7681b6 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/ExternalColumns/ExternalColumnsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/ExternalColumns/ExternalColumnsRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.ExternalColumns /// /// Provides operations to manage the externalColumns property of the microsoft.graph.site entity. /// - public class ExternalColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Get externalColumns from groups @@ -136,14 +139,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 ExternalColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/externalColumns{?%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 ExternalColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public ExternalColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get externalColumns from groups /// - public class ExternalColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class ExternalColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs index 2b4e010c7c..a8aecb669f 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByInterval { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetActivitiesByIntervalGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByInterval.GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetActivitiesByIntervalGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByInterval.GetActivitiesByIntervalGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index 30115d6a7d..ff102b3548 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByInterva /// /// Provides operations to call the getActivitiesByInterval method. /// - public class GetActivitiesByIntervalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function getActivitiesByInterval @@ -135,14 +138,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 GetActivitiesByIntervalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getActivitiesByInterval(){?%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 GetActivitiesByIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -155,11 +158,11 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/g /// 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); @@ -170,7 +173,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function getActivitiesByInterval /// - public class GetActivitiesByIntervalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -234,3 +238,4 @@ public class GetActivitiesByIntervalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index 77d66c2be3..bc30096424 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 7e2bf8c831..3b509ea897 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByInterva /// /// Provides operations to call the getActivitiesByInterval method. /// - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function getActivitiesByInterval @@ -153,14 +156,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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -173,11 +176,11 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// 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); @@ -188,7 +191,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function getActivitiesByInterval /// - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -252,3 +256,4 @@ public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs index 99b8c20f46..6bea09560f 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.GetByPathWithPath.GetApplicableContentTypesForListWithListId { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetApplicableContentTypesForListWithListIdGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetApplicableContentTypesForListWithListIdGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetApplicableContentTypesForListWithListIdGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetApplicableContentTypesForListWithListId.GetApplicableContentTypesForListWithListIdGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetApplicableContentTypesForListWithListIdGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetApplicableContentTypesForListWithListId.GetApplicableContentTypesForListWithListIdGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs index e06236915d..5df0b9e303 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetApplicableContentTypesForListWithListId/GetApplicableContentTypesForListWithListIdRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.GetApplicableContentTy /// /// Provides operations to call the getApplicableContentTypesForList method. /// - public class GetApplicableContentTypesForListWithListIdRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetApplicableContentTypesForListWithListIdRequestBuilder : BaseCliRequestBuilder { /// /// Get site contentTypes that can be added to a list. @@ -142,14 +145,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 GetApplicableContentTypesForListWithListIdRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getApplicableContentTypesForList(listId='{listId}'){?%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 GetApplicableContentTypesForListWithListIdRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getApplicableContentTypesForList(listId='{listId}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -162,11 +165,11 @@ public GetApplicableContentTypesForListWithListIdRequestBuilder(string rawUrl) : /// 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); @@ -177,7 +180,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get site contentTypes that can be added to a list. /// - public class GetApplicableContentTypesForListWithListIdRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetApplicableContentTypesForListWithListIdRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -241,3 +245,4 @@ public class GetApplicableContentTypesForListWithListIdRequestBuilderGetQueryPar } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Analytics/AnalyticsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Analytics/AnalyticsRequestBuilder.cs deleted file mode 100644 index d6e39aaec4..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Analytics/AnalyticsRequestBuilder.cs +++ /dev/null @@ -1,316 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Analytics -{ - /// - /// Provides operations to manage the analytics property of the microsoft.graph.site entity. - /// - public class AnalyticsRequestBuilder : BaseCliRequestBuilder - { - /// - /// Delete navigation property analytics for groups - /// - /// A - public Command BuildDeleteCommand() - { - var command = new Command("delete"); - command.Description = "Delete navigation property analytics for groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var ifMatchOption = new Option("--if-match", description: "ETag") { - Arity = ArgumentArity.ZeroOrMore - }; - ifMatchOption.IsRequired = false; - command.AddOption(ifMatchOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToDeleteRequestInformation(q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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; - } - /// - /// Analytics about the view activities that took place on this site. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "Analytics about the view activities that took place on this site."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 the navigation property analytics in groups - /// - /// A - public Command BuildPatchCommand() - { - var command = new Command("patch"); - command.Description = "Update the navigation property analytics in groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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 = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ItemAnalytics.CreateFromDiscriminatorValue); - if (model is null) { - Console.Error.WriteLine("No model data to send."); - return; - } - var requestInfo = ToPatchRequestInformation(model, q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 AnalyticsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public AnalyticsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", rawUrl) - { - } - /// - /// Delete navigation property analytics for groups - /// - /// 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; - } - /// - /// Analytics about the view activities that took place on this site. - /// - /// 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 the navigation property analytics in groups - /// - /// 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(ItemAnalytics body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(ItemAnalytics 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; - } - /// - /// Analytics about the view activities that took place on this site. - /// - public class AnalyticsRequestBuilderGetQueryParameters - { - /// 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 - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Columns/ColumnsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Columns/ColumnsRequestBuilder.cs deleted file mode 100644 index 78cae6d8c3..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Columns/ColumnsRequestBuilder.cs +++ /dev/null @@ -1,333 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Columns -{ - /// - /// Provides operations to manage the columns property of the microsoft.graph.site entity. - /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder - { - /// - /// The collection of column definitions reusable across lists under this site. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "The collection of column definitions reusable across lists under this site."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var topOption = new Option("--top", description: "Show only the first n items") { - }; - topOption.IsRequired = false; - command.AddOption(topOption); - var skipOption = new Option("--skip", description: "Skip the first n items") { - }; - skipOption.IsRequired = false; - command.AddOption(skipOption); - var searchOption = new Option("--search", description: "Search items by search phrases") { - }; - searchOption.IsRequired = false; - command.AddOption(searchOption); - var filterOption = new Option("--filter", description: "Filter items by property values") { - }; - filterOption.IsRequired = false; - command.AddOption(filterOption); - var countOption = new Option("--count", description: "Include count of items") { - }; - countOption.IsRequired = false; - command.AddOption(countOption); - var orderbyOption = new Option("--orderby", description: "Order items by property values") { - Arity = ArgumentArity.ZeroOrMore - }; - orderbyOption.IsRequired = false; - command.AddOption(orderbyOption); - var selectOption = new Option("--select", description: "Select properties to be returned") { - Arity = ArgumentArity.ZeroOrMore - }; - selectOption.IsRequired = false; - command.AddOption(selectOption); - var expandOption = new Option("--expand", description: "Expand related entities") { - Arity = ArgumentArity.ZeroOrMore - }; - expandOption.IsRequired = false; - command.AddOption(expandOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - var allOption = new Option("--all"); - command.AddOption(allOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var top = invocationContext.ParseResult.GetValueForOption(topOption); - var skip = invocationContext.ParseResult.GetValueForOption(skipOption); - var search = invocationContext.ParseResult.GetValueForOption(searchOption); - var filter = invocationContext.ParseResult.GetValueForOption(filterOption); - var count = invocationContext.ParseResult.GetValueForOption(countOption); - var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); - var select = invocationContext.ParseResult.GetValueForOption(selectOption); - var expand = invocationContext.ParseResult.GetValueForOption(expandOption); - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - var all = invocationContext.ParseResult.GetValueForOption(allOption); - 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"); - IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToGetRequestInformation(q => { - q.QueryParameters.Top = top; - q.QueryParameters.Skip = skip; - if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; - if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; - q.QueryParameters.Count = count; - q.QueryParameters.Orderby = orderby; - q.QueryParameters.Select = select; - q.QueryParameters.Expand = expand; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); - var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); - var response = pageResponse?.Response; -#nullable enable - IOutputFormatter? formatter = null; -#nullable restore - if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { - formatter = outputFormatterFactory.GetFormatter(output); - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - } else { - formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); - } - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// - /// Create new navigation property to columns for groups - /// - /// A - public Command BuildPostCommand() - { - var command = new Command("post"); - command.Description = "Create new navigation property to columns for groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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 = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ColumnDefinition.CreateFromDiscriminatorValue); - if (model is null) { - Console.Error.WriteLine("No model data to send."); - return; - } - var requestInfo = ToPostRequestInformation(model, q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) - { - } - /// - /// The collection of column definitions reusable across lists under this site. - /// - /// 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; - } - /// - /// Create new navigation property to columns for groups - /// - /// 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 ToPostRequestInformation(ColumnDefinition body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) - { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// The collection of column definitions reusable across lists under this site. - /// - public class ColumnsRequestBuilderGetQueryParameters - { - /// Include count of items - [QueryParameter("%24count")] - public bool? Count { get; set; } - /// 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 - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Order items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24orderby")] - public string[]? Orderby { get; set; } -#nullable restore -#else - [QueryParameter("%24orderby")] - public string[] Orderby { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { 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 - /// Skip the first n items - [QueryParameter("%24skip")] - public int? Skip { get; set; } - /// Show only the first n items - [QueryParameter("%24top")] - public int? Top { get; set; } - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/ContentTypes/ContentTypesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/ContentTypes/ContentTypesRequestBuilder.cs deleted file mode 100644 index 153c0980dd..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/ContentTypes/ContentTypesRequestBuilder.cs +++ /dev/null @@ -1,333 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.ContentTypes -{ - /// - /// Provides operations to manage the contentTypes property of the microsoft.graph.site entity. - /// - public class ContentTypesRequestBuilder : BaseCliRequestBuilder - { - /// - /// The collection of content types defined for this site. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "The collection of content types defined for this site."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var topOption = new Option("--top", description: "Show only the first n items") { - }; - topOption.IsRequired = false; - command.AddOption(topOption); - var skipOption = new Option("--skip", description: "Skip the first n items") { - }; - skipOption.IsRequired = false; - command.AddOption(skipOption); - var searchOption = new Option("--search", description: "Search items by search phrases") { - }; - searchOption.IsRequired = false; - command.AddOption(searchOption); - var filterOption = new Option("--filter", description: "Filter items by property values") { - }; - filterOption.IsRequired = false; - command.AddOption(filterOption); - var countOption = new Option("--count", description: "Include count of items") { - }; - countOption.IsRequired = false; - command.AddOption(countOption); - var orderbyOption = new Option("--orderby", description: "Order items by property values") { - Arity = ArgumentArity.ZeroOrMore - }; - orderbyOption.IsRequired = false; - command.AddOption(orderbyOption); - var selectOption = new Option("--select", description: "Select properties to be returned") { - Arity = ArgumentArity.ZeroOrMore - }; - selectOption.IsRequired = false; - command.AddOption(selectOption); - var expandOption = new Option("--expand", description: "Expand related entities") { - Arity = ArgumentArity.ZeroOrMore - }; - expandOption.IsRequired = false; - command.AddOption(expandOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - var allOption = new Option("--all"); - command.AddOption(allOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var top = invocationContext.ParseResult.GetValueForOption(topOption); - var skip = invocationContext.ParseResult.GetValueForOption(skipOption); - var search = invocationContext.ParseResult.GetValueForOption(searchOption); - var filter = invocationContext.ParseResult.GetValueForOption(filterOption); - var count = invocationContext.ParseResult.GetValueForOption(countOption); - var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); - var select = invocationContext.ParseResult.GetValueForOption(selectOption); - var expand = invocationContext.ParseResult.GetValueForOption(expandOption); - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - var all = invocationContext.ParseResult.GetValueForOption(allOption); - 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"); - IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToGetRequestInformation(q => { - q.QueryParameters.Top = top; - q.QueryParameters.Skip = skip; - if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; - if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; - q.QueryParameters.Count = count; - q.QueryParameters.Orderby = orderby; - q.QueryParameters.Select = select; - q.QueryParameters.Expand = expand; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); - var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); - var response = pageResponse?.Response; -#nullable enable - IOutputFormatter? formatter = null; -#nullable restore - if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { - formatter = outputFormatterFactory.GetFormatter(output); - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - } else { - formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); - } - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// - /// Create new navigation property to contentTypes for groups - /// - /// A - public Command BuildPostCommand() - { - var command = new Command("post"); - command.Description = "Create new navigation property to contentTypes for groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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 = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ContentType.CreateFromDiscriminatorValue); - if (model is null) { - Console.Error.WriteLine("No model data to send."); - return; - } - var requestInfo = ToPostRequestInformation(model, q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 ContentTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public ContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) - { - } - /// - /// The collection of content types defined for this site. - /// - /// 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; - } - /// - /// Create new navigation property to contentTypes for groups - /// - /// 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 ToPostRequestInformation(ContentType body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(ContentType body, Action> requestConfiguration = default) - { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// The collection of content types defined for this site. - /// - public class ContentTypesRequestBuilderGetQueryParameters - { - /// Include count of items - [QueryParameter("%24count")] - public bool? Count { get; set; } - /// 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 - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Order items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24orderby")] - public string[]? Orderby { get; set; } -#nullable restore -#else - [QueryParameter("%24orderby")] - public string[] Orderby { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { 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 - /// Skip the first n items - [QueryParameter("%24skip")] - public int? Skip { get; set; } - /// Show only the first n items - [QueryParameter("%24top")] - public int? Top { get; set; } - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/CreatedByUser/CreatedByUserRequestBuilder.cs deleted file mode 100644 index 2fc3ba5cbb..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/CreatedByUser/CreatedByUserRequestBuilder.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.CreatedByUser -{ - /// - /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - /// - public class CreatedByUserRequestBuilder : BaseCliRequestBuilder - { - /// - /// Identity of the user who created the item. Read-only. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "Identity of the user who created the item. Read-only."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 CreatedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", rawUrl) - { - } - /// - /// Identity of the user who created the item. Read-only. - /// - /// 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; - } - /// - /// Identity of the user who created the item. Read-only. - /// - public class CreatedByUserRequestBuilderGetQueryParameters - { - /// 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 - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Drive/DriveRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Drive/DriveRequestBuilder.cs deleted file mode 100644 index 0cdb4c6bdb..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Drive/DriveRequestBuilder.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Drive -{ - /// - /// Provides operations to manage the drive property of the microsoft.graph.site entity. - /// - public class DriveRequestBuilder : BaseCliRequestBuilder - { - /// - /// The default drive (document library) for this site. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "The default drive (document library) for this site."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 DriveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public DriveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", rawUrl) - { - } - /// - /// The default drive (document library) for this site. - /// - /// 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; - } - /// - /// The default drive (document library) for this site. - /// - public class DriveRequestBuilderGetQueryParameters - { - /// 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 - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Drives/DrivesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Drives/DrivesRequestBuilder.cs deleted file mode 100644 index f93b7acf46..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Drives/DrivesRequestBuilder.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Drives -{ - /// - /// Provides operations to manage the drives property of the microsoft.graph.site entity. - /// - public class DrivesRequestBuilder : BaseCliRequestBuilder - { - /// - /// The collection of drives (document libraries) under this site. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "The collection of drives (document libraries) under this site."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var topOption = new Option("--top", description: "Show only the first n items") { - }; - topOption.IsRequired = false; - command.AddOption(topOption); - var skipOption = new Option("--skip", description: "Skip the first n items") { - }; - skipOption.IsRequired = false; - command.AddOption(skipOption); - var searchOption = new Option("--search", description: "Search items by search phrases") { - }; - searchOption.IsRequired = false; - command.AddOption(searchOption); - var filterOption = new Option("--filter", description: "Filter items by property values") { - }; - filterOption.IsRequired = false; - command.AddOption(filterOption); - var countOption = new Option("--count", description: "Include count of items") { - }; - countOption.IsRequired = false; - command.AddOption(countOption); - var orderbyOption = new Option("--orderby", description: "Order items by property values") { - Arity = ArgumentArity.ZeroOrMore - }; - orderbyOption.IsRequired = false; - command.AddOption(orderbyOption); - var selectOption = new Option("--select", description: "Select properties to be returned") { - Arity = ArgumentArity.ZeroOrMore - }; - selectOption.IsRequired = false; - command.AddOption(selectOption); - var expandOption = new Option("--expand", description: "Expand related entities") { - Arity = ArgumentArity.ZeroOrMore - }; - expandOption.IsRequired = false; - command.AddOption(expandOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - var allOption = new Option("--all"); - command.AddOption(allOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var top = invocationContext.ParseResult.GetValueForOption(topOption); - var skip = invocationContext.ParseResult.GetValueForOption(skipOption); - var search = invocationContext.ParseResult.GetValueForOption(searchOption); - var filter = invocationContext.ParseResult.GetValueForOption(filterOption); - var count = invocationContext.ParseResult.GetValueForOption(countOption); - var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); - var select = invocationContext.ParseResult.GetValueForOption(selectOption); - var expand = invocationContext.ParseResult.GetValueForOption(expandOption); - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - var all = invocationContext.ParseResult.GetValueForOption(allOption); - 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"); - IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToGetRequestInformation(q => { - q.QueryParameters.Top = top; - q.QueryParameters.Skip = skip; - if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; - if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; - q.QueryParameters.Count = count; - q.QueryParameters.Orderby = orderby; - q.QueryParameters.Select = select; - q.QueryParameters.Expand = expand; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); - var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); - var response = pageResponse?.Response; -#nullable enable - IOutputFormatter? formatter = null; -#nullable restore - if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { - formatter = outputFormatterFactory.GetFormatter(output); - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - } else { - formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); - } - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - public DrivesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public DrivesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) - { - } - /// - /// The collection of drives (document libraries) under this site. - /// - /// 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; - } - /// - /// The collection of drives (document libraries) under this site. - /// - public class DrivesRequestBuilderGetQueryParameters - { - /// Include count of items - [QueryParameter("%24count")] - public bool? Count { get; set; } - /// 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 - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Order items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24orderby")] - public string[]? Orderby { get; set; } -#nullable restore -#else - [QueryParameter("%24orderby")] - public string[] Orderby { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { 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 - /// Skip the first n items - [QueryParameter("%24skip")] - public int? Skip { get; set; } - /// Show only the first n items - [QueryParameter("%24top")] - public int? Top { get; set; } - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/ExternalColumns/ExternalColumnsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/ExternalColumns/ExternalColumnsRequestBuilder.cs deleted file mode 100644 index 58788251a3..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/ExternalColumns/ExternalColumnsRequestBuilder.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.ExternalColumns -{ - /// - /// Provides operations to manage the externalColumns property of the microsoft.graph.site entity. - /// - public class ExternalColumnsRequestBuilder : BaseCliRequestBuilder - { - /// - /// Get externalColumns from groups - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "Get externalColumns from groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var topOption = new Option("--top", description: "Show only the first n items") { - }; - topOption.IsRequired = false; - command.AddOption(topOption); - var skipOption = new Option("--skip", description: "Skip the first n items") { - }; - skipOption.IsRequired = false; - command.AddOption(skipOption); - var searchOption = new Option("--search", description: "Search items by search phrases") { - }; - searchOption.IsRequired = false; - command.AddOption(searchOption); - var filterOption = new Option("--filter", description: "Filter items by property values") { - }; - filterOption.IsRequired = false; - command.AddOption(filterOption); - var countOption = new Option("--count", description: "Include count of items") { - }; - countOption.IsRequired = false; - command.AddOption(countOption); - var orderbyOption = new Option("--orderby", description: "Order items by property values") { - Arity = ArgumentArity.ZeroOrMore - }; - orderbyOption.IsRequired = false; - command.AddOption(orderbyOption); - var selectOption = new Option("--select", description: "Select properties to be returned") { - Arity = ArgumentArity.ZeroOrMore - }; - selectOption.IsRequired = false; - command.AddOption(selectOption); - var expandOption = new Option("--expand", description: "Expand related entities") { - Arity = ArgumentArity.ZeroOrMore - }; - expandOption.IsRequired = false; - command.AddOption(expandOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - var allOption = new Option("--all"); - command.AddOption(allOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var top = invocationContext.ParseResult.GetValueForOption(topOption); - var skip = invocationContext.ParseResult.GetValueForOption(skipOption); - var search = invocationContext.ParseResult.GetValueForOption(searchOption); - var filter = invocationContext.ParseResult.GetValueForOption(filterOption); - var count = invocationContext.ParseResult.GetValueForOption(countOption); - var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); - var select = invocationContext.ParseResult.GetValueForOption(selectOption); - var expand = invocationContext.ParseResult.GetValueForOption(expandOption); - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - var all = invocationContext.ParseResult.GetValueForOption(allOption); - 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"); - IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToGetRequestInformation(q => { - q.QueryParameters.Top = top; - q.QueryParameters.Skip = skip; - if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; - if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; - q.QueryParameters.Count = count; - q.QueryParameters.Orderby = orderby; - q.QueryParameters.Select = select; - q.QueryParameters.Expand = expand; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); - var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); - var response = pageResponse?.Response; -#nullable enable - IOutputFormatter? formatter = null; -#nullable restore - if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { - formatter = outputFormatterFactory.GetFormatter(output); - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - } else { - formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); - } - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - public ExternalColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public ExternalColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) - { - } - /// - /// Get externalColumns from groups - /// - /// 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; - } - /// - /// Get externalColumns from groups - /// - public class ExternalColumnsRequestBuilderGetQueryParameters - { - /// Include count of items - [QueryParameter("%24count")] - public bool? Count { get; set; } - /// 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 - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Order items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24orderby")] - public string[]? Orderby { get; set; } -#nullable restore -#else - [QueryParameter("%24orderby")] - public string[] Orderby { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { 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 - /// Skip the first n items - [QueryParameter("%24skip")] - public int? Skip { get; set; } - /// Show only the first n items - [QueryParameter("%24top")] - public int? Top { get; set; } - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/GetByPathWithPath1RequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/GetByPathWithPath1RequestBuilder.cs deleted file mode 100644 index bf66c63e2c..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/GetByPathWithPath1RequestBuilder.cs +++ /dev/null @@ -1,433 +0,0 @@ -// -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Analytics; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Columns; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.ContentTypes; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.CreatedByUser; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Drive; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Drives; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.ExternalColumns; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Items; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.LastModifiedByUser; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Lists; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Onenote; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Operations; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Pages; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Permissions; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Sites; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.TermStore; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.TermStores; -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1 -{ - /// - /// Provides operations to call the getByPath method. - /// - public class GetByPathWithPath1RequestBuilder : BaseCliRequestBuilder - { - /// - /// Provides operations to manage the analytics property of the microsoft.graph.site entity. - /// - /// A - public Command BuildAnalyticsNavCommand() - { - var command = new Command("analytics"); - command.Description = "Provides operations to manage the analytics property of the microsoft.graph.site entity."; - var builder = new AnalyticsRequestBuilder(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 columns property of the microsoft.graph.site entity. - /// - /// A - public Command BuildColumnsNavCommand() - { - var command = new Command("columns"); - command.Description = "Provides operations to manage the columns property of the microsoft.graph.site entity."; - var builder = new ColumnsRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - execCommands.Add(builder.BuildPostCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the contentTypes property of the microsoft.graph.site entity. - /// - /// A - public Command BuildContentTypesNavCommand() - { - var command = new Command("content-types"); - command.Description = "Provides operations to manage the contentTypes property of the microsoft.graph.site entity."; - var builder = new ContentTypesRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - execCommands.Add(builder.BuildPostCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - /// - /// A - public Command BuildCreatedByUserNavCommand() - { - var command = new Command("created-by-user"); - command.Description = "Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity."; - var builder = new CreatedByUserRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the drive property of the microsoft.graph.site entity. - /// - /// A - public Command BuildDriveNavCommand() - { - var command = new Command("drive"); - command.Description = "Provides operations to manage the drive property of the microsoft.graph.site entity."; - var builder = new DriveRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the drives property of the microsoft.graph.site entity. - /// - /// A - public Command BuildDrivesNavCommand() - { - var command = new Command("drives"); - command.Description = "Provides operations to manage the drives property of the microsoft.graph.site entity."; - var builder = new DrivesRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the externalColumns property of the microsoft.graph.site entity. - /// - /// A - public Command BuildExternalColumnsNavCommand() - { - var command = new Command("external-columns"); - command.Description = "Provides operations to manage the externalColumns property of the microsoft.graph.site entity."; - var builder = new ExternalColumnsRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Invoke function getByPath - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "Invoke function getByPath"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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 => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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; - } - /// - /// Provides operations to manage the items property of the microsoft.graph.site entity. - /// - /// A - public Command BuildItemsNavCommand() - { - var command = new Command("items"); - command.Description = "Provides operations to manage the items property of the microsoft.graph.site entity."; - var builder = new ItemsRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - /// - /// A - public Command BuildLastModifiedByUserNavCommand() - { - var command = new Command("last-modified-by-user"); - command.Description = "Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity."; - var builder = new LastModifiedByUserRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the lists property of the microsoft.graph.site entity. - /// - /// A - public Command BuildListsNavCommand() - { - var command = new Command("lists"); - command.Description = "Provides operations to manage the lists property of the microsoft.graph.site entity."; - var builder = new ListsRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - execCommands.Add(builder.BuildPostCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the onenote property of the microsoft.graph.site entity. - /// - /// A - public Command BuildOnenoteNavCommand() - { - var command = new Command("onenote"); - command.Description = "Provides operations to manage the onenote property of the microsoft.graph.site entity."; - var builder = new OnenoteRequestBuilder(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 operations property of the microsoft.graph.site entity. - /// - /// A - public Command BuildOperationsNavCommand() - { - var command = new Command("operations"); - command.Description = "Provides operations to manage the operations property of the microsoft.graph.site entity."; - var builder = new OperationsRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - execCommands.Add(builder.BuildPostCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the pages property of the microsoft.graph.site entity. - /// - /// A - public Command BuildPagesNavCommand() - { - var command = new Command("pages"); - command.Description = "Provides operations to manage the pages property of the microsoft.graph.site entity."; - var builder = new PagesRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - execCommands.Add(builder.BuildPostCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the permissions property of the microsoft.graph.site entity. - /// - /// A - public Command BuildPermissionsNavCommand() - { - var command = new Command("permissions"); - command.Description = "Provides operations to manage the permissions property of the microsoft.graph.site entity."; - var builder = new PermissionsRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - execCommands.Add(builder.BuildPostCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the sites property of the microsoft.graph.site entity. - /// - /// A - public Command BuildSitesNavCommand() - { - var command = new Command("sites"); - command.Description = "Provides operations to manage the sites property of the microsoft.graph.site entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Sites.SitesRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Provides operations to manage the termStore property of the microsoft.graph.site entity. - /// - /// A - public Command BuildTermStoreNavCommand() - { - var command = new Command("term-store"); - command.Description = "Provides operations to manage the termStore property of the microsoft.graph.site entity."; - var builder = new TermStoreRequestBuilder(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 termStores property of the microsoft.graph.site entity. - /// - /// A - public Command BuildTermStoresNavCommand() - { - var command = new Command("term-stores"); - command.Description = "Provides operations to manage the termStores property of the microsoft.graph.site entity."; - var builder = new TermStoresRequestBuilder(PathParameters); - var execCommands = new List(); - execCommands.Add(builder.BuildGetCommand()); - execCommands.Add(builder.BuildPostCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - public GetByPathWithPath1RequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public GetByPathWithPath1RequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", rawUrl) - { - } - /// - /// Invoke function getByPath - /// - /// 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; - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Items/ItemsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Items/ItemsRequestBuilder.cs deleted file mode 100644 index a7085c94b6..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Items/ItemsRequestBuilder.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Items -{ - /// - /// Provides operations to manage the items property of the microsoft.graph.site entity. - /// - public class ItemsRequestBuilder : BaseCliRequestBuilder - { - /// - /// Used to address any item contained in this site. This collection can't be enumerated. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "Used to address any item contained in this site. This collection can't be enumerated."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var topOption = new Option("--top", description: "Show only the first n items") { - }; - topOption.IsRequired = false; - command.AddOption(topOption); - var skipOption = new Option("--skip", description: "Skip the first n items") { - }; - skipOption.IsRequired = false; - command.AddOption(skipOption); - var searchOption = new Option("--search", description: "Search items by search phrases") { - }; - searchOption.IsRequired = false; - command.AddOption(searchOption); - var filterOption = new Option("--filter", description: "Filter items by property values") { - }; - filterOption.IsRequired = false; - command.AddOption(filterOption); - var countOption = new Option("--count", description: "Include count of items") { - }; - countOption.IsRequired = false; - command.AddOption(countOption); - var orderbyOption = new Option("--orderby", description: "Order items by property values") { - Arity = ArgumentArity.ZeroOrMore - }; - orderbyOption.IsRequired = false; - command.AddOption(orderbyOption); - var selectOption = new Option("--select", description: "Select properties to be returned") { - Arity = ArgumentArity.ZeroOrMore - }; - selectOption.IsRequired = false; - command.AddOption(selectOption); - var expandOption = new Option("--expand", description: "Expand related entities") { - Arity = ArgumentArity.ZeroOrMore - }; - expandOption.IsRequired = false; - command.AddOption(expandOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - var allOption = new Option("--all"); - command.AddOption(allOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var top = invocationContext.ParseResult.GetValueForOption(topOption); - var skip = invocationContext.ParseResult.GetValueForOption(skipOption); - var search = invocationContext.ParseResult.GetValueForOption(searchOption); - var filter = invocationContext.ParseResult.GetValueForOption(filterOption); - var count = invocationContext.ParseResult.GetValueForOption(countOption); - var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); - var select = invocationContext.ParseResult.GetValueForOption(selectOption); - var expand = invocationContext.ParseResult.GetValueForOption(expandOption); - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - var all = invocationContext.ParseResult.GetValueForOption(allOption); - 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"); - IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToGetRequestInformation(q => { - q.QueryParameters.Top = top; - q.QueryParameters.Skip = skip; - if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; - if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; - q.QueryParameters.Count = count; - q.QueryParameters.Orderby = orderby; - q.QueryParameters.Select = select; - q.QueryParameters.Expand = expand; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); - var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); - var response = pageResponse?.Response; -#nullable enable - IOutputFormatter? formatter = null; -#nullable restore - if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { - formatter = outputFormatterFactory.GetFormatter(output); - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - } else { - formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); - } - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - public ItemsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) - { - } - /// - /// Used to address any item contained in this site. This collection can't be enumerated. - /// - /// 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; - } - /// - /// Used to address any item contained in this site. This collection can't be enumerated. - /// - public class ItemsRequestBuilderGetQueryParameters - { - /// Include count of items - [QueryParameter("%24count")] - public bool? Count { get; set; } - /// 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 - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Order items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24orderby")] - public string[]? Orderby { get; set; } -#nullable restore -#else - [QueryParameter("%24orderby")] - public string[] Orderby { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { 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 - /// Skip the first n items - [QueryParameter("%24skip")] - public int? Skip { get; set; } - /// Show only the first n items - [QueryParameter("%24top")] - public int? Top { get; set; } - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs deleted file mode 100644 index 664074eeda..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.LastModifiedByUser -{ - /// - /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - /// - public class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder - { - /// - /// Identity of the user who last modified the item. Read-only. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "Identity of the user who last modified the item. Read-only."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 LastModifiedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", rawUrl) - { - } - /// - /// Identity of the user who last modified the item. Read-only. - /// - /// 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; - } - /// - /// Identity of the user who last modified the item. Read-only. - /// - public class LastModifiedByUserRequestBuilderGetQueryParameters - { - /// 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 - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Lists/ListsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Lists/ListsRequestBuilder.cs deleted file mode 100644 index 9acdcce26b..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Lists/ListsRequestBuilder.cs +++ /dev/null @@ -1,333 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Lists -{ - /// - /// Provides operations to manage the lists property of the microsoft.graph.site entity. - /// - public class ListsRequestBuilder : BaseCliRequestBuilder - { - /// - /// The collection of lists under this site. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "The collection of lists under this site."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var topOption = new Option("--top", description: "Show only the first n items") { - }; - topOption.IsRequired = false; - command.AddOption(topOption); - var skipOption = new Option("--skip", description: "Skip the first n items") { - }; - skipOption.IsRequired = false; - command.AddOption(skipOption); - var searchOption = new Option("--search", description: "Search items by search phrases") { - }; - searchOption.IsRequired = false; - command.AddOption(searchOption); - var filterOption = new Option("--filter", description: "Filter items by property values") { - }; - filterOption.IsRequired = false; - command.AddOption(filterOption); - var countOption = new Option("--count", description: "Include count of items") { - }; - countOption.IsRequired = false; - command.AddOption(countOption); - var orderbyOption = new Option("--orderby", description: "Order items by property values") { - Arity = ArgumentArity.ZeroOrMore - }; - orderbyOption.IsRequired = false; - command.AddOption(orderbyOption); - var selectOption = new Option("--select", description: "Select properties to be returned") { - Arity = ArgumentArity.ZeroOrMore - }; - selectOption.IsRequired = false; - command.AddOption(selectOption); - var expandOption = new Option("--expand", description: "Expand related entities") { - Arity = ArgumentArity.ZeroOrMore - }; - expandOption.IsRequired = false; - command.AddOption(expandOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - var allOption = new Option("--all"); - command.AddOption(allOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var top = invocationContext.ParseResult.GetValueForOption(topOption); - var skip = invocationContext.ParseResult.GetValueForOption(skipOption); - var search = invocationContext.ParseResult.GetValueForOption(searchOption); - var filter = invocationContext.ParseResult.GetValueForOption(filterOption); - var count = invocationContext.ParseResult.GetValueForOption(countOption); - var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); - var select = invocationContext.ParseResult.GetValueForOption(selectOption); - var expand = invocationContext.ParseResult.GetValueForOption(expandOption); - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - var all = invocationContext.ParseResult.GetValueForOption(allOption); - 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"); - IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToGetRequestInformation(q => { - q.QueryParameters.Top = top; - q.QueryParameters.Skip = skip; - if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; - if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; - q.QueryParameters.Count = count; - q.QueryParameters.Orderby = orderby; - q.QueryParameters.Select = select; - q.QueryParameters.Expand = expand; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); - var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); - var response = pageResponse?.Response; -#nullable enable - IOutputFormatter? formatter = null; -#nullable restore - if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { - formatter = outputFormatterFactory.GetFormatter(output); - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - } else { - formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); - } - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// - /// Create new navigation property to lists for groups - /// - /// A - public Command BuildPostCommand() - { - var command = new Command("post"); - command.Description = "Create new navigation property to lists for groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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 = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.List.CreateFromDiscriminatorValue); - if (model is null) { - Console.Error.WriteLine("No model data to send."); - return; - } - var requestInfo = ToPostRequestInformation(model, q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 ListsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public ListsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) - { - } - /// - /// The collection of lists under this site. - /// - /// 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; - } - /// - /// Create new navigation property to lists for groups - /// - /// 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 ToPostRequestInformation(ApiSdk.Models.List body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.List body, Action> requestConfiguration = default) - { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// The collection of lists under this site. - /// - public class ListsRequestBuilderGetQueryParameters - { - /// Include count of items - [QueryParameter("%24count")] - public bool? Count { get; set; } - /// 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 - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Order items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24orderby")] - public string[]? Orderby { get; set; } -#nullable restore -#else - [QueryParameter("%24orderby")] - public string[] Orderby { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { 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 - /// Skip the first n items - [QueryParameter("%24skip")] - public int? Skip { get; set; } - /// Show only the first n items - [QueryParameter("%24top")] - public int? Top { get; set; } - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Onenote/OnenoteRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Onenote/OnenoteRequestBuilder.cs deleted file mode 100644 index a148d211d0..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Onenote/OnenoteRequestBuilder.cs +++ /dev/null @@ -1,316 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Onenote -{ - /// - /// Provides operations to manage the onenote property of the microsoft.graph.site entity. - /// - public class OnenoteRequestBuilder : BaseCliRequestBuilder - { - /// - /// Delete navigation property onenote for groups - /// - /// A - public Command BuildDeleteCommand() - { - var command = new Command("delete"); - command.Description = "Delete navigation property onenote for groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var ifMatchOption = new Option("--if-match", description: "ETag") { - Arity = ArgumentArity.ZeroOrMore - }; - ifMatchOption.IsRequired = false; - command.AddOption(ifMatchOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToDeleteRequestInformation(q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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; - } - /// - /// Calls the OneNote service for notebook related operations. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "Calls the OneNote service for notebook related operations."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 the navigation property onenote in groups - /// - /// A - public Command BuildPatchCommand() - { - var command = new Command("patch"); - command.Description = "Update the navigation property onenote in groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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 = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.Onenote.CreateFromDiscriminatorValue); - if (model is null) { - Console.Error.WriteLine("No model data to send."); - return; - } - var requestInfo = ToPatchRequestInformation(model, q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 OnenoteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public OnenoteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", rawUrl) - { - } - /// - /// Delete navigation property onenote for groups - /// - /// 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; - } - /// - /// Calls the OneNote service for notebook related operations. - /// - /// 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 the navigation property onenote in groups - /// - /// 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(ApiSdk.Models.Onenote body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Onenote 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; - } - /// - /// Calls the OneNote service for notebook related operations. - /// - public class OnenoteRequestBuilderGetQueryParameters - { - /// 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 - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Operations/OperationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Operations/OperationsRequestBuilder.cs deleted file mode 100644 index ad0584f149..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Operations/OperationsRequestBuilder.cs +++ /dev/null @@ -1,333 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Operations -{ - /// - /// Provides operations to manage the operations property of the microsoft.graph.site entity. - /// - public class OperationsRequestBuilder : BaseCliRequestBuilder - { - /// - /// The collection of long-running operations on the site. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "The collection of long-running operations on the site."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var topOption = new Option("--top", description: "Show only the first n items") { - }; - topOption.IsRequired = false; - command.AddOption(topOption); - var skipOption = new Option("--skip", description: "Skip the first n items") { - }; - skipOption.IsRequired = false; - command.AddOption(skipOption); - var searchOption = new Option("--search", description: "Search items by search phrases") { - }; - searchOption.IsRequired = false; - command.AddOption(searchOption); - var filterOption = new Option("--filter", description: "Filter items by property values") { - }; - filterOption.IsRequired = false; - command.AddOption(filterOption); - var countOption = new Option("--count", description: "Include count of items") { - }; - countOption.IsRequired = false; - command.AddOption(countOption); - var orderbyOption = new Option("--orderby", description: "Order items by property values") { - Arity = ArgumentArity.ZeroOrMore - }; - orderbyOption.IsRequired = false; - command.AddOption(orderbyOption); - var selectOption = new Option("--select", description: "Select properties to be returned") { - Arity = ArgumentArity.ZeroOrMore - }; - selectOption.IsRequired = false; - command.AddOption(selectOption); - var expandOption = new Option("--expand", description: "Expand related entities") { - Arity = ArgumentArity.ZeroOrMore - }; - expandOption.IsRequired = false; - command.AddOption(expandOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - var allOption = new Option("--all"); - command.AddOption(allOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var top = invocationContext.ParseResult.GetValueForOption(topOption); - var skip = invocationContext.ParseResult.GetValueForOption(skipOption); - var search = invocationContext.ParseResult.GetValueForOption(searchOption); - var filter = invocationContext.ParseResult.GetValueForOption(filterOption); - var count = invocationContext.ParseResult.GetValueForOption(countOption); - var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); - var select = invocationContext.ParseResult.GetValueForOption(selectOption); - var expand = invocationContext.ParseResult.GetValueForOption(expandOption); - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - var all = invocationContext.ParseResult.GetValueForOption(allOption); - 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"); - IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToGetRequestInformation(q => { - q.QueryParameters.Top = top; - q.QueryParameters.Skip = skip; - if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; - if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; - q.QueryParameters.Count = count; - q.QueryParameters.Orderby = orderby; - q.QueryParameters.Select = select; - q.QueryParameters.Expand = expand; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); - var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); - var response = pageResponse?.Response; -#nullable enable - IOutputFormatter? formatter = null; -#nullable restore - if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { - formatter = outputFormatterFactory.GetFormatter(output); - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - } else { - formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); - } - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// - /// Create new navigation property to operations for groups - /// - /// A - public Command BuildPostCommand() - { - var command = new Command("post"); - command.Description = "Create new navigation property to operations for groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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 = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(RichLongRunningOperation.CreateFromDiscriminatorValue); - if (model is null) { - Console.Error.WriteLine("No model data to send."); - return; - } - var requestInfo = ToPostRequestInformation(model, q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) - { - } - /// - /// The collection of long-running operations on the site. - /// - /// 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; - } - /// - /// Create new navigation property to operations for groups - /// - /// 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 ToPostRequestInformation(RichLongRunningOperation body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(RichLongRunningOperation body, Action> requestConfiguration = default) - { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// The collection of long-running operations on the site. - /// - public class OperationsRequestBuilderGetQueryParameters - { - /// Include count of items - [QueryParameter("%24count")] - public bool? Count { get; set; } - /// 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 - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Order items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24orderby")] - public string[]? Orderby { get; set; } -#nullable restore -#else - [QueryParameter("%24orderby")] - public string[] Orderby { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { 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 - /// Skip the first n items - [QueryParameter("%24skip")] - public int? Skip { get; set; } - /// Show only the first n items - [QueryParameter("%24top")] - public int? Top { get; set; } - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Pages/PagesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Pages/PagesRequestBuilder.cs deleted file mode 100644 index 3ccbeb44aa..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Pages/PagesRequestBuilder.cs +++ /dev/null @@ -1,333 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Pages -{ - /// - /// Provides operations to manage the pages property of the microsoft.graph.site entity. - /// - public class PagesRequestBuilder : BaseCliRequestBuilder - { - /// - /// The collection of pages in the baseSitePages list in this site. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "The collection of pages in the baseSitePages list in this site."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var topOption = new Option("--top", description: "Show only the first n items") { - }; - topOption.IsRequired = false; - command.AddOption(topOption); - var skipOption = new Option("--skip", description: "Skip the first n items") { - }; - skipOption.IsRequired = false; - command.AddOption(skipOption); - var searchOption = new Option("--search", description: "Search items by search phrases") { - }; - searchOption.IsRequired = false; - command.AddOption(searchOption); - var filterOption = new Option("--filter", description: "Filter items by property values") { - }; - filterOption.IsRequired = false; - command.AddOption(filterOption); - var countOption = new Option("--count", description: "Include count of items") { - }; - countOption.IsRequired = false; - command.AddOption(countOption); - var orderbyOption = new Option("--orderby", description: "Order items by property values") { - Arity = ArgumentArity.ZeroOrMore - }; - orderbyOption.IsRequired = false; - command.AddOption(orderbyOption); - var selectOption = new Option("--select", description: "Select properties to be returned") { - Arity = ArgumentArity.ZeroOrMore - }; - selectOption.IsRequired = false; - command.AddOption(selectOption); - var expandOption = new Option("--expand", description: "Expand related entities") { - Arity = ArgumentArity.ZeroOrMore - }; - expandOption.IsRequired = false; - command.AddOption(expandOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - var allOption = new Option("--all"); - command.AddOption(allOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var top = invocationContext.ParseResult.GetValueForOption(topOption); - var skip = invocationContext.ParseResult.GetValueForOption(skipOption); - var search = invocationContext.ParseResult.GetValueForOption(searchOption); - var filter = invocationContext.ParseResult.GetValueForOption(filterOption); - var count = invocationContext.ParseResult.GetValueForOption(countOption); - var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); - var select = invocationContext.ParseResult.GetValueForOption(selectOption); - var expand = invocationContext.ParseResult.GetValueForOption(expandOption); - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - var all = invocationContext.ParseResult.GetValueForOption(allOption); - 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"); - IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToGetRequestInformation(q => { - q.QueryParameters.Top = top; - q.QueryParameters.Skip = skip; - if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; - if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; - q.QueryParameters.Count = count; - q.QueryParameters.Orderby = orderby; - q.QueryParameters.Select = select; - q.QueryParameters.Expand = expand; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); - var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); - var response = pageResponse?.Response; -#nullable enable - IOutputFormatter? formatter = null; -#nullable restore - if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { - formatter = outputFormatterFactory.GetFormatter(output); - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - } else { - formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); - } - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// - /// Create new navigation property to pages for groups - /// - /// A - public Command BuildPostCommand() - { - var command = new Command("post"); - command.Description = "Create new navigation property to pages for groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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 = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(BaseSitePage.CreateFromDiscriminatorValue); - if (model is null) { - Console.Error.WriteLine("No model data to send."); - return; - } - var requestInfo = ToPostRequestInformation(model, q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) - { - } - /// - /// The collection of pages in the baseSitePages list in this site. - /// - /// 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; - } - /// - /// Create new navigation property to pages for groups - /// - /// 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 ToPostRequestInformation(BaseSitePage body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(BaseSitePage body, Action> requestConfiguration = default) - { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// The collection of pages in the baseSitePages list in this site. - /// - public class PagesRequestBuilderGetQueryParameters - { - /// Include count of items - [QueryParameter("%24count")] - public bool? Count { get; set; } - /// 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 - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Order items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24orderby")] - public string[]? Orderby { get; set; } -#nullable restore -#else - [QueryParameter("%24orderby")] - public string[] Orderby { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { 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 - /// Skip the first n items - [QueryParameter("%24skip")] - public int? Skip { get; set; } - /// Show only the first n items - [QueryParameter("%24top")] - public int? Top { get; set; } - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Permissions/PermissionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Permissions/PermissionsRequestBuilder.cs deleted file mode 100644 index 5b50267793..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Permissions/PermissionsRequestBuilder.cs +++ /dev/null @@ -1,333 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Permissions -{ - /// - /// Provides operations to manage the permissions property of the microsoft.graph.site entity. - /// - public class PermissionsRequestBuilder : BaseCliRequestBuilder - { - /// - /// The permissions associated with the site. Nullable. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "The permissions associated with the site. Nullable."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var topOption = new Option("--top", description: "Show only the first n items") { - }; - topOption.IsRequired = false; - command.AddOption(topOption); - var skipOption = new Option("--skip", description: "Skip the first n items") { - }; - skipOption.IsRequired = false; - command.AddOption(skipOption); - var searchOption = new Option("--search", description: "Search items by search phrases") { - }; - searchOption.IsRequired = false; - command.AddOption(searchOption); - var filterOption = new Option("--filter", description: "Filter items by property values") { - }; - filterOption.IsRequired = false; - command.AddOption(filterOption); - var countOption = new Option("--count", description: "Include count of items") { - }; - countOption.IsRequired = false; - command.AddOption(countOption); - var orderbyOption = new Option("--orderby", description: "Order items by property values") { - Arity = ArgumentArity.ZeroOrMore - }; - orderbyOption.IsRequired = false; - command.AddOption(orderbyOption); - var selectOption = new Option("--select", description: "Select properties to be returned") { - Arity = ArgumentArity.ZeroOrMore - }; - selectOption.IsRequired = false; - command.AddOption(selectOption); - var expandOption = new Option("--expand", description: "Expand related entities") { - Arity = ArgumentArity.ZeroOrMore - }; - expandOption.IsRequired = false; - command.AddOption(expandOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - var allOption = new Option("--all"); - command.AddOption(allOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var top = invocationContext.ParseResult.GetValueForOption(topOption); - var skip = invocationContext.ParseResult.GetValueForOption(skipOption); - var search = invocationContext.ParseResult.GetValueForOption(searchOption); - var filter = invocationContext.ParseResult.GetValueForOption(filterOption); - var count = invocationContext.ParseResult.GetValueForOption(countOption); - var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); - var select = invocationContext.ParseResult.GetValueForOption(selectOption); - var expand = invocationContext.ParseResult.GetValueForOption(expandOption); - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - var all = invocationContext.ParseResult.GetValueForOption(allOption); - 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"); - IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToGetRequestInformation(q => { - q.QueryParameters.Top = top; - q.QueryParameters.Skip = skip; - if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; - if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; - q.QueryParameters.Count = count; - q.QueryParameters.Orderby = orderby; - q.QueryParameters.Select = select; - q.QueryParameters.Expand = expand; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); - var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); - var response = pageResponse?.Response; -#nullable enable - IOutputFormatter? formatter = null; -#nullable restore - if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { - formatter = outputFormatterFactory.GetFormatter(output); - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - } else { - formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); - } - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// - /// Create new navigation property to permissions for groups - /// - /// A - public Command BuildPostCommand() - { - var command = new Command("post"); - command.Description = "Create new navigation property to permissions for groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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 = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.Permission.CreateFromDiscriminatorValue); - if (model is null) { - Console.Error.WriteLine("No model data to send."); - return; - } - var requestInfo = ToPostRequestInformation(model, q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 PermissionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public PermissionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) - { - } - /// - /// The permissions associated with the site. Nullable. - /// - /// 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; - } - /// - /// Create new navigation property to permissions for groups - /// - /// 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 ToPostRequestInformation(ApiSdk.Models.Permission body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.Permission body, Action> requestConfiguration = default) - { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// The permissions associated with the site. Nullable. - /// - public class PermissionsRequestBuilderGetQueryParameters - { - /// Include count of items - [QueryParameter("%24count")] - public bool? Count { get; set; } - /// 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 - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Order items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24orderby")] - public string[]? Orderby { get; set; } -#nullable restore -#else - [QueryParameter("%24orderby")] - public string[] Orderby { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { 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 - /// Skip the first n items - [QueryParameter("%24skip")] - public int? Skip { get; set; } - /// Show only the first n items - [QueryParameter("%24top")] - public int? Top { get; set; } - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Sites/SitesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Sites/SitesRequestBuilder.cs deleted file mode 100644 index 0c0ede7f8c..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/Sites/SitesRequestBuilder.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.Sites -{ - /// - /// Provides operations to manage the sites property of the microsoft.graph.site entity. - /// - public class SitesRequestBuilder : BaseCliRequestBuilder - { - /// - /// The collection of the sub-sites under this site. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "The collection of the sub-sites under this site."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var topOption = new Option("--top", description: "Show only the first n items") { - }; - topOption.IsRequired = false; - command.AddOption(topOption); - var skipOption = new Option("--skip", description: "Skip the first n items") { - }; - skipOption.IsRequired = false; - command.AddOption(skipOption); - var searchOption = new Option("--search", description: "Search items by search phrases") { - }; - searchOption.IsRequired = false; - command.AddOption(searchOption); - var filterOption = new Option("--filter", description: "Filter items by property values") { - }; - filterOption.IsRequired = false; - command.AddOption(filterOption); - var countOption = new Option("--count", description: "Include count of items") { - }; - countOption.IsRequired = false; - command.AddOption(countOption); - var orderbyOption = new Option("--orderby", description: "Order items by property values") { - Arity = ArgumentArity.ZeroOrMore - }; - orderbyOption.IsRequired = false; - command.AddOption(orderbyOption); - var selectOption = new Option("--select", description: "Select properties to be returned") { - Arity = ArgumentArity.ZeroOrMore - }; - selectOption.IsRequired = false; - command.AddOption(selectOption); - var expandOption = new Option("--expand", description: "Expand related entities") { - Arity = ArgumentArity.ZeroOrMore - }; - expandOption.IsRequired = false; - command.AddOption(expandOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - var allOption = new Option("--all"); - command.AddOption(allOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var top = invocationContext.ParseResult.GetValueForOption(topOption); - var skip = invocationContext.ParseResult.GetValueForOption(skipOption); - var search = invocationContext.ParseResult.GetValueForOption(searchOption); - var filter = invocationContext.ParseResult.GetValueForOption(filterOption); - var count = invocationContext.ParseResult.GetValueForOption(countOption); - var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); - var select = invocationContext.ParseResult.GetValueForOption(selectOption); - var expand = invocationContext.ParseResult.GetValueForOption(expandOption); - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - var all = invocationContext.ParseResult.GetValueForOption(allOption); - 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"); - IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToGetRequestInformation(q => { - q.QueryParameters.Top = top; - q.QueryParameters.Skip = skip; - if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; - if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; - q.QueryParameters.Count = count; - q.QueryParameters.Orderby = orderby; - q.QueryParameters.Select = select; - q.QueryParameters.Expand = expand; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); - var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); - var response = pageResponse?.Response; -#nullable enable - IOutputFormatter? formatter = null; -#nullable restore - if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { - formatter = outputFormatterFactory.GetFormatter(output); - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - } else { - formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); - } - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - public SitesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public SitesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) - { - } - /// - /// The collection of the sub-sites under this site. - /// - /// 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; - } - /// - /// The collection of the sub-sites under this site. - /// - public class SitesRequestBuilderGetQueryParameters - { - /// Include count of items - [QueryParameter("%24count")] - public bool? Count { get; set; } - /// 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 - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Order items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24orderby")] - public string[]? Orderby { get; set; } -#nullable restore -#else - [QueryParameter("%24orderby")] - public string[] Orderby { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { 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 - /// Skip the first n items - [QueryParameter("%24skip")] - public int? Skip { get; set; } - /// Show only the first n items - [QueryParameter("%24top")] - public int? Top { get; set; } - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/TermStore/TermStoreRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/TermStore/TermStoreRequestBuilder.cs deleted file mode 100644 index 105e7604b9..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/TermStore/TermStoreRequestBuilder.cs +++ /dev/null @@ -1,316 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models.TermStore; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.TermStore -{ - /// - /// Provides operations to manage the termStore property of the microsoft.graph.site entity. - /// - public class TermStoreRequestBuilder : BaseCliRequestBuilder - { - /// - /// Delete navigation property termStore for groups - /// - /// A - public Command BuildDeleteCommand() - { - var command = new Command("delete"); - command.Description = "Delete navigation property termStore for groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var ifMatchOption = new Option("--if-match", description: "ETag") { - Arity = ArgumentArity.ZeroOrMore - }; - ifMatchOption.IsRequired = false; - command.AddOption(ifMatchOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToDeleteRequestInformation(q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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; - } - /// - /// The default termStore under this site. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "The default termStore under this site."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 the navigation property termStore in groups - /// - /// A - public Command BuildPatchCommand() - { - var command = new Command("patch"); - command.Description = "Update the navigation property termStore in groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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 = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Store.CreateFromDiscriminatorValue); - if (model is null) { - Console.Error.WriteLine("No model data to send."); - return; - } - var requestInfo = ToPatchRequestInformation(model, q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 TermStoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public TermStoreRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", rawUrl) - { - } - /// - /// Delete navigation property termStore for groups - /// - /// 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; - } - /// - /// The default termStore under this site. - /// - /// 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 the navigation property termStore in groups - /// - /// 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(Store body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(Store 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; - } - /// - /// The default termStore under this site. - /// - public class TermStoreRequestBuilderGetQueryParameters - { - /// 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 - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/TermStores/TermStoresRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/TermStores/TermStoresRequestBuilder.cs deleted file mode 100644 index 465987089c..0000000000 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPath1/TermStores/TermStoresRequestBuilder.cs +++ /dev/null @@ -1,333 +0,0 @@ -// -using ApiSdk.Models.ODataErrors; -using ApiSdk.Models.TermStore; -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.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1.TermStores -{ - /// - /// Provides operations to manage the termStores property of the microsoft.graph.site entity. - /// - public class TermStoresRequestBuilder : BaseCliRequestBuilder - { - /// - /// The collection of termStores under this site. - /// - /// A - public Command BuildGetCommand() - { - var command = new Command("get"); - command.Description = "The collection of termStores under this site."; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - var topOption = new Option("--top", description: "Show only the first n items") { - }; - topOption.IsRequired = false; - command.AddOption(topOption); - var skipOption = new Option("--skip", description: "Skip the first n items") { - }; - skipOption.IsRequired = false; - command.AddOption(skipOption); - var searchOption = new Option("--search", description: "Search items by search phrases") { - }; - searchOption.IsRequired = false; - command.AddOption(searchOption); - var filterOption = new Option("--filter", description: "Filter items by property values") { - }; - filterOption.IsRequired = false; - command.AddOption(filterOption); - var countOption = new Option("--count", description: "Include count of items") { - }; - countOption.IsRequired = false; - command.AddOption(countOption); - var orderbyOption = new Option("--orderby", description: "Order items by property values") { - Arity = ArgumentArity.ZeroOrMore - }; - orderbyOption.IsRequired = false; - command.AddOption(orderbyOption); - var selectOption = new Option("--select", description: "Select properties to be returned") { - Arity = ArgumentArity.ZeroOrMore - }; - selectOption.IsRequired = false; - command.AddOption(selectOption); - var expandOption = new Option("--expand", description: "Expand related entities") { - Arity = ArgumentArity.ZeroOrMore - }; - expandOption.IsRequired = false; - command.AddOption(expandOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - var allOption = new Option("--all"); - command.AddOption(allOption); - command.SetHandler(async (invocationContext) => { - var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - var top = invocationContext.ParseResult.GetValueForOption(topOption); - var skip = invocationContext.ParseResult.GetValueForOption(skipOption); - var search = invocationContext.ParseResult.GetValueForOption(searchOption); - var filter = invocationContext.ParseResult.GetValueForOption(filterOption); - var count = invocationContext.ParseResult.GetValueForOption(countOption); - var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); - var select = invocationContext.ParseResult.GetValueForOption(selectOption); - var expand = invocationContext.ParseResult.GetValueForOption(expandOption); - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - var all = invocationContext.ParseResult.GetValueForOption(allOption); - 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"); - IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - var requestInfo = ToGetRequestInformation(q => { - q.QueryParameters.Top = top; - q.QueryParameters.Skip = skip; - if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; - if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; - q.QueryParameters.Count = count; - q.QueryParameters.Orderby = orderby; - q.QueryParameters.Select = select; - q.QueryParameters.Expand = expand; - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); - var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); - var response = pageResponse?.Response; -#nullable enable - IOutputFormatter? formatter = null; -#nullable restore - if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { - formatter = outputFormatterFactory.GetFormatter(output); - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - } else { - formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); - } - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// - /// Create new navigation property to termStores for groups - /// - /// A - public Command BuildPostCommand() - { - var command = new Command("post"); - command.Description = "Create new navigation property to termStores for groups"; - var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { - }; - groupIdOption.IsRequired = true; - command.AddOption(groupIdOption); - var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { - }; - siteIdOption.IsRequired = true; - command.AddOption(siteIdOption); - var pathOption = new Option("--path", description: "Usage: path='{path}'") { - }; - pathOption.IsRequired = true; - command.AddOption(pathOption); - var path1Option = new Option("--path1", description: "Usage: path='{path1}'") { - }; - path1Option.IsRequired = true; - command.AddOption(path1Option); - 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); - var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); - var path = invocationContext.ParseResult.GetValueForOption(pathOption); - var path1 = invocationContext.ParseResult.GetValueForOption(path1Option); - 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 = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Store.CreateFromDiscriminatorValue); - if (model is null) { - Console.Error.WriteLine("No model data to send."); - return; - } - var requestInfo = ToPostRequestInformation(model, q => { - }); - if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); - if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); - if (path is not null) requestInfo.PathParameters.Add("path", path); - if (path1 is not null) requestInfo.PathParameters.Add("path1", path1); - 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 TermStoresRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - public TermStoresRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) - { - } - /// - /// The collection of termStores under this site. - /// - /// 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; - } - /// - /// Create new navigation property to termStores for groups - /// - /// 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 ToPostRequestInformation(Store body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Store body, Action> requestConfiguration = default) - { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// The collection of termStores under this site. - /// - public class TermStoresRequestBuilderGetQueryParameters - { - /// Include count of items - [QueryParameter("%24count")] - public bool? Count { get; set; } - /// 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 - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Order items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24orderby")] - public string[]? Orderby { get; set; } -#nullable restore -#else - [QueryParameter("%24orderby")] - public string[] Orderby { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { 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 - /// Skip the first n items - [QueryParameter("%24skip")] - public int? Skip { get; set; } - /// Show only the first n items - [QueryParameter("%24top")] - public int? Top { get; set; } - } - } -} diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs index aaeafbe8d6..574a0744f4 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/GetByPathWithPathRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Analytics; using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Columns; using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.ContentTypes; @@ -9,7 +10,6 @@ using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByInterval; using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval; using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetApplicableContentTypesForListWithListId; -using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPath1; using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Items; using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.LastModifiedByUser; using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Lists; @@ -22,6 +22,7 @@ using ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.TermStores; 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; @@ -40,7 +41,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath /// /// Provides operations to call the getByPath method. /// - public class GetByPathWithPathRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetByPathWithPathRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the analytics property of the microsoft.graph.site entity. @@ -50,7 +52,7 @@ public Command BuildAnalyticsNavCommand() { var command = new Command("analytics"); command.Description = "Provides operations to manage the analytics property of the microsoft.graph.site entity."; - var builder = new AnalyticsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Analytics.AnalyticsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -69,7 +71,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.site entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -87,7 +89,7 @@ public Command BuildContentTypesNavCommand() { var command = new Command("content-types"); command.Description = "Provides operations to manage the contentTypes property of the microsoft.graph.site entity."; - var builder = new ContentTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.ContentTypes.ContentTypesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -105,7 +107,7 @@ public Command BuildCreatedByUserNavCommand() { var command = new Command("created-by-user"); command.Description = "Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity."; - var builder = new CreatedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.CreatedByUser.CreatedByUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -122,7 +124,7 @@ public Command BuildDriveNavCommand() { var command = new Command("drive"); command.Description = "Provides operations to manage the drive property of the microsoft.graph.site entity."; - var builder = new DriveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Drive.DriveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -139,7 +141,7 @@ public Command BuildDrivesNavCommand() { var command = new Command("drives"); command.Description = "Provides operations to manage the drives property of the microsoft.graph.site entity."; - var builder = new DrivesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Drives.DrivesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -156,7 +158,7 @@ public Command BuildExternalColumnsNavCommand() { var command = new Command("external-columns"); command.Description = "Provides operations to manage the externalColumns property of the microsoft.graph.site entity."; - var builder = new ExternalColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.ExternalColumns.ExternalColumnsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -173,7 +175,7 @@ public Command BuildGetActivitiesByIntervalNavCommand() { var command = new Command("get-activities-by-interval"); command.Description = "Provides operations to call the getActivitiesByInterval method."; - var builder = new GetActivitiesByIntervalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByInterval.GetActivitiesByIntervalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -190,7 +192,7 @@ public Command BuildGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithI { var command = new Command("get-activities-by-interval-with-start-date-time-with-end-date-time-with-interval"); command.Description = "Provides operations to call the getActivitiesByInterval method."; - var builder = new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -207,7 +209,7 @@ public Command BuildGetApplicableContentTypesForListWithListIdRbCommand() { var command = new Command("get-applicable-content-types-for-list-with-list-id"); command.Description = "Provides operations to call the getApplicableContentTypesForList method."; - var builder = new GetApplicableContentTypesForListWithListIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetApplicableContentTypesForListWithListId.GetApplicableContentTypesForListWithListIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -217,45 +219,6 @@ public Command BuildGetApplicableContentTypesForListWithListIdRbCommand() return command; } /// - /// Provides operations to call the getByPath method. - /// - /// A - public Command BuildGetByPathWithPath1RbCommand() - { - var command = new Command("get-by-path-with-path1"); - command.Description = "Provides operations to call the getByPath method."; - var builder = new GetByPathWithPath1RequestBuilder(PathParameters); - var execCommands = new List(); - var nonExecCommands = new List(); - nonExecCommands.Add(builder.BuildAnalyticsNavCommand()); - nonExecCommands.Add(builder.BuildColumnsNavCommand()); - nonExecCommands.Add(builder.BuildContentTypesNavCommand()); - nonExecCommands.Add(builder.BuildCreatedByUserNavCommand()); - nonExecCommands.Add(builder.BuildDriveNavCommand()); - nonExecCommands.Add(builder.BuildDrivesNavCommand()); - nonExecCommands.Add(builder.BuildExternalColumnsNavCommand()); - execCommands.Add(builder.BuildGetCommand()); - nonExecCommands.Add(builder.BuildItemsNavCommand()); - nonExecCommands.Add(builder.BuildLastModifiedByUserNavCommand()); - nonExecCommands.Add(builder.BuildListsNavCommand()); - nonExecCommands.Add(builder.BuildOnenoteNavCommand()); - nonExecCommands.Add(builder.BuildOperationsNavCommand()); - nonExecCommands.Add(builder.BuildPagesNavCommand()); - nonExecCommands.Add(builder.BuildPermissionsNavCommand()); - nonExecCommands.Add(builder.BuildSitesNavCommand()); - nonExecCommands.Add(builder.BuildTermStoreNavCommand()); - nonExecCommands.Add(builder.BuildTermStoresNavCommand()); - foreach (var cmd in execCommands) - { - command.AddCommand(cmd); - } - foreach (var cmd in nonExecCommands) - { - command.AddCommand(cmd); - } - return command; - } - /// /// Invoke function getByPath /// /// A @@ -313,7 +276,7 @@ public Command BuildItemsNavCommand() { var command = new Command("items"); command.Description = "Provides operations to manage the items property of the microsoft.graph.site entity."; - var builder = new ItemsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Items.ItemsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -330,7 +293,7 @@ public Command BuildLastModifiedByUserNavCommand() { var command = new Command("last-modified-by-user"); command.Description = "Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity."; - var builder = new LastModifiedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.LastModifiedByUser.LastModifiedByUserRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -347,7 +310,7 @@ public Command BuildListsNavCommand() { var command = new Command("lists"); command.Description = "Provides operations to manage the lists property of the microsoft.graph.site entity."; - var builder = new ListsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Lists.ListsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -365,7 +328,7 @@ public Command BuildOnenoteNavCommand() { var command = new Command("onenote"); command.Description = "Provides operations to manage the onenote property of the microsoft.graph.site entity."; - var builder = new OnenoteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Onenote.OnenoteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -384,7 +347,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.site entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -402,7 +365,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.site entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -420,7 +383,7 @@ public Command BuildPermissionsNavCommand() { var command = new Command("permissions"); command.Description = "Provides operations to manage the permissions property of the microsoft.graph.site entity."; - var builder = new PermissionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Permissions.PermissionsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -438,7 +401,7 @@ public Command BuildSitesNavCommand() { var command = new Command("sites"); command.Description = "Provides operations to manage the sites property of the microsoft.graph.site entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Sites.SitesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.Sites.SitesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -455,7 +418,7 @@ public Command BuildTermStoreNavCommand() { var command = new Command("term-store"); command.Description = "Provides operations to manage the termStore property of the microsoft.graph.site entity."; - var builder = new TermStoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.TermStore.TermStoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -474,7 +437,7 @@ public Command BuildTermStoresNavCommand() { var command = new Command("term-stores"); command.Description = "Provides operations to manage the termStores property of the microsoft.graph.site entity."; - var builder = new TermStoresRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.TermStores.TermStoresRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPostCommand()); @@ -485,14 +448,14 @@ public Command BuildTermStoresNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GetByPathWithPathRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')", 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 GetByPathWithPathRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')", rawUrl) @@ -519,3 +482,4 @@ public RequestInformation ToGetRequestInformation(Action +#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.Groups.Item.Sites.Item.GetByPathWithPath.Items /// /// Provides operations to manage the items property of the microsoft.graph.site entity. /// - public class ItemsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilder : BaseCliRequestBuilder { /// /// Used to address any item contained in this site. This collection can't be enumerated. @@ -136,14 +139,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 ItemsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/items{?%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 ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Used to address any item contained in this site. This collection can't be enumerated. /// - public class ItemsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class ItemsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 668176b594..756c1a88b6 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/LastModifiedByUser/LastModifiedByUserRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.LastModifiedByUser /// /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. /// - public class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who last modified the item. Read-only. @@ -86,14 +89,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 LastModifiedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/lastModifiedByUser{?%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 LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/lastModifiedByUser{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who last modified the item. Read-only. /// - public class LastModifiedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class LastModifiedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Lists/ListsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Lists/ListsRequestBuilder.cs index 3969e15294..0ab5ac9462 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Lists/ListsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Lists/ListsRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.Lists /// /// Provides operations to manage the lists property of the microsoft.graph.site entity. /// - public class ListsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListsRequestBuilder : BaseCliRequestBuilder { /// /// The collection of lists under this site. @@ -175,8 +178,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(ApiSdk.Models.List.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.List.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 ListsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/lists{?%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 ListsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public ListsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -239,11 +242,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(ApiSdk.Models.List body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.List body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.List body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.List body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.List body, Acti /// /// The collection of lists under this site. /// - public class ListsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class ListsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Onenote/OnenoteRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Onenote/OnenoteRequestBuilder.cs index c2ab45b753..f903b63a83 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Onenote/OnenoteRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Onenote/OnenoteRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.Onenote /// /// Provides operations to manage the onenote property of the microsoft.graph.site entity. /// - public class OnenoteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property onenote for groups @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.Onenote.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Onenote.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenoteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/onenote{?%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 OnenoteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/onenote{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Onenote body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Onenote body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Onenote body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Onenote body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Onenote body, /// /// Calls the OneNote service for notebook related operations. /// - public class OnenoteRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class OnenoteRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Operations/OperationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Operations/OperationsRequestBuilder.cs index ccbf3f07be..089e815939 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Operations/OperationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Operations/OperationsRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.site entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// The collection of long-running operations on the site. @@ -175,8 +178,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(RichLongRunningOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RichLongRunningOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -239,11 +242,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(RichLongRunningOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RichLongRunningOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(RichLongRunningOperation body /// /// The collection of long-running operations on the site. /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class OperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Pages/PagesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Pages/PagesRequestBuilder.cs index dad8352256..06792a399b 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Pages/PagesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Pages/PagesRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.Pages /// /// Provides operations to manage the pages property of the microsoft.graph.site entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// The collection of pages in the baseSitePages list in this site. @@ -175,8 +178,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(BaseSitePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.BaseSitePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -239,11 +242,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(BaseSitePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.BaseSitePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BaseSitePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.BaseSitePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(BaseSitePage body, Action /// The collection of pages in the baseSitePages list in this site. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Permissions/PermissionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Permissions/PermissionsRequestBuilder.cs index 7b1baac481..1bed70629b 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Permissions/PermissionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Permissions/PermissionsRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.Permissions /// /// Provides operations to manage the permissions property of the microsoft.graph.site entity. /// - public class PermissionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionsRequestBuilder : BaseCliRequestBuilder { /// /// The permissions associated with the site. Nullable. @@ -175,8 +178,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(ApiSdk.Models.Permission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Permission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 PermissionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/permissions{?%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 PermissionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public PermissionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -239,11 +242,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(ApiSdk.Models.Permission body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Permission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.Permission body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Permission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.Permission body /// /// The permissions associated with the site. Nullable. /// - public class PermissionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class PermissionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Sites/SitesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Sites/SitesRequestBuilder.cs index 2cbb980afb..070335062d 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Sites/SitesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/Sites/SitesRequestBuilder.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.Groups.Item.Sites.Item.GetByPathWithPath.Sites /// /// Provides operations to manage the sites property of the microsoft.graph.site entity. /// - public class SitesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SitesRequestBuilder : BaseCliRequestBuilder { /// /// The collection of the sub-sites under this site. @@ -136,14 +139,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 SitesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/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}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public SitesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of the sub-sites under this site. /// - public class SitesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SitesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class SitesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/TermStore/TermStoreRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/TermStore/TermStoreRequestBuilder.cs index 6ce0faf28f..9de89c657f 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/TermStore/TermStoreRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/TermStore/TermStoreRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.GetByPathWithPath.TermStore /// /// Provides operations to manage the termStore property of the microsoft.graph.site entity. /// - public class TermStoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermStoreRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property termStore for groups @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Store.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Store.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermStoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/termStore{?%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 TermStoreRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/termStore{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Store body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Store body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Store body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Store body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(Store body, Action /// The default termStore under this site. /// - public class TermStoreRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermStoreRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class TermStoreRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/TermStores/TermStoresRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/TermStores/TermStoresRequestBuilder.cs index 574c2cbdc7..1a352bc207 100644 --- a/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/TermStores/TermStoresRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/GetByPathWithPath/TermStores/TermStoresRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.GetByPathWithPath.TermStores /// /// Provides operations to manage the termStores property of the microsoft.graph.site entity. /// - public class TermStoresRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermStoresRequestBuilder : BaseCliRequestBuilder { /// /// The collection of termStores under this site. @@ -175,8 +178,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(Store.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Store.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -199,14 +202,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 TermStoresRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/termStores{?%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 TermStoresRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -219,11 +222,11 @@ public TermStoresRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -239,11 +242,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(Store body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Store body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Store body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Store body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -255,7 +258,8 @@ public RequestInformation ToPostRequestInformation(Store body, Action /// The collection of termStores under this site. /// - public class TermStoresRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermStoresRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -319,3 +323,4 @@ public class TermStoresRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Items/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Items/Count/CountRequestBuilder.cs index d669ac65d5..5d82b0619d 100644 --- a/src/generated/Groups/Item/Sites/Item/Items/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Items/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.Groups.Item.Sites.Item.Items.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/items/$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}/groups/{group%2Did}/sites/{site%2Did}/items/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.cs index dd0067dbc2..8b45c69fdc 100644 --- a/src/generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Items/Item/BaseItemItemRequestBuilder.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.Groups.Item.Sites.Item.Items.Item /// /// Provides operations to manage the items property of the microsoft.graph.site entity. /// - public class BaseItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Used to address any item contained in this site. This collection can't be enumerated. @@ -86,14 +89,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 BaseItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/items/{baseItem%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 BaseItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/items/{baseItem%2Did}{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public BaseItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// Used to address any item contained in this site. This collection can't be enumerated. /// - public class BaseItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class BaseItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.cs index 9d870b44a3..76a6157417 100644 --- a/src/generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Items/ItemsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Items.Count; using ApiSdk.Groups.Item.Sites.Item.Items.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.Groups.Item.Sites.Item.Items /// /// Provides operations to manage the items property of the microsoft.graph.site entity. /// - public class ItemsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the items property of the microsoft.graph.site entity. @@ -30,7 +33,7 @@ public class ItemsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new BaseItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Items.Item.BaseItemItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Sites.Item.Items.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -160,14 +163,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 ItemsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/items{?%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 ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -180,11 +183,11 @@ public ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -195,7 +198,8 @@ public RequestInformation ToGetRequestInformation(Action /// Used to address any item contained in this site. This collection can't be enumerated. /// - public class ItemsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -259,3 +263,4 @@ public class ItemsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 126d628df5..496177d34f 100644 --- a/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.LastModifiedByUser.MailboxSettings; using ApiSdk.Groups.Item.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors; 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.Groups.Item.Sites.Item.LastModifiedByUser /// /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. /// - public class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who last modified the item. Read-only. @@ -89,7 +92,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.LastModifiedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -107,7 +110,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -123,14 +126,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LastModifiedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser{?%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 LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who last modified the item. Read-only. /// - public class LastModifiedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class LastModifiedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 3c63ef2a6c..b3158f59fb 100644 --- a/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Groups.Item.Sites.Item.LastModifiedByUser.MailboxSettings /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lastModifiedByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -114,8 +117,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -137,14 +140,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -157,11 +160,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -177,11 +180,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -193,7 +196,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -218,3 +222,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index a737b5fc25..ec3bfdb8ea 100644 --- a/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/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.Groups.Item.Sites.Item.LastModifiedByUser.ServiceProvisioningEr /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors/$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}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index e8fef0b756..b07d088c17 100644 --- a/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; 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.Groups.Item.Sites.Item.LastModifiedByUser.ServiceProvisioningEr /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lastModifiedByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Sites.Item.LastModifiedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -148,31 +151,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -181,9 +184,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -247,3 +251,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Count/CountRequestBuilder.cs index 73f75fd938..95802eb78c 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/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.Groups.Item.Sites.Item.Lists.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs index 6310c16679..340cb5b094 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/ColumnsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Columns.Count; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Columns.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.Groups.Item.Sites.Item.Lists.Item.Columns /// /// Provides operations to manage the columns property of the microsoft.graph.list entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columns property of the microsoft.graph.list entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ColumnDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Columns.Item.ColumnDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Lists.Item.Columns.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -273,11 +276,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(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action /// /// The collection of field definitions for this list. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.cs index f44bfab882..a043993e89 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/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.Groups.Item.Sites.Item.Lists.Item.Columns.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index c743e386fe..c0fb476721 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Columns.Item.SourceColumn; 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.Groups.Item.Sites.Item.Lists.Item.Columns.Item /// /// Provides operations to manage the columns property of the microsoft.graph.list entity. /// - public class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property columns for groups @@ -190,8 +193,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildSourceColumnNavCommand() { var command = new Command("source-column"); command.Description = "Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity."; - var builder = new SourceColumnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Columns.Item.SourceColumn.SourceColumnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildSourceColumnNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ColumnDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/{columnDefinition%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 ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio /// /// The collection of field definitions for this list. /// - public class ColumnDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class ColumnDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index 658aba2f57..49700cddc7 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Columns.Item.SourceColumn /// /// Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. /// - public class SourceColumnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilder : BaseCliRequestBuilder { /// /// The source column for the content type column. @@ -92,14 +95,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 SourceColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%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 SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The source column for the content type column. /// - public class SourceColumnRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class SourceColumnRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs index 75b4c14f5a..10d07516ef 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopy { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddCopyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddCopyPostRequestBody : 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. @@ -21,7 +23,7 @@ public class AddCopyPostRequestBody : IAdditionalDataHolder, IParsable public string ContentType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddCopyPostRequestBody() { @@ -30,12 +32,12 @@ public AddCopyPostRequestBody() /// /// 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 AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopy.AddCopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddCopyPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopy.AddCopyPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs index 77c367935f..2858396e91 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopy/AddCopyRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopy /// /// Provides operations to call the addCopy method. /// - public class AddCopyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddCopyRequestBuilder : BaseCliRequestBuilder { /// /// Add a copy of a content type from a site to a list. @@ -62,8 +65,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(AddCopyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopy.AddCopyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AddCopyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/addCopy", 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 AddCopyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/addCopy", rawUrl) @@ -107,11 +110,11 @@ public AddCopyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(AddCopyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopy.AddCopyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopy.AddCopyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddCopyPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs index 69d0e85971..0d055bce46 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopyFromContentTypeHub { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddCopyFromContentTypeHubPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddCopyFromContentTypeHubPostRequestBody : 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. @@ -21,7 +23,7 @@ public class AddCopyFromContentTypeHubPostRequestBody : IAdditionalDataHolder, I public string ContentTypeId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddCopyFromContentTypeHubPostRequestBody() { @@ -30,12 +32,12 @@ public AddCopyFromContentTypeHubPostRequestBody() /// /// 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 AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddCopyFromContentTypeHubPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs index 0ebac6b61b..4251daf3fa 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/AddCopyFromContentTypeHub/AddCopyFromContentTypeHubRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopyFromConte /// /// Provides operations to call the addCopyFromContentTypeHub method. /// - public class AddCopyFromContentTypeHubRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddCopyFromContentTypeHubRequestBuilder : BaseCliRequestBuilder { /// /// Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. @@ -62,8 +65,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(AddCopyFromContentTypeHubPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AddCopyFromContentTypeHubRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/addCopyFromContentTypeHub", 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 AddCopyFromContentTypeHubRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/addCopyFromContentTypeHub", rawUrl) @@ -107,11 +110,11 @@ public AddCopyFromContentTypeHubRequestBuilder(string rawUrl) : base("{+baseurl} /// 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(AddCopyFromContentTypeHubPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddCopyFromContentTypeHubPost } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs index d88ba42915..71ef588b2a 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/ContentTypesRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopy; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopyFromContentTypeHub; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Count; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.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; @@ -24,7 +26,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes /// /// Provides operations to manage the contentTypes property of the microsoft.graph.list entity. /// - public class ContentTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the addCopyFromContentTypeHub method. @@ -34,7 +37,7 @@ public Command BuildAddCopyFromContentTypeHubNavCommand() { var command = new Command("add-copy-from-content-type-hub"); command.Description = "Provides operations to call the addCopyFromContentTypeHub method."; - var builder = new AddCopyFromContentTypeHubRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopyFromContentTypeHub.AddCopyFromContentTypeHubRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildAddCopyNavCommand() { var command = new Command("add-copy"); command.Description = "Provides operations to call the addCopy method."; - var builder = new AddCopyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.AddCopy.AddCopyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -68,7 +71,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ContentTypeItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ContentTypeItemRequestBuilder(PathParameters); commands.Add(builder.BuildAssociateWithHubSitesNavCommand()); commands.Add(builder.BuildBaseNavCommand()); commands.Add(builder.BuildBaseTypesNavCommand()); @@ -92,7 +95,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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -141,8 +144,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(ContentType.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -172,7 +175,7 @@ public Command BuildGetCompatibleHubContentTypesNavCommand() { var command = new Command("get-compatible-hub-content-types"); command.Description = "Provides operations to call the getCompatibleHubContentTypes method."; - var builder = new GetCompatibleHubContentTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.GetCompatibleHubContentTypes.GetCompatibleHubContentTypesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -296,14 +299,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 ContentTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes{?%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 ContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -316,11 +319,11 @@ public ContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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); @@ -336,11 +339,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(ContentType body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ContentType body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ContentType body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ContentType body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -352,7 +355,8 @@ public RequestInformation ToPostRequestInformation(ContentType body, Action /// The collection of content types present in this list. /// - public class ContentTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -416,3 +420,4 @@ public class ContentTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.cs index cf45b3c0a7..39d8df414c 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs index 91985da193..91a64e1d8b 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.GetCompatibleHubContentTypes { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetCompatibleHubContentTypesGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetCompatibleHubContentTypesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.GetCompatibleHubContentTypes.GetCompatibleHubContentTypesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetCompatibleHubContentTypesGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.GetCompatibleHubContentTypes.GetCompatibleHubContentTypesGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ContentType.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs index 2cde7bc9f0..4348b975b3 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/GetCompatibleHubContentTypes/GetCompatibleHubContentTypesRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.GetCompatibleHub /// /// Provides operations to call the getCompatibleHubContentTypes method. /// - public class GetCompatibleHubContentTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetCompatibleHubContentTypesRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. @@ -136,14 +139,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 GetCompatibleHubContentTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/getCompatibleHubContentTypes(){?%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 GetCompatibleHubContentTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/getCompatibleHubContentTypes(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public GetCompatibleHubContentTypesRequestBuilder(string rawUrl) : base("{+baseu /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. /// - public class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class GetCompatibleHubContentTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs index 20c2c40929..1ab8f13db4 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.AssociateWithHubSites { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AssociateWithHubSitesPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AssociateWithHubSitesPostRequestBody : 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. @@ -23,7 +25,7 @@ public class AssociateWithHubSitesPostRequestBody : IAdditionalDataHolder, IPars /// The propagateToExistingLists property public bool? PropagateToExistingLists { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AssociateWithHubSitesPostRequestBody() { @@ -32,12 +34,12 @@ public AssociateWithHubSitesPostRequestBody() /// /// 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 AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AssociateWithHubSitesPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody(); } /// /// The deserialization information for the current model @@ -47,7 +49,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "hubSiteUrls", n => { HubSiteUrls = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "propagateToExistingLists", n => { PropagateToExistingLists = n.GetBoolValue(); } }, }; } @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs index 12e25f28a2..b1a7d60572 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/AssociateWithHubSites/AssociateWithHubSitesRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.AssociateWi /// /// Provides operations to call the associateWithHubSites method. /// - public class AssociateWithHubSitesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AssociateWithHubSitesRequestBuilder : BaseCliRequestBuilder { /// /// Associate a published content type present in a content type hub with a list of hub sites. @@ -58,8 +61,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(AssociateWithHubSitesPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 AssociateWithHubSitesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites", 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 AssociateWithHubSitesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/associateWithHubSites", rawUrl) @@ -102,11 +105,11 @@ public AssociateWithHubSitesRequestBuilder(string rawUrl) : base("{+baseurl}/gro /// 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(AssociateWithHubSitesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(AssociateWithHubSitesPostRequ } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs index 9ee93b068d..b9c0882542 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Base/BaseRequestBuilderEscaped.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Base /// /// Provides operations to manage the base property of the microsoft.graph.contentType entity. /// - public class BaseRequestBuilderEscaped : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseRequestBuilderEscaped : BaseCliRequestBuilder { /// /// Parent contentType from which this content type is derived. @@ -92,14 +95,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 BaseRequestBuilderEscaped(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/base{?%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 BaseRequestBuilderEscaped(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/base{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public BaseRequestBuilderEscaped(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// Parent contentType from which this content type is derived. /// - public class BaseRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class BaseRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs index da87c883c8..db6c19c264 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/BaseTypesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.BaseTypes.Count; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.BaseTypes.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.BaseTypes /// /// Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. /// - public class BaseTypesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseTypesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. @@ -30,7 +33,7 @@ public class BaseTypesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.BaseTypes.Item.ContentTypeItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.BaseTypes.Item.ContentTypeItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.BaseTypes.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -172,14 +175,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 BaseTypesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes{?%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 BaseTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -192,11 +195,11 @@ public BaseTypesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -207,7 +210,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of content types that are ancestors of this content type. /// - public class BaseTypesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseTypesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -271,3 +275,4 @@ public class BaseTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs index 447eb11a9e..8b702fb05e 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.BaseTypes.C /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs index edf35ca794..acaa10a48c 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/BaseTypes/Item/ContentTypeItemRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.BaseTypes.I /// /// Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. /// - public class ContentTypeItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilder : BaseCliRequestBuilder { /// /// The collection of content types that are ancestors of this content type. @@ -98,14 +101,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 ContentTypeItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public ContentTypeItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ContentTypeItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of content types that are ancestors of this content type. /// - public class ContentTypeItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ContentTypeItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs index 75550eb2a1..7905e17617 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/ColumnLinksRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnLinks.Count; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnLinks.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnLinks /// /// Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. /// - public class ColumnLinksRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinksRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. @@ -30,7 +33,7 @@ public class ColumnLinksRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ColumnLinkItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnLinks.Item.ColumnLinkItemRequestBuilder(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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnLinks.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -98,8 +101,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(ColumnLink.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnLink.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -243,14 +246,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 ColumnLinksRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks{?%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 ColumnLinksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -263,11 +266,11 @@ public ColumnLinksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -283,11 +286,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(ColumnLink body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnLink body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnLink body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnLink body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPostRequestInformation(ColumnLink body, Action /// The collection of columns that are required by this content type. /// - public class ColumnLinksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinksRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -363,3 +367,4 @@ public class ColumnLinksRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs index 7b825612c2..79b7f83dba 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnLinks /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs index f09f4af6a9..4e77c14be3 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnLinks/Item/ColumnLinkItemRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnLinks /// /// Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. /// - public class ColumnLinkItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinkItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property columnLinks for groups @@ -206,8 +209,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(ColumnLink.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnLink.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 ColumnLinkItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks/{columnLink%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 ColumnLinkItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ColumnLink body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnLink body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ColumnLink body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnLink body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(ColumnLink body, Action /// The collection of columns that are required by this content type. /// - public class ColumnLinkItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnLinkItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class ColumnLinkItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs index 730adfbcd3..05cf6af256 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/ColumnPositionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnPositions.Count; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnPositions.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnPosit /// /// Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. /// - public class ColumnPositionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnPositionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. @@ -30,7 +33,7 @@ public class ColumnPositionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ColumnDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnPositions.Item.ColumnDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnPositions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -172,14 +175,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 ColumnPositionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions{?%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 ColumnPositionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -192,11 +195,11 @@ public ColumnPositionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -207,7 +210,8 @@ public RequestInformation ToGetRequestInformation(Action /// Column order information in a content type. /// - public class ColumnPositionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnPositionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -271,3 +275,4 @@ public class ColumnPositionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs index 8e141c3e1b..e93b4a3ade 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnPosit /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs index a44596f910..0e8c7d8de7 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ColumnPositions/Item/ColumnDefinitionItemRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnPosit /// /// Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. /// - public class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Column order information in a content type. @@ -98,14 +101,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 ColumnDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%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 ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/grou /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// Column order information in a content type. /// - public class ColumnDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ColumnDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs index 6f360bac43..7948876594 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/ColumnsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Columns.Count; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Columns.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Columns /// /// Provides operations to manage the columns property of the microsoft.graph.contentType entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columns property of the microsoft.graph.contentType entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ColumnDefinitionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Columns.Item.ColumnDefinitionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Columns.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -100,8 +103,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -245,14 +248,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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -265,11 +268,11 @@ public ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -285,11 +288,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(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -301,7 +304,8 @@ public RequestInformation ToPostRequestInformation(ColumnDefinition body, Action /// /// The collection of column definitions for this content type. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -365,3 +369,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs index 715ce12e67..692edbf560 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Columns.Cou /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs index 6cf318f947..5b873ea1c7 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/ColumnDefinitionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Columns.Item.SourceColumn; 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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Columns.Ite /// /// Provides operations to manage the columns property of the microsoft.graph.contentType entity. /// - public class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property columns for groups @@ -207,8 +210,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(ColumnDefinition.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ColumnDefinition.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,7 +243,7 @@ public Command BuildSourceColumnNavCommand() { var command = new Command("source-column"); command.Description = "Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity."; - var builder = new SourceColumnRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Columns.Item.SourceColumn.SourceColumnRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -250,14 +253,14 @@ public Command BuildSourceColumnNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ColumnDefinitionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%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 ColumnDefinitionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}", rawUrl) @@ -289,11 +292,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); @@ -309,11 +312,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(ColumnDefinition body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ColumnDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -325,7 +328,8 @@ public RequestInformation ToPatchRequestInformation(ColumnDefinition body, Actio /// /// The collection of column definitions for this content type. /// - public class ColumnDefinitionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +354,4 @@ public class ColumnDefinitionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs index 295c359caa..9290780117 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/Columns/Item/SourceColumn/SourceColumnRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Columns.Ite /// /// Provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. /// - public class SourceColumnRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilder : BaseCliRequestBuilder { /// /// The source column for the content type column. @@ -98,14 +101,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 SourceColumnRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%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 SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SourceColumnRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The source column for the content type column. /// - public class SourceColumnRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SourceColumnRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SourceColumnRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs index e24f167547..4dd34b079b 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/ContentTypeItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.AssociateWithHubSites; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Base; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.BaseTypes; @@ -11,6 +12,7 @@ using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Unpublish; 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; @@ -29,7 +31,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item /// /// Provides operations to manage the contentTypes property of the microsoft.graph.list entity. /// - public class ContentTypeItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the associateWithHubSites method. @@ -39,7 +42,7 @@ public Command BuildAssociateWithHubSitesNavCommand() { var command = new Command("associate-with-hub-sites"); command.Description = "Provides operations to call the associateWithHubSites method."; - var builder = new AssociateWithHubSitesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.AssociateWithHubSites.AssociateWithHubSitesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -56,7 +59,7 @@ public Command BuildBaseNavCommand() { var command = new Command("base"); command.Description = "Provides operations to manage the base property of the microsoft.graph.contentType entity."; - var builder = new BaseRequestBuilderEscaped(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Base.BaseRequestBuilderEscaped(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -73,7 +76,7 @@ public Command BuildBaseTypesNavCommand() { var command = new Command("base-types"); command.Description = "Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity."; - var builder = new BaseTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.BaseTypes.BaseTypesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -99,7 +102,7 @@ public Command BuildColumnLinksNavCommand() { var command = new Command("column-links"); command.Description = "Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity."; - var builder = new ColumnLinksRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnLinks.ColumnLinksRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -126,7 +129,7 @@ public Command BuildColumnPositionsNavCommand() { var command = new Command("column-positions"); command.Description = "Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity."; - var builder = new ColumnPositionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.ColumnPositions.ColumnPositionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -152,7 +155,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.contentType entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -179,7 +182,7 @@ public Command BuildCopyToDefaultContentLocationNavCommand() { var command = new Command("copy-to-default-content-location"); command.Description = "Provides operations to call the copyToDefaultContentLocation method."; - var builder = new CopyToDefaultContentLocationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -319,7 +322,7 @@ public Command BuildIsPublishedNavCommand() { var command = new Command("is-published"); command.Description = "Provides operations to call the isPublished method."; - var builder = new IsPublishedRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.IsPublished.IsPublishedRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -373,8 +376,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(ContentType.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ContentType.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -405,7 +408,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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Publish.PublishRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -422,7 +425,7 @@ public Command BuildUnpublishNavCommand() { var command = new Command("unpublish"); command.Description = "Provides operations to call the unpublish method."; - var builder = new UnpublishRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Unpublish.UnpublishRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -432,14 +435,14 @@ public Command BuildUnpublishNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentTypeItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%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 ContentTypeItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}{?%24expand,%24select}", rawUrl) @@ -471,11 +474,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); @@ -491,11 +494,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(ContentType body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ContentType body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ContentType body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ContentType body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -507,7 +510,8 @@ public RequestInformation ToPatchRequestInformation(ContentType body, Action /// The collection of content types present in this list. /// - public class ContentTypeItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentTypeItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -532,3 +536,4 @@ public class ContentTypeItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs index b700e8e28e..319022cd09 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationPostRequestBody.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.CopyToDefaultContentLocation { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToDefaultContentLocationPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToDefaultContentLocationPostRequestBody : 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,13 +26,13 @@ public class CopyToDefaultContentLocationPostRequestBody : IAdditionalDataHolder /// The sourceFile property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ItemReference? SourceFile { get; set; } + public global::ApiSdk.Models.ItemReference? SourceFile { get; set; } #nullable restore #else - public ItemReference SourceFile { get; set; } + public global::ApiSdk.Models.ItemReference SourceFile { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToDefaultContentLocationPostRequestBody() { @@ -39,12 +41,12 @@ public CopyToDefaultContentLocationPostRequestBody() /// /// 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 CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToDefaultContentLocationPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "destinationFileName", n => { DestinationFileName = n.GetStringValue(); } }, - { "sourceFile", n => { SourceFile = n.GetObjectValue(ItemReference.CreateFromDiscriminatorValue); } }, + { "sourceFile", n => { SourceFile = n.GetObjectValue(global::ApiSdk.Models.ItemReference.CreateFromDiscriminatorValue); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("destinationFileName", DestinationFileName); - writer.WriteObjectValue("sourceFile", SourceFile); + writer.WriteObjectValue("sourceFile", SourceFile); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs index d9146bd29f..2dbbee1a75 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/CopyToDefaultContentLocation/CopyToDefaultContentLocationRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.CopyToDefau /// /// Provides operations to call the copyToDefaultContentLocation method. /// - public class CopyToDefaultContentLocationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToDefaultContentLocationRequestBuilder : BaseCliRequestBuilder { /// /// Copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. @@ -58,8 +61,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(CopyToDefaultContentLocationPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -81,14 +84,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 CopyToDefaultContentLocationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", 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 CopyToDefaultContentLocationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", rawUrl) @@ -102,11 +105,11 @@ public CopyToDefaultContentLocationRequestBuilder(string rawUrl) : base("{+baseu /// 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(CopyToDefaultContentLocationPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.CopyToDefaultContentLocation.CopyToDefaultContentLocationPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -117,3 +120,4 @@ public RequestInformation ToPostRequestInformation(CopyToDefaultContentLocationP } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs index fc54622a06..c9618244e8 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedGetResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.IsPublished { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IsPublishedGetResponse : IAdditionalDataHolder, IParsable + public partial class IsPublishedGetResponse : 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. @@ -15,7 +17,7 @@ public class IsPublishedGetResponse : IAdditionalDataHolder, IParsable /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public IsPublishedGetResponse() { @@ -24,12 +26,12 @@ public IsPublishedGetResponse() /// /// 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 IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.IsPublished.IsPublishedGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IsPublishedGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.IsPublished.IsPublishedGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs index a85dd7fd42..ac16a45f42 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ContentTypes/Item/IsPublished/IsPublishedRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.IsPublished /// /// Provides operations to call the isPublished method. /// - public class IsPublishedRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IsPublishedRequestBuilder : BaseCliRequestBuilder { /// /// Check the publishing status of a contentType in a content type hub site. @@ -78,14 +81,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 IsPublishedRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/isPublished()", 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 IsPublishedRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/isPublished()", rawUrl) @@ -112,3 +115,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.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 { /// /// Publishes a contentType present in the content type hub site. @@ -68,14 +71,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/publish", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.Item.Unpublish /// /// Provides operations to call the unpublish method. /// - public class UnpublishRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnpublishRequestBuilder : BaseCliRequestBuilder { /// /// Unpublish a contentType from a content type hub site. @@ -68,14 +71,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 UnpublishRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/unpublish", 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 UnpublishRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/contentTypes/{contentType%2Did}/unpublish", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.MailboxSettings; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors; 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.Groups.Item.Sites.Item.Lists.Item.CreatedByUser /// /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. /// - public class CreatedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who created the item. Read-only. @@ -95,7 +98,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -113,7 +116,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CreatedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser{?%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 CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who created the item. Read-only. /// - public class CreatedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class CreatedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index cb18d45e00..12f7cc278f 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.MailboxSettings /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\createdByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -125,8 +128,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -149,14 +152,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -169,11 +172,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -189,11 +192,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -205,7 +208,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,3 +234,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index c4610a4f69..2f12ac9a3c 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/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.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisio /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 0fdd5c6795..43146a5f05 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors.Count; 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.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisio /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\createdByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -154,31 +157,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -187,9 +190,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.cs index 18f5fa204a..90415ce462 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Drive/DriveRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Drive /// /// Provides operations to manage the drive property of the microsoft.graph.list entity. /// - public class DriveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveRequestBuilder : BaseCliRequestBuilder { /// /// Allows access to the list as a drive resource with driveItems. Only present on document libraries. @@ -86,14 +89,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 DriveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/drive{?%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 DriveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/drive{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public DriveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// Allows access to the list as a drive resource with driveItems. Only present on document libraries. /// - public class DriveRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class DriveRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Delta/DeltaGetResponse.cs index b05af4bbe7..0bc224da7b 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.Lists.Item.Items.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.ListItem.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ListItem.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Delta/DeltaRequestBuilder.cs index 6322f041af..958bb55c2c 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Delta/DeltaRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// /// Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. @@ -136,14 +139,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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -156,11 +159,11 @@ public DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -171,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/DeltaWithToken/DeltaWithTokenGetResponse.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/DeltaWithToken/DeltaWithTokenGetResponse.cs index 192aeb846b..344156db0f 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/DeltaWithToken/DeltaWithTokenGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/DeltaWithToken/DeltaWithTokenGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.Lists.Item.Items.DeltaWithToken { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaWithTokenGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaWithTokenGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaWithTokenGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.DeltaWithToken.DeltaWithTokenGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaWithTokenGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.DeltaWithToken.DeltaWithTokenGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.ListItem.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ListItem.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/DeltaWithToken/DeltaWithTokenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/DeltaWithToken/DeltaWithTokenRequestBuilder.cs index 8e444d4491..2496d73cb1 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/DeltaWithToken/DeltaWithTokenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/DeltaWithToken/DeltaWithTokenRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.DeltaWithToken /// /// Provides operations to call the delta method. /// - public class DeltaWithTokenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaWithTokenRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function delta @@ -141,14 +144,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 DeltaWithTokenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/delta(token='{token}'){?%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 DeltaWithTokenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -161,11 +164,11 @@ public DeltaWithTokenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -176,7 +179,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function delta /// - public class DeltaWithTokenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaWithTokenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -240,3 +244,4 @@ public class DeltaWithTokenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs index ec894b6016..fa2446aa33 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Analytics/AnalyticsRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.Analytics /// /// Provides operations to manage the analytics property of the microsoft.graph.listItem entity. /// - public class AnalyticsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AnalyticsRequestBuilder : BaseCliRequestBuilder { /// /// Analytics about the view activities that took place on this item. @@ -92,14 +95,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 AnalyticsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/analytics{?%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 AnalyticsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/analytics{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public AnalyticsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// Analytics about the view activities that took place on this item. /// - public class AnalyticsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AnalyticsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class AnalyticsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs index 0536aeca52..1d6f14e15b 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateLinkPostRequestBody : 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. @@ -34,10 +36,10 @@ public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable /// The recipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Recipients { get; set; } + public List? Recipients { get; set; } #nullable restore #else - public List Recipients { get; set; } + public List Recipients { get; set; } #endif /// The retainInheritedPermissions property public bool? RetainInheritedPermissions { get; set; } @@ -60,7 +62,7 @@ public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateLinkPostRequestBody() { @@ -69,12 +71,12 @@ public CreateLinkPostRequestBody() /// /// 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 CreateLinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink.CreateLinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateLinkPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink.CreateLinkPostRequestBody(); } /// /// The deserialization information for the current model @@ -87,7 +89,7 @@ public virtual IDictionary> GetFieldDeserializers() { "expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, { "message", n => { Message = n.GetStringValue(); } }, { "password", n => { Password = n.GetStringValue(); } }, - { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } }, { "retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, { "scope", n => { Scope = n.GetStringValue(); } }, { "sendNotification", n => { SendNotification = n.GetBoolValue(); } }, @@ -104,7 +106,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); writer.WriteStringValue("message", Message); writer.WriteStringValue("password", Password); - writer.WriteCollectionOfObjectValues("recipients", Recipients); + writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); writer.WriteStringValue("scope", Scope); writer.WriteBoolValue("sendNotification", SendNotification); @@ -113,3 +115,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs index bed71195ce..021b5e4119 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink /// /// Provides operations to call the createLink method. /// - public class CreateLinkRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateLinkRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action createLink @@ -66,8 +69,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(CreateLinkPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink.CreateLinkPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -91,14 +94,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 CreateLinkRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createLink", 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 CreateLinkRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createLink", rawUrl) @@ -112,11 +115,11 @@ public CreateLinkRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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(CreateLinkPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink.CreateLinkPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink.CreateLinkPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -127,3 +130,4 @@ public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody bod } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 0b697ffdd2..52ae18f0dd 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.MailboxSettings; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors; 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.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser /// /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. /// - public class CreatedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who created the item. Read-only. @@ -101,7 +104,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -119,7 +122,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -135,14 +138,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CreatedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser{?%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 CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser{?%24expand,%24select}", rawUrl) @@ -155,11 +158,11 @@ public CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -170,7 +173,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who created the item. Read-only. /// - public class CreatedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,3 +199,4 @@ public class CreatedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 4c924ad6ed..cbda808c98 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.Mail /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\items\{listItem-id}\createdByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -136,8 +139,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -181,11 +184,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -201,11 +204,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -217,7 +220,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -242,3 +246,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 2fe240946e..b960a300cf 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/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.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.Serv /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index b4709a2cfe..64f218f2b2 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count; 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.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.Serv /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\items\{listItem-id}\createdByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -160,31 +163,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -193,9 +196,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -259,3 +263,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs index d6cdea8aee..1e29e390c4 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/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.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersion /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs index a6f3d42270..928f578021 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/DocumentSetVersionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersions.Count; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersions.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersion /// /// Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. /// - public class DocumentSetVersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DocumentSetVersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new DocumentSetVersionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersions.Item.DocumentSetVersionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFieldsNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -101,8 +104,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(DocumentSetVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DocumentSetVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -246,14 +249,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 DocumentSetVersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions{?%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 DocumentSetVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -266,11 +269,11 @@ public DocumentSetVersionsRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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); @@ -286,11 +289,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(DocumentSetVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DocumentSetVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DocumentSetVersion body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DocumentSetVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -302,7 +305,8 @@ public RequestInformation ToPostRequestInformation(DocumentSetVersion body, Acti /// /// Version information for a document set version created by a user. /// - public class DocumentSetVersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DocumentSetVersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -366,3 +370,4 @@ public class DocumentSetVersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs index 2cabb14387..422b78ae06 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/DocumentSetVersionItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersions.Item.Fields; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersions.Item.Restore; 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.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersion /// /// Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. /// - public class DocumentSetVersionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DocumentSetVersionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property documentSetVersions for groups @@ -90,7 +93,7 @@ public Command BuildFieldsNavCommand() { var command = new Command("fields"); command.Description = "Provides operations to manage the fields property of the microsoft.graph.listItemVersion entity."; - var builder = new FieldsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersions.Item.Fields.FieldsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -227,8 +230,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(DocumentSetVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.DocumentSetVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -260,7 +263,7 @@ public Command BuildRestoreNavCommand() { var command = new Command("restore"); command.Description = "Provides operations to call the restore method."; - var builder = new RestoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersions.Item.Restore.RestoreRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -270,14 +273,14 @@ public Command BuildRestoreNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DocumentSetVersionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%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 DocumentSetVersionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24expand,%24select}", rawUrl) @@ -309,11 +312,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); @@ -329,11 +332,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(DocumentSetVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DocumentSetVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(DocumentSetVersion body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DocumentSetVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -345,7 +348,8 @@ public RequestInformation ToPatchRequestInformation(DocumentSetVersion body, Act /// /// Version information for a document set version created by a user. /// - public class DocumentSetVersionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DocumentSetVersionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -370,3 +374,4 @@ public class DocumentSetVersionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs index 0d6406d5f5..052ee2192a 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Fields/FieldsRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersion /// /// Provides operations to manage the fields property of the microsoft.graph.listItemVersion entity. /// - public class FieldsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property fields for groups @@ -206,8 +209,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(FieldValueSet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.FieldValueSet.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 FieldsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/fields{?%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 FieldsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/fields{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action /// A collection of the fields and values for this version of the list item. /// - public class FieldsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class FieldsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs index 6fe6c8adb8..10a470ff5a 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DocumentSetVersions/Item/Restore/RestoreRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersion /// /// Provides operations to call the restore method. /// - public class RestoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreRequestBuilder : BaseCliRequestBuilder { /// /// Restore a document set version. @@ -74,14 +77,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 RestoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/restore", 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 RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/restore", rawUrl) @@ -108,3 +111,4 @@ public RequestInformation ToPostRequestInformation(Action +#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.Groups.Item.Sites.Item.Lists.Item.Items.Item.DriveItem.Content /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -205,14 +208,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem/content{?%24format*}", rawUrl) @@ -244,11 +247,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); @@ -281,7 +284,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs index 4577217016..042248236b 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/DriveItem/DriveItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DriveItem.Content; 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.Groups.Item.Sites.Item.Lists.Item.Items.Item.DriveItem /// /// Provides operations to manage the driveItem property of the microsoft.graph.listItem entity. /// - public class DriveItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DriveItem.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -112,14 +115,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 DriveItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem{?%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 DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/driveItem{?%24expand,%24select}", rawUrl) @@ -132,11 +135,11 @@ public DriveItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -147,7 +150,8 @@ public RequestInformation ToGetRequestInformation(Action /// For document libraries, the driveItem relationship exposes the listItem as a driveItem /// - public class DriveItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DriveItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -172,3 +176,4 @@ public class DriveItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs index 4719a1e591..b893b59284 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Fields/FieldsRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.Fields /// /// Provides operations to manage the fields property of the microsoft.graph.listItem entity. /// - public class FieldsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property fields for groups @@ -189,8 +192,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(FieldValueSet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.FieldValueSet.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 FieldsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/fields{?%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 FieldsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/fields{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(FieldValueSet body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action /// The values of the columns set on this list item. /// - public class FieldsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class FieldsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs index 51acc9962f..9eba6cfed8 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInterval { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetActivitiesByIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetActivitiesByIntervalGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInterval.GetActivitiesByIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetActivitiesByIntervalGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInterval.GetActivitiesByIntervalGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs index ec9acbeb98..a3594fc00a 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByInterval/GetActivitiesByIntervalRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInt /// /// Provides operations to call the getActivitiesByInterval method. /// - public class GetActivitiesByIntervalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function getActivitiesByInterval @@ -141,14 +144,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 GetActivitiesByIntervalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/getActivitiesByInterval(){?%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 GetActivitiesByIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -161,11 +164,11 @@ public GetActivitiesByIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/g /// 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); @@ -176,7 +179,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function getActivitiesByInterval /// - public class GetActivitiesByIntervalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -240,3 +244,4 @@ public class GetActivitiesByIntervalRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs index 4c61cdc28b..431609d9c2 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ItemActivityStat.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ItemActivityStat.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs index 312b7d2481..b02f8faa86 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInt /// /// Provides operations to call the getActivitiesByInterval method. /// - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function getActivitiesByInterval @@ -159,14 +162,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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -179,11 +182,11 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques /// 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); @@ -194,7 +197,8 @@ public RequestInformation ToGetRequestInformation(Action /// Invoke function getActivitiesByInterval /// - public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -258,3 +262,4 @@ public class GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index af3211aaa7..57843aab67 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.MailboxSettings; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors; 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.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser /// /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. /// - public class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who last modified the item. Read-only. @@ -101,7 +104,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -119,7 +122,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -135,14 +138,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LastModifiedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser{?%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 LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl) @@ -155,11 +158,11 @@ public LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -170,7 +173,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who last modified the item. Read-only. /// - public class LastModifiedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -195,3 +199,4 @@ public class LastModifiedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index e7d9b39ee0..aab76c8777 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\items\{listItem-id}\lastModifiedByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -136,8 +139,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -161,14 +164,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -181,11 +184,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -201,11 +204,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -217,7 +220,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -242,3 +246,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 6c15f1cebb..a413449edb 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/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.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 1c631a92e5..1ae64927ab 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; 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.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\items\{listItem-id}\lastModifiedByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -160,31 +163,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -193,9 +196,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -259,3 +263,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs index 2e6834b384..0aa77a0710 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Analytics; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser; @@ -11,6 +12,7 @@ using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions; 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; @@ -29,7 +31,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item /// /// Provides operations to manage the items property of the microsoft.graph.list entity. /// - public class ListItemItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the analytics property of the microsoft.graph.listItem entity. @@ -39,7 +42,7 @@ public Command BuildAnalyticsNavCommand() { var command = new Command("analytics"); command.Description = "Provides operations to manage the analytics property of the microsoft.graph.listItem entity."; - var builder = new AnalyticsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Analytics.AnalyticsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -56,7 +59,7 @@ public Command BuildCreatedByUserNavCommand() { var command = new Command("created-by-user"); command.Description = "Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity."; - var builder = new CreatedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser.CreatedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -80,7 +83,7 @@ public Command BuildCreateLinkNavCommand() { var command = new Command("create-link"); command.Description = "Provides operations to call the createLink method."; - var builder = new CreateLinkRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink.CreateLinkRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -150,7 +153,7 @@ public Command BuildDocumentSetVersionsNavCommand() { var command = new Command("document-set-versions"); command.Description = "Provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity."; - var builder = new DocumentSetVersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersions.DocumentSetVersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -177,7 +180,7 @@ public Command BuildDriveItemNavCommand() { var command = new Command("drive-item"); command.Description = "Provides operations to manage the driveItem property of the microsoft.graph.listItem entity."; - var builder = new DriveItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DriveItem.DriveItemRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildContentNavCommand()); @@ -200,7 +203,7 @@ public Command BuildFieldsNavCommand() { var command = new Command("fields"); command.Description = "Provides operations to manage the fields property of the microsoft.graph.listItem entity."; - var builder = new FieldsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Fields.FieldsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -219,7 +222,7 @@ public Command BuildGetActivitiesByIntervalNavCommand() { var command = new Command("get-activities-by-interval"); command.Description = "Provides operations to call the getActivitiesByInterval method."; - var builder = new GetActivitiesByIntervalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByInterval.GetActivitiesByIntervalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -236,7 +239,7 @@ public Command BuildGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithI { var command = new Command("get-activities-by-interval-with-start-date-time-with-end-date-time-with-interval"); command.Description = "Provides operations to call the getActivitiesByInterval method."; - var builder = new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -323,7 +326,7 @@ public Command BuildLastModifiedByUserNavCommand() { var command = new Command("last-modified-by-user"); command.Description = "Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity."; - var builder = new LastModifiedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.LastModifiedByUser.LastModifiedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -384,8 +387,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.ListItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ListItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -416,7 +419,7 @@ public Command BuildVersionsNavCommand() { var command = new Command("versions"); command.Description = "Provides operations to manage the versions property of the microsoft.graph.listItem entity."; - var builder = new VersionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.VersionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -436,14 +439,14 @@ public Command BuildVersionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ListItemItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%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 ListItemItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}{?%24expand,%24select}", rawUrl) @@ -475,11 +478,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); @@ -495,11 +498,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.ListItem body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ListItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ListItem body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ListItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -511,7 +514,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.ListItem body, /// /// All items contained in the list. /// - public class ListItemItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -536,3 +540,4 @@ public class ListItemItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.cs index b18c06cf9c..b6bc00b9a5 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/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.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs index 37562586a6..6164bd5467 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/Fields/FieldsRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.Item.Fiel /// /// Provides operations to manage the fields property of the microsoft.graph.listItemVersion entity. /// - public class FieldsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property fields for groups @@ -206,8 +209,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(FieldValueSet.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.FieldValueSet.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 FieldsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%2Did}/fields{?%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 FieldsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%2Did}/fields{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.FieldValueSet body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(FieldValueSet body, Action /// A collection of the fields and values for this version of the list item. /// - public class FieldsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FieldsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class FieldsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs index d9deb3db14..01a15a49fd 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/ListItemVersionItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.Item.Fields; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.Item.RestoreVersion; 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.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.Item /// /// Provides operations to manage the versions property of the microsoft.graph.listItem entity. /// - public class ListItemVersionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemVersionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property versions for groups @@ -90,7 +93,7 @@ public Command BuildFieldsNavCommand() { var command = new Command("fields"); command.Description = "Provides operations to manage the fields property of the microsoft.graph.listItemVersion entity."; - var builder = new FieldsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.Item.Fields.FieldsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -227,8 +230,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(ListItemVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ListItemVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -260,7 +263,7 @@ public Command BuildRestoreVersionNavCommand() { var command = new Command("restore-version"); command.Description = "Provides operations to call the restoreVersion method."; - var builder = new RestoreVersionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.Item.RestoreVersion.RestoreVersionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -270,14 +273,14 @@ public Command BuildRestoreVersionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ListItemVersionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%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 ListItemVersionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%2Did}{?%24expand,%24select}", rawUrl) @@ -309,11 +312,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); @@ -329,11 +332,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(ListItemVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ListItemVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ListItemVersion body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ListItemVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -345,7 +348,8 @@ public RequestInformation ToPatchRequestInformation(ListItemVersion body, Action /// /// The list of previous versions of the list item. /// - public class ListItemVersionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemVersionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -370,3 +374,4 @@ public class ListItemVersionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs index a4a487a397..0f8c25be2b 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Versions/Item/RestoreVersion/RestoreVersionRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.Item.Rest /// /// Provides operations to call the restoreVersion method. /// - public class RestoreVersionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RestoreVersionRequestBuilder : BaseCliRequestBuilder { /// /// Restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. @@ -74,14 +77,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 RestoreVersionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", 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 RestoreVersionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", rawUrl) @@ -108,3 +111,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.Count; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions /// /// Provides operations to manage the versions property of the microsoft.graph.listItem entity. /// - public class VersionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VersionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the versions property of the microsoft.graph.listItem entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ListItemVersionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.Item.ListItemVersionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFieldsNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.Lists.Item.Items.Item.Versions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -101,8 +104,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(ListItemVersion.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ListItemVersion.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -246,14 +249,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 VersionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions{?%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 VersionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -266,11 +269,11 @@ public VersionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -286,11 +289,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(ListItemVersion body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ListItemVersion body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ListItemVersion body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ListItemVersion body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -302,7 +305,8 @@ public RequestInformation ToPostRequestInformation(ListItemVersion body, Action< /// /// The list of previous versions of the list item. /// - public class VersionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VersionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -366,3 +370,4 @@ public class VersionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs index fe0d6f5f47..fe97a10b36 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Delta; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.DeltaWithToken; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items /// /// Provides operations to manage the items property of the microsoft.graph.list entity. /// - public class ItemsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the items property of the microsoft.graph.list entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ListItemItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.ListItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildAnalyticsNavCommand()); commands.Add(builder.BuildCreatedByUserNavCommand()); commands.Add(builder.BuildCreateLinkNavCommand()); @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.ListItem.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ListItem.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -119,7 +122,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -136,7 +139,7 @@ public Command BuildDeltaWithTokenRbCommand() { var command = new Command("delta-with-token"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaWithTokenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.DeltaWithToken.DeltaWithTokenRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -181,6 +184,10 @@ public Command BuildListCommand() }; filterOption.IsRequired = false; command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); var orderbyOption = new Option("--orderby", description: "Order items by property values") { Arity = ArgumentArity.ZeroOrMore }; @@ -210,6 +217,7 @@ public Command BuildListCommand() var skip = invocationContext.ParseResult.GetValueForOption(skipOption); var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); var expand = invocationContext.ParseResult.GetValueForOption(expandOption); @@ -226,6 +234,7 @@ public Command BuildListCommand() q.QueryParameters.Skip = skip; if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; q.QueryParameters.Expand = expand; @@ -254,17 +263,17 @@ 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 ItemsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items{?%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public ItemsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items{?%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 ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items{?%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -274,11 +283,11 @@ public ItemsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -294,11 +303,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(ApiSdk.Models.ListItem body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ListItem body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.ListItem body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ListItem body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -310,8 +319,12 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.ListItem body, /// /// All items contained in the list. /// - public class ItemsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ItemsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -371,3 +384,4 @@ public class ItemsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index b9c5015aee..716d043bf0 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.MailboxSettings; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors; 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.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser /// /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. /// - public class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who last modified the item. Read-only. @@ -95,7 +98,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -113,7 +116,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LastModifiedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser{?%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 LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who last modified the item. Read-only. /// - public class LastModifiedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class LastModifiedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 96ae8db152..8f1b68483e 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.MailboxSet /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\lastModifiedByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -125,8 +128,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -149,14 +152,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -169,11 +172,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -189,11 +192,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -205,7 +208,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,3 +234,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index df7e16d382..dd92c76b2f 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/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.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.ServicePro /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index ac051bf8b0..377a940510 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; 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.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.ServicePro /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\lists\{list-id}\lastModifiedByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -154,31 +157,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -187,9 +190,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs index fc4c13beb0..e7476e6dfa 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Columns; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.CreatedByUser; @@ -9,6 +10,7 @@ using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Subscriptions; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -27,7 +29,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item /// /// Provides operations to manage the lists property of the microsoft.graph.site entity. /// - public class ListItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columns property of the microsoft.graph.list entity. @@ -37,7 +40,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.list entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -64,7 +67,7 @@ public Command BuildContentTypesNavCommand() { var command = new Command("content-types"); command.Description = "Provides operations to manage the contentTypes property of the microsoft.graph.list entity."; - var builder = new ContentTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ContentTypes.ContentTypesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddCopyFromContentTypeHubNavCommand()); @@ -94,7 +97,7 @@ public Command BuildCreatedByUserNavCommand() { var command = new Command("created-by-user"); command.Description = "Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity."; - var builder = new CreatedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.CreatedByUser.CreatedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -165,7 +168,7 @@ public Command BuildDriveNavCommand() { var command = new Command("drive"); command.Description = "Provides operations to manage the drive property of the microsoft.graph.list entity."; - var builder = new DriveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Drive.DriveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -246,7 +249,7 @@ public Command BuildItemsNavCommand() { var command = new Command("items"); command.Description = "Provides operations to manage the items property of the microsoft.graph.list entity."; - var builder = new ItemsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.ItemsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildCreateCommand()); @@ -274,7 +277,7 @@ public Command BuildLastModifiedByUserNavCommand() { var command = new Command("last-modified-by-user"); command.Description = "Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity."; - var builder = new LastModifiedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.LastModifiedByUser.LastModifiedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -298,7 +301,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.list entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -357,8 +360,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.List.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.List.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -388,7 +391,7 @@ public Command BuildSubscriptionsNavCommand() { var command = new Command("subscriptions"); command.Description = "Provides operations to manage the subscriptions property of the microsoft.graph.list entity."; - var builder = new SubscriptionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Subscriptions.SubscriptionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -408,14 +411,14 @@ public Command BuildSubscriptionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ListItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%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 ListItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}{?%24expand,%24select}", rawUrl) @@ -447,11 +450,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); @@ -467,11 +470,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.List body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.List body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.List body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.List body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -483,7 +486,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.List body, Act /// /// The collection of lists under this site. /// - public class ListItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -508,3 +512,4 @@ public class ListItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.cs index 18ea6dc242..798e8c6a22 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/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.Groups.Item.Sites.Item.Lists.Item.Operations.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs index 19bac21536..abaa3822a1 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Operations.Item /// /// Provides operations to manage the operations property of the microsoft.graph.list entity. /// - public class RichLongRunningOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RichLongRunningOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property operations for groups @@ -189,8 +192,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(RichLongRunningOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RichLongRunningOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 RichLongRunningOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations/{richLongRunningOperation%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 RichLongRunningOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations/{richLongRunningOperation%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(RichLongRunningOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(RichLongRunningOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(RichLongRunningOperation bod /// /// The collection of long-running operations on the list. /// - public class RichLongRunningOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RichLongRunningOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class RichLongRunningOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs index a710ce52bc..72ff372b89 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Operations/OperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Operations.Count; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Operations.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.Groups.Item.Sites.Item.Lists.Item.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.list entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the operations property of the microsoft.graph.list entity. @@ -30,7 +33,7 @@ public class OperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new RichLongRunningOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Operations.Item.RichLongRunningOperationItemRequestBuilder(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.Groups.Item.Sites.Item.Lists.Item.Operations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(RichLongRunningOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RichLongRunningOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -231,14 +234,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 OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -251,11 +254,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -271,11 +274,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(RichLongRunningOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RichLongRunningOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,7 +290,8 @@ public RequestInformation ToPostRequestInformation(RichLongRunningOperation body /// /// The collection of long-running operations on the list. /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -351,3 +355,4 @@ public class OperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.cs index 0dc5451ecd..4f895a2e9f 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/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.Groups.Item.Sites.Item.Lists.Item.Subscriptions.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/$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}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs index caabaf9353..d2d460900c 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/Item/Reauthorize/ReauthorizeRequestBuilder.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.Groups.Item.Sites.Item.Lists.Item.Subscriptions.Item.Reauthoriz /// /// Provides operations to call the reauthorize method. /// - public class ReauthorizeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReauthorizeRequestBuilder : BaseCliRequestBuilder { /// /// Reauthorize a subscription when you receive a reauthorizationRequired challenge. @@ -68,14 +71,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 ReauthorizeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/{subscription%2Did}/reauthorize", 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 ReauthorizeRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/{subscription%2Did}/reauthorize", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Subscriptions.Item.Reauthorize; 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.Groups.Item.Sites.Item.Lists.Item.Subscriptions.Item /// /// Provides operations to manage the subscriptions property of the microsoft.graph.list entity. /// - public class SubscriptionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property subscriptions for groups @@ -190,8 +193,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(Subscription.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Subscription.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildReauthorizeNavCommand() { var command = new Command("reauthorize"); command.Description = "Provides operations to call the reauthorize method."; - var builder = new ReauthorizeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Subscriptions.Item.Reauthorize.ReauthorizeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildReauthorizeNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SubscriptionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/{subscription%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 SubscriptionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions/{subscription%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Subscription body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Subscription body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Subscription body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Subscription body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(Subscription body, Action /// The set of subscriptions on the list. /// - public class SubscriptionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class SubscriptionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs index 7f610b3b57..1a1832f1f8 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Subscriptions/SubscriptionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Subscriptions.Count; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Subscriptions.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.Groups.Item.Sites.Item.Lists.Item.Subscriptions /// /// Provides operations to manage the subscriptions property of the microsoft.graph.list entity. /// - public class SubscriptionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the subscriptions property of the microsoft.graph.list entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SubscriptionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.Subscriptions.Item.SubscriptionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Lists.Item.Subscriptions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(Subscription.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Subscription.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 SubscriptionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions{?%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 SubscriptionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public SubscriptionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -273,11 +276,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(Subscription body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Subscription body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Subscription body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Subscription body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(Subscription body, Action /// The set of subscriptions on the list. /// - public class SubscriptionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscriptionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class SubscriptionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs index 74b58d69e6..0040051ffd 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/ListsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Lists.Count; using ApiSdk.Groups.Item.Sites.Item.Lists.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.Groups.Item.Sites.Item.Lists /// /// Provides operations to manage the lists property of the microsoft.graph.site entity. /// - public class ListsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the lists property of the microsoft.graph.site entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ListItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Item.ListItemRequestBuilder(PathParameters); commands.Add(builder.BuildColumnsNavCommand()); commands.Add(builder.BuildContentTypesNavCommand()); commands.Add(builder.BuildCreatedByUserNavCommand()); @@ -53,7 +56,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to count the resources in the collection."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -97,8 +100,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.List.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.List.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -228,14 +231,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 ListsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists{?%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 ListsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -248,11 +251,11 @@ public ListsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -268,11 +271,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(ApiSdk.Models.List body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.List body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.List body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.List body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -284,7 +287,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.List body, Acti /// /// The collection of lists under this site. /// - public class ListsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -348,3 +352,4 @@ public class ListsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs index 2a77dc1d01..e4e321c5ad 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/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.Groups.Item.Sites.Item.Onenote.Notebooks.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs index 47c96fac27..de438212c6 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetNotebookFromWebUrl { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetNotebookFromWebUrlPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GetNotebookFromWebUrlPostRequestBody : 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. @@ -21,7 +23,7 @@ public class GetNotebookFromWebUrlPostRequestBody : IAdditionalDataHolder, IPars public string WebUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GetNotebookFromWebUrlPostRequestBody() { @@ -30,12 +32,12 @@ public GetNotebookFromWebUrlPostRequestBody() /// /// 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 GetNotebookFromWebUrlPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetNotebookFromWebUrlPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs index 33045388ad..91866d700b 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetNotebookFromWebUrl/GetNotebookFromWebUrlRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.GetNotebookFromWebUrl /// /// Provides operations to call the getNotebookFromWebUrl method. /// - public class GetNotebookFromWebUrlRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetNotebookFromWebUrlRequestBuilder : BaseCliRequestBuilder { /// /// Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. @@ -57,8 +60,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(GetNotebookFromWebUrlPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 GetNotebookFromWebUrlRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/getNotebookFromWebUrl", 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 GetNotebookFromWebUrlRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/getNotebookFromWebUrl", rawUrl) @@ -101,11 +104,11 @@ public GetNotebookFromWebUrlRequestBuilder(string rawUrl) : base("{+baseurl}/gro /// 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(GetNotebookFromWebUrlPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GetNotebookFromWebUrlPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(GetNotebookFromWebUrlPostRequ } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs index a1cbdba3fa..73bf1eed45 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetRecentNotebooksWithIncludePersonalNotebooksGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetRecentNotebooksWithIncludePersonalNotebooksGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks.GetRecentNotebooksWithIncludePersonalNotebooksGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetRecentNotebooksWithIncludePersonalNotebooksGetResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks.GetRecentNotebooksWithIncludePersonalNotebooksGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(RecentNotebook.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.RecentNotebook.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs index 2be8a2ee88..46b9560e9f 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/GetRecentNotebooksWithIncludePersonalNotebooks/GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWith /// /// Provides operations to call the getRecentNotebooks method. /// - public class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder : BaseCliRequestBuilder { /// /// Get a list of recentNotebook instances that have been accessed by the signed-in user. @@ -115,14 +118,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 GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks={includePersonalNotebooks}){?%24count,%24filter,%24search,%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 GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks={includePersonalNotebooks}){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) @@ -135,11 +138,11 @@ public GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(string rawUr /// 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); @@ -150,7 +153,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get a list of recentNotebook instances that have been accessed by the signed-in user. /// - public class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -184,3 +188,4 @@ public class GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetQuer } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs index a3b1840fac..2f6802ff1e 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.CopyNotebook { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyNotebookPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyNotebookPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyNotebookPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyNotebookPostRequestBody() { @@ -62,12 +64,12 @@ public CopyNotebookPostRequestBody() /// /// 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 CopyNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyNotebookPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs index 691e0c7f49..895a21ccf3 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/CopyNotebook/CopyNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.CopyNotebook /// /// Provides operations to call the copyNotebook method. /// - public class CopyNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyNotebookRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -62,8 +65,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(CopyNotebookPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CopyNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook", 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 CopyNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/copyNotebook", rawUrl) @@ -107,11 +110,11 @@ public CopyNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{grou /// 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(CopyNotebookPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyNotebookPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CopyNotebookPostRequestBody b } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs index 110834718c..42b0bc85d5 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/NotebookItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.CopyNotebook; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections; 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.Groups.Item.Sites.Item.Onenote.Notebooks.Item /// /// Provides operations to manage the notebooks property of the microsoft.graph.onenote entity. /// - public class NotebookItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotebookItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the copyNotebook method. @@ -32,7 +35,7 @@ public Command BuildCopyNotebookNavCommand() { var command = new Command("copy-notebook"); command.Description = "Provides operations to call the copyNotebook method."; - var builder = new CopyNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.CopyNotebook.CopyNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -192,8 +195,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(Notebook.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Notebook.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -223,7 +226,7 @@ public Command BuildSectionGroupsNavCommand() { var command = new Command("section-groups"); command.Description = "Provides operations to manage the sectionGroups property of the microsoft.graph.notebook entity."; - var builder = new SectionGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.SectionGroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -250,7 +253,7 @@ public Command BuildSectionsNavCommand() { var command = new Command("sections"); command.Description = "Provides operations to manage the sections property of the microsoft.graph.notebook entity."; - var builder = new SectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.SectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -270,14 +273,14 @@ public Command BuildSectionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public NotebookItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%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 NotebookItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}{?%24expand,%24select}", rawUrl) @@ -309,11 +312,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); @@ -329,11 +332,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(Notebook body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Notebook body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Notebook body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Notebook body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -345,7 +348,8 @@ public RequestInformation ToPatchRequestInformation(Notebook body, Action /// The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class NotebookItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotebookItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -370,3 +374,4 @@ public class NotebookItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs index 915fe3e3f1..58cf1c7223 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Cou /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 2c4e2e55ab..fb4e3b1118 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.sectionGroup entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section group. Read-only. @@ -92,14 +95,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section group. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index db8d35d5f3..2930a37cea 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.sectionGroup entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section group. Read-only. @@ -92,14 +95,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section group. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 878f526736..4a48c15053 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.ParentNotebook; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.ParentSectionGroup; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.notebook entity. /// - public class SectionGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property sectionGroups for groups @@ -156,7 +159,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.sectionGroup entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -173,7 +176,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.sectionGroup entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -227,8 +230,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(SectionGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SectionGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildSectionsNavCommand() { var command = new Command("sections"); command.Description = "Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity."; - var builder = new SectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.SectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -286,7 +289,7 @@ public Command BuildSubSectionGroupsNavCommand() { var command = new Command("sub-section-groups"); command.Description = "Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.SectionGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.SectionGroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -305,14 +308,14 @@ public Command BuildSubSectionGroupsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SectionGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%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 SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}{?%24expand,%24select}", rawUrl) @@ -344,11 +347,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); @@ -364,11 +367,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(SectionGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SectionGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SectionGroup body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SectionGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -380,7 +383,8 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action /// The section groups in the notebook. Read-only. Nullable. /// - public class SectionGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -405,3 +409,4 @@ public class SectionGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index 9bfb864ed6..1dc558f6b0 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index b16b47f10e..7dbc553769 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. /// - public class SectionGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// The section groups in the section. Read-only. Nullable. @@ -98,14 +101,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 SectionGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section groups in the section. Read-only. Nullable. /// - public class SectionGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SectionGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index 1cd5141d9c..bde68e02e2 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. /// - public class SectionGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. @@ -30,7 +33,7 @@ public class SectionGroupsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -172,14 +175,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 SectionGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%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 SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -192,11 +195,11 @@ public SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -207,7 +210,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section groups in the section. Read-only. Nullable. /// - public class SectionGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -271,3 +275,4 @@ public class SectionGroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index 66c9a4b994..5c929ec87b 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 2af1d3c786..15817b54aa 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToNotebookPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToNotebookPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToNotebookPostRequestBody() /// /// 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 CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToNotebookPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index a23b9661aa..eeb1c8623e 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to call the copyToNotebook method. /// - public class CopyToNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToNotebookRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -72,8 +75,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(CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -98,14 +101,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 CopyToNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", 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 CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) @@ -119,11 +122,11 @@ public CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -134,3 +137,4 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 91472318ef..d58b1906d7 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionGroupPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsabl public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionGroupPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToSectionGroupPostRequestBody() /// /// 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 CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionGroupPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 368c61762c..54f59a35cf 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to call the copyToSectionGroup method. /// - public class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -72,8 +75,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(CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -98,14 +101,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 CopyToSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", 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 CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) @@ -119,11 +122,11 @@ public CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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(CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -134,3 +137,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index f96482bc65..c4405d5a89 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.ParentSectionGroup; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. /// - public class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the copyToNotebook method. @@ -34,7 +37,7 @@ public Command BuildCopyToNotebookNavCommand() { var command = new Command("copy-to-notebook"); command.Description = "Provides operations to call the copyToNotebook method."; - var builder = new CopyToNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCopyToSectionGroupNavCommand() { var command = new Command("copy-to-section-group"); command.Description = "Provides operations to call the copyToSectionGroup method."; - var builder = new CopyToSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -203,7 +206,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -230,7 +233,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -247,7 +250,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -306,8 +309,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -332,14 +335,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 OnenoteSectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%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 OnenoteSectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}", rawUrl) @@ -371,11 +374,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); @@ -391,11 +394,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -407,7 +410,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< /// /// The sections in the section group. Read-only. Nullable. /// - public class OnenoteSectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -432,3 +436,4 @@ public class OnenoteSectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 8249f0aedb..9cb3b834c9 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index e21e5ea150..5fe988752f 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The page's HTML content. @@ -235,14 +238,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", rawUrl) @@ -310,3 +313,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionPostRequestBody : 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. @@ -45,7 +47,7 @@ public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionPostRequestBody() { @@ -54,12 +56,12 @@ public CopyToSectionPostRequestBody() /// /// 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 CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index ad440a31e7..3cc7de6d0a 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to call the copyToSection method. /// - public class CopyToSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionRequestBuilder : BaseCliRequestBuilder { /// /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -77,8 +80,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(CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -104,14 +107,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 CopyToSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", 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 CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) @@ -125,11 +128,11 @@ public CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -140,3 +143,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 4c96d13d07..5d9eb18a41 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.Content; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.Preview; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class OnenotePageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -35,7 +38,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -54,7 +57,7 @@ public Command BuildCopyToSectionNavCommand() { var command = new Command("copy-to-section"); command.Description = "Provides operations to call the copyToSection method."; - var builder = new CopyToSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -218,7 +221,7 @@ public Command BuildOnenotePatchContentNavCommand() { var command = new Command("onenote-patch-content"); command.Description = "Provides operations to call the onenotePatchContent method."; - var builder = new OnenotePatchContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -235,7 +238,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -252,7 +255,7 @@ public Command BuildParentSectionNavCommand() { var command = new Command("parent-section"); command.Description = "Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity."; - var builder = new ParentSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.ParentSection.ParentSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -316,8 +319,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -350,7 +353,7 @@ public Command BuildPreviewNavCommand() { var command = new Command("preview"); command.Description = "Provides operations to call the preview method."; - var builder = new PreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.Preview.PreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -360,14 +363,14 @@ public Command BuildPreviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenotePageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%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 OnenotePageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}", rawUrl) @@ -399,11 +402,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); @@ -419,11 +422,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -435,7 +438,8 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class OnenotePageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -460,3 +464,4 @@ public class OnenotePageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index aa0f8be201..a2aa449e07 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OnenotePatchContentPostRequestBody : 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. @@ -16,13 +18,13 @@ public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsab /// The commands property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Commands { get; set; } + public List? Commands { get; set; } #nullable restore #else - public List Commands { get; set; } + public List Commands { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OnenotePatchContentPostRequestBody() { @@ -31,12 +33,12 @@ public OnenotePatchContentPostRequestBody() /// /// 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 OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OnenotePatchContentPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, + { "commands", n => { Commands = n.GetCollectionOfObjectValues(global::ApiSdk.Models.OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("commands", Commands); + writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 8af6e4fcd6..7702c0812b 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to call the onenotePatchContent method. /// - public class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action onenotePatchContent @@ -67,8 +70,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(OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 OnenotePatchContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", 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 OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", rawUrl) @@ -113,11 +116,11 @@ public OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 542b4ebfa5..1c12174a3d 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the page. Read-only. @@ -104,14 +107,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the page. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 426daa8959..c73ec1e2a4 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity. /// - public class ParentSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilder : BaseCliRequestBuilder { /// /// The section that contains the page. Read-only. @@ -104,14 +107,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 ParentSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%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 ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section that contains the page. Read-only. /// - public class ParentSectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ParentSectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 1a65e23d38..e7f968b8cf 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to call the preview method. /// - public class PreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PreviewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function preview @@ -90,14 +93,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 PreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", 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 PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", rawUrl) @@ -124,3 +127,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenotePageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePageItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); commands.Add(builder.BuildCopyToSectionNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -51,7 +54,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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.Pages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -110,8 +113,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -262,14 +265,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -282,11 +285,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -302,11 +305,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -318,7 +321,8 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -382,3 +386,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 2e5422cbea..72841a6549 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section. Read-only. @@ -98,14 +101,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index ee643a9ff0..cb9248f56b 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section. Read-only. @@ -98,14 +101,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 80c319ec86..25ad0e50aa 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Ite /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. /// - public class SectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenoteSectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Item.OnenoteSectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildCopyToNotebookNavCommand()); commands.Add(builder.BuildCopyToSectionGroupNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -50,7 +53,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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.Sections.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -104,8 +107,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -249,14 +252,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 SectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%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 SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -269,11 +272,11 @@ public SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -289,11 +292,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -305,7 +308,8 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action /// The sections in the section group. Read-only. Nullable. /// - public class SectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -369,3 +373,4 @@ public class SectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs index cca258e97d..3b449a8921 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.notebook entity. /// - public class SectionGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.notebook entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SectionGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildParentNotebookNavCommand()); @@ -49,7 +52,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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.SectionGroups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -98,8 +101,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(SectionGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SectionGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -236,14 +239,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 SectionGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%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 SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -256,11 +259,11 @@ public SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -276,11 +279,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(SectionGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SectionGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SectionGroup body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SectionGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -292,7 +295,8 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action /// The section groups in the notebook. Read-only. Nullable. /// - public class SectionGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -356,3 +360,4 @@ public class SectionGroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs index 2b39764756..df9ce49f0d 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index e169951279..14979a5e67 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToNotebookPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToNotebookPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToNotebookPostRequestBody() /// /// 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 CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToNotebookPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 6dcfd9024f..c36a1b9af0 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Cop /// /// Provides operations to call the copyToNotebook method. /// - public class CopyToNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToNotebookRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -67,8 +70,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(CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 CopyToNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", 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 CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) @@ -113,11 +116,11 @@ public CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index ed12391330..188dbd91a9 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionGroupPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsabl public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionGroupPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToSectionGroupPostRequestBody() /// /// 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 CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionGroupPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index e92e079487..835d7faecb 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Cop /// /// Provides operations to call the copyToSectionGroup method. /// - public class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -67,8 +70,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(CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 CopyToSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", 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 CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) @@ -113,11 +116,11 @@ public CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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(CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index f037ed8c18..cfcbad64f5 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.ParentSectionGroup; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item /// /// Provides operations to manage the sections property of the microsoft.graph.notebook entity. /// - public class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the copyToNotebook method. @@ -34,7 +37,7 @@ public Command BuildCopyToNotebookNavCommand() { var command = new Command("copy-to-notebook"); command.Description = "Provides operations to call the copyToNotebook method."; - var builder = new CopyToNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToNotebook.CopyToNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCopyToSectionGroupNavCommand() { var command = new Command("copy-to-section-group"); command.Description = "Provides operations to call the copyToSectionGroup method."; - var builder = new CopyToSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,7 +194,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -218,7 +221,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -235,7 +238,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -289,8 +292,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -314,14 +317,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 OnenoteSectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%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 OnenoteSectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}", rawUrl) @@ -353,11 +356,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); @@ -373,11 +376,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -389,7 +392,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< /// /// The sections in the notebook. Read-only. Nullable. /// - public class OnenoteSectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -414,3 +418,4 @@ public class OnenoteSectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 6f71b6fc2c..689c6cd72b 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pag /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 908eee6334..a513a2bfbe 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pag /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The page's HTML content. @@ -217,14 +220,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", rawUrl) @@ -292,3 +295,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionPostRequestBody : 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. @@ -45,7 +47,7 @@ public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionPostRequestBody() { @@ -54,12 +56,12 @@ public CopyToSectionPostRequestBody() /// /// 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 CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 152404b148..9286705008 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pag /// /// Provides operations to call the copyToSection method. /// - public class CopyToSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionRequestBuilder : BaseCliRequestBuilder { /// /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -72,8 +75,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(CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -98,14 +101,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 CopyToSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", 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 CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) @@ -119,11 +122,11 @@ public CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -134,3 +137,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 29172b9bb9..1faa96a23f 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Content; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Preview; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pag /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class OnenotePageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -35,7 +38,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -54,7 +57,7 @@ public Command BuildCopyToSectionNavCommand() { var command = new Command("copy-to-section"); command.Description = "Provides operations to call the copyToSection method."; - var builder = new CopyToSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -206,7 +209,7 @@ public Command BuildOnenotePatchContentNavCommand() { var command = new Command("onenote-patch-content"); command.Description = "Provides operations to call the onenotePatchContent method."; - var builder = new OnenotePatchContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -223,7 +226,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -240,7 +243,7 @@ public Command BuildParentSectionNavCommand() { var command = new Command("parent-section"); command.Description = "Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity."; - var builder = new ParentSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.ParentSection.ParentSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -299,8 +302,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -332,7 +335,7 @@ public Command BuildPreviewNavCommand() { var command = new Command("preview"); command.Description = "Provides operations to call the preview method."; - var builder = new PreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.Preview.PreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -342,14 +345,14 @@ public Command BuildPreviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenotePageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%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 OnenotePageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}", rawUrl) @@ -381,11 +384,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); @@ -401,11 +404,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -417,7 +420,8 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class OnenotePageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -442,3 +446,4 @@ public class OnenotePageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index a02b255207..bc6cb4768c 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OnenotePatchContentPostRequestBody : 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. @@ -16,13 +18,13 @@ public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsab /// The commands property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Commands { get; set; } + public List? Commands { get; set; } #nullable restore #else - public List Commands { get; set; } + public List Commands { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OnenotePatchContentPostRequestBody() { @@ -31,12 +33,12 @@ public OnenotePatchContentPostRequestBody() /// /// 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 OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OnenotePatchContentPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, + { "commands", n => { Commands = n.GetCollectionOfObjectValues(global::ApiSdk.Models.OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("commands", Commands); + writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 1bdc75d39a..b80856cdec 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pag /// /// Provides operations to call the onenotePatchContent method. /// - public class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action onenotePatchContent @@ -62,8 +65,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(OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 OnenotePatchContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", 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 OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", rawUrl) @@ -107,11 +110,11 @@ public OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 0ec85fde2a..609a09ee92 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pag /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the page. Read-only. @@ -98,14 +101,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the page. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 8e6f399fb3..c9d7523830 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pag /// /// Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity. /// - public class ParentSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilder : BaseCliRequestBuilder { /// /// The section that contains the page. Read-only. @@ -98,14 +101,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 ParentSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%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 ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section that contains the page. Read-only. /// - public class ParentSectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ParentSectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index d458d45d09..68f96f9ec1 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pag /// /// Provides operations to call the preview method. /// - public class PreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PreviewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function preview @@ -84,14 +87,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 PreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", 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 PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", rawUrl) @@ -118,3 +121,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pag /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenotePageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Item.OnenotePageItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); commands.Add(builder.BuildCopyToSectionNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -51,7 +54,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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Pages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -105,8 +108,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -250,14 +253,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -270,11 +273,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -290,11 +293,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -306,7 +309,8 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -370,3 +374,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 8cbc02d015..2be044d363 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Par /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section. Read-only. @@ -92,14 +95,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 8528905f53..1eb2d054bb 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.Par /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section. Read-only. @@ -92,14 +95,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs index 7c1354b4a8..592ce4efb4 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/Item/Sections/SectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections /// /// Provides operations to manage the sections property of the microsoft.graph.notebook entity. /// - public class SectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sections property of the microsoft.graph.notebook entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenoteSectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Item.OnenoteSectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildCopyToNotebookNavCommand()); commands.Add(builder.BuildCopyToSectionGroupNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -50,7 +53,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.Groups.Item.Sites.Item.Onenote.Notebooks.Item.Sections.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -99,8 +102,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -237,14 +240,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 SectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%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 SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks/{notebook%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -257,11 +260,11 @@ public SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -277,11 +280,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -293,7 +296,8 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action /// The sections in the notebook. Read-only. Nullable. /// - public class SectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -357,3 +361,4 @@ public class SectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs index 51185c598a..cf2a95f5e4 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Notebooks/NotebooksRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetNotebookFromWebUrl; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks; using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks /// /// Provides operations to manage the notebooks property of the microsoft.graph.onenote entity. /// - public class NotebooksRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotebooksRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the notebooks property of the microsoft.graph.onenote entity. @@ -33,7 +36,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new NotebookItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.Item.NotebookItemRequestBuilder(PathParameters); commands.Add(builder.BuildCopyNotebookNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -50,7 +53,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.Groups.Item.Sites.Item.Onenote.Notebooks.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -94,8 +97,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(Notebook.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Notebook.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -124,7 +127,7 @@ public Command BuildGetNotebookFromWebUrlNavCommand() { var command = new Command("get-notebook-from-web-url"); command.Description = "Provides operations to call the getNotebookFromWebUrl method."; - var builder = new GetNotebookFromWebUrlRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetNotebookFromWebUrl.GetNotebookFromWebUrlRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -141,7 +144,7 @@ public Command BuildGetRecentNotebooksWithIncludePersonalNotebooksRbCommand() { var command = new Command("get-recent-notebooks-with-include-personal-notebooks"); command.Description = "Provides operations to call the getRecentNotebooks method."; - var builder = new GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.GetRecentNotebooksWithIncludePersonalNotebooks.GetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -259,14 +262,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 NotebooksRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks{?%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 NotebooksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/notebooks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public NotebooksRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -299,11 +302,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(Notebook body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Notebook body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Notebook body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Notebook body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Notebook body, Action /// The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class NotebooksRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class NotebooksRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class NotebooksRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.cs index ceda880d93..4ac4beb652 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/OnenoteRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks; using ApiSdk.Groups.Item.Sites.Item.Onenote.Operations; using ApiSdk.Groups.Item.Sites.Item.Onenote.Pages; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote /// /// Provides operations to manage the onenote property of the microsoft.graph.site entity. /// - public class OnenoteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property onenote for groups @@ -134,7 +137,7 @@ public Command BuildNotebooksNavCommand() { var command = new Command("notebooks"); command.Description = "Provides operations to manage the notebooks property of the microsoft.graph.onenote entity."; - var builder = new NotebooksRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Notebooks.NotebooksRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -163,7 +166,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.onenote entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -190,7 +193,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.onenote entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -244,8 +247,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.Onenote.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Onenote.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -274,7 +277,7 @@ public Command BuildResourcesNavCommand() { var command = new Command("resources"); command.Description = "Provides operations to manage the resources property of the microsoft.graph.onenote entity."; - var builder = new ResourcesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Resources.ResourcesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -301,7 +304,7 @@ public Command BuildSectionGroupsNavCommand() { var command = new Command("section-groups"); command.Description = "Provides operations to manage the sectionGroups property of the microsoft.graph.onenote entity."; - var builder = new SectionGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.SectionGroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -328,7 +331,7 @@ public Command BuildSectionsNavCommand() { var command = new Command("sections"); command.Description = "Provides operations to manage the sections property of the microsoft.graph.onenote entity."; - var builder = new SectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.SectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -348,14 +351,14 @@ public Command BuildSectionsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenoteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote{?%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 OnenoteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote{?%24expand,%24select}", rawUrl) @@ -387,11 +390,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); @@ -407,11 +410,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.Onenote body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Onenote body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Onenote body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Onenote body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -423,7 +426,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Onenote body, /// /// Calls the OneNote service for notebook related operations. /// - public class OnenoteRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -448,3 +452,4 @@ public class OnenoteRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.cs index be78db6d3c..6ae6420c7f 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Operations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Operations/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.Groups.Item.Sites.Item.Onenote.Operations.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs index fc6959d642..7196358c14 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Operations/Item/OnenoteOperationItemRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Operations.Item /// /// Provides operations to manage the operations property of the microsoft.graph.onenote entity. /// - public class OnenoteOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property operations for groups @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(OnenoteOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenoteOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations/{onenoteOperation%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 OnenoteOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations/{onenoteOperation%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(OnenoteOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteOperation body, Actio /// /// The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. /// - public class OnenoteOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class OnenoteOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs index 82b6a9ce41..aa85ea75a3 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Operations/OperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Operations.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Operations.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.Groups.Item.Sites.Item.Onenote.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.onenote entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the operations property of the microsoft.graph.onenote entity. @@ -30,7 +33,7 @@ public class OperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new OnenoteOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Operations.Item.OnenoteOperationItemRequestBuilder(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.Groups.Item.Sites.Item.Onenote.Operations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(OnenoteOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(OnenoteOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(OnenoteOperation body, Action /// /// The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class OperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.cs index 504fb8be2b..9a41fb24e0 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/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.Groups.Item.Sites.Item.Onenote.Pages.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs index db84ff11cf..c9bd02ec09 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Content/ContentRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Pages.Item.Content /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The page's HTML content. @@ -181,14 +184,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/content", rawUrl) @@ -256,3 +259,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.CopyToSection { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionPostRequestBody : 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. @@ -45,7 +47,7 @@ public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionPostRequestBody() { @@ -54,12 +56,12 @@ public CopyToSectionPostRequestBody() /// /// 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 CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 2b13f297bf..8bb4c593f6 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Pages.Item.CopyToSection /// /// Provides operations to call the copyToSection method. /// - public class CopyToSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionRequestBuilder : BaseCliRequestBuilder { /// /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -62,8 +65,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(CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CopyToSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/copyToSection", 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 CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/copyToSection", rawUrl) @@ -107,11 +110,11 @@ public CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs index 8f0733ce8a..27389ed9db 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.Content; using ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.CopyToSection; using ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.OnenotePatchContent; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.Preview; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item /// /// Provides operations to manage the pages property of the microsoft.graph.onenote entity. /// - public class OnenotePageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -35,7 +38,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -54,7 +57,7 @@ public Command BuildCopyToSectionNavCommand() { var command = new Command("copy-to-section"); command.Description = "Provides operations to call the copyToSection method."; - var builder = new CopyToSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.CopyToSection.CopyToSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -182,7 +185,7 @@ public Command BuildOnenotePatchContentNavCommand() { var command = new Command("onenote-patch-content"); command.Description = "Provides operations to call the onenotePatchContent method."; - var builder = new OnenotePatchContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -199,7 +202,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -216,7 +219,7 @@ public Command BuildParentSectionNavCommand() { var command = new Command("parent-section"); command.Description = "Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity."; - var builder = new ParentSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.ParentSection.ParentSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -265,8 +268,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -296,7 +299,7 @@ public Command BuildPreviewNavCommand() { var command = new Command("preview"); command.Description = "Provides operations to call the preview method."; - var builder = new PreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.Preview.PreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -306,14 +309,14 @@ public Command BuildPreviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenotePageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%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 OnenotePageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}{?%24expand,%24select}", rawUrl) @@ -345,11 +348,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); @@ -365,11 +368,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -381,7 +384,8 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action /// The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class OnenotePageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -406,3 +410,4 @@ public class OnenotePageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index b482c0458e..13cceb1045 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.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.Groups.Item.Sites.Item.Onenote.Pages.Item.OnenotePatchContent { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OnenotePatchContentPostRequestBody : 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. @@ -16,13 +18,13 @@ public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsab /// The commands property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Commands { get; set; } + public List? Commands { get; set; } #nullable restore #else - public List Commands { get; set; } + public List Commands { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OnenotePatchContentPostRequestBody() { @@ -31,12 +33,12 @@ public OnenotePatchContentPostRequestBody() /// /// 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 OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OnenotePatchContentPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, + { "commands", n => { Commands = n.GetCollectionOfObjectValues(global::ApiSdk.Models.OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("commands", Commands); + writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 64011d1a46..5e916b5cb4 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Pages.Item.OnenotePatchContent /// /// Provides operations to call the onenotePatchContent method. /// - public class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action onenotePatchContent @@ -52,8 +55,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(OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 OnenotePatchContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/onenotePatchContent", 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 OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/onenotePatchContent", rawUrl) @@ -95,11 +98,11 @@ public OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index c66ffdfea7..16953f9bfa 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Pages.Item.ParentNotebook /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the page. Read-only. @@ -86,14 +89,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the page. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index f5211f4a31..796068be43 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/ParentSection/ParentSectionRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Pages.Item.ParentSection /// /// Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity. /// - public class ParentSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilder : BaseCliRequestBuilder { /// /// The section that contains the page. Read-only. @@ -86,14 +89,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 ParentSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/parentSection{?%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 ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section that contains the page. Read-only. /// - public class ParentSectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentSectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs index a08d93fdbc..3c6ddf7b64 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Pages/Item/Preview/PreviewRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Pages.Item.Preview /// /// Provides operations to call the preview method. /// - public class PreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PreviewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function preview @@ -72,14 +75,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 PreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/preview()", 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 PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages/{onenotePage%2Did}/preview()", rawUrl) @@ -106,3 +109,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.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.Groups.Item.Sites.Item.Onenote.Pages /// /// Provides operations to manage the pages property of the microsoft.graph.onenote entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pages property of the microsoft.graph.onenote entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenotePageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Pages.Item.OnenotePageItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); commands.Add(builder.BuildCopyToSectionNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -51,7 +54,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.Groups.Item.Sites.Item.Onenote.Pages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -226,14 +229,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -246,11 +249,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -266,11 +269,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -282,7 +285,8 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action /// The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -346,3 +350,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.cs index 4442c444bf..1575789fda 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Resources/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Resources/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.Groups.Item.Sites.Item.Onenote.Resources.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs index d549093674..e30c6e73f6 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Resources/Item/Content/ContentRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Resources.Item.Content /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream @@ -181,14 +184,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources/{onenoteResource%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources/{onenoteResource%2Did}/content", rawUrl) @@ -256,3 +259,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Resources.Item.Content; 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.Groups.Item.Sites.Item.Onenote.Resources.Item /// /// Provides operations to manage the resources property of the microsoft.graph.onenote entity. /// - public class OnenoteResourceItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteResourceItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Resources.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -192,8 +195,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(OnenoteResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -216,14 +219,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 OnenoteResourceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources/{onenoteResource%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 OnenoteResourceItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources/{onenoteResource%2Did}{?%24expand,%24select}", rawUrl) @@ -255,11 +258,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); @@ -275,11 +278,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(OnenoteResource body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteResource body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -291,7 +294,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteResource body, Action /// /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// - public class OnenoteResourceItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteResourceItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -316,3 +320,4 @@ public class OnenoteResourceItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs index ff69dba663..163bed1f64 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Resources/ResourcesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Resources.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Resources.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.Groups.Item.Sites.Item.Onenote.Resources /// /// Provides operations to manage the resources property of the microsoft.graph.onenote entity. /// - public class ResourcesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the resources property of the microsoft.graph.onenote entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenoteResourceItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Resources.Item.OnenoteResourceItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Onenote.Resources.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(OnenoteResource.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteResource.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 ResourcesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources{?%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 ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public ResourcesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -261,11 +264,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(OnenoteResource body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteResource body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteResource body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteResource body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(OnenoteResource body, Action< /// /// The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. /// - public class ResourcesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class ResourcesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs index 54bdb693f2..39a3c8a7d5 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/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.Groups.Item.Sites.Item.Onenote.SectionGroups.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index a55799d435..3576b681a8 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.ParentNoteboo /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.sectionGroup entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section group. Read-only. @@ -86,14 +89,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section group. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 8dce2b7895..9246fa9d50 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.ParentSection /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.sectionGroup entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section group. Read-only. @@ -86,14 +89,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section group. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index 68a1eadf82..e68176a57d 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroupItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.ParentNotebook; using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.ParentSectionGroup; using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroups; using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.onenote entity. /// - public class SectionGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property sectionGroups for groups @@ -144,7 +147,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.sectionGroup entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -161,7 +164,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.sectionGroup entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -210,8 +213,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(SectionGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SectionGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -241,7 +244,7 @@ public Command BuildSectionsNavCommand() { var command = new Command("sections"); command.Description = "Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity."; - var builder = new SectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.SectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -268,7 +271,7 @@ public Command BuildSubSectionGroupsNavCommand() { var command = new Command("sub-section-groups"); command.Description = "Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroups.SectionGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroups.SectionGroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -287,14 +290,14 @@ public Command BuildSubSectionGroupsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SectionGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%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 SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}{?%24expand,%24select}", rawUrl) @@ -326,11 +329,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); @@ -346,11 +349,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(SectionGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SectionGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SectionGroup body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SectionGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -362,7 +365,8 @@ public RequestInformation ToPatchRequestInformation(SectionGroup body, Action /// The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class SectionGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -387,3 +391,4 @@ public class SectionGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs index b16e1cf5f2..0bc4eb5d71 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroups /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs index a948382985..a1673d3d3a 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/Item/SectionGroupItemRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroups /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. /// - public class SectionGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// The section groups in the section. Read-only. Nullable. @@ -92,14 +95,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 SectionGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups/{sectionGroup%2Did1}{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public SectionGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section groups in the section. Read-only. Nullable. /// - public class SectionGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class SectionGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs index d2abfafbba..bdf78c6129 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/SectionGroups/SectionGroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroups.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroups.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroups /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. /// - public class SectionGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. @@ -30,7 +33,7 @@ public class SectionGroupsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -166,14 +169,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 SectionGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%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 SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -186,11 +189,11 @@ public SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -201,7 +204,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section groups in the section. Read-only. Nullable. /// - public class SectionGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -265,3 +269,4 @@ public class SectionGroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs index 10f5d28a79..a0fcf1bfc7 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Coun /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index 0cc4b65d3a..b5de9a6320 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToNotebookPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToNotebookPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToNotebookPostRequestBody() /// /// 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 CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToNotebookPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index df67d43134..50594a0c04 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to call the copyToNotebook method. /// - public class CopyToNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToNotebookRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -67,8 +70,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(CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 CopyToNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", 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 CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) @@ -113,11 +116,11 @@ public CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 70b57b6ae2..7e4c735605 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionGroupPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsabl public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionGroupPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToSectionGroupPostRequestBody() /// /// 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 CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionGroupPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index 7accd939d4..fe21a22c77 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to call the copyToSectionGroup method. /// - public class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -67,8 +70,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(CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 CopyToSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", 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 CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) @@ -113,11 +116,11 @@ public CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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(CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs index 678863c45c..2a23bc5e7d 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook; using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup; using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.ParentSectionGroup; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. /// - public class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the copyToNotebook method. @@ -34,7 +37,7 @@ public Command BuildCopyToNotebookNavCommand() { var command = new Command("copy-to-notebook"); command.Description = "Provides operations to call the copyToNotebook method."; - var builder = new CopyToNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToNotebook.CopyToNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCopyToSectionGroupNavCommand() { var command = new Command("copy-to-section-group"); command.Description = "Provides operations to call the copyToSectionGroup method."; - var builder = new CopyToSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.CopyToSectionGroup.CopyToSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -191,7 +194,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -218,7 +221,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -235,7 +238,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -289,8 +292,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -314,14 +317,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 OnenoteSectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%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 OnenoteSectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24expand,%24select}", rawUrl) @@ -353,11 +356,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); @@ -373,11 +376,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -389,7 +392,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< /// /// The sections in the section group. Read-only. Nullable. /// - public class OnenoteSectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -414,3 +418,4 @@ public class OnenoteSectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs index 3ce374f3f5..3e0a7d89aa 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index a4e6a410ea..880e7b1634 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Content/ContentRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The page's HTML content. @@ -217,14 +220,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", rawUrl) @@ -292,3 +295,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionPostRequestBody : 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. @@ -45,7 +47,7 @@ public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionPostRequestBody() { @@ -54,12 +56,12 @@ public CopyToSectionPostRequestBody() /// /// 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 CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 1a8c4c228f..fc78cc927e 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to call the copyToSection method. /// - public class CopyToSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionRequestBuilder : BaseCliRequestBuilder { /// /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -72,8 +75,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(CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -98,14 +101,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 CopyToSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", 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 CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) @@ -119,11 +122,11 @@ public CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -134,3 +137,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 9449d9dc5a..1da363f285 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.Content; using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection; using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.Preview; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class OnenotePageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -35,7 +38,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -54,7 +57,7 @@ public Command BuildCopyToSectionNavCommand() { var command = new Command("copy-to-section"); command.Description = "Provides operations to call the copyToSection method."; - var builder = new CopyToSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.CopyToSection.CopyToSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -206,7 +209,7 @@ public Command BuildOnenotePatchContentNavCommand() { var command = new Command("onenote-patch-content"); command.Description = "Provides operations to call the onenotePatchContent method."; - var builder = new OnenotePatchContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -223,7 +226,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -240,7 +243,7 @@ public Command BuildParentSectionNavCommand() { var command = new Command("parent-section"); command.Description = "Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity."; - var builder = new ParentSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.ParentSection.ParentSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -299,8 +302,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -332,7 +335,7 @@ public Command BuildPreviewNavCommand() { var command = new Command("preview"); command.Description = "Provides operations to call the preview method."; - var builder = new PreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.Preview.PreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -342,14 +345,14 @@ public Command BuildPreviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenotePageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%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 OnenotePageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}", rawUrl) @@ -381,11 +384,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); @@ -401,11 +404,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -417,7 +420,8 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class OnenotePageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -442,3 +446,4 @@ public class OnenotePageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index a93ae8a0b6..4e7b431c26 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OnenotePatchContentPostRequestBody : 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. @@ -16,13 +18,13 @@ public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsab /// The commands property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Commands { get; set; } + public List? Commands { get; set; } #nullable restore #else - public List Commands { get; set; } + public List Commands { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OnenotePatchContentPostRequestBody() { @@ -31,12 +33,12 @@ public OnenotePatchContentPostRequestBody() /// /// 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 OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OnenotePatchContentPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, + { "commands", n => { Commands = n.GetCollectionOfObjectValues(global::ApiSdk.Models.OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("commands", Commands); + writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index c977ae74df..fb2cff32e0 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to call the onenotePatchContent method. /// - public class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action onenotePatchContent @@ -62,8 +65,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(OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 OnenotePatchContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", 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 OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", rawUrl) @@ -107,11 +110,11 @@ public OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 394e97b4c0..e41bdf99f4 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the page. Read-only. @@ -98,14 +101,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the page. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index 53e0165aa1..087af9172c 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity. /// - public class ParentSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilder : BaseCliRequestBuilder { /// /// The section that contains the page. Read-only. @@ -98,14 +101,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 ParentSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%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 ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section that contains the page. Read-only. /// - public class ParentSectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ParentSectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 662d462fc4..962d78fe6c 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to call the preview method. /// - public class PreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PreviewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function preview @@ -84,14 +87,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 PreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", 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 PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", rawUrl) @@ -118,3 +121,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenotePageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Item.OnenotePageItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); commands.Add(builder.BuildCopyToSectionNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -51,7 +54,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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.Pages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -105,8 +108,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -250,14 +253,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -270,11 +273,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -290,11 +293,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -306,7 +309,8 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -370,3 +374,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index f75726123c..550a9a176a 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section. Read-only. @@ -92,14 +95,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index 4aeb2f1b10..a38999ac15 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section. Read-only. @@ -92,14 +95,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs index 5f35f4c987..f28ec62c66 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/Item/Sections/SectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. /// - public class SectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenoteSectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Item.OnenoteSectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildCopyToNotebookNavCommand()); commands.Add(builder.BuildCopyToSectionGroupNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -50,7 +53,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.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.Sections.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -99,8 +102,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -237,14 +240,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 SectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%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 SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups/{sectionGroup%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -257,11 +260,11 @@ public SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -277,11 +280,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -293,7 +296,8 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action /// The sections in the section group. Read-only. Nullable. /// - public class SectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -357,3 +361,4 @@ public class SectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs index 5824145e95..7453f72a3b 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/SectionGroups/SectionGroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.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.Groups.Item.Sites.Item.Onenote.SectionGroups /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.onenote entity. /// - public class SectionGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sectionGroups property of the microsoft.graph.onenote entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SectionGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.SectionGroups.Item.SectionGroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildParentNotebookNavCommand()); @@ -49,7 +52,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.Groups.Item.Sites.Item.Onenote.SectionGroups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(SectionGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SectionGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,14 +227,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 SectionGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups{?%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 SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sectionGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -244,11 +247,11 @@ public SectionGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -264,11 +267,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(SectionGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SectionGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SectionGroup body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SectionGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -280,7 +283,8 @@ public RequestInformation ToPostRequestInformation(SectionGroup body, Action /// The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class SectionGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -344,3 +348,4 @@ public class SectionGroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.cs index 2922adab27..dc3566ea43 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/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.Groups.Item.Sites.Item.Onenote.Sections.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs index efe148e115..e496701c7f 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToNotebook { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToNotebookPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToNotebookPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToNotebookPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToNotebookPostRequestBody() /// /// 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 CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToNotebookPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs index 4e5ab834cf..76aca400b5 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToNotebook/CopyToNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToNotebook /// /// Provides operations to call the copyToNotebook method. /// - public class CopyToNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToNotebookRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -62,8 +65,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(CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CopyToNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/copyToNotebook", 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 CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/copyToNotebook", rawUrl) @@ -107,11 +110,11 @@ public CopyToNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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(CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CopyToNotebookPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs index 1982d04a2e..b33c6e9b54 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToSectionGroup { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionGroupPostRequestBody : 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. @@ -53,7 +55,7 @@ public class CopyToSectionGroupPostRequestBody : IAdditionalDataHolder, IParsabl public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionGroupPostRequestBody() { @@ -62,12 +64,12 @@ public CopyToSectionGroupPostRequestBody() /// /// 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 CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionGroupPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody(); } /// /// The deserialization information for the current model @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs index fd55a115a7..5366d6c727 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/CopyToSectionGroup/CopyToSectionGroupRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToSectionGroup /// /// Provides operations to call the copyToSectionGroup method. /// - public class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -62,8 +65,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(CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CopyToSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup", 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 CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/copyToSectionGroup", rawUrl) @@ -107,11 +110,11 @@ public CopyToSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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(CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionGroupPostRequest } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs index ca5a9cc038..88a4430a5b 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/OnenoteSectionItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToNotebook; using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToSectionGroup; using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.ParentSectionGroup; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item /// /// Provides operations to manage the sections property of the microsoft.graph.onenote entity. /// - public class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the copyToNotebook method. @@ -34,7 +37,7 @@ public Command BuildCopyToNotebookNavCommand() { var command = new Command("copy-to-notebook"); command.Description = "Provides operations to call the copyToNotebook method."; - var builder = new CopyToNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToNotebook.CopyToNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -51,7 +54,7 @@ public Command BuildCopyToSectionGroupNavCommand() { var command = new Command("copy-to-section-group"); command.Description = "Provides operations to call the copyToSectionGroup method."; - var builder = new CopyToSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.CopyToSectionGroup.CopyToSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -179,7 +182,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -206,7 +209,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -223,7 +226,7 @@ public Command BuildParentSectionGroupNavCommand() { var command = new Command("parent-section-group"); command.Description = "Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity."; - var builder = new ParentSectionGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.ParentSectionGroup.ParentSectionGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -272,8 +275,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -296,14 +299,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 OnenoteSectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%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 OnenoteSectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}{?%24expand,%24select}", rawUrl) @@ -335,11 +338,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); @@ -355,11 +358,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -371,7 +374,8 @@ public RequestInformation ToPatchRequestInformation(OnenoteSection body, Action< /// /// The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class OnenoteSectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenoteSectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -396,3 +400,4 @@ public class OnenoteSectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs index 3a5df3f997..824f49bbee 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/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.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/$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}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs index 479d155237..83275ad3a7 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Content/ContentRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.Content /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The page's HTML content. @@ -199,14 +202,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/content", rawUrl) @@ -274,3 +277,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.CopyToSection { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CopyToSectionPostRequestBody : 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. @@ -45,7 +47,7 @@ public class CopyToSectionPostRequestBody : IAdditionalDataHolder, IParsable public string SiteId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CopyToSectionPostRequestBody() { @@ -54,12 +56,12 @@ public CopyToSectionPostRequestBody() /// /// 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 CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyToSectionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs index 71bd66a03a..50f7c24521 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/CopyToSection/CopyToSectionRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.CopyToS /// /// Provides operations to call the copyToSection method. /// - public class CopyToSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CopyToSectionRequestBuilder : BaseCliRequestBuilder { /// /// Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. @@ -67,8 +70,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(CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 CopyToSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", 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 CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/copyToSection", rawUrl) @@ -113,11 +116,11 @@ public CopyToSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(CopyToSectionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs index 5fb3812c99..f4d9669dd3 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.Content; using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.CopyToSection; using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.Preview; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class OnenotePageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -35,7 +38,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -54,7 +57,7 @@ public Command BuildCopyToSectionNavCommand() { var command = new Command("copy-to-section"); command.Description = "Provides operations to call the copyToSection method."; - var builder = new CopyToSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.CopyToSection.CopyToSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -194,7 +197,7 @@ public Command BuildOnenotePatchContentNavCommand() { var command = new Command("onenote-patch-content"); command.Description = "Provides operations to call the onenotePatchContent method."; - var builder = new OnenotePatchContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -211,7 +214,7 @@ public Command BuildParentNotebookNavCommand() { var command = new Command("parent-notebook"); command.Description = "Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity."; - var builder = new ParentNotebookRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.ParentNotebook.ParentNotebookRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -228,7 +231,7 @@ public Command BuildParentSectionNavCommand() { var command = new Command("parent-section"); command.Description = "Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity."; - var builder = new ParentSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.ParentSection.ParentSectionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -282,8 +285,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -314,7 +317,7 @@ public Command BuildPreviewNavCommand() { var command = new Command("preview"); command.Description = "Provides operations to call the preview method."; - var builder = new PreviewRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.Preview.PreviewRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -324,14 +327,14 @@ public Command BuildPreviewNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OnenotePageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%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 OnenotePageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}", rawUrl) @@ -363,11 +366,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); @@ -383,11 +386,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -399,7 +402,8 @@ public RequestInformation ToPatchRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class OnenotePageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -424,3 +428,4 @@ public class OnenotePageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs index 63eb9cf4fe..5c874863ff 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentPostRequestBody.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.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsable + public partial class OnenotePatchContentPostRequestBody : 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. @@ -16,13 +18,13 @@ public class OnenotePatchContentPostRequestBody : IAdditionalDataHolder, IParsab /// The commands property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Commands { get; set; } + public List? Commands { get; set; } #nullable restore #else - public List Commands { get; set; } + public List Commands { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OnenotePatchContentPostRequestBody() { @@ -31,12 +33,12 @@ public OnenotePatchContentPostRequestBody() /// /// 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 OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OnenotePatchContentPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "commands", n => { Commands = n.GetCollectionOfObjectValues(OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.ToList(); } }, + { "commands", n => { Commands = n.GetCollectionOfObjectValues(global::ApiSdk.Models.OnenotePatchContentCommand.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("commands", Commands); + writer.WriteCollectionOfObjectValues("commands", Commands); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs index 67cb6a52a8..b301211fa0 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/OnenotePatchContent/OnenotePatchContentRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.Onenote /// /// Provides operations to call the onenotePatchContent method. /// - public class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OnenotePatchContentRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action onenotePatchContent @@ -57,8 +60,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(OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 OnenotePatchContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", 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 OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/onenotePatchContent", rawUrl) @@ -101,11 +104,11 @@ public OnenotePatchContentRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.OnenotePatchContent.OnenotePatchContentPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(OnenotePatchContentPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index 91bbd35564..7d52fad6e8 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.ParentN /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenotePage entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the page. Read-only. @@ -92,14 +95,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the page. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs index f88d93fd3e..8e6e653dd2 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/ParentSection/ParentSectionRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.ParentS /// /// Provides operations to manage the parentSection property of the microsoft.graph.onenotePage entity. /// - public class ParentSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilder : BaseCliRequestBuilder { /// /// The section that contains the page. Read-only. @@ -92,14 +95,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 ParentSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%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 ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/parentSection{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ParentSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section that contains the page. Read-only. /// - public class ParentSectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ParentSectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs index 3b77c360ad..567a823861 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/Pages/Item/Preview/PreviewRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.Preview /// /// Provides operations to call the preview method. /// - public class PreviewRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PreviewRequestBuilder : BaseCliRequestBuilder { /// /// Invoke function preview @@ -78,14 +81,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 PreviewRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", 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 PreviewRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}/preview()", rawUrl) @@ -112,3 +115,4 @@ public RequestInformation ToGetRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.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.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenotePageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Item.OnenotePageItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); commands.Add(builder.BuildCopyToSectionNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -51,7 +54,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.Groups.Item.Sites.Item.Onenote.Sections.Item.Pages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -100,8 +103,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(OnenotePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenotePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -238,14 +241,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -258,11 +261,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -278,11 +281,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(OnenotePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenotePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenotePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -294,7 +297,8 @@ public RequestInformation ToPostRequestInformation(OnenotePage body, Action /// The collection of pages in the section. Read-only. Nullable. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -358,3 +362,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs index b98900b2e4..9ac3578324 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentNotebook/ParentNotebookRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Sections.Item.ParentNotebook /// /// Provides operations to manage the parentNotebook property of the microsoft.graph.onenoteSection entity. /// - public class ParentNotebookRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilder : BaseCliRequestBuilder { /// /// The notebook that contains the section. Read-only. @@ -86,14 +89,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 ParentNotebookRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/parentNotebook{?%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 ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/parentNotebook{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentNotebookRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The notebook that contains the section. Read-only. /// - public class ParentNotebookRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentNotebookRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentNotebookRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs index b46cf045bc..73a4c87cf0 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/Item/ParentSectionGroup/ParentSectionGroupRequestBuilder.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.Groups.Item.Sites.Item.Onenote.Sections.Item.ParentSectionGroup /// /// Provides operations to manage the parentSectionGroup property of the microsoft.graph.onenoteSection entity. /// - public class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilder : BaseCliRequestBuilder { /// /// The section group that contains the section. Read-only. @@ -86,14 +89,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 ParentSectionGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/parentSectionGroup{?%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 ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections/{onenoteSection%2Did}/parentSectionGroup{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ParentSectionGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The section group that contains the section. Read-only. /// - public class ParentSectionGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentSectionGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ParentSectionGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs index 787a120eb2..d71c717314 100644 --- a/src/generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Onenote/Sections/SectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Count; using ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.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.Groups.Item.Sites.Item.Onenote.Sections /// /// Provides operations to manage the sections property of the microsoft.graph.onenote entity. /// - public class SectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sections property of the microsoft.graph.onenote entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new OnenoteSectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.Sections.Item.OnenoteSectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildCopyToNotebookNavCommand()); commands.Add(builder.BuildCopyToSectionGroupNavCommand()); executables.Add(builder.BuildDeleteCommand()); @@ -50,7 +53,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.Groups.Item.Sites.Item.Onenote.Sections.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -94,8 +97,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(OnenoteSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OnenoteSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -225,14 +228,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 SectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections{?%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 SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/onenote/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -245,11 +248,11 @@ public SectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -265,11 +268,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(OnenoteSection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OnenoteSection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OnenoteSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +284,8 @@ public RequestInformation ToPostRequestInformation(OnenoteSection body, Action /// The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. /// - public class SectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -345,3 +349,4 @@ public class SectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Operations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Operations/Count/CountRequestBuilder.cs index 200fe73fdd..db6e72b355 100644 --- a/src/generated/Groups/Item/Sites/Item/Operations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Operations/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.Groups.Item.Sites.Item.Operations.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations/$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}/groups/{group%2Did}/sites/{site%2Did}/operations/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs index f0d27bef7f..685a6e43f2 100644 --- a/src/generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Operations/Item/RichLongRunningOperationItemRequestBuilder.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.Groups.Item.Sites.Item.Operations.Item /// /// Provides operations to manage the operations property of the microsoft.graph.site entity. /// - public class RichLongRunningOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RichLongRunningOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property operations for groups @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(RichLongRunningOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RichLongRunningOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RichLongRunningOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations/{richLongRunningOperation%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 RichLongRunningOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations/{richLongRunningOperation%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(RichLongRunningOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(RichLongRunningOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(RichLongRunningOperation bod /// /// The collection of long-running operations on the site. /// - public class RichLongRunningOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RichLongRunningOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class RichLongRunningOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs index f4c1c50118..eb9b930820 100644 --- a/src/generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Operations/OperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Operations.Count; using ApiSdk.Groups.Item.Sites.Item.Operations.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.Groups.Item.Sites.Item.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.site entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the operations property of the microsoft.graph.site entity. @@ -30,7 +33,7 @@ public class OperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new RichLongRunningOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Operations.Item.RichLongRunningOperationItemRequestBuilder(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.Groups.Item.Sites.Item.Operations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(RichLongRunningOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.RichLongRunningOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RichLongRunningOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RichLongRunningOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.RichLongRunningOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(RichLongRunningOperation body /// /// The collection of long-running operations on the site. /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class OperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Count/CountRequestBuilder.cs index cca4c7bfc4..0cd686f082 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/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.Groups.Item.Sites.Item.Pages.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/$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}/groups/{group%2Did}/sites/{site%2Did}/pages/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/GraphSitePage/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/GraphSitePage/Count/CountRequestBuilder.cs index 5e449fc0ea..76ad557fb7 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/GraphSitePage/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/GraphSitePage/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.Groups.Item.Sites.Item.Pages.GraphSitePage.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/graph.sitePage/$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}/groups/{group%2Did}/sites/{site%2Did}/pages/graph.sitePage/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/GraphSitePage/GraphSitePageRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/GraphSitePage/GraphSitePageRequestBuilder.cs index f76ea34d9a..64af83af9b 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/GraphSitePage/GraphSitePageRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/GraphSitePage/GraphSitePageRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.GraphSitePage.Count; 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.Groups.Item.Sites.Item.Pages.GraphSitePage /// /// Casts the previous resource to sitePage. /// - public class GraphSitePageRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphSitePageRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Sites.Item.Pages.GraphSitePage.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -148,14 +151,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 GraphSitePageRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/graph.sitePage{?%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 GraphSitePageRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/graph.sitePage{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -168,11 +171,11 @@ public GraphSitePageRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -183,7 +186,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.sitePage in the microsoft.graph.baseSitePage collection /// - public class GraphSitePageRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphSitePageRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -247,3 +251,4 @@ public class GraphSitePageRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/BaseSitePageItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/BaseSitePageItemRequestBuilder.cs index d011acf9e9..261bc2fbaa 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/BaseSitePageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/BaseSitePageItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.CreatedByUser; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser; 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.Groups.Item.Sites.Item.Pages.Item /// /// Provides operations to manage the pages property of the microsoft.graph.site entity. /// - public class BaseSitePageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseSitePageItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. @@ -32,7 +35,7 @@ public Command BuildCreatedByUserNavCommand() { var command = new Command("created-by-user"); command.Description = "Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity."; - var builder = new CreatedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.CreatedByUser.CreatedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -167,7 +170,7 @@ public Command BuildGraphSitePageByIdNavCommand() { var command = new Command("graph-site-page-by-id"); command.Description = "Casts the previous resource to sitePage."; - var builder = new GraphSitePageRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.GraphSitePageRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCanvasLayoutNavCommand()); @@ -193,7 +196,7 @@ public Command BuildLastModifiedByUserNavCommand() { var command = new Command("last-modified-by-user"); command.Description = "Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity."; - var builder = new LastModifiedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser.LastModifiedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -249,8 +252,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(BaseSitePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.BaseSitePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -273,14 +276,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 BaseSitePageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%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 BaseSitePageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}{?%24expand,%24select}", rawUrl) @@ -312,11 +315,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); @@ -332,11 +335,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(BaseSitePage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.BaseSitePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(BaseSitePage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.BaseSitePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -348,7 +351,8 @@ public RequestInformation ToPatchRequestInformation(BaseSitePage body, Action /// The collection of pages in the baseSitePages list in this site. /// - public class BaseSitePageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BaseSitePageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -373,3 +377,4 @@ public class BaseSitePageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/CreatedByUserRequestBuilder.cs index 6556f5abde..7e32159d9d 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.CreatedByUser.MailboxSettings; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.CreatedByUser.ServiceProvisioningErrors; 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.Groups.Item.Sites.Item.Pages.Item.CreatedByUser /// /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. /// - public class CreatedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who created the item. Read-only. @@ -95,7 +98,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.CreatedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -113,7 +116,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.CreatedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CreatedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser{?%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 CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who created the item. Read-only. /// - public class CreatedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class CreatedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 81384d0771..d8e4286d5d 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Groups.Item.Sites.Item.Pages.Item.CreatedByUser.MailboxSettings /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\createdByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -125,8 +128,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -149,14 +152,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -169,11 +172,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -189,11 +192,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -205,7 +208,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,3 +234,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 4c8a52ed6e..6ac2d4cb59 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/ServiceProvisioningErrors/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.Groups.Item.Sites.Item.Pages.Item.CreatedByUser.ServiceProvisio /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors/$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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 047ed19171..dce406c91b 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.CreatedByUser.ServiceProvisioningErrors.Count; 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.Groups.Item.Sites.Item.Pages.Item.CreatedByUser.ServiceProvisio /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\createdByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Sites.Item.Pages.Item.CreatedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -154,31 +157,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -187,9 +190,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/CanvasLayoutRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/CanvasLayoutRequestBuilder.cs index cfa838c1e3..b7ff420190 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/CanvasLayoutRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/CanvasLayoutRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.VerticalSection; 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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout /// /// Provides operations to manage the canvasLayout property of the microsoft.graph.sitePage entity. /// - public class CanvasLayoutRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CanvasLayoutRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property canvasLayout for groups @@ -142,7 +145,7 @@ public Command BuildHorizontalSectionsNavCommand() { var command = new Command("horizontal-sections"); command.Description = "Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity."; - var builder = new HorizontalSectionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.HorizontalSectionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -201,8 +204,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.CanvasLayout.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.CanvasLayout.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,7 +235,7 @@ public Command BuildVerticalSectionNavCommand() { var command = new Command("vertical-section"); command.Description = "Provides operations to manage the verticalSection property of the microsoft.graph.canvasLayout entity."; - var builder = new VerticalSectionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.VerticalSection.VerticalSectionRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -250,14 +253,14 @@ public Command BuildVerticalSectionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CanvasLayoutRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout{?%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 CanvasLayoutRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout{?%24expand,%24select}", rawUrl) @@ -289,11 +292,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); @@ -309,11 +312,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.CanvasLayout body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CanvasLayout body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.CanvasLayout body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.CanvasLayout body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -325,7 +328,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.CanvasLayout b /// /// Indicates the layout of the content in a given SharePoint page, including horizontal sections and vertical sections. /// - public class CanvasLayoutRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CanvasLayoutRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -350,3 +354,4 @@ public class CanvasLayoutRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Count/CountRequestBuilder.cs index 7c91fdf347..fb626d34ea 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ho /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/$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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/HorizontalSectionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/HorizontalSectionsRequestBuilder.cs index f89ea0fcda..03f5fffd1a 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/HorizontalSectionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/HorizontalSectionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Count; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ho /// /// Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. /// - public class HorizontalSectionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HorizontalSectionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new HorizontalSectionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.HorizontalSectionItemRequestBuilder(PathParameters); commands.Add(builder.BuildColumnsNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(HorizontalSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.HorizontalSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 HorizontalSectionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections{?%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 HorizontalSectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public HorizontalSectionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -273,11 +276,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(HorizontalSection body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.HorizontalSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(HorizontalSection body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.HorizontalSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(HorizontalSection body, Actio /// /// Collection of horizontal sections on the SharePoint page. /// - public class HorizontalSectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HorizontalSectionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class HorizontalSectionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/ColumnsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/ColumnsRequestBuilder.cs index cd40a61f2d..126424d0b0 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/ColumnsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.Count; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ho /// /// Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. /// - public class ColumnsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new HorizontalSectionColumnItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.Item.HorizontalSectionColumnItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -100,8 +103,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(HorizontalSectionColumn.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.HorizontalSectionColumn.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -245,14 +248,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 ColumnsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns{?%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 ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -265,11 +268,11 @@ public ColumnsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -285,11 +288,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(HorizontalSectionColumn body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.HorizontalSectionColumn body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(HorizontalSectionColumn body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.HorizontalSectionColumn body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -301,7 +304,8 @@ public RequestInformation ToPostRequestInformation(HorizontalSectionColumn body, /// /// The set of vertical columns in this section. /// - public class ColumnsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ColumnsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -365,3 +369,4 @@ public class ColumnsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Count/CountRequestBuilder.cs index cf6c92b859..2f7800b4f1 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ho /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/$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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/HorizontalSectionColumnItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/HorizontalSectionColumnItemRequestBuilder.cs index 762bdfbab4..86c2597fdb 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/HorizontalSectionColumnItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/HorizontalSectionColumnItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.Item.Webparts; 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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ho /// /// Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. /// - public class HorizontalSectionColumnItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HorizontalSectionColumnItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property columns for groups @@ -207,8 +210,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(HorizontalSectionColumn.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.HorizontalSectionColumn.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -240,7 +243,7 @@ public Command BuildWebpartsNavCommand() { var command = new Command("webparts"); command.Description = "Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity."; - var builder = new WebpartsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.Item.Webparts.WebpartsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -260,14 +263,14 @@ public Command BuildWebpartsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public HorizontalSectionColumnItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%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 HorizontalSectionColumnItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}{?%24expand,%24select}", rawUrl) @@ -299,11 +302,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); @@ -319,11 +322,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(HorizontalSectionColumn body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.HorizontalSectionColumn body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(HorizontalSectionColumn body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.HorizontalSectionColumn body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -335,7 +338,8 @@ public RequestInformation ToPatchRequestInformation(HorizontalSectionColumn body /// /// The set of vertical columns in this section. /// - public class HorizontalSectionColumnItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HorizontalSectionColumnItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -360,3 +364,4 @@ public class HorizontalSectionColumnItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/Count/CountRequestBuilder.cs index cd81a58bde..7aa77d17ca 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ho /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/$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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.cs index ae24430eaf..db8084473d 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ho /// /// Provides operations to call the getPositionOfWebPart method. /// - public class GetPositionOfWebPartRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetPositionOfWebPartRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action getPositionOfWebPart @@ -90,14 +93,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 GetPositionOfWebPartRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}/getPositionOfWebPart", 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 GetPositionOfWebPartRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}/getPositionOfWebPart", rawUrl) @@ -124,3 +127,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.Item.Webparts.Item.GetPositionOfWebPart; 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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ho /// /// Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. /// - public class WebPartItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebPartItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property webparts for groups @@ -177,7 +180,7 @@ public Command BuildGetPositionOfWebPartNavCommand() { var command = new Command("get-position-of-web-part"); command.Description = "Provides operations to call the getPositionOfWebPart method."; - var builder = new GetPositionOfWebPartRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.Item.Webparts.Item.GetPositionOfWebPart.GetPositionOfWebPartRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -241,8 +244,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(WebPart.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WebPart.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -268,14 +271,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 WebPartItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%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 WebPartItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts/{webPart%2Did}{?%24expand,%24select}", rawUrl) @@ -307,11 +310,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); @@ -327,11 +330,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(WebPart body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WebPart body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WebPart body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WebPart body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -343,7 +346,8 @@ public RequestInformation ToPatchRequestInformation(WebPart body, Action /// The collection of WebParts in this column. /// - public class WebPartItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebPartItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -368,3 +372,4 @@ public class WebPartItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/WebpartsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/WebpartsRequestBuilder.cs index 2da526fddc..c2b49b470c 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/WebpartsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/Columns/Item/Webparts/WebpartsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.Item.Webparts.Count; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.Item.Webparts.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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ho /// /// Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. /// - public class WebpartsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebpartsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the webparts property of the microsoft.graph.horizontalSectionColumn entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WebPartItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.Item.Webparts.Item.WebPartItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGetPositionOfWebPartNavCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.Item.Webparts.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -105,8 +108,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(WebPart.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WebPart.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -257,14 +260,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 WebpartsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts{?%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 WebpartsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}/columns/{horizontalSectionColumn%2Did}/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -277,11 +280,11 @@ public WebpartsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -297,11 +300,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(WebPart body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WebPart body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WebPart body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WebPart body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -313,7 +316,8 @@ public RequestInformation ToPostRequestInformation(WebPart body, Action /// The collection of WebParts in this column. /// - public class WebpartsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebpartsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -377,3 +381,4 @@ public class WebpartsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/HorizontalSectionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/HorizontalSectionItemRequestBuilder.cs index ae7d3bae89..16fa9728c5 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/HorizontalSectionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/HorizontalSections/Item/HorizontalSectionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns; 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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ho /// /// Provides operations to manage the horizontalSections property of the microsoft.graph.canvasLayout entity. /// - public class HorizontalSectionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HorizontalSectionItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity. @@ -30,7 +33,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.horizontalSection entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.HorizontalSections.Item.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -217,8 +220,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(HorizontalSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.HorizontalSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -242,14 +245,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 HorizontalSectionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%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 HorizontalSectionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/horizontalSections/{horizontalSection%2Did}{?%24expand,%24select}", rawUrl) @@ -281,11 +284,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); @@ -301,11 +304,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(HorizontalSection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.HorizontalSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(HorizontalSection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.HorizontalSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -317,7 +320,8 @@ public RequestInformation ToPatchRequestInformation(HorizontalSection body, Acti /// /// Collection of horizontal sections on the SharePoint page. /// - public class HorizontalSectionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HorizontalSectionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -342,3 +346,4 @@ public class HorizontalSectionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/VerticalSectionRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/VerticalSectionRequestBuilder.cs index 99d03cafd8..319eda1f85 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/VerticalSectionRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/VerticalSectionRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.VerticalSection.Webparts; 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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ve /// /// Provides operations to manage the verticalSection property of the microsoft.graph.canvasLayout entity. /// - public class VerticalSectionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VerticalSectionRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property verticalSection for groups @@ -173,8 +176,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.VerticalSection.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.VerticalSection.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildWebpartsNavCommand() { var command = new Command("webparts"); command.Description = "Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity."; - var builder = new WebpartsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.VerticalSection.Webparts.WebpartsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -224,14 +227,14 @@ public Command BuildWebpartsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public VerticalSectionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection{?%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 VerticalSectionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection{?%24expand,%24select}", rawUrl) @@ -263,11 +266,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); @@ -283,11 +286,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.VerticalSection body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.VerticalSection body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.VerticalSection body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.VerticalSection body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.VerticalSectio /// /// Vertical section on the SharePoint page. /// - public class VerticalSectionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VerticalSectionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -324,3 +328,4 @@ public class VerticalSectionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/Count/CountRequestBuilder.cs index dd52b3f395..302a49a776 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ve /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/$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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.cs index 6118a567d6..69505dc338 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ve /// /// Provides operations to call the getPositionOfWebPart method. /// - public class GetPositionOfWebPartRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetPositionOfWebPartRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action getPositionOfWebPart @@ -78,14 +81,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 GetPositionOfWebPartRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}/getPositionOfWebPart", 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 GetPositionOfWebPartRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}/getPositionOfWebPart", rawUrl) @@ -112,3 +115,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.VerticalSection.Webparts.Item.GetPositionOfWebPart; 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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ve /// /// Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. /// - public class WebPartItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebPartItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property webparts for groups @@ -153,7 +156,7 @@ public Command BuildGetPositionOfWebPartNavCommand() { var command = new Command("get-position-of-web-part"); command.Description = "Provides operations to call the getPositionOfWebPart method."; - var builder = new GetPositionOfWebPartRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.VerticalSection.Webparts.Item.GetPositionOfWebPart.GetPositionOfWebPartRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,8 +210,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(WebPart.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WebPart.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 WebPartItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%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 WebPartItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts/{webPart%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WebPart body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WebPart body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WebPart body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WebPart body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(WebPart body, Action /// The set of web parts in this section. /// - public class WebPartItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebPartItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class WebPartItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/WebpartsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/WebpartsRequestBuilder.cs index 3bfce062b6..2be4a99ce7 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/WebpartsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CanvasLayout/VerticalSection/Webparts/WebpartsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.VerticalSection.Webparts.Count; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.VerticalSection.Webparts.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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.Ve /// /// Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. /// - public class WebpartsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebpartsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the webparts property of the microsoft.graph.verticalSection entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WebPartItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.VerticalSection.Webparts.Item.WebPartItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGetPositionOfWebPartNavCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.VerticalSection.Webparts.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(WebPart.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WebPart.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 WebpartsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts{?%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 WebpartsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/canvasLayout/verticalSection/webparts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public WebpartsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -273,11 +276,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(WebPart body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WebPart body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WebPart body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WebPart body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(WebPart body, Action /// The set of web parts in this section. /// - public class WebpartsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebpartsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class WebpartsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/CreatedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/CreatedByUserRequestBuilder.cs index 92ebfa95e3..863694c426 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/CreatedByUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/CreatedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser.MailboxSettings; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser.ServiceProvisioningErrors; 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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser /// /// Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. /// - public class CreatedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who created the item. Read-only. @@ -95,7 +98,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -113,7 +116,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CreatedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser{?%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 CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public CreatedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who created the item. Read-only. /// - public class CreatedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreatedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class CreatedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index ac3430b521..0990977ef2 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser.M /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\graph.sitePage\createdByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -125,8 +128,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -149,14 +152,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -169,11 +172,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -189,11 +192,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -205,7 +208,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,3 +234,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index 165d0ef074..3071510643 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/ServiceProvisioningErrors/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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser.S /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors/$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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 177c3bac42..375f7bee13 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/CreatedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser.ServiceProvisioningErrors.Count; 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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser.S /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\graph.sitePage\createdByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -154,31 +157,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -187,9 +190,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/GraphSitePageRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/GraphSitePageRequestBuilder.cs index d688555621..b9d2172f35 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/GraphSitePageRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/GraphSitePageRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByUser; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage /// /// Casts the previous resource to sitePage. /// - public class GraphSitePageRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphSitePageRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the canvasLayout property of the microsoft.graph.sitePage entity. @@ -33,7 +36,7 @@ public Command BuildCanvasLayoutNavCommand() { var command = new Command("canvas-layout"); command.Description = "Provides operations to manage the canvasLayout property of the microsoft.graph.sitePage entity."; - var builder = new CanvasLayoutRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CanvasLayout.CanvasLayoutRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -59,7 +62,7 @@ public Command BuildCreatedByUserNavCommand() { var command = new Command("created-by-user"); command.Description = "Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity."; - var builder = new CreatedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.CreatedByUser.CreatedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -147,7 +150,7 @@ public Command BuildLastModifiedByUserNavCommand() { var command = new Command("last-modified-by-user"); command.Description = "Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity."; - var builder = new LastModifiedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByUser.LastModifiedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -171,7 +174,7 @@ public Command BuildWebPartsNavCommand() { var command = new Command("web-parts"); command.Description = "Provides operations to manage the webParts property of the microsoft.graph.sitePage entity."; - var builder = new WebPartsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts.WebPartsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -191,14 +194,14 @@ public Command BuildWebPartsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GraphSitePageRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage{?%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 GraphSitePageRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage{?%24expand,%24select}", rawUrl) @@ -211,11 +214,11 @@ public GraphSitePageRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -226,7 +229,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.baseSitePage as microsoft.graph.sitePage /// - public class GraphSitePageRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphSitePageRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -251,3 +255,4 @@ public class GraphSitePageRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index 0d6112138c..26455d9c26 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByUser.MailboxSettings; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByUser.ServiceProvisioningErrors; 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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByU /// /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. /// - public class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who last modified the item. Read-only. @@ -95,7 +98,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -113,7 +116,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LastModifiedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser{?%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 LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who last modified the item. Read-only. /// - public class LastModifiedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class LastModifiedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 9c56fb33dd..24bb2412d7 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByU /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\graph.sitePage\lastModifiedByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -125,8 +128,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -149,14 +152,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -169,11 +172,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -189,11 +192,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -205,7 +208,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,3 +234,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index d6e6150ca1..d7c18d411a 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/ServiceProvisioningErrors/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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByU /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors/$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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 2cc82f6923..328148f788 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByUser.ServiceProvisioningErrors.Count; 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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByU /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\graph.sitePage\lastModifiedByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.LastModifiedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -154,31 +157,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -187,9 +190,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/Count/CountRequestBuilder.cs index ce0437abca..4b52a9aa19 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/$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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.cs index c0e912f31b..33ed0bf6bf 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/Item/GetPositionOfWebPart/GetPositionOfWebPartRequestBuilder.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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts.Item.G /// /// Provides operations to call the getPositionOfWebPart method. /// - public class GetPositionOfWebPartRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetPositionOfWebPartRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action getPositionOfWebPart @@ -78,14 +81,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 GetPositionOfWebPartRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}/getPositionOfWebPart", 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 GetPositionOfWebPartRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}/getPositionOfWebPart", rawUrl) @@ -112,3 +115,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts.Item.GetPositionOfWebPart; 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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts.Item /// /// Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. /// - public class WebPartItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebPartItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property webParts for groups @@ -153,7 +156,7 @@ public Command BuildGetPositionOfWebPartNavCommand() { var command = new Command("get-position-of-web-part"); command.Description = "Provides operations to call the getPositionOfWebPart method."; - var builder = new GetPositionOfWebPartRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts.Item.GetPositionOfWebPart.GetPositionOfWebPartRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -207,8 +210,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(WebPart.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WebPart.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 WebPartItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%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 WebPartItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts/{webPart%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(WebPart body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WebPart body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WebPart body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.WebPart body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(WebPart body, Action /// Collection of webparts on the SharePoint page. /// - public class WebPartItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebPartItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class WebPartItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/WebPartsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/WebPartsRequestBuilder.cs index c75bca795e..83ad8bdd03 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/WebPartsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/GraphSitePage/WebParts/WebPartsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts.Count; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts.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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts /// /// Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. /// - public class WebPartsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebPartsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the webParts property of the microsoft.graph.sitePage entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new WebPartItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts.Item.WebPartItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGetPositionOfWebPartNavCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Pages.Item.GraphSitePage.WebParts.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(WebPart.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.WebPart.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 WebPartsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts{?%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 WebPartsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/graph.sitePage/webParts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public WebPartsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -273,11 +276,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(WebPart body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WebPart body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(WebPart body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.WebPart body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(WebPart body, Action /// Collection of webparts on the SharePoint page. /// - public class WebPartsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WebPartsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class WebPartsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs index ff9fc732f5..8a493cba1c 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/LastModifiedByUserRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser.MailboxSettings; using ApiSdk.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser.ServiceProvisioningErrors; 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.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser /// /// Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. /// - public class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilder : BaseCliRequestBuilder { /// /// Identity of the user who last modified the item. Read-only. @@ -95,7 +98,7 @@ public Command BuildMailboxSettingsNavCommand() { var command = new Command("mailbox-settings"); command.Description = "The mailboxSettings property"; - var builder = new MailboxSettingsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); execCommands.Add(builder.BuildPatchCommand()); @@ -113,7 +116,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -129,14 +132,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public LastModifiedByUserRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser{?%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 LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl) @@ -149,11 +152,11 @@ public LastModifiedByUserRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -164,7 +167,8 @@ public RequestInformation ToGetRequestInformation(Action /// Identity of the user who last modified the item. Read-only. /// - public class LastModifiedByUserRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LastModifiedByUserRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -189,3 +193,4 @@ public class LastModifiedByUserRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs index 24a93a1975..3a48653c45 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/MailboxSettings/MailboxSettingsRequestBuilder.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.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser.MailboxSet /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\lastModifiedByUser\mailboxSettings /// - public class MailboxSettingsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseCliRequestBuilder { /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. @@ -125,8 +128,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.MailboxSettings.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.MailboxSettings.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -149,14 +152,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 MailboxSettingsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/mailboxSettings{?%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 MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", rawUrl) @@ -169,11 +172,11 @@ public MailboxSettingsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -189,11 +192,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.MailboxSettings body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.MailboxSettings body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -205,7 +208,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.MailboxSetting /// /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. /// - public class MailboxSettingsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,3 +234,4 @@ public class MailboxSettingsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index ef9f707304..0acf47969a 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/ServiceProvisioningErrors/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.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser.ServicePro /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors/$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}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 57631c36d0..039b675d76 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/Item/LastModifiedByUser/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser.ServiceProvisioningErrors.Count; 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.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser.ServicePro /// /// Builds and executes requests for operations under \groups\{group-id}\sites\{site-id}\pages\{baseSitePage-id}\lastModifiedByUser\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Sites.Item.Pages.Item.LastModifiedByUser.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -154,31 +157,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages/{baseSitePage%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -187,9 +190,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a user object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Pages/PagesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Pages/PagesRequestBuilder.cs index 628762898a..88ece45983 100644 --- a/src/generated/Groups/Item/Sites/Item/Pages/PagesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Pages/PagesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Pages.Count; using ApiSdk.Groups.Item.Sites.Item.Pages.GraphSitePage; using ApiSdk.Groups.Item.Sites.Item.Pages.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.Pages /// /// Provides operations to manage the pages property of the microsoft.graph.site entity. /// - public class PagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the pages property of the microsoft.graph.site entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new BaseSitePageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.Item.BaseSitePageItemRequestBuilder(PathParameters); commands.Add(builder.BuildCreatedByUserNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -49,7 +52,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.Groups.Item.Sites.Item.Pages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(BaseSitePage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.BaseSitePage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -123,7 +126,7 @@ public Command BuildGraphSitePageNavCommand() { var command = new Command("graph-site-page"); command.Description = "Casts the previous resource to sitePage."; - var builder = new GraphSitePageRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.GraphSitePage.GraphSitePageRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -247,14 +250,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 PagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages{?%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 PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public PagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -287,11 +290,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(BaseSitePage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.BaseSitePage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(BaseSitePage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.BaseSitePage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(BaseSitePage body, Action /// The collection of pages in the baseSitePages list in this site. /// - public class PagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class PagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Permissions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Permissions/Count/CountRequestBuilder.cs index 22b37ad37d..51be871943 100644 --- a/src/generated/Groups/Item/Sites/Item/Permissions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Permissions/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.Groups.Item.Sites.Item.Permissions.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/$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}/groups/{group%2Did}/sites/{site%2Did}/permissions/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.cs index 92831cdc09..e32070eeac 100644 --- a/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostRequestBody.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.Groups.Item.Sites.Item.Permissions.Item.Grant { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GrantPostRequestBody : IAdditionalDataHolder, IParsable + public partial class GrantPostRequestBody : 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. @@ -16,10 +18,10 @@ public class GrantPostRequestBody : IAdditionalDataHolder, IParsable /// The recipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Recipients { get; set; } + public List? Recipients { get; set; } #nullable restore #else - public List Recipients { get; set; } + public List Recipients { get; set; } #endif /// The roles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -30,7 +32,7 @@ public class GrantPostRequestBody : IAdditionalDataHolder, IParsable public List Roles { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public GrantPostRequestBody() { @@ -39,12 +41,12 @@ public GrantPostRequestBody() /// /// 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 GrantPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Item.Permissions.Item.Grant.GrantPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GrantPostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Item.Permissions.Item.Grant.GrantPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,8 +56,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "recipients", n => { Recipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } }, + { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -65,9 +67,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("recipients", Recipients); + writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteCollectionOfPrimitiveValues("roles", Roles); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs b/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs index 5a2ad5a0d2..72dcdb97ad 100644 --- a/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs +++ b/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Item.Permissions.Item.Grant { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GrantPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GrantPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GrantPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Item.Permissions.Item.Grant.GrantPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GrantPostResponse(); + return new global::ApiSdk.Groups.Item.Sites.Item.Permissions.Item.Grant.GrantPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Permission.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs index 566f0af54e..4ac28d0d41 100644 --- a/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Permissions/Item/Grant/GrantRequestBuilder.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.Groups.Item.Sites.Item.Permissions.Item.Grant /// /// Provides operations to call the grant method. /// - public class GrantRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GrantRequestBuilder : BaseCliRequestBuilder { /// /// Grant users access to a link represented by a permission. @@ -65,8 +68,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(GrantPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Item.Permissions.Item.Grant.GrantPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -98,14 +101,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 GrantRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%2Did}/grant", 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 GrantRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%2Did}/grant", rawUrl) @@ -119,11 +122,11 @@ public GrantRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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(GrantPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Permissions.Item.Grant.GrantPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(GrantPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Item.Permissions.Item.Grant.GrantPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -134,3 +137,4 @@ public RequestInformation ToPostRequestInformation(GrantPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs index 3be5e9bb22..63256c44dd 100644 --- a/src/generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Permissions.Item.Grant; 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.Groups.Item.Sites.Item.Permissions.Item /// /// Provides operations to manage the permissions property of the microsoft.graph.site entity. /// - public class PermissionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property permissions for groups @@ -141,7 +144,7 @@ public Command BuildGrantNavCommand() { var command = new Command("grant"); command.Description = "Provides operations to call the grant method."; - var builder = new GrantRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Permissions.Item.Grant.GrantRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -190,8 +193,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.Permission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Permission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 PermissionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%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 PermissionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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.Permission body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Permission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Permission body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Permission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Permission bod /// /// The permissions associated with the site. Nullable. /// - public class PermissionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class PermissionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs index d97a3fc169..df07c27c7a 100644 --- a/src/generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Permissions/PermissionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Permissions.Count; using ApiSdk.Groups.Item.Sites.Item.Permissions.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.Groups.Item.Sites.Item.Permissions /// /// Provides operations to manage the permissions property of the microsoft.graph.site entity. /// - public class PermissionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the permissions property of the microsoft.graph.site entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new PermissionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Permissions.Item.PermissionItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGrantNavCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.Permissions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.Permission.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Permission.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 PermissionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions{?%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 PermissionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public PermissionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -261,11 +264,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(ApiSdk.Models.Permission body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Permission body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.Permission body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Permission body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.Permission body /// /// The permissions associated with the site. Nullable. /// - public class PermissionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class PermissionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.cs index 59348d9767..7c84d225b0 100644 --- a/src/generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/SiteItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Analytics; using ApiSdk.Groups.Item.Sites.Item.Columns; using ApiSdk.Groups.Item.Sites.Item.ContentTypes; @@ -22,6 +23,7 @@ using ApiSdk.Groups.Item.Sites.Item.TermStores; 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; @@ -40,7 +42,8 @@ namespace ApiSdk.Groups.Item.Sites.Item /// /// Provides operations to manage the sites property of the microsoft.graph.group entity. /// - public class SiteItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SiteItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the analytics property of the microsoft.graph.site entity. @@ -50,7 +53,7 @@ public Command BuildAnalyticsNavCommand() { var command = new Command("analytics"); command.Description = "Provides operations to manage the analytics property of the microsoft.graph.site entity."; - var builder = new AnalyticsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Analytics.AnalyticsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAllTimeNavCommand()); @@ -77,7 +80,7 @@ public Command BuildColumnsNavCommand() { var command = new Command("columns"); command.Description = "Provides operations to manage the columns property of the microsoft.graph.site entity."; - var builder = new ColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Columns.ColumnsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -104,7 +107,7 @@ public Command BuildContentTypesNavCommand() { var command = new Command("content-types"); command.Description = "Provides operations to manage the contentTypes property of the microsoft.graph.site entity."; - var builder = new ContentTypesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ContentTypes.ContentTypesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddCopyFromContentTypeHubNavCommand()); @@ -134,7 +137,7 @@ public Command BuildCreatedByUserNavCommand() { var command = new Command("created-by-user"); command.Description = "Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity."; - var builder = new CreatedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.CreatedByUser.CreatedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -158,7 +161,7 @@ public Command BuildDriveNavCommand() { var command = new Command("drive"); command.Description = "Provides operations to manage the drive property of the microsoft.graph.site entity."; - var builder = new DriveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Drive.DriveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -175,7 +178,7 @@ public Command BuildDrivesNavCommand() { var command = new Command("drives"); command.Description = "Provides operations to manage the drives property of the microsoft.graph.site entity."; - var builder = new DrivesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Drives.DrivesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -201,7 +204,7 @@ public Command BuildExternalColumnsNavCommand() { var command = new Command("external-columns"); command.Description = "Provides operations to manage the externalColumns property of the microsoft.graph.site entity."; - var builder = new ExternalColumnsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.ExternalColumns.ExternalColumnsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -227,7 +230,7 @@ public Command BuildGetActivitiesByIntervalNavCommand() { var command = new Command("get-activities-by-interval"); command.Description = "Provides operations to call the getActivitiesByInterval method."; - var builder = new GetActivitiesByIntervalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetActivitiesByInterval.GetActivitiesByIntervalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -244,7 +247,7 @@ public Command BuildGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithI { var command = new Command("get-activities-by-interval-with-start-date-time-with-end-date-time-with-interval"); command.Description = "Provides operations to call the getActivitiesByInterval method."; - var builder = new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -261,7 +264,7 @@ public Command BuildGetApplicableContentTypesForListWithListIdRbCommand() { var command = new Command("get-applicable-content-types-for-list-with-list-id"); command.Description = "Provides operations to call the getApplicableContentTypesForList method."; - var builder = new GetApplicableContentTypesForListWithListIdRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetApplicableContentTypesForListWithListId.GetApplicableContentTypesForListWithListIdRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -278,7 +281,7 @@ public Command BuildGetByPathWithPathRbCommand() { var command = new Command("get-by-path-with-path"); command.Description = "Provides operations to call the getByPath method."; - var builder = new GetByPathWithPathRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.GetByPathWithPath.GetByPathWithPathRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAnalyticsNavCommand()); @@ -291,7 +294,6 @@ public Command BuildGetByPathWithPathRbCommand() nonExecCommands.Add(builder.BuildGetActivitiesByIntervalNavCommand()); nonExecCommands.Add(builder.BuildGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRbCommand()); nonExecCommands.Add(builder.BuildGetApplicableContentTypesForListWithListIdRbCommand()); - nonExecCommands.Add(builder.BuildGetByPathWithPath1RbCommand()); execCommands.Add(builder.BuildGetCommand()); nonExecCommands.Add(builder.BuildItemsNavCommand()); nonExecCommands.Add(builder.BuildLastModifiedByUserNavCommand()); @@ -379,7 +381,7 @@ public Command BuildItemsNavCommand() { var command = new Command("items"); command.Description = "Provides operations to manage the items property of the microsoft.graph.site entity."; - var builder = new ItemsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Items.ItemsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -405,7 +407,7 @@ public Command BuildLastModifiedByUserNavCommand() { var command = new Command("last-modified-by-user"); command.Description = "Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity."; - var builder = new LastModifiedByUserRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.LastModifiedByUser.LastModifiedByUserRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -429,7 +431,7 @@ public Command BuildListsNavCommand() { var command = new Command("lists"); command.Description = "Provides operations to manage the lists property of the microsoft.graph.site entity."; - var builder = new ListsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Lists.ListsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -456,7 +458,7 @@ public Command BuildOnenoteNavCommand() { var command = new Command("onenote"); command.Description = "Provides operations to manage the onenote property of the microsoft.graph.site entity."; - var builder = new OnenoteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Onenote.OnenoteRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -486,7 +488,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.site entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -513,7 +515,7 @@ public Command BuildPagesNavCommand() { var command = new Command("pages"); command.Description = "Provides operations to manage the pages property of the microsoft.graph.site entity."; - var builder = new PagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Pages.PagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -568,8 +570,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.Site.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Site.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -598,7 +600,7 @@ public Command BuildPermissionsNavCommand() { var command = new Command("permissions"); command.Description = "Provides operations to manage the permissions property of the microsoft.graph.site entity."; - var builder = new PermissionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Permissions.PermissionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -625,7 +627,7 @@ public Command BuildSubSitesNavCommand() { var command = new Command("sub-sites"); command.Description = "Provides operations to manage the sites property of the microsoft.graph.site entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.Sites.SitesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Sites.SitesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -651,7 +653,7 @@ public Command BuildTermStoreNavCommand() { var command = new Command("term-store"); command.Description = "Provides operations to manage the termStore property of the microsoft.graph.site entity."; - var builder = new TermStoreRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.TermStoreRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -677,7 +679,7 @@ public Command BuildTermStoresNavCommand() { var command = new Command("term-stores"); command.Description = "Provides operations to manage the termStores property of the microsoft.graph.site entity."; - var builder = new TermStoresRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.TermStoresRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -697,14 +699,14 @@ public Command BuildTermStoresNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SiteItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%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 SiteItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}{?%24expand,%24select}", rawUrl) @@ -717,11 +719,11 @@ public SiteItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -737,11 +739,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.Site body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Site body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Site body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Site body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -753,7 +755,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Site body, Act /// /// The list of SharePoint sites in this group. Access the default site with /sites/root. /// - public class SiteItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SiteItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -778,3 +781,4 @@ public class SiteItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Sites/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Sites/Count/CountRequestBuilder.cs index 8a81337fcb..1c9574924b 100644 --- a/src/generated/Groups/Item/Sites/Item/Sites/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/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.Groups.Item.Sites.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 @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%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}/groups/{group%2Did}/sites/{site%2Did}/sites/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.cs index 56b6a9738f..9180844e92 100644 --- a/src/generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Sites/Item/SiteItemRequestBuilder.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.Groups.Item.Sites.Item.Sites.Item /// /// Provides operations to manage the sites property of the microsoft.graph.site entity. /// - public class SiteItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SiteItemRequestBuilder : BaseCliRequestBuilder { /// /// The collection of the sub-sites under this site. @@ -86,14 +89,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 SiteItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites/{site%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public SiteItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/sites/{site%2Did1}{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public SiteItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of the sub-sites under this site. /// - public class SiteItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SiteItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class SiteItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs index 685b9b9458..1a6d049740 100644 --- a/src/generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Sites/SitesRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.Sites.Count; using ApiSdk.Groups.Item.Sites.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.Groups.Item.Sites.Item.Sites /// /// Provides operations to manage the sites property of the microsoft.graph.site 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.site entity. @@ -30,7 +33,7 @@ public class SitesRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.Sites.Item.SiteItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.Sites.Item.SiteItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Sites.Item.Sites.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -160,14 +163,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}/groups/{group%2Did}/sites/{site%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}/groups/{group%2Did}/sites/{site%2Did}/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -180,11 +183,11 @@ public SitesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -195,7 +198,8 @@ public RequestInformation ToGetRequestInformation(Action /// The collection of the sub-sites under this site. /// - public class SitesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SitesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -259,3 +263,4 @@ public class SitesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.cs index 4feecd97a3..1c470d6996 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/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.Groups.Item.Sites.Item.TermStore.Groups.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs index a49576518b..364d114d9f 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/GroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups /// /// Provides operations to manage the groups property of the microsoft.graph.termStore.store entity. /// - public class GroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the groups property of the microsoft.graph.termStore.store entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.GroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.GroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.TermStore.Groups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.TermStore.Group.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Group.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 GroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups{?%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 GroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public GroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -261,11 +264,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(ApiSdk.Models.TermStore.Group body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Group /// /// Collection of all groups available in the term store. /// - public class GroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class GroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs index d17bff10d0..55370b4e84 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/GroupItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item /// /// Provides operations to manage the groups property of the microsoft.graph.termStore.store entity. /// - public class GroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property groups for groups @@ -173,8 +176,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.TermStore.Group.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Group.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildSetsNavCommand() { var command = new Command("sets"); command.Description = "Provides operations to manage the sets property of the microsoft.graph.termStore.group entity."; - var builder = new SetsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.SetsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -224,14 +227,14 @@ public Command BuildSetsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public GroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}{?%24expand,%24select}", rawUrl) @@ -263,11 +266,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); @@ -283,11 +286,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.TermStore.Group body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Grou /// /// Collection of all groups available in the term store. /// - public class GroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -324,3 +328,4 @@ public class GroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.cs index 7c139a56f8..b35161c577 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index 5767bcc67c..58ef9b2635 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.TermItemRequestBuilder(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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -287,11 +290,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs index 88d08de3c9..05742f220e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 911fbf6af3..cfea52f29f 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -106,8 +109,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -258,14 +261,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -278,11 +281,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -298,11 +301,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -314,7 +317,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -378,3 +382,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index a49769291a..c5f1ad7a00 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index c7524109c5..ae4d48a86f 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 29a4d3bc1e..9abef70bba 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -110,14 +113,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 8741f850bb..cdb83f96ce 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -103,7 +106,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -260,8 +263,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -295,7 +298,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -312,7 +315,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -322,14 +325,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -361,11 +364,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); @@ -381,11 +384,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -397,7 +400,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -422,3 +426,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 52e8b112ed..35cfeec6b3 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 3f1ab08616..1a42d85104 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -110,14 +113,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 0fbb421d8a..93d9a8e868 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -112,8 +115,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -271,14 +274,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -291,11 +294,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -311,11 +314,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -391,3 +395,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 4ab232132e..6e47535e88 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 7b57c36907..59ba490e6a 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -225,8 +228,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -286,7 +289,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -296,14 +299,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -335,11 +338,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); @@ -355,11 +358,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -371,7 +374,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -396,3 +400,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index c9a2e4e103..4db4c25262 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 451a1776ef..ad1014486e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -104,14 +107,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index a3e81999c6..ce79cfb4e1 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -97,7 +100,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,8 +246,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,14 +307,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -343,11 +346,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); @@ -363,11 +366,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -379,7 +382,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -404,3 +408,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 33e9710264..2d65b1f663 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 7736d87cf6..afc79b3645 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -104,14 +107,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 7c46587fb0..0226c06b8e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -299,11 +302,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 33a6d4f469..e574bc14d0 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs index eb8fd8bc3f..94f25385ae 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -209,8 +212,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -242,7 +245,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -269,7 +272,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -286,7 +289,7 @@ public Command BuildSubChildrenNavCommand() { var command = new Command("sub-children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -306,14 +309,14 @@ public Command BuildSubChildrenNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -345,11 +348,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); @@ -365,11 +368,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -381,7 +384,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -406,3 +410,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index 19b3d68ce0..c303a68a56 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.ParentGr /// /// Provides operations to manage the parentGroup property of the microsoft.graph.termStore.set entity. /// - public class ParentGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentGroupRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property parentGroup for groups @@ -189,8 +192,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.TermStore.Group.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Group.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 ParentGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/parentGroup{?%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 ParentGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/parentGroup{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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.TermStore.Group body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Grou /// /// The parent [group] that contains the set. /// - public class ParentGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class ParentGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs index 3810999a12..73cb77da8b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relation /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index f9e7a8f8a6..292bd4d0bc 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relation /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -98,14 +101,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index cb23887ba0..62ce824068 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relation /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -91,7 +94,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -226,8 +229,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -276,7 +279,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -286,14 +289,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -325,11 +328,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); @@ -345,11 +348,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -361,7 +364,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -386,3 +390,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index ef58a1e44d..6795d452ee 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relation /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index dcfaddc7b8..f54f4bfaf8 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relation /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -98,14 +101,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index a6fcbe3785..6828a09f61 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relation /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -287,11 +290,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs index a14e6737ef..bef2d78f15 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/SetItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.ParentGroup; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. /// - public class SetItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -33,7 +36,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.set entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -183,7 +186,7 @@ public Command BuildParentGroupNavCommand() { var command = new Command("parent-group"); command.Description = "Provides operations to manage the parentGroup property of the microsoft.graph.termStore.set entity."; - var builder = new ParentGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.ParentGroup.ParentGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -239,8 +242,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.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -271,7 +274,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.set entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -298,7 +301,7 @@ public Command BuildTermsNavCommand() { var command = new Command("terms"); command.Description = "Provides operations to manage the terms property of the microsoft.graph.termStore.set entity."; - var builder = new TermsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.TermsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -318,14 +321,14 @@ public Command BuildTermsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SetItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%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 SetItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}{?%24expand,%24select}", rawUrl) @@ -357,11 +360,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); @@ -377,11 +380,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.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -393,7 +396,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set /// /// All sets under the group in a term [store]. /// - public class SetItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -418,3 +422,4 @@ public class SetItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs index db08179a64..0509187012 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index 8dc185bd3b..f3006a834d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -106,8 +109,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -258,14 +261,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -278,11 +281,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -298,11 +301,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -314,7 +317,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -378,3 +382,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 5b79e7aacd..c5194a4536 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index c00fb8fedb..25efe2e6bd 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index a87293b72b..aec0d60f4f 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -110,14 +113,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 241adf79c6..a59a7673a7 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -103,7 +106,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -260,8 +263,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -295,7 +298,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -312,7 +315,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -322,14 +325,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -361,11 +364,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); @@ -381,11 +384,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -397,7 +400,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -422,3 +426,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 036fddc274..601e16b719 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index bc4481c46e..4455deda97 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -110,14 +113,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index a0bbeedd31..e3db1d5ff1 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -112,8 +115,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -271,14 +274,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -291,11 +294,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -311,11 +314,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -391,3 +395,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index f187e7f95e..ad8f13bc04 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index 30979f25b3..ab9eaf123f 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -225,8 +228,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -286,7 +289,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -296,14 +299,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -335,11 +338,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); @@ -355,11 +358,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -371,7 +374,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -396,3 +400,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index a571bb7818..9eedaa2e7d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 9c50e73d5d..ece5d02544 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -104,14 +107,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index b80c811f97..ca814e5066 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -97,7 +100,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,8 +246,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,14 +307,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -343,11 +346,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); @@ -363,11 +366,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -379,7 +382,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -404,3 +408,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index b7b7e14548..f9c2a3769c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index c9fdd4e4a0..2bd4e45cb9 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -104,14 +107,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index aef7e9480b..6285a25a5d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -299,11 +302,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index ea17910c72..3f2403832c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index fb8397429f..e64661429e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.It /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -32,7 +35,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -236,8 +239,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -269,7 +272,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -296,7 +299,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -306,14 +309,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -345,11 +348,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); @@ -365,11 +368,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -381,7 +384,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -406,3 +410,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs index 77a30591d7..072f9f11a0 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Item.TermItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.Terms.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 TermsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms{?%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 TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets/{set%2Did}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -287,11 +290,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class TermsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs index f730635cd7..7e3877e8cb 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Groups/Item/Sets/SetsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. /// - public class SetsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SetItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Item.SetItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -49,7 +52,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.Groups.Item.Sites.Item.TermStore.Groups.Item.Sets.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -98,8 +101,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -236,14 +239,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 SetsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets{?%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 SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/groups/{group%2Did1}/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -256,11 +259,11 @@ public SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/ /// 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); @@ -276,11 +279,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(ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -292,7 +295,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set b /// /// All sets under the group in a term [store]. /// - public class SetsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -356,3 +360,4 @@ public class SetsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.cs index f112ce9cce..7a9c34984e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/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.Groups.Item.Sites.Item.TermStore.Sets.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs index 66e2c15a86..44f28a1864 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.TermItemRequestBuilder(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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -97,8 +100,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -235,14 +238,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -255,11 +258,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -275,11 +278,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -291,7 +294,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -355,3 +359,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.cs index 8a13054422..81fa300e9a 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 2e09624a44..17ed1089fc 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Childr /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -101,8 +104,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -246,14 +249,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -266,11 +269,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -286,11 +289,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -302,7 +305,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -366,3 +370,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index 073540dc2c..c0d2f35f92 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Childr /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index c9e6301759..403bb18640 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Childr /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index de451068dc..2486d915be 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Childr /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -104,14 +107,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index fee56f10b3..1308099a12 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Childr /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -97,7 +100,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,8 +246,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,14 +307,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -343,11 +346,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); @@ -363,11 +366,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -379,7 +382,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -404,3 +408,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index e920a024a4..84d3dab620 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Childr /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index fb4f2ed7ef..711d308829 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Childr /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -104,14 +107,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index ad16b42d26..0c5ecf6b84 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Childr /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -299,11 +302,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index abf3cfce5a..c404b39c47 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Childr /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 0c4d282941..0f8cda5a4b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Childr /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -208,8 +211,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -241,7 +244,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -268,7 +271,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -278,14 +281,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -317,11 +320,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); @@ -337,11 +340,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -353,7 +356,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -378,3 +382,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 30a8767467..bf131765b6 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relati /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 0a588722be..9a314bcd6d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relati /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -98,14 +101,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 2d70f994d9..724a10becb 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relati /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -91,7 +94,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -226,8 +229,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -276,7 +279,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -286,14 +289,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -325,11 +328,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); @@ -345,11 +348,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -361,7 +364,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -386,3 +390,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 87adab4f6f..607e1c13fd 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relati /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 371b68f2db..609d4c6c8e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relati /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -98,14 +101,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 76603edb88..28c53b1267 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relati /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -287,11 +290,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index eba7416ae6..b8ac1864c8 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Set /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -92,14 +95,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs index 841a9ebfad..bb1d91f738 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -192,8 +195,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,7 +227,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -251,7 +254,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -268,7 +271,7 @@ public Command BuildSubChildrenNavCommand() { var command = new Command("sub-children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -288,14 +291,14 @@ public Command BuildSubChildrenNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/children/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -327,11 +330,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); @@ -347,11 +350,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -363,7 +366,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -388,3 +392,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index f919e253f5..a3873d0b93 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup /// /// Provides operations to manage the parentGroup property of the microsoft.graph.termStore.set entity. /// - public class ParentGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentGroupRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property parentGroup for groups @@ -173,8 +176,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.TermStore.Group.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Group.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildSetsNavCommand() { var command = new Command("sets"); command.Description = "Provides operations to manage the sets property of the microsoft.graph.termStore.group entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.SetsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.SetsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -224,14 +227,14 @@ public Command BuildSetsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ParentGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup{?%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 ParentGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup{?%24expand,%24select}", rawUrl) @@ -263,11 +266,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); @@ -283,11 +286,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.TermStore.Group body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Grou /// /// The parent [group] that contains the set. /// - public class ParentGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -324,3 +328,4 @@ public class ParentGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs index ea07d016b6..b677731fc2 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Cou /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs index 06acb6d36e..d59f01a5e2 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.TermItemRequestBuilder(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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -287,11 +290,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs index 02cdbaa518..98689bfb1b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 45f7f67f86..76fcac98d2 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -106,8 +109,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -258,14 +261,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -278,11 +281,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -298,11 +301,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -314,7 +317,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -378,3 +382,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index 4ae00f19db..e0b4157f1d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 82a5e1dc5b..a653d80744 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index e36efe8941..31e2ca9460 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -110,14 +113,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index a95ecc1224..ec0f4575f8 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -103,7 +106,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -260,8 +263,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -295,7 +298,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -312,7 +315,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -322,14 +325,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -361,11 +364,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); @@ -381,11 +384,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -397,7 +400,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -422,3 +426,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 7e3bd76028..39f6e91a58 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index f509c98845..895151b8d7 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -110,14 +113,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 168b82b492..c5d78e2bb0 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -112,8 +115,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -271,14 +274,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -291,11 +294,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -311,11 +314,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -391,3 +395,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 31b0275cb0..084e6585c7 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index cf13aa4753..e50707dc50 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -225,8 +228,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -286,7 +289,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -296,14 +299,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -335,11 +338,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); @@ -355,11 +358,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -371,7 +374,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -396,3 +400,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 58df935b9c..b656be01d3 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 4a19a87e26..7d8c8a52de 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -104,14 +107,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 727363cf7f..5933534055 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -97,7 +100,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,8 +246,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,14 +307,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -343,11 +346,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); @@ -363,11 +366,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -379,7 +382,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -404,3 +408,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 4a8dc4ab38..f81c6bd313 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index b6ef23b13e..666ea28b07 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -104,14 +107,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 8793acfcfd..55a4e29a8f 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -299,11 +302,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 534b47349c..1c45a6611c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs index cf8cbd07b9..e5704b1697 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -209,8 +212,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -242,7 +245,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -269,7 +272,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -286,7 +289,7 @@ public Command BuildSubChildrenNavCommand() { var command = new Command("sub-children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -306,14 +309,14 @@ public Command BuildSubChildrenNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -345,11 +348,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); @@ -365,11 +368,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -381,7 +384,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -406,3 +410,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs index ddd27c4906..008942bd85 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 1b3ab6b90e..f4f74f2960 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -98,14 +101,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index ee345c8710..793c2d9dcb 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -91,7 +94,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -226,8 +229,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -276,7 +279,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -286,14 +289,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -325,11 +328,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); @@ -345,11 +348,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -361,7 +364,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -386,3 +390,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index fb4e20d129..6ffef4fba9 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 69e094647e..e45d883dc2 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -98,14 +101,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs index ae93211bb1..7767623068 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -287,11 +290,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs index 8aa9d7cb41..dfffbbcd74 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. /// - public class SetItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -32,7 +35,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.set entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -219,8 +222,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.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -251,7 +254,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.set entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -278,7 +281,7 @@ public Command BuildTermsNavCommand() { var command = new Command("terms"); command.Description = "Provides operations to manage the terms property of the microsoft.graph.termStore.set entity."; - var builder = new TermsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.TermsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -298,14 +301,14 @@ public Command BuildTermsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SetItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public SetItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}{?%24expand,%24select}", rawUrl) @@ -337,11 +340,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); @@ -357,11 +360,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.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -373,7 +376,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set /// /// All sets under the group in a term [store]. /// - public class SetItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -398,3 +402,4 @@ public class SetItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs index 48642f1d5e..70ad48cd46 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index 8cc1a48b69..6a0ffc96cf 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -106,8 +109,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -258,14 +261,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -278,11 +281,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -298,11 +301,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -314,7 +317,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -378,3 +382,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 7af533c96e..8251c8c810 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index dd1a0c460d..e3f593660e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index e1b4e881c4..eb62a04477 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -110,14 +113,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index c687304c4d..ca7f6f5d15 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -103,7 +106,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -260,8 +263,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -295,7 +298,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -312,7 +315,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -322,14 +325,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -361,11 +364,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); @@ -381,11 +384,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -397,7 +400,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -422,3 +426,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 6651c7fdbb..1d4d2af1b1 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index ff7afa080e..4ebae354ee 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -110,14 +113,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 2b5a4f7ce9..3cc74498e2 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -112,8 +115,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -271,14 +274,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -291,11 +294,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -311,11 +314,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -391,3 +395,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index 87201b1726..7cc7b698b6 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index 7e148430ac..618a1b9a64 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -225,8 +228,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -286,7 +289,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -296,14 +299,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -335,11 +338,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); @@ -355,11 +358,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -371,7 +374,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -396,3 +400,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index 70ef6c3a28..1071a842b4 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index b54efb136b..cff9a3b82b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -104,14 +107,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index aa6bf60749..2253e8995d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -97,7 +100,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,8 +246,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,14 +307,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -343,11 +346,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); @@ -363,11 +366,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -379,7 +382,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -404,3 +408,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 3790b9d108..9ec83575de 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 7f78e6c478..0e40bf7068 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -104,14 +107,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 8949667961..cc0b2cb126 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -299,11 +302,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index d7529609e5..e02b689317 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 2f99abcc4b..b2b819cf44 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -32,7 +35,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -236,8 +239,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -269,7 +272,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -296,7 +299,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -306,14 +309,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -345,11 +348,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); @@ -365,11 +368,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -381,7 +384,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -406,3 +410,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs index d0c175ed4c..2871ff60c3 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Ite /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Item.TermItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.Terms.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 TermsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%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 TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -287,11 +290,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class TermsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs index d4e4ff3ff2..a6ed557036 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. /// - public class SetsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.SetItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Item.SetItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.Sets.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -97,8 +100,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -235,14 +238,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 SetsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets{?%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 SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/parentGroup/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -255,11 +258,11 @@ public SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/ /// 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); @@ -275,11 +278,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(ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -291,7 +294,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set b /// /// All sets under the group in a term [store]. /// - public class SetsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -355,3 +359,4 @@ public class SetsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.cs index 32d6ebbcec..f962f9169e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index c3571e082b..a0608ba01c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item.FromT /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -92,14 +95,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 7fd475a6f5..6da369701f 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -85,7 +88,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -209,8 +212,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -241,7 +244,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -258,7 +261,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -268,14 +271,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -307,11 +310,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); @@ -327,11 +330,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -343,7 +346,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -368,3 +372,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index 294d23efce..3e5fbb496a 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item.Set /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -92,14 +95,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index bbbff3f840..18a32d8e9d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item.ToTer /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -92,14 +95,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs index de349d2d45..bf7eb3b7d8 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -97,8 +100,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -235,14 +238,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -255,11 +258,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -275,11 +278,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -291,7 +294,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -355,3 +359,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs index 1db8eb3055..13b8dde93a 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/SetItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.store entity. /// - public class SetItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -33,7 +36,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.set entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -171,7 +174,7 @@ public Command BuildParentGroupNavCommand() { var command = new Command("parent-group"); command.Description = "Provides operations to manage the parentGroup property of the microsoft.graph.termStore.set entity."; - var builder = new ParentGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.ParentGroup.ParentGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -228,8 +231,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.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.set entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -286,7 +289,7 @@ public Command BuildTermsNavCommand() { var command = new Command("terms"); command.Description = "Provides operations to manage the terms property of the microsoft.graph.termStore.set entity."; - var builder = new TermsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.TermsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -306,14 +309,14 @@ public Command BuildTermsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SetItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%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 SetItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}{?%24expand,%24select}", rawUrl) @@ -345,11 +348,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); @@ -365,11 +368,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.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -381,7 +384,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set /// /// Collection of all sets available in the term store. This relationship can only be used to load a specific term set. /// - public class SetItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -406,3 +410,4 @@ public class SetItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.cs index 60d6e27c5f..f93be92341 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index a8d9cc9324..556c11e802 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -101,8 +104,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -246,14 +249,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -266,11 +269,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -286,11 +289,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -302,7 +305,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -366,3 +370,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 8b35813f49..308a29da0a 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children. /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 86f2e3d7c5..11516d8da9 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children. /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 9b8bde07fb..3adb67878b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children. /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -104,14 +107,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 00710a2bf6..d6d939db5a 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children. /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -97,7 +100,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,8 +246,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,14 +307,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -343,11 +346,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); @@ -363,11 +366,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -379,7 +382,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -404,3 +408,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 53a3488c19..5ef71313bf 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children. /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index b32af10c8c..a1caede068 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children. /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -104,14 +107,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index d72b2b5f2b..e5d65fe5a2 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children. /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -299,11 +302,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index 930093c1f2..58be0a25f6 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children. /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index 5ecb58cd21..3e466eaf31 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children. /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -208,8 +211,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -241,7 +244,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -268,7 +271,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -278,14 +281,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -317,11 +320,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); @@ -337,11 +340,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -353,7 +356,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -378,3 +382,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index d3ffe135ef..dbe7a03ac2 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index cad5f2b873..0f3199be97 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -98,14 +101,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index 0342edaac3..a10f01097c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -91,7 +94,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -226,8 +229,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -276,7 +279,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -286,14 +289,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -325,11 +328,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); @@ -345,11 +348,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -361,7 +364,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -386,3 +390,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 9e711b74dd..94e80f08ad 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 5fde3289e8..b2a903c460 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -98,14 +101,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index bfd7f130f9..d5f182f572 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -287,11 +290,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 38b1a79e19..ca16f271c9 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Set /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -92,14 +95,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 9070fa457f..0575f4d520 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -32,7 +35,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -219,8 +222,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -251,7 +254,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -278,7 +281,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -288,14 +291,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -327,11 +330,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); @@ -347,11 +350,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -363,7 +366,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -388,3 +392,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs index 29dd2e2ebc..5da5d3c995 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/Item/Terms/TermsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Item.TermItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStore.Sets.Item.Terms.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -97,8 +100,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -235,14 +238,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 TermsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms{?%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 TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets/{set%2Did}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -255,11 +258,11 @@ public TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -275,11 +278,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -291,7 +294,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -355,3 +359,4 @@ public class TermsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs index 6f41c66870..8d56df3536 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/Sets/SetsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Count; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore.Sets /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.store entity. /// - public class SetsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.store entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SetItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.Item.SetItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -49,7 +52,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.Groups.Item.Sites.Item.TermStore.Sets.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -224,14 +227,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 SetsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets{?%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 SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -244,11 +247,11 @@ public SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/ /// 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); @@ -264,11 +267,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(ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -280,7 +283,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set b /// /// Collection of all sets available in the term store. This relationship can only be used to load a specific term set. /// - public class SetsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -344,3 +348,4 @@ public class SetsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs index e43bd1048a..163330078b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStore/TermStoreRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStore.Groups; using ApiSdk.Groups.Item.Sites.Item.TermStore.Sets; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStore /// /// Provides operations to manage the termStore property of the microsoft.graph.site entity. /// - public class TermStoreRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermStoreRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property termStore for groups @@ -130,7 +133,7 @@ public Command BuildGroupsNavCommand() { var command = new Command("groups"); command.Description = "Provides operations to manage the groups property of the microsoft.graph.termStore.store entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.GroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Groups.GroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -184,8 +187,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(Store.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Store.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,7 +217,7 @@ public Command BuildSetsNavCommand() { var command = new Command("sets"); command.Description = "Provides operations to manage the sets property of the microsoft.graph.termStore.store entity."; - var builder = new SetsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStore.Sets.SetsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -234,14 +237,14 @@ public Command BuildSetsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermStoreRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore{?%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 TermStoreRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStore{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(Store body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Store body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Store body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Store body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(Store body, Action /// The default termStore under this site. /// - public class TermStoreRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermStoreRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class TermStoreRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Count/CountRequestBuilder.cs index 8b976b1ccd..925716bde2 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/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.Groups.Item.Sites.Item.TermStores.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.cs index 3ace34624b..fa9ea0d5a9 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/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.Groups.Item.Sites.Item.TermStores.Item.Groups.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs index 7e73b82713..ba965b6c3f 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/GroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups /// /// Provides operations to manage the groups property of the microsoft.graph.termStore.store entity. /// - public class GroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the groups property of the microsoft.graph.termStore.store entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.GroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.GroupItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Groups.Item.Sites.Item.TermStores.Item.Groups.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.TermStore.Group.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Group.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 GroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups{?%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 GroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public GroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -273,11 +276,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(ApiSdk.Models.TermStore.Group body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Group /// /// Collection of all groups available in the term store. /// - public class GroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class GroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs index 66f9d6be81..ef41278748 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/GroupItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item /// /// Provides operations to manage the groups property of the microsoft.graph.termStore.store entity. /// - public class GroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property groups for groups @@ -190,8 +193,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.TermStore.Group.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Group.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildSetsNavCommand() { var command = new Command("sets"); command.Description = "Provides operations to manage the sets property of the microsoft.graph.termStore.group entity."; - var builder = new SetsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.SetsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -242,14 +245,14 @@ public Command BuildSetsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public GroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}{?%24expand,%24select}", rawUrl) @@ -281,11 +284,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); @@ -301,11 +304,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.TermStore.Group body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -317,7 +320,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Grou /// /// Collection of all groups available in the term store. /// - public class GroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -342,3 +346,4 @@ public class GroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.cs index a39a9c61d3..f95d837053 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index 12df4f2003..d8d0896b75 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.TermItemRequestBuilder(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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -299,11 +302,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs index 8e8e6febc9..e8d74c72fe 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 7a4bf1752c..2cce350b65 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -111,8 +114,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -270,14 +273,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -290,11 +293,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -310,11 +313,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -326,7 +329,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -390,3 +394,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index 99be6db3e8..bbabf90793 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 3353c99b9b..ef66c24760 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// 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 @@ -99,14 +102,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -119,11 +122,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -134,7 +137,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 @@ -159,3 +163,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index cc33b3a3c2..ca43e525a7 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -116,14 +119,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index f70e49d77d..48ceda0ab3 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -109,7 +112,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -277,8 +280,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -313,7 +316,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -330,7 +333,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -340,14 +343,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -379,11 +382,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); @@ -399,11 +402,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -415,7 +418,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -440,3 +444,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 4e19a8706d..bc11139711 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -116,14 +119,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 3f99299473..7eb38a7664 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -116,14 +119,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 30070326bd..54f60e8f1f 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -117,8 +120,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -283,14 +286,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -303,11 +306,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -323,11 +326,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -339,7 +342,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -403,3 +407,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 75ad35c6e7..becc3eda2a 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index a52c525bcc..df6cfa0272 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -242,8 +245,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -304,7 +307,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -314,14 +317,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -353,11 +356,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); @@ -373,11 +376,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -389,7 +392,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -414,3 +418,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index d483cdd8db..1852c2f6f7 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index ecb508322a..ae7869d678 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -110,14 +113,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index d14fe12290..346880b0ca 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -103,7 +106,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -260,8 +263,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -295,7 +298,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -312,7 +315,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -322,14 +325,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -361,11 +364,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); @@ -381,11 +384,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -397,7 +400,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -422,3 +426,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 30b688c3d1..7a9baaf439 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 548065902f..8cec40085a 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -110,14 +113,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index c5e095b3ff..cfd4855bf6 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -112,8 +115,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -271,14 +274,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -291,11 +294,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -311,11 +314,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -391,3 +395,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index dc2b93c876..826a0865c0 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs index dedd70411d..3b4bab43fa 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Ch /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -226,8 +229,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -260,7 +263,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -287,7 +290,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,7 +307,7 @@ public Command BuildSubChildrenNavCommand() { var command = new Command("sub-children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -324,14 +327,14 @@ public Command BuildSubChildrenNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/children/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -363,11 +366,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); @@ -383,11 +386,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -399,7 +402,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -424,3 +428,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index e9c35b5904..ae513b9834 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Pa /// /// Provides operations to manage the parentGroup property of the microsoft.graph.termStore.set entity. /// - public class ParentGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentGroupRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property parentGroup for groups @@ -206,8 +209,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.TermStore.Group.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Group.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,14 +235,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 ParentGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/parentGroup{?%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 ParentGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/parentGroup{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Group body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Grou /// /// The parent [group] that contains the set. /// - public class ParentGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class ParentGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs index 3ef127c2cc..8e099cdf34 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Re /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 6a37092129..26756c7e02 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Re /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -104,14 +107,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 9e51451fdf..7903ac5a7d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Re /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -97,7 +100,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,8 +246,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,14 +307,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -343,11 +346,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); @@ -363,11 +366,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -379,7 +382,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -404,3 +408,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index 8b10062d4d..dc04ce1000 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Re /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 5c5ef88cae..88d1270fa0 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Re /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -104,14 +107,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index 9f3afba7aa..848cefb410 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Re /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -299,11 +302,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs index b44e6c5d23..ae9cde5290 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/SetItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.ParentGroup; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. /// - public class SetItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -33,7 +36,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.set entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -195,7 +198,7 @@ public Command BuildParentGroupNavCommand() { var command = new Command("parent-group"); command.Description = "Provides operations to manage the parentGroup property of the microsoft.graph.termStore.set entity."; - var builder = new ParentGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.ParentGroup.ParentGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -256,8 +259,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.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -289,7 +292,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.set entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -316,7 +319,7 @@ public Command BuildTermsNavCommand() { var command = new Command("terms"); command.Description = "Provides operations to manage the terms property of the microsoft.graph.termStore.set entity."; - var builder = new TermsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.TermsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -336,14 +339,14 @@ public Command BuildTermsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SetItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%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 SetItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}{?%24expand,%24select}", rawUrl) @@ -375,11 +378,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); @@ -395,11 +398,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.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -411,7 +414,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set /// /// All sets under the group in a term [store]. /// - public class SetItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -436,3 +440,4 @@ public class SetItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs index c4f5b52f42..9432ec603e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index 00bc5a7c99..838792c71c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -111,8 +114,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -270,14 +273,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -290,11 +293,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -310,11 +313,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -326,7 +329,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -390,3 +394,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 8b6505fb18..6a378388cd 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index ea60f4d5af..5225186031 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// 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 @@ -99,14 +102,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -119,11 +122,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -134,7 +137,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 @@ -159,3 +163,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 38997856b2..921d6f32b8 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -116,14 +119,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 61bae1de2b..6475f5a3bc 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -109,7 +112,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -277,8 +280,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -313,7 +316,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -330,7 +333,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -340,14 +343,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -379,11 +382,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); @@ -399,11 +402,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -415,7 +418,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -440,3 +444,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 068f4185ff..de8079b61c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -116,14 +119,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 50c635e8df..bebd14362f 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -116,14 +119,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index cd50c52f43..87faa724e1 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -117,8 +120,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -283,14 +286,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -303,11 +306,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -323,11 +326,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -339,7 +342,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -403,3 +407,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index e0bfa9c725..cc46696bae 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index 9797280a77..e3fb1c87c0 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -242,8 +245,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -304,7 +307,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -314,14 +317,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -353,11 +356,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); @@ -373,11 +376,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -389,7 +392,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -414,3 +418,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index bc64f663e3..67e4b4a6ac 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 4c76e897d7..e08c6492b4 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -110,14 +113,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index 669d9da102..ceb647a7fa 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -103,7 +106,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -260,8 +263,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -295,7 +298,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -312,7 +315,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -322,14 +325,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -361,11 +364,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); @@ -381,11 +384,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -397,7 +400,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -422,3 +426,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 99063ac678..59e0d1e6aa 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 52575567e2..a141a9dcd6 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -110,14 +113,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 77d7a28245..cfe54eebaa 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -112,8 +115,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -271,14 +274,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -291,11 +294,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -311,11 +314,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -391,3 +395,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index f11768cf70..8dcaa47b59 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 7ccca717ac..6ce077320d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -32,7 +35,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -253,8 +256,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -287,7 +290,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -314,7 +317,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -324,14 +327,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -363,11 +366,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); @@ -383,11 +386,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -399,7 +402,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -424,3 +428,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs index 5d9180784d..d57148143d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Te /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Item.TermItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.Terms.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 TermsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms{?%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 TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets/{set%2Did}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -299,11 +302,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class TermsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs index d9b76f9518..58f9905ba5 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Groups/Item/Sets/SetsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. /// - public class SetsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SetItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Item.SetItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -49,7 +52,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.Groups.Item.Sites.Item.TermStores.Item.Groups.Item.Sets.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -103,8 +106,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -248,14 +251,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 SetsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets{?%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 SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/groups/{group%2Did1}/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -268,11 +271,11 @@ public SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/ /// 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); @@ -288,11 +291,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(ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -304,7 +307,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set b /// /// All sets under the group in a term [store]. /// - public class SetsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -368,3 +372,4 @@ public class SetsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.cs index b40dd3dfdc..e7f445b22e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/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.Groups.Item.Sites.Item.TermStores.Item.Sets.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 @@ -75,14 +78,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs index 181d0c8ad6..22729d9e71 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.TermItemRequestBuilder(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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -287,11 +290,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.cs index 232c562924..be33461333 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index 889b5c5c00..826dd4364b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -106,8 +109,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -258,14 +261,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -278,11 +281,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -298,11 +301,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -314,7 +317,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -378,3 +382,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index ddd3054115..9cd80dffcd 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 0d708f5ba9..316c91507e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index fcafd716b9..deca2f4f26 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -110,14 +113,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index a1b75b142c..595107671f 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -103,7 +106,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -260,8 +263,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -295,7 +298,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -312,7 +315,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -322,14 +325,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -361,11 +364,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); @@ -381,11 +384,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -397,7 +400,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -422,3 +426,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 1857e63dc1..0b5da48d9c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index c3a76f9a85..5125aa8034 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -110,14 +113,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 2feccedb7f..d9338439df 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -112,8 +115,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -271,14 +274,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -291,11 +294,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -311,11 +314,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -391,3 +395,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index 41ba23947a..d0d5a19c1c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 2b1933c378..e2b1bcd0c3 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -225,8 +228,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -286,7 +289,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -296,14 +299,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -335,11 +338,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); @@ -355,11 +358,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -371,7 +374,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -396,3 +400,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index ef8a0b07c1..9618eb0180 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 9d14c54d54..8b525f831c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -104,14 +107,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 6f16cd5594..4caa9b9cfb 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -97,7 +100,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,8 +246,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,14 +307,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -343,11 +346,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); @@ -363,11 +366,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -379,7 +382,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -404,3 +408,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index eff5b85484..3f67bef7e6 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index b4ac4c70ba..36bdf0e86b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -104,14 +107,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index c16011a6dc..e54538a250 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -299,11 +302,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 8305c44a51..a8da043388 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item. /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs index d1b36dd34b..4f81a049e9 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -209,8 +212,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -242,7 +245,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -269,7 +272,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -286,7 +289,7 @@ public Command BuildSubChildrenNavCommand() { var command = new Command("sub-children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -306,14 +309,14 @@ public Command BuildSubChildrenNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/children/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -345,11 +348,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); @@ -365,11 +368,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -381,7 +384,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -406,3 +410,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs index 9d1ca4ac70..3c55f78c7b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/ParentGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup /// /// Provides operations to manage the parentGroup property of the microsoft.graph.termStore.set entity. /// - public class ParentGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentGroupRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property parentGroup for groups @@ -190,8 +193,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.TermStore.Group.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Group.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,7 +225,7 @@ public Command BuildSetsNavCommand() { var command = new Command("sets"); command.Description = "Provides operations to manage the sets property of the microsoft.graph.termStore.group entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.SetsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.SetsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -242,14 +245,14 @@ public Command BuildSetsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ParentGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup{?%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 ParentGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup{?%24expand,%24select}", rawUrl) @@ -281,11 +284,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); @@ -301,11 +304,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.TermStore.Group body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Group body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -317,7 +320,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Grou /// /// The parent [group] that contains the set. /// - public class ParentGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ParentGroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -342,3 +346,4 @@ public class ParentGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs index fa1e4a2fa7..4ff468ab55 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs index 958b51dff0..c4304b9d03 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.TermItemRequestBuilder(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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -299,11 +302,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs index f9afb6d521..2f22871484 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs index d7ef7d7970..8bff2aa0cc 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -111,8 +114,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -270,14 +273,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -290,11 +293,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -310,11 +313,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -326,7 +329,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -390,3 +394,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs index f0ea7f6bab..320ba00e58 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index b8fa27c214..57d1ff5783 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// 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 @@ -99,14 +102,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -119,11 +122,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -134,7 +137,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 @@ -159,3 +163,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 8b05724c20..99f2e51ac5 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -116,14 +119,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index cd9dad172f..8813c00ae7 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -109,7 +112,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -277,8 +280,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -313,7 +316,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -330,7 +333,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -340,14 +343,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -379,11 +382,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); @@ -399,11 +402,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -415,7 +418,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -440,3 +444,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 01f377edb4..5ae3ed2c41 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -116,14 +119,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index b059a45ce8..37bd0d3575 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -116,14 +119,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 058b985374..3d1e8041d7 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -117,8 +120,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -283,14 +286,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -303,11 +306,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -323,11 +326,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -339,7 +342,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -403,3 +407,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs index f1d82b386d..9ed2c1db25 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs index 955fd9dff7..1f0fd3e346 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -242,8 +245,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -304,7 +307,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -314,14 +317,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -353,11 +356,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); @@ -373,11 +376,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -389,7 +392,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -414,3 +418,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index bf5b2be6b4..b4cec13079 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 97f914fede..5f90820e87 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -110,14 +113,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 382a02d9c1..40c2dcc438 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -103,7 +106,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -260,8 +263,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -295,7 +298,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -312,7 +315,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -322,14 +325,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -361,11 +364,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); @@ -381,11 +384,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -397,7 +400,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -422,3 +426,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index ff97a64d59..fa52c1fc3e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 747e5ed4fb..2da3418137 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -110,14 +113,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 74bc488f89..bdc7e2e524 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -112,8 +115,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -271,14 +274,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -291,11 +294,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -311,11 +314,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -391,3 +395,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs index 5e235b86d9..1ee0d2c306 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs index 68bcc3750d..2d69a856f5 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -226,8 +229,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -260,7 +263,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -287,7 +290,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,7 +307,7 @@ public Command BuildSubChildrenNavCommand() { var command = new Command("sub-children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -324,14 +327,14 @@ public Command BuildSubChildrenNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/children/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -363,11 +366,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); @@ -383,11 +386,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -399,7 +402,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children terms of set in term [store]. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -424,3 +428,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs index 5cb311d400..4306aff7cd 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 8cc085ec18..0f39c91d32 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -104,14 +107,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index f07bbae865..140b7f12f5 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -97,7 +100,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,8 +246,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,14 +307,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -343,11 +346,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); @@ -363,11 +366,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -379,7 +382,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -404,3 +408,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index 78fd89ae8e..c7cd0746d4 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 0e02aad02b..9db454c7e3 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -104,14 +107,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs index 721501d774..388120b996 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -299,11 +302,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs index 089b0cdcbe..6a69d2707a 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/SetItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. /// - public class SetItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -32,7 +35,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.set entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -236,8 +239,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.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -269,7 +272,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.set entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -296,7 +299,7 @@ public Command BuildTermsNavCommand() { var command = new Command("terms"); command.Description = "Provides operations to manage the terms property of the microsoft.graph.termStore.set entity."; - var builder = new TermsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.TermsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -316,14 +319,14 @@ public Command BuildTermsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SetItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public SetItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}{?%24expand,%24select}", rawUrl) @@ -355,11 +358,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); @@ -375,11 +378,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.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -391,7 +394,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set /// /// All sets under the group in a term [store]. /// - public class SetItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -416,3 +420,4 @@ public class SetItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs index c5c1962b87..4373332c59 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index 70ef233458..a5fd45b51d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -111,8 +114,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -270,14 +273,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -290,11 +293,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -310,11 +313,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -326,7 +329,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -390,3 +394,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 679ab4c79e..03b667682e 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 8d8b888913..a2d5d5c706 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// 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 @@ -99,14 +102,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -119,11 +122,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -134,7 +137,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 @@ -159,3 +163,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 67a109c03f..2a0740fa04 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -116,14 +119,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 576a99cc78..e0269326a3 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -109,7 +112,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -277,8 +280,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -313,7 +316,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -330,7 +333,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -340,14 +343,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -379,11 +382,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); @@ -399,11 +402,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -415,7 +418,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -440,3 +444,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index c16ae898cf..20335ae779 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -116,14 +119,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 75e7795ba2..612049c745 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -116,14 +119,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -136,11 +139,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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 +154,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -176,3 +180,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 7be479508b..5cc8acf5ba 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -117,8 +120,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -283,14 +286,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -303,11 +306,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -323,11 +326,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -339,7 +342,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -403,3 +407,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index a0f8b9badc..65c8be0bbc 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index 5aa194c335..221c98ca67 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -242,8 +245,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -304,7 +307,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -314,14 +317,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -353,11 +356,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); @@ -373,11 +376,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -389,7 +392,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -414,3 +418,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index 6944851e09..16926daf40 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 6673ed4870..3f68de73a1 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -110,14 +113,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index 30017498f7..56d60cc868 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -103,7 +106,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -260,8 +263,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -295,7 +298,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -312,7 +315,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -322,14 +325,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -361,11 +364,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); @@ -381,11 +384,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -397,7 +400,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -422,3 +426,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index 442781f4c4..6d6335e4e6 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 6863fdb252..a9c1ef7280 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -110,14 +113,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 9ca9b05abc..122b61a3eb 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -112,8 +115,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -271,14 +274,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -291,11 +294,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -311,11 +314,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -391,3 +395,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index cb49f73eab..75fd167509 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index c1ef08746b..5b8ea23602 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -32,7 +35,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -253,8 +256,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -287,7 +290,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -314,7 +317,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -324,14 +327,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -363,11 +366,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); @@ -383,11 +386,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -399,7 +402,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -424,3 +428,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs index 02482ba67f..401696a206 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/Item/Terms/TermsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Item.TermItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.Terms.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 TermsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%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 TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets/{set%2Did1}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -299,11 +302,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class TermsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs index ca687e687a..e4cac1a87d 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/ParentGroup/Sets/SetsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Se /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. /// - public class SetsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.group entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.SetItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Item.SetItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.Sets.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 SetsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets{?%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 SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/parentGroup/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/ /// 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); @@ -287,11 +290,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(ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set b /// /// All sets under the group in a term [store]. /// - public class SetsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class SetsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs index 1f6d701437..e30f2a0427 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Coun /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index ba3195e47b..3629775af8 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -98,14 +101,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs index 96ce1b0652..598e7752d3 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -91,7 +94,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -226,8 +229,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -276,7 +279,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -286,14 +289,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -325,11 +328,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); @@ -345,11 +348,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -361,7 +364,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -386,3 +390,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs index 057e411ded..2faf89c565 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 12ce3a1168..cb30036cdc 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -98,14 +101,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs index 15d4743ba3..7a5536a4e4 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -287,11 +290,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// Indicates which terms have been pinned or reused directly under the set. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs index 42a934d05d..64929a8eff 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/SetItemRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.store entity. /// - public class SetItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.set entity. @@ -33,7 +36,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.set entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -183,7 +186,7 @@ public Command BuildParentGroupNavCommand() { var command = new Command("parent-group"); command.Description = "Provides operations to manage the parentGroup property of the microsoft.graph.termStore.set entity."; - var builder = new ParentGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.ParentGroup.ParentGroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); @@ -245,8 +248,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.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.set entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -304,7 +307,7 @@ public Command BuildTermsNavCommand() { var command = new Command("terms"); command.Description = "Provides operations to manage the terms property of the microsoft.graph.termStore.set entity."; - var builder = new TermsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.TermsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -324,14 +327,14 @@ public Command BuildTermsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SetItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%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 SetItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}{?%24expand,%24select}", rawUrl) @@ -363,11 +366,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); @@ -383,11 +386,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.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -399,7 +402,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.TermStore.Set /// /// Collection of all sets available in the term store. This relationship can only be used to load a specific term set. /// - public class SetItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -424,3 +428,4 @@ public class SetItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs index 5e68114ea4..9374f6317b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.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 @@ -81,14 +84,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs index d654103a58..8d049e9af1 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/ChildrenRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Chi /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class ChildrenRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.TermItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -106,8 +109,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -258,14 +261,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 ChildrenRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -278,11 +281,11 @@ public ChildrenRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -298,11 +301,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -314,7 +317,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// Children of current term. /// - public class ChildrenRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -378,3 +382,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs index 76a8b5f04b..aeddef2187 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Chi /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs index 5e1cf800f9..98d64bfb42 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Chi /// /// 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 @@ -93,14 +96,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/$count{?%24filter,%24search}", rawUrl) @@ -113,11 +116,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -128,7 +131,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 @@ -153,3 +157,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 21af1ca2d4..bd836b7acc 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Chi /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -110,14 +113,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs index 80c17489e6..15faf7600b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Chi /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -103,7 +106,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -260,8 +263,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -295,7 +298,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -312,7 +315,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -322,14 +325,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -361,11 +364,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); @@ -381,11 +384,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -397,7 +400,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -422,3 +426,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs index 9d49c5473f..4e5ae94152 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Chi /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -110,14 +113,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index da2cf34dfd..f723a7e706 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Chi /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -110,14 +113,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -130,11 +133,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -145,7 +148,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +174,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs index 89935f4e79..c747bb25cb 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Chi /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -112,8 +115,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -271,14 +274,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -291,11 +294,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -311,11 +314,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -391,3 +395,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs index ab37aaadf4..b2bdbd0131 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Chi /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs index b96c1f3f1f..6bda35c701 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Children/Item/TermItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Chi /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property children for groups @@ -225,8 +228,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,7 +262,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -286,7 +289,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -296,14 +299,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/children/{term%2Did1}{?%24expand,%24select}", rawUrl) @@ -335,11 +338,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); @@ -355,11 +358,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -371,7 +374,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// Children of current term. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -396,3 +400,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs index 4522bba83e..d5523ba3fd 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Rel /// /// 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 @@ -87,14 +90,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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/$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}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/$count{?%24filter,%24search}", rawUrl) @@ -107,11 +110,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -122,7 +125,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 @@ -147,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs index 6925d0d8c5..3486b3a1e9 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/FromTerm/FromTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Rel /// /// Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity. /// - public class FromTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilder : BaseCliRequestBuilder { /// /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. @@ -104,14 +107,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 FromTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%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 FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/fromTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public FromTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The from [term] of the relation. The term from which the relationship is defined. A null value would indicate the relation is directly with the [set]. /// - public class FromTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FromTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class FromTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs index aacd5712ca..3d2498b82b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/RelationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations.Item.FromTerm; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations.Item.Set; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations.Item.ToTerm; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Rel /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property relations for groups @@ -97,7 +100,7 @@ public Command BuildFromTermNavCommand() { var command = new Command("from-term"); command.Description = "Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new FromTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations.Item.FromTerm.FromTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,8 +246,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -277,7 +280,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.relation entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -294,7 +297,7 @@ public Command BuildToTermNavCommand() { var command = new Command("to-term"); command.Description = "Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity."; - var builder = new ToTermRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations.Item.ToTerm.ToTermRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -304,14 +307,14 @@ public Command BuildToTermNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RelationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%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 RelationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}{?%24expand,%24select}", rawUrl) @@ -343,11 +346,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); @@ -363,11 +366,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -379,7 +382,8 @@ public RequestInformation ToPatchRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -404,3 +408,4 @@ public class RelationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs index f7e165d513..c85ed61f70 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Rel /// /// Provides operations to manage the set property of the microsoft.graph.termStore.relation entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the relation is relevant. @@ -104,14 +107,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/set{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the relation is relevant. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs index 506b7e6387..1835b89cdf 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/Item/ToTerm/ToTermRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Rel /// /// Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity. /// - public class ToTermRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilder : BaseCliRequestBuilder { /// /// The to [term] of the relation. The term to which the relationship is defined. @@ -104,14 +107,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 ToTermRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%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 ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations/{relation%2Did}/toTerm{?%24expand,%24select}", rawUrl) @@ -124,11 +127,11 @@ public ToTermRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -139,7 +142,8 @@ public RequestInformation ToGetRequestInformation(Action /// The to [term] of the relation. The term to which the relationship is defined. /// - public class ToTermRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ToTermRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,3 +168,4 @@ public class ToTermRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs index 52b852f853..ad3f04e07c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Relations/RelationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Rel /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. /// - public class RelationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the relations property of the microsoft.graph.termStore.term entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new RelationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations.Item.RelationItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildFromTermNavCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,8 +110,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(Relation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Relation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -259,14 +262,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 RelationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations{?%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 RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/relations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -279,11 +282,11 @@ public RelationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -299,11 +302,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(Relation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Relation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Relation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -315,7 +318,8 @@ public RequestInformation ToPostRequestInformation(Relation body, Action /// To indicate which terms are related to the current term as either pinned or reused. /// - public class RelationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RelationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -379,3 +383,4 @@ public class RelationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs index 921f4177f2..577d125583 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/Set/SetRequestBuilder.cs @@ -1,6 +1,8 @@ // +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Set /// /// Provides operations to manage the set property of the microsoft.graph.termStore.term entity. /// - public class SetRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilder : BaseCliRequestBuilder { /// /// The [set] in which the term is created. @@ -98,14 +101,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 SetRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/set{?%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 SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}/set{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public SetRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/s /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// The [set] in which the term is created. /// - public class SetRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class SetRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs index 045bfaf3a9..80884e9468 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/Item/TermItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Set; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the children property of the microsoft.graph.termStore.term entity. @@ -32,7 +35,7 @@ public Command BuildChildrenNavCommand() { var command = new Command("children"); command.Description = "Provides operations to manage the children property of the microsoft.graph.termStore.term entity."; - var builder = new ChildrenRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Children.ChildrenRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -236,8 +239,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -269,7 +272,7 @@ public Command BuildRelationsNavCommand() { var command = new Command("relations"); command.Description = "Provides operations to manage the relations property of the microsoft.graph.termStore.term entity."; - var builder = new RelationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Relations.RelationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -296,7 +299,7 @@ public Command BuildSetNavCommand() { var command = new Command("set"); command.Description = "Provides operations to manage the set property of the microsoft.graph.termStore.term entity."; - var builder = new SetRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.Set.SetRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -306,14 +309,14 @@ public Command BuildSetNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TermItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%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 TermItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms/{term%2Did}{?%24expand,%24select}", rawUrl) @@ -345,11 +348,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); @@ -365,11 +368,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -381,7 +384,8 @@ public RequestInformation ToPatchRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -406,3 +410,4 @@ public class TermItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs index d079effdbb..b84d5f0d88 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/Item/Terms/TermsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. /// - public class TermsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the terms property of the microsoft.graph.termStore.set entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TermItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Item.TermItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -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.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.Terms.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -102,8 +105,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(Term.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Term.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -247,14 +250,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 TermsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms{?%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 TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets/{set%2Did}/terms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -267,11 +270,11 @@ public TermsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -287,11 +290,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(Term body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Term body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Term body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -303,7 +306,8 @@ public RequestInformation ToPostRequestInformation(Term body, Action /// All the terms under the set. /// - public class TermsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -367,3 +371,4 @@ public class TermsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs index ed464b928d..05583fd44c 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/Sets/SetsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item.Sets /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.store entity. /// - public class SetsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sets property of the microsoft.graph.termStore.store entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SetItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.Item.SetItemRequestBuilder(PathParameters); commands.Add(builder.BuildChildrenNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -49,7 +52,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.Groups.Item.Sites.Item.TermStores.Item.Sets.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -98,8 +101,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Set.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -236,14 +239,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 SetsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets{?%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 SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}/sets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -256,11 +259,11 @@ public SetsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/ /// 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); @@ -276,11 +279,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(ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Set body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -292,7 +295,8 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.TermStore.Set b /// /// Collection of all sets available in the term store. This relationship can only be used to load a specific term set. /// - public class SetsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -356,3 +360,4 @@ public class SetsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs index 37a4af08ec..e86c925994 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/Item/StoreItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores.Item /// /// Provides operations to manage the termStores property of the microsoft.graph.site entity. /// - public class StoreItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StoreItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property termStores for groups @@ -142,7 +145,7 @@ public Command BuildGroupsNavCommand() { var command = new Command("groups"); command.Description = "Provides operations to manage the groups property of the microsoft.graph.termStore.store entity."; - var builder = new ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.GroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Groups.GroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -201,8 +204,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(Store.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Store.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -232,7 +235,7 @@ public Command BuildSetsNavCommand() { var command = new Command("sets"); command.Description = "Provides operations to manage the sets property of the microsoft.graph.termStore.store entity."; - var builder = new SetsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.Sets.SetsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -252,14 +255,14 @@ public Command BuildSetsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public StoreItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%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 StoreItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores/{store%2Did}{?%24expand,%24select}", rawUrl) @@ -291,11 +294,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); @@ -311,11 +314,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(Store body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Store body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Store body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TermStore.Store body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPatchRequestInformation(Store body, Action /// The collection of termStores under this site. /// - public class StoreItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StoreItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -352,3 +356,4 @@ public class StoreItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.cs index 688da2efd9..4747f4e88b 100644 --- a/src/generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/TermStores/TermStoresRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Item.TermStores.Count; using ApiSdk.Groups.Item.Sites.Item.TermStores.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models.TermStore; +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.Groups.Item.Sites.Item.TermStores /// /// Provides operations to manage the termStores property of the microsoft.graph.site entity. /// - public class TermStoresRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermStoresRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the termStores property of the microsoft.graph.site entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new StoreItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.TermStores.Item.StoreItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildGroupsNavCommand()); @@ -47,7 +50,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.Groups.Item.Sites.Item.TermStores.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Store.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TermStore.Store.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 TermStoresRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores{?%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 TermStoresRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public TermStoresRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -262,11 +265,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(Store body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Store body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Store body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TermStore.Store body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(Store body, Action /// The collection of termStores under this site. /// - public class TermStoresRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TermStoresRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class TermStoresRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Remove/RemovePostRequestBody.cs b/src/generated/Groups/Item/Sites/Remove/RemovePostRequestBody.cs index 6faa278595..aaf333ee0d 100644 --- a/src/generated/Groups/Item/Sites/Remove/RemovePostRequestBody.cs +++ b/src/generated/Groups/Item/Sites/Remove/RemovePostRequestBody.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.Groups.Item.Sites.Remove { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RemovePostRequestBody : IAdditionalDataHolder, IParsable + public partial class RemovePostRequestBody : 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. @@ -16,13 +18,13 @@ public class RemovePostRequestBody : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RemovePostRequestBody() { @@ -31,12 +33,12 @@ public RemovePostRequestBody() /// /// 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 RemovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Sites.Remove.RemovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RemovePostRequestBody(); + return new global::ApiSdk.Groups.Item.Sites.Remove.RemovePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Remove/RemovePostResponse.cs b/src/generated/Groups/Item/Sites/Remove/RemovePostResponse.cs index d83d4175e0..794d46ce7c 100644 --- a/src/generated/Groups/Item/Sites/Remove/RemovePostResponse.cs +++ b/src/generated/Groups/Item/Sites/Remove/RemovePostResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Sites.Remove { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RemovePostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class RemovePostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new RemovePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Sites.Remove.RemovePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RemovePostResponse(); + return new global::ApiSdk.Groups.Item.Sites.Remove.RemovePostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Site.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.cs b/src/generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.cs index 2ba5e55380..5bf014bdc9 100644 --- a/src/generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Remove/RemoveRequestBuilder.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.Groups.Item.Sites.Remove /// /// Provides operations to call the remove method. /// - public class RemoveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveRequestBuilder : BaseCliRequestBuilder { /// /// Unfollow a user's site or multiple sites. @@ -55,8 +58,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(RemovePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Sites.Remove.RemovePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 RemoveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/remove", 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 RemoveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/remove", rawUrl) @@ -107,11 +110,11 @@ public RemoveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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(RemovePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Remove.RemovePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RemovePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Sites.Remove.RemovePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(RemovePostRequestBody body, A } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Sites/SitesRequestBuilder.cs b/src/generated/Groups/Item/Sites/SitesRequestBuilder.cs index fc676a26b8..60c865b648 100644 --- a/src/generated/Groups/Item/Sites/SitesRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/SitesRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Sites.Add; using ApiSdk.Groups.Item.Sites.Count; using ApiSdk.Groups.Item.Sites.Delta; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Sites.Remove; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Sites /// /// Provides operations to manage the sites property of the microsoft.graph.group entity. /// - public class SitesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SitesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -35,7 +38,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -52,7 +55,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SiteItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Item.SiteItemRequestBuilder(PathParameters); commands.Add(builder.BuildAnalyticsNavCommand()); commands.Add(builder.BuildColumnsNavCommand()); commands.Add(builder.BuildContentTypesNavCommand()); @@ -86,7 +89,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.Groups.Item.Sites.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -103,7 +106,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -120,7 +123,7 @@ public Command BuildGetAllSitesNavCommand() { var command = new Command("get-all-sites"); command.Description = "Provides operations to call the getAllSites method."; - var builder = new GetAllSitesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.GetAllSites.GetAllSitesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -239,7 +242,7 @@ public Command BuildRemoveNavCommand() { var command = new Command("remove"); command.Description = "Provides operations to call the remove method."; - var builder = new RemoveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Sites.Remove.RemoveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -249,14 +252,14 @@ public Command BuildRemoveNavCommand() 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}/groups/{group%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}/groups/{group%2Did}/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -269,11 +272,11 @@ public SitesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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,7 +287,8 @@ public RequestInformation ToGetRequestInformation(Action /// The list of SharePoint sites in this group. Access the default site with /sites/root. /// - public class SitesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SitesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -348,3 +352,4 @@ public class SitesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.cs b/src/generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.cs index 5f87ac58af..46d4825aaf 100644 --- a/src/generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.cs +++ b/src/generated/Groups/Item/SubscribeByMail/SubscribeByMailRequestBuilder.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.Groups.Item.SubscribeByMail /// /// Provides operations to call the subscribeByMail method. /// - public class SubscribeByMailRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubscribeByMailRequestBuilder : BaseCliRequestBuilder { /// /// Calling this method will enable the current user to receive email notifications for this group, about new posts, events, and files in that group. Supported for Microsoft 365 groups only. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SubscribeByMailRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/subscribeByMail", 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 SubscribeByMailRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/subscribeByMail", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.AllChannels.Count; using ApiSdk.Groups.Item.Team.AllChannels.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.Groups.Item.Team.AllChannels /// /// Provides operations to manage the allChannels property of the microsoft.graph.team entity. /// - public class AllChannelsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllChannelsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the allChannels property of the microsoft.graph.team entity. @@ -30,7 +33,7 @@ public class AllChannelsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ChannelItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.AllChannels.Item.ChannelItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Team.AllChannels.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 AllChannelsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/allChannels{?%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 AllChannelsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/allChannels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public AllChannelsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// List of channels either hosted in or shared with the team (incoming channels). /// - public class AllChannelsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllChannelsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class AllChannelsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/AllChannels/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/AllChannels/Count/CountRequestBuilder.cs index 42299a63bb..003184792b 100644 --- a/src/generated/Groups/Item/Team/AllChannels/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/AllChannels/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.Groups.Item.Team.AllChannels.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}/groups/{group%2Did}/team/allChannels/$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}/groups/{group%2Did}/team/allChannels/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.cs b/src/generated/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.cs index c7fbb91ed6..4b467cd556 100644 --- a/src/generated/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/AllChannels/Item/ChannelItemRequestBuilder.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.Groups.Item.Team.AllChannels.Item /// /// Provides operations to manage the allChannels property of the microsoft.graph.team entity. /// - public class ChannelItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChannelItemRequestBuilder : BaseCliRequestBuilder { /// /// List of channels either hosted in or shared with the team (incoming channels). @@ -80,14 +83,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 ChannelItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/allChannels/{channel%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 ChannelItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/allChannels/{channel%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public ChannelItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// List of channels either hosted in or shared with the team (incoming channels). /// - public class ChannelItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChannelItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class ChannelItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Archive/ArchivePostRequestBody.cs b/src/generated/Groups/Item/Team/Archive/ArchivePostRequestBody.cs index 44ec3fd19d..374f1270bd 100644 --- a/src/generated/Groups/Item/Team/Archive/ArchivePostRequestBody.cs +++ b/src/generated/Groups/Item/Team/Archive/ArchivePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.Archive { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ArchivePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ArchivePostRequestBody : 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. @@ -15,7 +17,7 @@ public class ArchivePostRequestBody : IAdditionalDataHolder, IParsable /// The shouldSetSpoSiteReadOnlyForMembers property public bool? ShouldSetSpoSiteReadOnlyForMembers { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ArchivePostRequestBody() { @@ -24,12 +26,12 @@ public ArchivePostRequestBody() /// /// 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 ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.Archive.ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ArchivePostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.Archive.ArchivePostRequestBody(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.cs b/src/generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.cs index f92eff40ce..d486deea9b 100644 --- a/src/generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Archive/ArchiveRequestBuilder.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.Groups.Item.Team.Archive /// /// Provides operations to call the archive method. /// - public class ArchiveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ArchiveRequestBuilder : BaseCliRequestBuilder { /// /// Archive the specified team. When a team is archived, users can no longer make most changes to the team. For example, users can no longer: send or like messages on any channel in the team; edit the team's name or description; nor edit other settings. However, membership changes to the team are still allowed. Archiving is an async operation. A team is archived once the async operation completes successfully, which might occur subsequent to a response from this API. To archive a team, the team and group must have an owner. To restore a team from its archived state, use the API to unarchive. @@ -43,8 +46,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(ArchivePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.Archive.ArchivePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 ArchiveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/archive", 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 ArchiveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/archive", rawUrl) @@ -84,11 +87,11 @@ public ArchiveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ArchivePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Archive.ArchivePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ArchivePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Archive.ArchivePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(ArchivePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs index 70d22533f7..c7644e2e36 100644 --- a/src/generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/ChannelsRequestBuilder.cs @@ -1,9 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Count; using ApiSdk.Groups.Item.Team.Channels.GetAllMessages; +using ApiSdk.Groups.Item.Team.Channels.GetAllRetainedMessages; using ApiSdk.Groups.Item.Team.Channels.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; @@ -22,7 +25,8 @@ namespace ApiSdk.Groups.Item.Team.Channels /// /// Provides operations to manage the channels property of the microsoft.graph.team entity. /// - public class ChannelsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChannelsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the channels property of the microsoft.graph.team entity. @@ -32,7 +36,9 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ChannelItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.ChannelItemRequestBuilder(PathParameters); + commands.Add(builder.BuildAllMembersNavCommand()); + commands.Add(builder.BuildArchiveNavCommand()); commands.Add(builder.BuildCompleteMigrationNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameNavCommand()); @@ -45,6 +51,7 @@ public Tuple, List> BuildCommand() commands.Add(builder.BuildRemoveEmailNavCommand()); commands.Add(builder.BuildSharedWithTeamsNavCommand()); commands.Add(builder.BuildTabsNavCommand()); + commands.Add(builder.BuildUnarchiveNavCommand()); return new(executables, commands); } /// @@ -55,7 +62,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.Groups.Item.Team.Channels.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -94,8 +101,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(Channel.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Channel.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -123,7 +130,24 @@ public Command BuildGetAllMessagesNavCommand() { var command = new Command("get-all-messages"); command.Description = "Provides operations to call the getAllMessages method."; - var builder = new GetAllMessagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.GetAllMessages.GetAllMessagesRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the getAllRetainedMessages method. + /// + /// A + public Command BuildGetAllRetainedMessagesNavCommand() + { + var command = new Command("get-all-retained-messages"); + command.Description = "Provides operations to call the getAllRetainedMessages method."; + var builder = new global::ApiSdk.Groups.Item.Team.Channels.GetAllRetainedMessages.GetAllRetainedMessagesRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -235,14 +259,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 ChannelsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels{?%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 ChannelsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -255,11 +279,11 @@ public ChannelsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -275,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 ToPostRequestInformation(Channel body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Channel body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Channel body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Channel body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -291,7 +315,8 @@ public RequestInformation ToPostRequestInformation(Channel body, Action /// The collection of channels and messages associated with the team. /// - public class ChannelsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChannelsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -355,3 +380,4 @@ public class ChannelsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Count/CountRequestBuilder.cs index 17394d4aca..6dc57a79de 100644 --- a/src/generated/Groups/Item/Team/Channels/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/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.Groups.Item.Team.Channels.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}/groups/{group%2Did}/team/channels/$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}/groups/{group%2Did}/team/channels/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.cs b/src/generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.cs index 8fc7c80a3b..e64064e680 100644 --- a/src/generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.cs +++ b/src/generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Team.Channels.GetAllMessages { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GetAllMessagesGetResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class GetAllMessagesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Team.Channels.GetAllMessages.GetAllMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GetAllMessagesGetResponse(); + return new global::ApiSdk.Groups.Item.Team.Channels.GetAllMessages.GetAllMessagesGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs index ca11798532..6e82c7e81f 100644 --- a/src/generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/GetAllMessages/GetAllMessagesRequestBuilder.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.Groups.Item.Team.Channels.GetAllMessages /// /// Provides operations to call the getAllMessages method. /// - public class GetAllMessagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllMessagesRequestBuilder : BaseCliRequestBuilder { /// /// Retrieve messages across all channels in a team, including text, audio, and video conversations. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. @@ -130,14 +133,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 GetAllMessagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/getAllMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,model*}", 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 GetAllMessagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/getAllMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top,model*}", rawUrl) @@ -150,11 +153,11 @@ public GetAllMessagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -165,7 +168,8 @@ public RequestInformation ToGetRequestInformation(Action /// Retrieve messages across all channels in a team, including text, audio, and video conversations. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. /// - public class GetAllMessagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllMessagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -239,3 +243,4 @@ public class GetAllMessagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.cs b/src/generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.cs new file mode 100644 index 0000000000..dac22b4750 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesGetResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Channels.GetAllRetainedMessages +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetAllRetainedMessagesGetResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Groups.Item.Team.Channels.GetAllRetainedMessages.GetAllRetainedMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Channels.GetAllRetainedMessages.GetAllRetainedMessagesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.cs new file mode 100644 index 0000000000..1cf50d51c6 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.cs @@ -0,0 +1,230 @@ +// +#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; +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.Groups.Item.Team.Channels.GetAllRetainedMessages +{ + /// + /// Provides operations to call the getAllRetainedMessages method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllRetainedMessagesRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get all retained messages across all channels in a team. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// Find more info here + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get all retained messages across all channels in a team. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-getallretainedmessages?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Select = select; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Expand = expand; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public GetAllRetainedMessagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public GetAllRetainedMessagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get all retained messages across all channels in a team. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// + /// 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; + } + /// + /// Get all retained messages across all channels in a team. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetAllRetainedMessagesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Add/AddPostRequestBody.cs b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Add/AddPostRequestBody.cs new file mode 100644 index 0000000000..3b1009bd1c --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Add/AddPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Add +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AddPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The values property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Values { get; set; } +#nullable restore +#else + public List Values { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public AddPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Add.AddPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Add/AddPostResponse.cs b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Add/AddPostResponse.cs new file mode 100644 index 0000000000..1b73b84067 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Add/AddPostResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Add +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AddPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Add.AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Add.AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Add/AddRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Add/AddRequestBuilder.cs new file mode 100644 index 0000000000..f7991dc998 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Add/AddRequestBuilder.cs @@ -0,0 +1,134 @@ +// +#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; +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.Groups.Item.Team.Channels.Item.AllMembers.Add +{ + /// + /// Provides operations to call the add method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder + { + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var channelIdOption = new Option("--channel-id", description: "The unique identifier of channel") { + }; + channelIdOption.IsRequired = true; + command.AddOption(channelIdOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var channelId = invocationContext.ParseResult.GetValueForOption(channelIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + 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.Groups.Item.Team.Channels.Item.AllMembers.Add.AddPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (channelId is not null) requestInfo.PathParameters.Add("channel%2Did", channelId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/add", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public AddRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/add", rawUrl) + { + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Add.AddPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Add.AddPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/AllMembers/AllMembersRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/AllMembersRequestBuilder.cs new file mode 100644 index 0000000000..2f3575e917 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/AllMembersRequestBuilder.cs @@ -0,0 +1,382 @@ +// +#pragma warning disable CS0618 +using ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Add; +using ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Count; +using ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Item; +using ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Remove; +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.Groups.Item.Team.Channels.Item.AllMembers +{ + /// + /// Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllMembersRequestBuilder : BaseCliRequestBuilder + { + /// + /// Provides operations to call the add method. + /// + /// A + public Command BuildAddNavCommand() + { + var command = new Command("add"); + command.Description = "Provides operations to call the add method."; + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Add.AddRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + /// + /// A Tuple<List<Command>, List<Command>> + public Tuple, List> BuildCommand() + { + var executables = new List(); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Item.ConversationMemberItemRequestBuilder(PathParameters); + executables.Add(builder.BuildDeleteCommand()); + executables.Add(builder.BuildGetCommand()); + executables.Add(builder.BuildPatchCommand()); + return new(executables, new(0)); + } + /// + /// Provides operations to count the resources in the collection. + /// + /// A + public Command BuildCountNavCommand() + { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Count.CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Create new navigation property to allMembers for groups + /// + /// A + public Command BuildCreateCommand() + { + var command = new Command("create"); + command.Description = "Create new navigation property to allMembers for groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var channelIdOption = new Option("--channel-id", description: "The unique identifier of channel") { + }; + channelIdOption.IsRequired = true; + command.AddOption(channelIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var channelId = invocationContext.ParseResult.GetValueForOption(channelIdOption); + 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.ConversationMember.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (channelId is not null) requestInfo.PathParameters.Add("channel%2Did", channelId); + 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; + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + /// A + public Command BuildListCommand() + { + var command = new Command("list"); + command.Description = "A collection of membership records associated with the channel, including both direct and indirect members of shared channels."; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var channelIdOption = new Option("--channel-id", description: "The unique identifier of channel") { + }; + channelIdOption.IsRequired = true; + command.AddOption(channelIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var channelId = invocationContext.ParseResult.GetValueForOption(channelIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (channelId is not null) requestInfo.PathParameters.Add("channel%2Did", channelId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Provides operations to call the remove method. + /// + /// A + public Command BuildRemoveNavCommand() + { + var command = new Command("remove"); + command.Description = "Provides operations to call the remove method."; + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Remove.RemoveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public AllMembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public AllMembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + /// 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; + } + /// + /// Create new navigation property to allMembers for groups + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllMembersRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Count/CountRequestBuilder.cs new file mode 100644 index 0000000000..039b89d5c8 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Count/CountRequestBuilder.cs @@ -0,0 +1,136 @@ +// +#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; +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.Groups.Item.Team.Channels.Item.AllMembers.Count +{ + /// + /// Provides operations to count the resources in the collection. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get the number of the resource + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get the number of the resource"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var channelIdOption = new Option("--channel-id", description: "The unique identifier of channel") { + }; + channelIdOption.IsRequired = true; + command.AddOption(channelIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var channelId = invocationContext.ParseResult.GetValueForOption(channelIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (channelId is not null) requestInfo.PathParameters.Add("channel%2Did", channelId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + var formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// 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", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Get the number of the resource + /// + [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 +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Item/ConversationMemberItemRequestBuilder.cs new file mode 100644 index 0000000000..4963f398f9 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Item/ConversationMemberItemRequestBuilder.cs @@ -0,0 +1,303 @@ +// +#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.Groups.Item.Team.Channels.Item.AllMembers.Item +{ + /// + /// Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property allMembers for groups + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property allMembers for groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var channelIdOption = new Option("--channel-id", description: "The unique identifier of channel") { + }; + channelIdOption.IsRequired = true; + command.AddOption(channelIdOption); + var conversationMemberIdOption = new Option("--conversation-member-id", description: "The unique identifier of conversationMember") { + }; + conversationMemberIdOption.IsRequired = true; + command.AddOption(conversationMemberIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var channelId = invocationContext.ParseResult.GetValueForOption(channelIdOption); + var conversationMemberId = invocationContext.ParseResult.GetValueForOption(conversationMemberIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (channelId is not null) requestInfo.PathParameters.Add("channel%2Did", channelId); + if (conversationMemberId is not null) requestInfo.PathParameters.Add("conversationMember%2Did", conversationMemberId); + 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; + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "A collection of membership records associated with the channel, including both direct and indirect members of shared channels."; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var channelIdOption = new Option("--channel-id", description: "The unique identifier of channel") { + }; + channelIdOption.IsRequired = true; + command.AddOption(channelIdOption); + var conversationMemberIdOption = new Option("--conversation-member-id", description: "The unique identifier of conversationMember") { + }; + conversationMemberIdOption.IsRequired = true; + command.AddOption(conversationMemberIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var channelId = invocationContext.ParseResult.GetValueForOption(channelIdOption); + var conversationMemberId = invocationContext.ParseResult.GetValueForOption(conversationMemberIdOption); + 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; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (channelId is not null) requestInfo.PathParameters.Add("channel%2Did", channelId); + if (conversationMemberId is not null) requestInfo.PathParameters.Add("conversationMember%2Did", conversationMemberId); + 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 the navigation property allMembers in groups + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property allMembers in groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var channelIdOption = new Option("--channel-id", description: "The unique identifier of channel") { + }; + channelIdOption.IsRequired = true; + command.AddOption(channelIdOption); + var conversationMemberIdOption = new Option("--conversation-member-id", description: "The unique identifier of conversationMember") { + }; + conversationMemberIdOption.IsRequired = true; + command.AddOption(conversationMemberIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var channelId = invocationContext.ParseResult.GetValueForOption(channelIdOption); + var conversationMemberId = invocationContext.ParseResult.GetValueForOption(conversationMemberIdOption); + 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.ConversationMember.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (channelId is not null) requestInfo.PathParameters.Add("channel%2Did", channelId); + if (conversationMemberId is not null) requestInfo.PathParameters.Add("conversationMember%2Did", conversationMemberId); + 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 ConversationMemberItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/{conversationMember%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/{conversationMember%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property allMembers for groups + /// + /// 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; + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + /// 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 the navigation property allMembers in groups + /// + /// 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.ConversationMember body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationMember 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; + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilderGetQueryParameters + { + /// 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/Groups/Item/Team/Channels/Item/AllMembers/Remove/RemovePostRequestBody.cs b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Remove/RemovePostRequestBody.cs new file mode 100644 index 0000000000..3c108f5dbf --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Remove/RemovePostRequestBody.cs @@ -0,0 +1,66 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The values property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Values { get; set; } +#nullable restore +#else + public List Values { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RemovePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Remove.RemovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Remove.RemovePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Remove/RemovePostResponse.cs b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Remove/RemovePostResponse.cs new file mode 100644 index 0000000000..857d54d069 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Remove/RemovePostResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Remove.RemovePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Remove.RemovePostResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Remove/RemoveRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Remove/RemoveRequestBuilder.cs new file mode 100644 index 0000000000..0c571544e3 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/AllMembers/Remove/RemoveRequestBuilder.cs @@ -0,0 +1,134 @@ +// +#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; +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.Groups.Item.Team.Channels.Item.AllMembers.Remove +{ + /// + /// Provides operations to call the remove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var channelIdOption = new Option("--channel-id", description: "The unique identifier of channel") { + }; + channelIdOption.IsRequired = true; + command.AddOption(channelIdOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var channelId = invocationContext.ParseResult.GetValueForOption(channelIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + 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.Groups.Item.Team.Channels.Item.AllMembers.Remove.RemovePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (channelId is not null) requestInfo.PathParameters.Add("channel%2Did", channelId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public RemoveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/remove", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RemoveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/allMembers/remove", rawUrl) + { + } + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Remove.RemovePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.Remove.RemovePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Archive/ArchivePostRequestBody.cs b/src/generated/Groups/Item/Team/Channels/Item/Archive/ArchivePostRequestBody.cs new file mode 100644 index 0000000000..256c0c6330 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/Archive/ArchivePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Groups.Item.Team.Channels.Item.Archive +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ArchivePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shouldSetSpoSiteReadOnlyForMembers property + public bool? ShouldSetSpoSiteReadOnlyForMembers { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public ArchivePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.Channels.Item.Archive.ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.Archive.ArchivePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shouldSetSpoSiteReadOnlyForMembers", n => { ShouldSetSpoSiteReadOnlyForMembers = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", ShouldSetSpoSiteReadOnlyForMembers); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Archive/ArchiveRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Archive/ArchiveRequestBuilder.cs new file mode 100644 index 0000000000..3a0ca3197c --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/Archive/ArchiveRequestBuilder.cs @@ -0,0 +1,111 @@ +// +#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; +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.Groups.Item.Team.Channels.Item.Archive +{ + /// + /// Provides operations to call the archive method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ArchiveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-archive?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var channelIdOption = new Option("--channel-id", description: "The unique identifier of channel") { + }; + channelIdOption.IsRequired = true; + command.AddOption(channelIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var channelId = invocationContext.ParseResult.GetValueForOption(channelIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Groups.Item.Team.Channels.Item.Archive.ArchivePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (channelId is not null) requestInfo.PathParameters.Add("channel%2Did", channelId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ArchiveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/archive", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ArchiveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/archive", rawUrl) + { + } + /// + /// Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Archive.ArchivePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Archive.ArchivePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs index c0891cd3b7..938c02ca1f 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.cs @@ -1,4 +1,7 @@ // +#pragma warning disable CS0618 +using ApiSdk.Groups.Item.Team.Channels.Item.AllMembers; +using ApiSdk.Groups.Item.Team.Channels.Item.Archive; using ApiSdk.Groups.Item.Team.Channels.Item.CompleteMigration; using ApiSdk.Groups.Item.Team.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName; using ApiSdk.Groups.Item.Team.Channels.Item.FilesFolder; @@ -8,8 +11,10 @@ using ApiSdk.Groups.Item.Team.Channels.Item.RemoveEmail; using ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams; using ApiSdk.Groups.Item.Team.Channels.Item.Tabs; +using ApiSdk.Groups.Item.Team.Channels.Item.Unarchive; 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; @@ -28,8 +33,55 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item /// /// Provides operations to manage the channels property of the microsoft.graph.team entity. /// - public class ChannelItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChannelItemRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + /// + /// A + public Command BuildAllMembersNavCommand() + { + var command = new Command("all-members"); + command.Description = "Provides operations to manage the allMembers property of the microsoft.graph.channel entity."; + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.AllMembers.AllMembersRequestBuilder(PathParameters); + var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildAddNavCommand()); + nonExecCommands.Add(builder.BuildCountNavCommand()); + execCommands.Add(builder.BuildCreateCommand()); + execCommands.Add(builder.BuildListCommand()); + nonExecCommands.Add(builder.BuildRemoveNavCommand()); + var cmds = builder.BuildCommand(); + execCommands.AddRange(cmds.Item1); + nonExecCommands.AddRange(cmds.Item2); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal)) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the archive method. + /// + /// A + public Command BuildArchiveNavCommand() + { + var command = new Command("archive"); + command.Description = "Provides operations to call the archive method."; + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Archive.ArchiveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } /// /// Provides operations to call the completeMigration method. /// @@ -38,7 +90,7 @@ public Command BuildCompleteMigrationNavCommand() { var command = new Command("complete-migration"); command.Description = "Provides operations to call the completeMigration method."; - var builder = new CompleteMigrationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.CompleteMigration.CompleteMigrationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -96,7 +148,7 @@ public Command BuildDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalN { var command = new Command("does-user-have-accessuser-id-user-id-tenant-id-tenant-id-user-principal-name-user-principal-name"); command.Description = "Provides operations to call the doesUserHaveAccess method."; - var builder = new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -113,7 +165,7 @@ public Command BuildFilesFolderNavCommand() { var command = new Command("files-folder"); command.Description = "Provides operations to manage the filesFolder property of the microsoft.graph.channel entity."; - var builder = new FilesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.FilesFolder.FilesFolderRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildContentNavCommand()); @@ -194,13 +246,14 @@ public Command BuildMembersNavCommand() { var command = new Command("members"); command.Description = "Provides operations to manage the members property of the microsoft.graph.channel entity."; - var builder = new MembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Members.MembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); nonExecCommands.Add(builder.BuildCountNavCommand()); execCommands.Add(builder.BuildCreateCommand()); execCommands.Add(builder.BuildListCommand()); + nonExecCommands.Add(builder.BuildRemoveNavCommand()); var cmds = builder.BuildCommand(); execCommands.AddRange(cmds.Item1); nonExecCommands.AddRange(cmds.Item2); @@ -222,7 +275,7 @@ public Command BuildMessagesNavCommand() { var command = new Command("messages"); command.Description = "Provides operations to manage the messages property of the microsoft.graph.channel entity."; - var builder = new MessagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.MessagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -277,8 +330,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(Channel.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Channel.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -307,7 +360,7 @@ public Command BuildProvisionEmailNavCommand() { var command = new Command("provision-email"); command.Description = "Provides operations to call the provisionEmail method."; - var builder = new ProvisionEmailRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.ProvisionEmail.ProvisionEmailRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -324,7 +377,7 @@ public Command BuildRemoveEmailNavCommand() { var command = new Command("remove-email"); command.Description = "Provides operations to call the removeEmail method."; - var builder = new RemoveEmailRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.RemoveEmail.RemoveEmailRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -341,7 +394,7 @@ public Command BuildSharedWithTeamsNavCommand() { var command = new Command("shared-with-teams"); command.Description = "Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity."; - var builder = new SharedWithTeamsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.SharedWithTeamsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -368,7 +421,7 @@ public Command BuildTabsNavCommand() { var command = new Command("tabs"); command.Description = "Provides operations to manage the tabs property of the microsoft.graph.channel entity."; - var builder = new TabsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Tabs.TabsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -388,14 +441,31 @@ public Command BuildTabsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the unarchive method. + /// + /// A + public Command BuildUnarchiveNavCommand() + { + var command = new Command("unarchive"); + command.Description = "Provides operations to call the unarchive method."; + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Unarchive.UnarchiveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ChannelItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%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 ChannelItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}{?%24expand,%24select}", rawUrl) @@ -427,11 +497,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); @@ -447,11 +517,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(Channel body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Channel body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Channel body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Channel body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -463,7 +533,8 @@ public RequestInformation ToPatchRequestInformation(Channel body, Action /// The collection of channels and messages associated with the team. /// - public class ChannelItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChannelItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -488,3 +559,4 @@ public class ChannelItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs index 552ed4efb1..21e8a7938e 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/CompleteMigration/CompleteMigrationRequestBuilder.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.Groups.Item.Team.Channels.Item.CompleteMigration /// /// Provides operations to call the completeMigration method. /// - public class CompleteMigrationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CompleteMigrationRequestBuilder : BaseCliRequestBuilder { /// /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CompleteMigrationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/completeMigration", 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 CompleteMigrationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/completeMigration", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : IAdditionalDataHolder, IParsable + public partial class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : 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. @@ -15,7 +17,7 @@ public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUser /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse() { @@ -24,12 +26,12 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// /// 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 DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index 166fe9796f..aadeb12784 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.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.Groups.Item.Team.Channels.Item.DoesUserHaveAccessuserIdUserIdTe /// /// Provides operations to call the doesUserHaveAccess method. /// - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder : BaseCliRequestBuilder { /// /// Determine whether a user has access to a shared channel. @@ -84,14 +87,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 DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/doesUserHaveAccess(userId='@userId',tenantId='@tenantId',userPrincipalName='@userPrincipalName'){?tenantId*,userId*,userPrincipalName*}", 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 DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/doesUserHaveAccess(userId='@userId',tenantId='@tenantId',userPrincipalName='@userPrincipalName'){?tenantId*,userId*,userPrincipalName*}", rawUrl) @@ -104,11 +107,11 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// 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); @@ -119,7 +122,8 @@ public RequestInformation ToGetRequestInformation(Action /// Determine whether a user has access to a shared channel. /// - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters { /// Usage: tenantId='@tenantId' #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -154,3 +158,4 @@ public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUser } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs index f7ef59364f..17bb61ec98 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/FilesFolder/Content/ContentRequestBuilder.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.Groups.Item.Team.Channels.Item.FilesFolder.Content /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -169,14 +172,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/filesFolder/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/filesFolder/content{?%24format*}", rawUrl) @@ -208,11 +211,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); @@ -245,7 +248,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -260,3 +264,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs index 77fa3f7321..887cc27d40 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/FilesFolder/FilesFolderRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.FilesFolder.Content; 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.Groups.Item.Team.Channels.Item.FilesFolder /// /// Provides operations to manage the filesFolder property of the microsoft.graph.channel entity. /// - public class FilesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.FilesFolder.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -100,14 +103,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 FilesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/filesFolder{?%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 FilesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/filesFolder{?%24expand,%24select}", rawUrl) @@ -120,11 +123,11 @@ public FilesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -135,7 +138,8 @@ public RequestInformation ToGetRequestInformation(Action /// Metadata for the location where the channel's files are stored. /// - public class FilesFolderRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesFolderRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,3 +164,4 @@ public class FilesFolderRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostRequestBody.cs b/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostRequestBody.cs index 77a90b9864..af71dbdd10 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostRequestBody.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostRequestBody.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.Groups.Item.Team.Channels.Item.Members.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Values { get; set; } + public List? Values { get; set; } #nullable restore #else - public List Values { get; set; } + public List Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -31,12 +33,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.cs b/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.cs index 42b9be6aed..5620350844 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Team.Channels.Item.Members.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class AddPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Add.AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostResponse(); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Add.AddPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.cs index 9e46e5049e..e99ab0cba3 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/Add/AddRequestBuilder.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.Groups.Item.Team.Channels.Item.Members.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. @@ -60,8 +63,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -92,14 +95,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/add", rawUrl) @@ -113,11 +116,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/t /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,3 +131,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Members/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Members/Count/CountRequestBuilder.cs index 1a54854ac8..60f23df51d 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Members/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/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.Groups.Item.Team.Channels.Item.Members.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/$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}/groups/{group%2Did}/team/channels/{channel%2Did}/members/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 63c36135d8..3ff2497379 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.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.Groups.Item.Team.Channels.Item.Members.Item /// /// Provides operations to manage the members property of the microsoft.graph.channel entity. /// - public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property members for groups @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ConversationMember.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ConversationMemberItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/{conversationMember%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 ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ConversationMember body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationMember body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ConversationMember body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationMember body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act /// /// A collection of membership records associated with the channel. /// - public class ConversationMemberItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class ConversationMemberItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs index 40c99e6859..82f27a2111 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs @@ -1,9 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.Members.Add; using ApiSdk.Groups.Item.Team.Channels.Item.Members.Count; using ApiSdk.Groups.Item.Team.Channels.Item.Members.Item; +using ApiSdk.Groups.Item.Team.Channels.Item.Members.Remove; 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 +25,8 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.Members /// /// Provides operations to manage the members property of the microsoft.graph.channel entity. /// - public class MembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -32,7 +36,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -48,7 +52,7 @@ public Command BuildAddNavCommand() public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ConversationMemberItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Item.ConversationMemberItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -62,7 +66,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.Groups.Item.Team.Channels.Item.Members.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -106,8 +110,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(ConversationMember.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -237,14 +241,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the remove method. + /// + /// A + public Command BuildRemoveNavCommand() + { + var command = new Command("remove"); + command.Description = "Provides operations to call the remove method."; + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Remove.RemoveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members{?%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 MembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -257,11 +278,11 @@ public MembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -277,11 +298,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(ConversationMember body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ConversationMember body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -293,7 +314,8 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti /// /// A collection of membership records associated with the channel. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -357,3 +379,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Members/Remove/RemovePostRequestBody.cs b/src/generated/Groups/Item/Team/Channels/Item/Members/Remove/RemovePostRequestBody.cs new file mode 100644 index 0000000000..ab0d68e89b --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/Remove/RemovePostRequestBody.cs @@ -0,0 +1,66 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Channels.Item.Members.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The values property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Values { get; set; } +#nullable restore +#else + public List Values { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RemovePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Remove.RemovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Remove.RemovePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Members/Remove/RemovePostResponse.cs b/src/generated/Groups/Item/Team/Channels/Item/Members/Remove/RemovePostResponse.cs new file mode 100644 index 0000000000..2e81eb75e9 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/Remove/RemovePostResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Channels.Item.Members.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Remove.RemovePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Remove.RemovePostResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Members/Remove/RemoveRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Members/Remove/RemoveRequestBuilder.cs new file mode 100644 index 0000000000..e1a5b673e0 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/Remove/RemoveRequestBuilder.cs @@ -0,0 +1,134 @@ +// +#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; +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.Groups.Item.Team.Channels.Item.Members.Remove +{ + /// + /// Provides operations to call the remove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var channelIdOption = new Option("--channel-id", description: "The unique identifier of channel") { + }; + channelIdOption.IsRequired = true; + command.AddOption(channelIdOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var channelId = invocationContext.ParseResult.GetValueForOption(channelIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + 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.Groups.Item.Team.Channels.Item.Members.Remove.RemovePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (channelId is not null) requestInfo.PathParameters.Add("channel%2Did", channelId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public RemoveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/remove", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RemoveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/remove", rawUrl) + { + } + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Remove.RemovePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Members.Remove.RemovePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Count/CountRequestBuilder.cs index 4a9440c9fb..19d75890aa 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/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.Groups.Item.Team.Channels.Item.Messages.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/$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}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.cs index e4748b061f..4d7492f714 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Team.Channels.Item.Messages.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs index 6e8a303596..751d6daa5d 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; + command.Description = "Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -130,31 +133,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -163,9 +166,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs index cedba2b6f3..81ccc4d2eb 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents; using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies; using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.SetReaction; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.UnsetReaction; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item /// /// Provides operations to manage the messages property of the microsoft.graph.channel entity. /// - public class ChatMessageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property messages for groups @@ -146,7 +149,7 @@ public Command BuildHostedContentsNavCommand() { var command = new Command("hosted-contents"); command.Description = "Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity."; - var builder = new HostedContentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents.HostedContentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -205,8 +208,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(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -236,7 +239,7 @@ public Command BuildRepliesNavCommand() { var command = new Command("replies"); command.Description = "Provides operations to manage the replies property of the microsoft.graph.chatMessage entity."; - var builder = new RepliesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.RepliesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -264,7 +267,7 @@ public Command BuildSetReactionNavCommand() { var command = new Command("set-reaction"); command.Description = "Provides operations to call the setReaction method."; - var builder = new SetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.SetReaction.SetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -281,7 +284,7 @@ public Command BuildSoftDeleteNavCommand() { var command = new Command("soft-delete"); command.Description = "Provides operations to call the softDelete method."; - var builder = new SoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.SoftDelete.SoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -298,7 +301,7 @@ public Command BuildUndoSoftDeleteNavCommand() { var command = new Command("undo-soft-delete"); command.Description = "Provides operations to call the undoSoftDelete method."; - var builder = new UndoSoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.UndoSoftDelete.UndoSoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -315,7 +318,7 @@ public Command BuildUnsetReactionNavCommand() { var command = new Command("unset-reaction"); command.Description = "Provides operations to call the unsetReaction method."; - var builder = new UnsetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.UnsetReaction.UnsetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -325,14 +328,14 @@ public Command BuildUnsetReactionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ChatMessageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%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 ChatMessageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}{?%24expand,%24select}", rawUrl) @@ -364,11 +367,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); @@ -384,11 +387,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(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -400,7 +403,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action /// A collection of all the messages in the channel. A navigation property. Nullable. /// - public class ChatMessageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -425,3 +429,4 @@ public class ChatMessageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 126f809ace..235f2822f1 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/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.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents.Cou /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/$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}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index f93ef2b43e..13c206cc1f 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents.Count; using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents.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.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class HostedContentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ChatMessageHostedContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents.Item.ChatMessageHostedContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 HostedContentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents{?%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 HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -273,11 +276,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body /// /// Content in a message hosted by Microsoft Teams - for example, images or code snippets. /// - public class HostedContentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class HostedContentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index cb1664d52c..63e80466ac 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents.Item.Value; 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.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents.Ite /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents.Item.Value.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -209,8 +212,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 ChatMessageHostedContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%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 ChatMessageHostedContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod /// /// Content in a message hosted by Microsoft Teams - for example, images or code snippets. /// - public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 9d26b4161e..a0de676eef 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.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.Groups.Item.Team.Channels.Item.Messages.Item.HostedContents.Ite /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The unique identifier for an entity. Read-only. @@ -200,14 +203,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", rawUrl) @@ -275,3 +278,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.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 @@ -75,14 +78,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}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/$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}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs index e97026e00f..0027cae657 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index 7e7778459b..ed68124aca 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; + command.Description = "Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -136,31 +139,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -169,9 +172,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -235,3 +239,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 55a5219b65..d0bab03a10 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.HostedContents; using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SetReaction; using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SoftDelete; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.UnsetReaction; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item /// /// Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. /// - public class ChatMessageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property replies for groups @@ -157,7 +160,7 @@ public Command BuildHostedContentsNavCommand() { var command = new Command("hosted-contents"); command.Description = "Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity."; - var builder = new HostedContentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.HostedContents.HostedContentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -221,8 +224,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(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -253,7 +256,7 @@ public Command BuildSetReactionNavCommand() { var command = new Command("set-reaction"); command.Description = "Provides operations to call the setReaction method."; - var builder = new SetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SetReaction.SetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -270,7 +273,7 @@ public Command BuildSoftDeleteNavCommand() { var command = new Command("soft-delete"); command.Description = "Provides operations to call the softDelete method."; - var builder = new SoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SoftDelete.SoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -287,7 +290,7 @@ public Command BuildUndoSoftDeleteNavCommand() { var command = new Command("undo-soft-delete"); command.Description = "Provides operations to call the undoSoftDelete method."; - var builder = new UndoSoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.UndoSoftDelete.UndoSoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -304,7 +307,7 @@ public Command BuildUnsetReactionNavCommand() { var command = new Command("unset-reaction"); command.Description = "Provides operations to call the unsetReaction method."; - var builder = new UnsetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -314,14 +317,14 @@ public Command BuildUnsetReactionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ChatMessageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public ChatMessageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24expand,%24select}", rawUrl) @@ -353,11 +356,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); @@ -373,11 +376,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(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -389,7 +392,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action /// Replies for a specified message. Supports $expand for channel messages. /// - public class ChatMessageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -414,3 +418,4 @@ public class ChatMessageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index 48963c524e..03f93ba11d 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/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.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.Hoste /// /// 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 @@ -81,14 +84,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}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$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}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$count{?%24filter,%24search}", rawUrl) @@ -101,11 +104,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -116,7 +119,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 @@ -141,3 +145,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 7f9986d745..bc6ba7d94e 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.HostedContents.Count; using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.HostedContents.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.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.Hoste /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class HostedContentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ChatMessageHostedContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.HostedContents.Item.ChatMessageHostedContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.HostedContents.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -100,8 +103,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -245,14 +248,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 HostedContentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%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 HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -265,11 +268,11 @@ public HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -285,11 +288,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -301,7 +304,8 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body /// /// Content in a message hosted by Microsoft Teams - for example, images or code snippets. /// - public class HostedContentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -365,3 +369,4 @@ public class HostedContentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 4b09a5120c..155c017b4a 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.HostedContents.Item.Value; 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.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.Hoste /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.HostedContents.Item.Value.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -226,8 +229,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -252,14 +255,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 ChatMessageHostedContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%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 ChatMessageHostedContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}", rawUrl) @@ -291,11 +294,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); @@ -311,11 +314,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -327,7 +330,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod /// /// Content in a message hosted by Microsoft Teams - for example, images or code snippets. /// - public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -352,3 +356,4 @@ public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index b6a028be75..8d7fa96860 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.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.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.Hoste /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The unique identifier for an entity. Read-only. @@ -218,14 +221,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", rawUrl) @@ -293,3 +296,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public SetReactionPostRequestBody() /// /// 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 SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetReactionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 9becfe8442..d10e35caed 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.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.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SetRe /// /// Provides operations to call the setReaction method. /// - public class SetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action setReaction @@ -57,8 +60,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(SetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 SetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/setReaction", 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 SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/setReaction", rawUrl) @@ -101,11 +104,11 @@ public SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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(SetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 16381d5dbe..34492cfcfc 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.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.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.SoftD /// /// Provides operations to call the softDelete method. /// - public class SoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Delete a single chatMessage or a chat message reply in a channel or a chat. @@ -68,14 +71,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 SoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", 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 SoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.UndoS /// /// Provides operations to call the undoSoftDelete method. /// - public class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. @@ -68,14 +71,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 UndoSoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", 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 UndoSoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) @@ -102,3 +105,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.UnsetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnsetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnsetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public UnsetReactionPostRequestBody() /// /// 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 UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnsetReactionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 755c98f02e..51f1a390a4 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.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.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.Unset /// /// Provides operations to call the unsetReaction method. /// - public class UnsetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnsetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action unsetReaction @@ -57,8 +60,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(UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -80,14 +83,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 UnsetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/unsetReaction", 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 UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/unsetReaction", rawUrl) @@ -101,11 +104,11 @@ public UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -116,3 +119,4 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 4ad692f95d..8c026015ad 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Count; using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Delta; using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies /// /// Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. /// - public class RepliesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RepliesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.ChatMessageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Item.ChatMessageItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildHostedContentsNavCommand()); @@ -51,7 +54,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.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -100,8 +103,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(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -131,7 +134,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.Replies.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -255,14 +258,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 RepliesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%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 RepliesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -275,11 +278,11 @@ public RepliesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -295,11 +298,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(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -311,7 +314,8 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action /// Replies for a specified message. Supports $expand for channel messages. /// - public class RepliesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RepliesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -375,3 +379,4 @@ public class RepliesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index bb7f101159..f90b8cce7a 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.SetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public SetReactionPostRequestBody() /// /// 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 SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.SetReaction.SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetReactionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.SetReaction.SetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 821b083e4f..39b666ff50 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SetReaction/SetReactionRequestBuilder.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.Groups.Item.Team.Channels.Item.Messages.Item.SetReaction /// /// Provides operations to call the setReaction method. /// - public class SetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action setReaction @@ -52,8 +55,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(SetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.SetReaction.SetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 SetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/setReaction", 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 SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/setReaction", rawUrl) @@ -95,11 +98,11 @@ public SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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(SetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.SetReaction.SetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.SetReaction.SetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index b158e444e3..aa046f75ef 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.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.Groups.Item.Team.Channels.Item.Messages.Item.SoftDelete /// /// Provides operations to call the softDelete method. /// - public class SoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Delete a single chatMessage or a chat message reply in a channel or a chat. @@ -62,14 +65,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 SoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/softDelete", 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 SoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/softDelete", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.UndoSoftDelete /// /// Provides operations to call the undoSoftDelete method. /// - public class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. @@ -62,14 +65,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 UndoSoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", 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 UndoSoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.UnsetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnsetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnsetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public UnsetReactionPostRequestBody() /// /// 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 UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnsetReactionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 97fc6fa418..8007564748 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.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.Groups.Item.Team.Channels.Item.Messages.Item.UnsetReaction /// /// Provides operations to call the unsetReaction method. /// - public class UnsetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnsetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action unsetReaction @@ -52,8 +55,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(UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 UnsetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/unsetReaction", 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 UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/unsetReaction", rawUrl) @@ -95,11 +98,11 @@ public UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs index e79d21dd2a..425f540645 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Count; using ApiSdk.Groups.Item.Team.Channels.Item.Messages.Delta; using ApiSdk.Groups.Item.Team.Channels.Item.Messages.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.Messages /// /// Provides operations to manage the messages property of the microsoft.graph.channel entity. /// - public class MessagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MessagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the messages property of the microsoft.graph.channel entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ChatMessageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Item.ChatMessageItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildHostedContentsNavCommand()); @@ -52,7 +55,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to count the resources in the collection."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -96,8 +99,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(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -126,7 +129,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Messages.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -244,14 +247,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 MessagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages{?%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 MessagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -264,11 +267,11 @@ public MessagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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 +287,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(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -300,7 +303,8 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action /// A collection of all the messages in the channel. A navigation property. Nullable. /// - public class MessagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MessagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -364,3 +368,4 @@ public class MessagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs index cff724207b..4208001fab 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/ProvisionEmail/ProvisionEmailRequestBuilder.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.Groups.Item.Team.Channels.Item.ProvisionEmail /// /// Provides operations to call the provisionEmail method. /// - public class ProvisionEmailRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProvisionEmailRequestBuilder : BaseCliRequestBuilder { /// /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. @@ -67,14 +70,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 ProvisionEmailRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/provisionEmail", 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 ProvisionEmailRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/provisionEmail", rawUrl) @@ -101,3 +104,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.RemoveEmail /// /// Provides operations to call the removeEmail method. /// - public class RemoveEmailRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveEmailRequestBuilder : BaseCliRequestBuilder { /// /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RemoveEmailRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/removeEmail", 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 RemoveEmailRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/removeEmail", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/$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}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 226fcb03c0..5fbc837c9a 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.AllowedMembers.Count; using ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.AllowedMembers.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.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.AllowedMemb /// /// Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. /// - public class AllowedMembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedMembersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. @@ -30,7 +33,7 @@ public class AllowedMembersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ConversationMemberItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.AllowedMembers.Item.ConversationMemberItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.AllowedMembers.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -166,14 +169,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 AllowedMembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%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 AllowedMembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -186,11 +189,11 @@ public AllowedMembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -201,7 +204,8 @@ public RequestInformation ToGetRequestInformation(Action /// A collection of team members who have access to the shared channel. /// - public class AllowedMembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedMembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -265,3 +269,4 @@ public class AllowedMembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs index f554b36b25..42878b2a8b 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/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.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.AllowedMemb /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/$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}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs index e9c72516bb..18e512ab78 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.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.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.AllowedMemb /// /// Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. /// - public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// /// A collection of team members who have access to the shared channel. @@ -92,14 +95,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 ConversationMemberItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/{conversationMember%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 ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/{conversationMember%2Did}{?%24expand,%24select}", rawUrl) @@ -112,11 +115,11 @@ public ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/gr /// 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); @@ -127,7 +130,8 @@ public RequestInformation ToGetRequestInformation(Action /// A collection of team members who have access to the shared channel. /// - public class ConversationMemberItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,3 +156,4 @@ public class ConversationMemberItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 6a2d3a7af1..a36ea44b89 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.AllowedMembers; using ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.Team; 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.Groups.Item.Team.Channels.Item.SharedWithTeams.Item /// /// Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity. /// - public class SharedWithChannelTeamInfoItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharedWithChannelTeamInfoItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. @@ -31,7 +34,7 @@ public Command BuildAllowedMembersNavCommand() { var command = new Command("allowed-members"); command.Description = "Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity."; - var builder = new AllowedMembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.AllowedMembers.AllowedMembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -200,8 +203,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(SharedWithChannelTeamInfo.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SharedWithChannelTeamInfo.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -231,7 +234,7 @@ public Command BuildTeamNavCommand() { var command = new Command("team"); command.Description = "Provides operations to manage the team property of the microsoft.graph.teamInfo entity."; - var builder = new ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.Team.TeamRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.Team.TeamRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -241,14 +244,14 @@ public Command BuildTeamNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SharedWithChannelTeamInfoItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%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 SharedWithChannelTeamInfoItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24expand,%24select}", rawUrl) @@ -280,11 +283,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); @@ -300,11 +303,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(SharedWithChannelTeamInfo body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SharedWithChannelTeamInfo body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SharedWithChannelTeamInfo body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -316,7 +319,8 @@ public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo bo /// /// A collection of teams with which a channel is shared. /// - public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -341,3 +345,4 @@ public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs index 6bfa5b76e7..a928d440bf 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/Item/Team/TeamRequestBuilder.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.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.Team /// /// Provides operations to manage the team property of the microsoft.graph.teamInfo entity. /// - public class TeamRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamRequestBuilder : BaseCliRequestBuilder { /// /// Get team from groups @@ -86,14 +89,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 TeamRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/team{?%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 TeamRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/team{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public TeamRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/ /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get team from groups /// - public class TeamRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class TeamRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 87fd82e143..4f2bf27ca5 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.Count; using ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.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.Groups.Item.Team.Channels.Item.SharedWithTeams /// /// Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity. /// - public class SharedWithTeamsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharedWithTeamsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SharedWithChannelTeamInfoItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.SharedWithTeams.Item.SharedWithChannelTeamInfoItemRequestBuilder(PathParameters); commands.Add(builder.BuildAllowedMembersNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.Groups.Item.Team.Channels.Item.SharedWithTeams.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(SharedWithChannelTeamInfo.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SharedWithChannelTeamInfo.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -222,14 +225,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 SharedWithTeamsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams{?%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 SharedWithTeamsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/sharedWithTeams{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -242,11 +245,11 @@ public SharedWithTeamsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -262,11 +265,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(SharedWithChannelTeamInfo body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SharedWithChannelTeamInfo body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SharedWithChannelTeamInfo body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -278,7 +281,8 @@ public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo bod /// /// A collection of teams with which a channel is shared. /// - public class SharedWithTeamsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharedWithTeamsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -342,3 +346,4 @@ public class SharedWithTeamsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Tabs/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Tabs/Count/CountRequestBuilder.cs index e14cb25e52..3676f3e7a1 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Tabs/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Tabs/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.Groups.Item.Team.Channels.Item.Tabs.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/$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}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index b7cdabe838..55d6cf2ddd 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.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.Groups.Item.Team.Channels.Item.Tabs.Item.TeamsApp /// /// Provides operations to manage the teamsApp property of the microsoft.graph.teamsTab entity. /// - public class TeamsAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppRequestBuilder : BaseCliRequestBuilder { /// /// The application that is linked to the tab. This can't be changed after tab creation. @@ -86,14 +89,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 TeamsAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%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 TeamsAppRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/{teamsTab%2Did}/teamsApp{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public TeamsAppRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// The application that is linked to the tab. This can't be changed after tab creation. /// - public class TeamsAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class TeamsAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 5f4453bcfe..3a1312051f 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.Tabs.Item.TeamsApp; 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.Groups.Item.Team.Channels.Item.Tabs.Item /// /// Provides operations to manage the tabs property of the microsoft.graph.channel entity. /// - public class TeamsTabItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsTabItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property tabs for groups @@ -173,8 +176,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(TeamsTab.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsTab.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -204,7 +207,7 @@ public Command BuildTeamsAppNavCommand() { var command = new Command("teams-app"); command.Description = "Provides operations to manage the teamsApp property of the microsoft.graph.teamsTab entity."; - var builder = new TeamsAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Tabs.Item.TeamsApp.TeamsAppRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -214,14 +217,14 @@ public Command BuildTeamsAppNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TeamsTabItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/{teamsTab%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 TeamsTabItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs/{teamsTab%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(TeamsTab body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsTab body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TeamsTab body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsTab body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action /// A collection of all the tabs in the channel. A navigation property. /// - public class TeamsTabItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class TeamsTabItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs index 19e331c563..9a42707c84 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Tabs/TabsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Channels.Item.Tabs.Count; using ApiSdk.Groups.Item.Team.Channels.Item.Tabs.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.Groups.Item.Team.Channels.Item.Tabs /// /// Provides operations to manage the tabs property of the microsoft.graph.channel entity. /// - public class TabsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TabsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the tabs property of the microsoft.graph.channel entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TeamsTabItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.Item.Tabs.Item.TeamsTabItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Groups.Item.Team.Channels.Item.Tabs.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(TeamsTab.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsTab.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 TabsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs{?%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 TabsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/tabs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public TabsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/ /// 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); @@ -261,11 +264,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(TeamsTab body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsTab body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TeamsTab body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsTab body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action /// A collection of all the tabs in the channel. A navigation property. /// - public class TabsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TabsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class TabsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Channels/Item/Unarchive/UnarchiveRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Unarchive/UnarchiveRequestBuilder.cs new file mode 100644 index 0000000000..ec0a8071c6 --- /dev/null +++ b/src/generated/Groups/Item/Team/Channels/Item/Unarchive/UnarchiveRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#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; +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.Groups.Item.Team.Channels.Item.Unarchive +{ + /// + /// Provides operations to call the unarchive method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnarchiveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-unarchive?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var channelIdOption = new Option("--channel-id", description: "The unique identifier of channel") { + }; + channelIdOption.IsRequired = true; + command.AddOption(channelIdOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var channelId = invocationContext.ParseResult.GetValueForOption(channelIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (channelId is not null) requestInfo.PathParameters.Add("channel%2Did", channelId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnarchiveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/unarchive", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnarchiveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/unarchive", rawUrl) + { + } + /// + /// Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Clone/ClonePostRequestBody.cs b/src/generated/Groups/Item/Team/Clone/ClonePostRequestBody.cs index 0411d7d563..16de0ded94 100644 --- a/src/generated/Groups/Item/Team/Clone/ClonePostRequestBody.cs +++ b/src/generated/Groups/Item/Team/Clone/ClonePostRequestBody.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.Groups.Item.Team.Clone { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClonePostRequestBody : IAdditionalDataHolder, IParsable + public partial class ClonePostRequestBody : 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. @@ -46,11 +48,11 @@ public class ClonePostRequestBody : IAdditionalDataHolder, IParsable public string MailNickname { get; set; } #endif /// The partsToClone property - public ClonableTeamParts? PartsToClone { get; set; } + public global::ApiSdk.Models.ClonableTeamParts? PartsToClone { get; set; } /// The visibility property - public TeamVisibilityType? Visibility { get; set; } + public global::ApiSdk.Models.TeamVisibilityType? Visibility { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClonePostRequestBody() { @@ -59,12 +61,12 @@ public ClonePostRequestBody() /// /// 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 ClonePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.Clone.ClonePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClonePostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.Clone.ClonePostRequestBody(); } /// /// The deserialization information for the current model @@ -78,8 +80,8 @@ public virtual IDictionary> GetFieldDeserializers() { "description", n => { Description = n.GetStringValue(); } }, { "displayName", n => { DisplayName = n.GetStringValue(); } }, { "mailNickname", n => { MailNickname = n.GetStringValue(); } }, - { "partsToClone", n => { PartsToClone = n.GetEnumValue(); } }, - { "visibility", n => { Visibility = n.GetEnumValue(); } }, + { "partsToClone", n => { PartsToClone = n.GetEnumValue(); } }, + { "visibility", n => { Visibility = n.GetEnumValue(); } }, }; } /// @@ -93,9 +95,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("mailNickname", MailNickname); - writer.WriteEnumValue("partsToClone", PartsToClone); - writer.WriteEnumValue("visibility", Visibility); + writer.WriteEnumValue("partsToClone", PartsToClone); + writer.WriteEnumValue("visibility", Visibility); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs b/src/generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs index d312619dae..5a1e20e51f 100644 --- a/src/generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Clone/CloneRequestBuilder.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.Groups.Item.Team.Clone /// /// Provides operations to call the clone method. /// - public class CloneRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CloneRequestBuilder : BaseCliRequestBuilder { /// /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds. @@ -43,8 +46,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(ClonePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.Clone.ClonePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 CloneRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/clone", 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 CloneRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/clone", rawUrl) @@ -84,11 +87,11 @@ public CloneRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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(ClonePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Clone.ClonePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ClonePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Clone.ClonePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(ClonePostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.cs index a00254a65a..81aff2988d 100644 --- a/src/generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/CompleteMigration/CompleteMigrationRequestBuilder.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.Groups.Item.Team.CompleteMigration /// /// Provides operations to call the completeMigration method. /// - public class CompleteMigrationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CompleteMigrationRequestBuilder : BaseCliRequestBuilder { /// /// Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CompleteMigrationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/completeMigration", 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 CompleteMigrationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/completeMigration", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Group.ServiceProvisioningErrors; 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.Groups.Item.Team.Group /// /// Provides operations to manage the group property of the microsoft.graph.team entity. /// - public class GroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupRequestBuilder : BaseCliRequestBuilder { /// /// Get group from groups @@ -82,7 +85,7 @@ public Command BuildServiceProvisioningErrorsNavCommand() { var command = new Command("service-provisioning-errors"); command.Description = "The serviceProvisioningErrors property"; - var builder = new ServiceProvisioningErrorsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Group.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -98,14 +101,14 @@ public Command BuildServiceProvisioningErrorsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public GroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/group{?%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 GroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/group{?%24expand,%24select}", rawUrl) @@ -118,11 +121,11 @@ public GroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -133,7 +136,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get group from groups /// - public class GroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,3 +162,4 @@ public class GroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs index f43911d087..83482f8707 100644 --- a/src/generated/Groups/Item/Team/Group/ServiceProvisioningErrors/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Group/ServiceProvisioningErrors/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.Groups.Item.Team.Group.ServiceProvisioningErrors.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}/groups/{group%2Did}/team/group/serviceProvisioningErrors/$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}/groups/{group%2Did}/team/group/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs index 62daabf9da..e9bb795c0d 100644 --- a/src/generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Group/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Group.ServiceProvisioningErrors.Count; 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.Groups.Item.Team.Group.ServiceProvisioningErrors /// /// Builds and executes requests for operations under \groups\{group-id}\team\group\serviceProvisioningErrors /// - public class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.Team.Group.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -40,13 +43,13 @@ public Command BuildCountNavCommand() return command; } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance)."; + command.Description = "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance)."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -142,31 +145,31 @@ 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 ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/group/serviceProvisioningErrors{?%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 ServiceProvisioningErrorsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/group/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -175,9 +178,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object . Supports $filter (eq, not, for isResolved and serviceInstance). + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance). /// - public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -241,3 +245,4 @@ public class ServiceProvisioningErrorsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/IncomingChannels/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/IncomingChannels/Count/CountRequestBuilder.cs index b0f07533fa..2ed93f6490 100644 --- a/src/generated/Groups/Item/Team/IncomingChannels/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/IncomingChannels/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.Groups.Item.Team.IncomingChannels.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}/groups/{group%2Did}/team/incomingChannels/$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}/groups/{group%2Did}/team/incomingChannels/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs b/src/generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs index bb4e823177..4fd356b037 100644 --- a/src/generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/IncomingChannels/IncomingChannelsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.IncomingChannels.Count; using ApiSdk.Groups.Item.Team.IncomingChannels.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.Groups.Item.Team.IncomingChannels /// /// Provides operations to manage the incomingChannels property of the microsoft.graph.team entity. /// - public class IncomingChannelsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IncomingChannelsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the incomingChannels property of the microsoft.graph.team entity. @@ -30,7 +33,7 @@ public class IncomingChannelsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ChannelItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.IncomingChannels.Item.ChannelItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Team.IncomingChannels.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -154,14 +157,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 IncomingChannelsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/incomingChannels{?%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 IncomingChannelsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/incomingChannels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -174,11 +177,11 @@ public IncomingChannelsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -189,7 +192,8 @@ public RequestInformation ToGetRequestInformation(Action /// List of channels shared with the team. /// - public class IncomingChannelsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IncomingChannelsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -253,3 +257,4 @@ public class IncomingChannelsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.cs b/src/generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.cs index a8f8dedfe9..dc81fcfa02 100644 --- a/src/generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/IncomingChannels/Item/ChannelItemRequestBuilder.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.Groups.Item.Team.IncomingChannels.Item /// /// Provides operations to manage the incomingChannels property of the microsoft.graph.team entity. /// - public class ChannelItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChannelItemRequestBuilder : BaseCliRequestBuilder { /// /// List of channels shared with the team. @@ -80,14 +83,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 ChannelItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/incomingChannels/{channel%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 ChannelItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/incomingChannels/{channel%2Did}{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public ChannelItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// List of channels shared with the team. /// - public class ChannelItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChannelItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class ChannelItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/InstalledApps/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/InstalledApps/Count/CountRequestBuilder.cs index 6d31ce1740..289978f8b7 100644 --- a/src/generated/Groups/Item/Team/InstalledApps/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/InstalledApps/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.Groups.Item.Team.InstalledApps.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}/groups/{group%2Did}/team/installedApps/$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}/groups/{group%2Did}/team/installedApps/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs b/src/generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs index c869b10fae..00af0de663 100644 --- a/src/generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/InstalledApps/InstalledAppsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.InstalledApps.Count; using ApiSdk.Groups.Item.Team.InstalledApps.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.Groups.Item.Team.InstalledApps /// /// Provides operations to manage the installedApps property of the microsoft.graph.team entity. /// - public class InstalledAppsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstalledAppsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the installedApps property of the microsoft.graph.team entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TeamsAppInstallationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.InstalledApps.Item.TeamsAppInstallationItemRequestBuilder(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.Groups.Item.Team.InstalledApps.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -87,8 +90,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(TeamsAppInstallation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsAppInstallation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -211,14 +214,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 InstalledAppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/installedApps{?%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 InstalledAppsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/installedApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -231,11 +234,11 @@ public InstalledAppsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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); @@ -251,11 +254,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(TeamsAppInstallation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsAppInstallation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TeamsAppInstallation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsAppInstallation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -267,7 +270,8 @@ public RequestInformation ToPostRequestInformation(TeamsAppInstallation body, Ac /// /// The apps installed in this team. /// - public class InstalledAppsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstalledAppsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -331,3 +335,4 @@ public class InstalledAppsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs index 494575df0f..4d2fa65e43 100644 --- a/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsApp/TeamsAppRequestBuilder.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.Groups.Item.Team.InstalledApps.Item.TeamsApp /// /// Provides operations to manage the teamsApp property of the microsoft.graph.teamsAppInstallation entity. /// - public class TeamsAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppRequestBuilder : BaseCliRequestBuilder { /// /// The app that is installed. @@ -80,14 +83,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 TeamsAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}/teamsApp{?%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 TeamsAppRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}/teamsApp{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public TeamsAppRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The app that is installed. /// - public class TeamsAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class TeamsAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs b/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs index 5fc0906d23..5d70055a9c 100644 --- a/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsAppDefinition/TeamsAppDefinitionRequestBuilder.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.Groups.Item.Team.InstalledApps.Item.TeamsAppDefinition /// /// Provides operations to manage the teamsAppDefinition property of the microsoft.graph.teamsAppInstallation entity. /// - public class TeamsAppDefinitionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppDefinitionRequestBuilder : BaseCliRequestBuilder { /// /// The details of this version of the app. @@ -80,14 +83,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 TeamsAppDefinitionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}/teamsAppDefinition{?%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 TeamsAppDefinitionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}/teamsAppDefinition{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public TeamsAppDefinitionRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The details of this version of the app. /// - public class TeamsAppDefinitionRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppDefinitionRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class TeamsAppDefinitionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs b/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs index 1e1c563ad8..2833df2220 100644 --- a/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/InstalledApps/Item/TeamsAppInstallationItemRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.InstalledApps.Item.TeamsApp; using ApiSdk.Groups.Item.Team.InstalledApps.Item.TeamsAppDefinition; using ApiSdk.Groups.Item.Team.InstalledApps.Item.Upgrade; 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.Groups.Item.Team.InstalledApps.Item /// /// Provides operations to manage the installedApps property of the microsoft.graph.team entity. /// - public class TeamsAppInstallationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppInstallationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property installedApps for groups @@ -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(TeamsAppInstallation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsAppInstallation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -188,7 +191,7 @@ public Command BuildTeamsAppDefinitionNavCommand() { var command = new Command("teams-app-definition"); command.Description = "Provides operations to manage the teamsAppDefinition property of the microsoft.graph.teamsAppInstallation entity."; - var builder = new TeamsAppDefinitionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.InstalledApps.Item.TeamsAppDefinition.TeamsAppDefinitionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -205,7 +208,7 @@ public Command BuildTeamsAppNavCommand() { var command = new Command("teams-app"); command.Description = "Provides operations to manage the teamsApp property of the microsoft.graph.teamsAppInstallation entity."; - var builder = new TeamsAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.InstalledApps.Item.TeamsApp.TeamsAppRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -222,7 +225,7 @@ public Command BuildUpgradeNavCommand() { var command = new Command("upgrade"); command.Description = "Provides operations to call the upgrade method."; - var builder = new UpgradeRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.InstalledApps.Item.Upgrade.UpgradeRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,14 @@ public Command BuildUpgradeNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TeamsAppInstallationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%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 TeamsAppInstallationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}{?%24expand,%24select}", rawUrl) @@ -271,11 +274,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); @@ -291,11 +294,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsAppInstallation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsAppInstallation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -307,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(TeamsAppInstallation body, A /// /// The apps installed in this team. /// - public class TeamsAppInstallationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppInstallationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -332,3 +336,4 @@ public class TeamsAppInstallationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs b/src/generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs index f6e8d5a337..6af1663e9a 100644 --- a/src/generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradePostRequestBody.cs +++ b/src/generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradePostRequestBody.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.Groups.Item.Team.InstalledApps.Item.Upgrade { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UpgradePostRequestBody : IAdditionalDataHolder, IParsable + public partial class UpgradePostRequestBody : 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. @@ -16,13 +18,13 @@ public class UpgradePostRequestBody : IAdditionalDataHolder, IParsable /// The consentedPermissionSet property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamsAppPermissionSet? ConsentedPermissionSet { get; set; } + public global::ApiSdk.Models.TeamsAppPermissionSet? ConsentedPermissionSet { get; set; } #nullable restore #else - public TeamsAppPermissionSet ConsentedPermissionSet { get; set; } + public global::ApiSdk.Models.TeamsAppPermissionSet ConsentedPermissionSet { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UpgradePostRequestBody() { @@ -31,12 +33,12 @@ public UpgradePostRequestBody() /// /// 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 UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.InstalledApps.Item.Upgrade.UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UpgradePostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.InstalledApps.Item.Upgrade.UpgradePostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, + { "consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue(global::ApiSdk.Models.TeamsAppPermissionSet.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); + writer.WriteObjectValue("consentedPermissionSet", ConsentedPermissionSet); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs b/src/generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs index 1c7ffe9b3f..0043f151ed 100644 --- a/src/generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.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.Groups.Item.Team.InstalledApps.Item.Upgrade /// /// Provides operations to call the upgrade method. /// - public class UpgradeRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UpgradeRequestBuilder : BaseCliRequestBuilder { /// /// Upgrade an app installation within a chat. @@ -48,8 +51,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(UpgradePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.InstalledApps.Item.Upgrade.UpgradePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,14 +72,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 UpgradeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}/upgrade", 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 UpgradeRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/installedApps/{teamsAppInstallation%2Did}/upgrade", rawUrl) @@ -90,11 +93,11 @@ public UpgradeRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(UpgradePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.InstalledApps.Item.Upgrade.UpgradePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.InstalledApps.Item.Upgrade.UpgradePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Members/Add/AddPostRequestBody.cs b/src/generated/Groups/Item/Team/Members/Add/AddPostRequestBody.cs index c66595fe90..8d9eb9ac62 100644 --- a/src/generated/Groups/Item/Team/Members/Add/AddPostRequestBody.cs +++ b/src/generated/Groups/Item/Team/Members/Add/AddPostRequestBody.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.Groups.Item.Team.Members.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Values { get; set; } + public List? Values { get; set; } #nullable restore #else - public List Values { get; set; } + public List Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -31,12 +33,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.Members.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.Members.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Members/Add/AddPostResponse.cs b/src/generated/Groups/Item/Team/Members/Add/AddPostResponse.cs index e6b45df69e..db2d01ed83 100644 --- a/src/generated/Groups/Item/Team/Members/Add/AddPostResponse.cs +++ b/src/generated/Groups/Item/Team/Members/Add/AddPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Team.Members.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class AddPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Team.Members.Add.AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostResponse(); + return new global::ApiSdk.Groups.Item.Team.Members.Add.AddPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Members/Add/AddRequestBuilder.cs b/src/generated/Groups/Item/Team/Members/Add/AddRequestBuilder.cs index 3e38f731b3..97c3e63745 100644 --- a/src/generated/Groups/Item/Team/Members/Add/AddRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Members/Add/AddRequestBuilder.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.Groups.Item.Team.Members.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. @@ -55,8 +58,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.Members.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/members/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/members/add", rawUrl) @@ -107,11 +110,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/t /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Members.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Members.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Members/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Members/Count/CountRequestBuilder.cs index 1ff8ba78da..4a76e460e3 100644 --- a/src/generated/Groups/Item/Team/Members/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Members/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.Groups.Item.Team.Members.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}/groups/{group%2Did}/team/members/$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}/groups/{group%2Did}/team/members/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.cs index b5f12a200b..10185a9375 100644 --- a/src/generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Members/Item/ConversationMemberItemRequestBuilder.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.Groups.Item.Team.Members.Item /// /// Provides operations to manage the members property of the microsoft.graph.team entity. /// - public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property members for groups @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ConversationMember.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ConversationMemberItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/members/{conversationMember%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 ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/members/{conversationMember%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ConversationMember body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationMember body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ConversationMember body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationMember body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act /// /// Members and owners of the team. /// - public class ConversationMemberItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ConversationMemberItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Members/MembersRequestBuilder.cs b/src/generated/Groups/Item/Team/Members/MembersRequestBuilder.cs index ae06f9ffc6..365137d436 100644 --- a/src/generated/Groups/Item/Team/Members/MembersRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Members/MembersRequestBuilder.cs @@ -1,9 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Members.Add; using ApiSdk.Groups.Item.Team.Members.Count; using ApiSdk.Groups.Item.Team.Members.Item; +using ApiSdk.Groups.Item.Team.Members.Remove; 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 +25,8 @@ namespace ApiSdk.Groups.Item.Team.Members /// /// Provides operations to manage the members property of the microsoft.graph.team entity. /// - public class MembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -32,7 +36,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Members.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -48,7 +52,7 @@ public Command BuildAddNavCommand() public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ConversationMemberItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Members.Item.ConversationMemberItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -62,7 +66,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.Groups.Item.Team.Members.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -101,8 +105,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(ConversationMember.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -225,14 +229,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the remove method. + /// + /// A + public Command BuildRemoveNavCommand() + { + var command = new Command("remove"); + command.Description = "Provides operations to call the remove method."; + var builder = new global::ApiSdk.Groups.Item.Team.Members.Remove.RemoveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/members{?%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 MembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -245,11 +266,11 @@ public MembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -265,11 +286,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(ConversationMember body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ConversationMember body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +302,8 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti /// /// Members and owners of the team. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -345,3 +367,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Members/Remove/RemovePostRequestBody.cs b/src/generated/Groups/Item/Team/Members/Remove/RemovePostRequestBody.cs new file mode 100644 index 0000000000..d66ece2090 --- /dev/null +++ b/src/generated/Groups/Item/Team/Members/Remove/RemovePostRequestBody.cs @@ -0,0 +1,66 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Members.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The values property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Values { get; set; } +#nullable restore +#else + public List Values { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RemovePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.Members.Remove.RemovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Members.Remove.RemovePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Members/Remove/RemovePostResponse.cs b/src/generated/Groups/Item/Team/Members/Remove/RemovePostResponse.cs new file mode 100644 index 0000000000..546ff431f0 --- /dev/null +++ b/src/generated/Groups/Item/Team/Members/Remove/RemovePostResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Members.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Groups.Item.Team.Members.Remove.RemovePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Members.Remove.RemovePostResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Members/Remove/RemoveRequestBuilder.cs b/src/generated/Groups/Item/Team/Members/Remove/RemoveRequestBuilder.cs new file mode 100644 index 0000000000..34e595b256 --- /dev/null +++ b/src/generated/Groups/Item/Team/Members/Remove/RemoveRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Groups.Item.Team.Members.Remove +{ + /// + /// Provides operations to call the remove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + 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.Groups.Item.Team.Members.Remove.RemovePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public RemoveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/members/remove", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RemoveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/members/remove", rawUrl) + { + } + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Members.Remove.RemovePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Members.Remove.RemovePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Operations/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Operations/Count/CountRequestBuilder.cs index 8ea9d842a1..2093cdd1ed 100644 --- a/src/generated/Groups/Item/Team/Operations/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Operations/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.Groups.Item.Team.Operations.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}/groups/{group%2Did}/team/operations/$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}/groups/{group%2Did}/team/operations/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs index 091c5ef051..cbb927c71b 100644 --- a/src/generated/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Operations/Item/TeamsAsyncOperationItemRequestBuilder.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.Groups.Item.Team.Operations.Item /// /// Provides operations to manage the operations property of the microsoft.graph.team entity. /// - public class TeamsAsyncOperationItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAsyncOperationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property operations for groups @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TeamsAsyncOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsAsyncOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TeamsAsyncOperationItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/operations/{teamsAsyncOperation%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 TeamsAsyncOperationItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/operations/{teamsAsyncOperation%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TeamsAsyncOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsAsyncOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TeamsAsyncOperation body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsAsyncOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(TeamsAsyncOperation body, Ac /// /// The async operations that ran or are running on this team. /// - public class TeamsAsyncOperationItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAsyncOperationItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class TeamsAsyncOperationItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Operations/OperationsRequestBuilder.cs b/src/generated/Groups/Item/Team/Operations/OperationsRequestBuilder.cs index c1939e0f53..d4fbdd37b2 100644 --- a/src/generated/Groups/Item/Team/Operations/OperationsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Operations/OperationsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Operations.Count; using ApiSdk.Groups.Item.Team.Operations.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.Groups.Item.Team.Operations /// /// Provides operations to manage the operations property of the microsoft.graph.team entity. /// - public class OperationsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the operations property of the microsoft.graph.team entity. @@ -30,7 +33,7 @@ public class OperationsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TeamsAsyncOperationItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Operations.Item.TeamsAsyncOperationItemRequestBuilder(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.Groups.Item.Team.Operations.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(TeamsAsyncOperation.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsAsyncOperation.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 OperationsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/operations{?%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 OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public OperationsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -247,11 +250,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(TeamsAsyncOperation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsAsyncOperation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TeamsAsyncOperation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsAsyncOperation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(TeamsAsyncOperation body, Act /// /// The async operations that ran or are running on this team. /// - public class OperationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OperationsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class OperationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PermissionGrants/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/PermissionGrants/Count/CountRequestBuilder.cs index f58f35d4c1..873d2378d4 100644 --- a/src/generated/Groups/Item/Team/PermissionGrants/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PermissionGrants/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.Groups.Item.Team.PermissionGrants.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}/groups/{group%2Did}/team/permissionGrants/$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}/groups/{group%2Did}/team/permissionGrants/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs b/src/generated/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs index 43cc37ef0f..d7aed0bf48 100644 --- a/src/generated/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PermissionGrants/Item/ResourceSpecificPermissionGrantItemRequestBuilder.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.Groups.Item.Team.PermissionGrants.Item /// /// Provides operations to manage the permissionGrants property of the microsoft.graph.team entity. /// - public class ResourceSpecificPermissionGrantItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceSpecificPermissionGrantItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property permissionGrants for groups @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ResourceSpecificPermissionGrantItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%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 ResourceSpecificPermissionGrantItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/permissionGrants/{resourceSpecificPermissionGrant%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(ResourceSpecificPermissionGr /// /// A collection of permissions granted to apps to access the team. /// - public class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ResourceSpecificPermissionGrantItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs index a06be4a979..c9e0400298 100644 --- a/src/generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PermissionGrants.Count; using ApiSdk.Groups.Item.Team.PermissionGrants.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.Groups.Item.Team.PermissionGrants /// /// Provides operations to manage the permissionGrants property of the microsoft.graph.team entity. /// - public class PermissionGrantsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionGrantsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the permissionGrants property of the microsoft.graph.team entity. @@ -30,7 +33,7 @@ public class PermissionGrantsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ResourceSpecificPermissionGrantItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PermissionGrants.Item.ResourceSpecificPermissionGrantItemRequestBuilder(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.Groups.Item.Team.PermissionGrants.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(ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 PermissionGrantsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/permissionGrants{?%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 PermissionGrantsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/permissionGrants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public PermissionGrantsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -247,11 +250,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(ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ResourceSpecificPermissionGrant body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra /// /// A collection of permissions granted to apps to access the team. /// - public class PermissionGrantsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class PermissionGrantsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs b/src/generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs index 58fd2dab37..a9c8d62324 100644 --- a/src/generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Photo.Value; 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.Groups.Item.Team.Photo /// /// Provides operations to manage the photo property of the microsoft.graph.team entity. /// - public class PhotoRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PhotoRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Photo.Value.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -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(ProfilePhoto.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ProfilePhoto.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -145,14 +148,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 PhotoRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/photo{?%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 PhotoRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/photo{?%24expand,%24select}", rawUrl) @@ -165,11 +168,11 @@ public PhotoRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -185,11 +188,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(ProfilePhoto body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -201,7 +204,8 @@ public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action /// The profile photo for the team. /// - public class PhotoRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PhotoRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -226,3 +230,4 @@ public class PhotoRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.cs b/src/generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.cs index b274891d91..e2e8647fcb 100644 --- a/src/generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Photo/Value/ContentRequestBuilder.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.Groups.Item.Team.Photo.Value /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The profile photo for the team. @@ -146,14 +149,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/photo/$value", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/photo/$value", rawUrl) @@ -221,3 +224,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#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; +namespace ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Add +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AddPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The values property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Values { get; set; } +#nullable restore +#else + public List Values { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public AddPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Add.AddPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Add/AddPostResponse.cs b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Add/AddPostResponse.cs new file mode 100644 index 0000000000..0687085eb1 --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Add/AddPostResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Add +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AddPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Add.AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Add.AddPostResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Add/AddRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Add/AddRequestBuilder.cs new file mode 100644 index 0000000000..caeff04732 --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Add/AddRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Groups.Item.Team.PrimaryChannel.AllMembers.Add +{ + /// + /// Provides operations to call the add method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder + { + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + 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.Groups.Item.Team.PrimaryChannel.AllMembers.Add.AddPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/add", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public AddRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/add", rawUrl) + { + } + /// + /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Add.AddPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Add.AddPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/AllMembersRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/AllMembersRequestBuilder.cs new file mode 100644 index 0000000000..be40539509 --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/AllMembersRequestBuilder.cs @@ -0,0 +1,370 @@ +// +#pragma warning disable CS0618 +using ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Add; +using ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Count; +using ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Item; +using ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Remove; +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.Groups.Item.Team.PrimaryChannel.AllMembers +{ + /// + /// Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllMembersRequestBuilder : BaseCliRequestBuilder + { + /// + /// Provides operations to call the add method. + /// + /// A + public Command BuildAddNavCommand() + { + var command = new Command("add"); + command.Description = "Provides operations to call the add method."; + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Add.AddRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + /// + /// A Tuple<List<Command>, List<Command>> + public Tuple, List> BuildCommand() + { + var executables = new List(); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Item.ConversationMemberItemRequestBuilder(PathParameters); + executables.Add(builder.BuildDeleteCommand()); + executables.Add(builder.BuildGetCommand()); + executables.Add(builder.BuildPatchCommand()); + return new(executables, new(0)); + } + /// + /// Provides operations to count the resources in the collection. + /// + /// A + public Command BuildCountNavCommand() + { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Count.CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Create new navigation property to allMembers for groups + /// + /// A + public Command BuildCreateCommand() + { + var command = new Command("create"); + command.Description = "Create new navigation property to allMembers for groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + 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.ConversationMember.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + 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; + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + /// A + public Command BuildListCommand() + { + var command = new Command("list"); + command.Description = "A collection of membership records associated with the channel, including both direct and indirect members of shared channels."; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Provides operations to call the remove method. + /// + /// A + public Command BuildRemoveNavCommand() + { + var command = new Command("remove"); + command.Description = "Provides operations to call the remove method."; + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Remove.RemoveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public AllMembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public AllMembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + /// 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; + } + /// + /// Create new navigation property to allMembers for groups + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllMembersRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Count/CountRequestBuilder.cs new file mode 100644 index 0000000000..109b3cd88c --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Count/CountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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; +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.Groups.Item.Team.PrimaryChannel.AllMembers.Count +{ + /// + /// Provides operations to count the resources in the collection. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get the number of the resource + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get the number of the resource"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + var formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// 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", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Get the number of the resource + /// + [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 +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Item/ConversationMemberItemRequestBuilder.cs new file mode 100644 index 0000000000..a803aa266d --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Item/ConversationMemberItemRequestBuilder.cs @@ -0,0 +1,285 @@ +// +#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.Groups.Item.Team.PrimaryChannel.AllMembers.Item +{ + /// + /// Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property allMembers for groups + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property allMembers for groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var conversationMemberIdOption = new Option("--conversation-member-id", description: "The unique identifier of conversationMember") { + }; + conversationMemberIdOption.IsRequired = true; + command.AddOption(conversationMemberIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var conversationMemberId = invocationContext.ParseResult.GetValueForOption(conversationMemberIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (conversationMemberId is not null) requestInfo.PathParameters.Add("conversationMember%2Did", conversationMemberId); + 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; + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "A collection of membership records associated with the channel, including both direct and indirect members of shared channels."; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var conversationMemberIdOption = new Option("--conversation-member-id", description: "The unique identifier of conversationMember") { + }; + conversationMemberIdOption.IsRequired = true; + command.AddOption(conversationMemberIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var conversationMemberId = invocationContext.ParseResult.GetValueForOption(conversationMemberIdOption); + 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; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (conversationMemberId is not null) requestInfo.PathParameters.Add("conversationMember%2Did", conversationMemberId); + 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 the navigation property allMembers in groups + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property allMembers in groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var conversationMemberIdOption = new Option("--conversation-member-id", description: "The unique identifier of conversationMember") { + }; + conversationMemberIdOption.IsRequired = true; + command.AddOption(conversationMemberIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var conversationMemberId = invocationContext.ParseResult.GetValueForOption(conversationMemberIdOption); + 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.ConversationMember.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (conversationMemberId is not null) requestInfo.PathParameters.Add("conversationMember%2Did", conversationMemberId); + 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 ConversationMemberItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/{conversationMember%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/{conversationMember%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property allMembers for groups + /// + /// 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; + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + /// 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 the navigation property allMembers in groups + /// + /// 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.ConversationMember body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationMember 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; + } + /// + /// A collection of membership records associated with the channel, including both direct and indirect members of shared channels. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilderGetQueryParameters + { + /// 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/Groups/Item/Team/PrimaryChannel/AllMembers/Remove/RemovePostRequestBody.cs b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Remove/RemovePostRequestBody.cs new file mode 100644 index 0000000000..0634af988c --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Remove/RemovePostRequestBody.cs @@ -0,0 +1,66 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The values property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Values { get; set; } +#nullable restore +#else + public List Values { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RemovePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Remove.RemovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Remove.RemovePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Remove/RemovePostResponse.cs b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Remove/RemovePostResponse.cs new file mode 100644 index 0000000000..264573b4ba --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Remove/RemovePostResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Remove.RemovePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Remove.RemovePostResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Remove/RemoveRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Remove/RemoveRequestBuilder.cs new file mode 100644 index 0000000000..78967b0c9d --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/AllMembers/Remove/RemoveRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Groups.Item.Team.PrimaryChannel.AllMembers.Remove +{ + /// + /// Provides operations to call the remove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + 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.Groups.Item.Team.PrimaryChannel.AllMembers.Remove.RemovePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public RemoveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/remove", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RemoveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/allMembers/remove", rawUrl) + { + } + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Remove.RemovePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.Remove.RemovePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Archive/ArchivePostRequestBody.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Archive/ArchivePostRequestBody.cs new file mode 100644 index 0000000000..06b893b326 --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Archive/ArchivePostRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Archive +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ArchivePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The shouldSetSpoSiteReadOnlyForMembers property + public bool? ShouldSetSpoSiteReadOnlyForMembers { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public ArchivePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.PrimaryChannel.Archive.ArchivePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Archive.ArchivePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "shouldSetSpoSiteReadOnlyForMembers", n => { ShouldSetSpoSiteReadOnlyForMembers = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", ShouldSetSpoSiteReadOnlyForMembers); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Archive/ArchiveRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Archive/ArchiveRequestBuilder.cs new file mode 100644 index 0000000000..7cafadfb3a --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Archive/ArchiveRequestBuilder.cs @@ -0,0 +1,105 @@ +// +#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; +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.Groups.Item.Team.PrimaryChannel.Archive +{ + /// + /// Provides operations to call the archive method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ArchiveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-archive?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + 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.Groups.Item.Team.PrimaryChannel.Archive.ArchivePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public ArchiveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/archive", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ArchiveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/archive", rawUrl) + { + } + /// + /// Archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Archive.ArchivePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Archive.ArchivePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs index 68b94589bf..f934bc740c 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/CompleteMigration/CompleteMigrationRequestBuilder.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.Groups.Item.Team.PrimaryChannel.CompleteMigration /// /// Provides operations to call the completeMigration method. /// - public class CompleteMigrationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CompleteMigrationRequestBuilder : BaseCliRequestBuilder { /// /// Complete the message migration process by removing migration mode from a channel in a team. Migration mode is a special state that prevents certain operations, like sending messages and adding members, during the data migration process. After a completeMigration request is made, you can't import additional messages into the team. You can add members to the team after the request returns a successful response. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CompleteMigrationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/completeMigration", 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 CompleteMigrationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/completeMigration", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : IAdditionalDataHolder, IParsable + public partial class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse : 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. @@ -15,7 +17,7 @@ public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUser /// The value property public bool? Value { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse() { @@ -24,12 +26,12 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// /// 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 DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponse(); } /// /// The deserialization information for the current model @@ -54,3 +56,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs index d1921d4a8a..e5e0f466d2 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName/DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder.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.Groups.Item.Team.PrimaryChannel.DoesUserHaveAccessuserIdUserIdT /// /// Provides operations to call the doesUserHaveAccess method. /// - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder : BaseCliRequestBuilder { /// /// Determine whether a user has access to a shared channel. @@ -78,14 +81,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 DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/doesUserHaveAccess(userId='@userId',tenantId='@tenantId',userPrincipalName='@userPrincipalName'){?tenantId*,userId*,userPrincipalName*}", 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 DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/doesUserHaveAccess(userId='@userId',tenantId='@tenantId',userPrincipalName='@userPrincipalName'){?tenantId*,userId*,userPrincipalName*}", rawUrl) @@ -98,11 +101,11 @@ public DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrinci /// 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); @@ -113,7 +116,8 @@ public RequestInformation ToGetRequestInformation(Action /// Determine whether a user has access to a shared channel. /// - public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilderGetQueryParameters { /// Usage: tenantId='@tenantId' #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -148,3 +152,4 @@ public class DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUser } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs index 86ae5f6701..9fd9c0feb7 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/FilesFolder/Content/ContentRequestBuilder.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.Groups.Item.Team.PrimaryChannel.FilesFolder.Content /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The content stream, if the item represents a file. @@ -151,14 +154,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/filesFolder/content{?%24format*}", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/filesFolder/content{?%24format*}", rawUrl) @@ -190,11 +193,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,7 +230,8 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// The content stream, if the item represents a file. /// - public class ContentRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetQueryParameters { /// Format of the content #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -242,3 +246,4 @@ public class ContentRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs index 2493fbe0dc..a0a855959e 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/FilesFolder/FilesFolderRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.FilesFolder.Content; 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.Groups.Item.Team.PrimaryChannel.FilesFolder /// /// Provides operations to manage the filesFolder property of the microsoft.graph.channel entity. /// - public class FilesFolderRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesFolderRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.FilesFolder.Content.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -94,14 +97,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 FilesFolderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/filesFolder{?%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 FilesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/filesFolder{?%24expand,%24select}", rawUrl) @@ -114,11 +117,11 @@ public FilesFolderRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -129,7 +132,8 @@ public RequestInformation ToGetRequestInformation(Action /// Metadata for the location where the channel's files are stored. /// - public class FilesFolderRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesFolderRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -154,3 +158,4 @@ public class FilesFolderRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostRequestBody.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostRequestBody.cs index c6fdc4c450..61363a00d5 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostRequestBody.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostRequestBody.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.Groups.Item.Team.PrimaryChannel.Members.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostRequestBody : IAdditionalDataHolder, IParsable + public partial class AddPostRequestBody : 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. @@ -16,13 +18,13 @@ public class AddPostRequestBody : IAdditionalDataHolder, IParsable /// The values property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Values { get; set; } + public List? Values { get; set; } #nullable restore #else - public List Values { get; set; } + public List Values { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AddPostRequestBody() { @@ -31,12 +33,12 @@ public AddPostRequestBody() /// /// 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 AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Add.AddPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Add.AddPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "values", n => { Values = n.GetCollectionOfObjectValues(ConversationMember.CreateFromDiscriminatorValue)?.ToList(); } }, + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteCollectionOfObjectValues("values", Values); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.cs index 3a7b769bde..a6b866ba28 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddPostResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Team.PrimaryChannel.Members.Add { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddPostResponse : BaseCollectionPaginationCountResponse, IParsable + public partial class AddPostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Add.AddPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddPostResponse(); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Add.AddPostResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ActionResultPart.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.cs index 9036b03dc0..168970afe6 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Add/AddRequestBuilder.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.Groups.Item.Team.PrimaryChannel.Members.Add /// /// Provides operations to call the add method. /// - public class AddRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AddRequestBuilder : BaseCliRequestBuilder { /// /// Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. @@ -55,8 +58,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(AddPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Add.AddPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 AddRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/add", 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 AddRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/add", rawUrl) @@ -107,11 +110,11 @@ public AddRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/t /// 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(AddPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Add.AddPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Add.AddPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(AddPostRequestBody body, Acti } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Count/CountRequestBuilder.cs index 35e5ed9b88..07ac4985ac 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/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.Groups.Item.Team.PrimaryChannel.Members.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}/groups/{group%2Did}/team/primaryChannel/members/$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}/groups/{group%2Did}/team/primaryChannel/members/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 185d33268e..96499132f9 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.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.Groups.Item.Team.PrimaryChannel.Members.Item /// /// Provides operations to manage the members property of the microsoft.graph.channel entity. /// - public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property members for groups @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ConversationMember.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ConversationMemberItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/{conversationMember%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 ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/{conversationMember%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(ConversationMember body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationMember body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ConversationMember body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationMember body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act /// /// A collection of membership records associated with the channel. /// - public class ConversationMemberItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class ConversationMemberItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs index 691f9d14d2..a57275a476 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -1,9 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Add; using ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Count; using ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Item; +using ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Remove; 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 +25,8 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Members /// /// Provides operations to manage the members property of the microsoft.graph.channel entity. /// - public class MembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to call the add method. @@ -32,7 +36,7 @@ public Command BuildAddNavCommand() { var command = new Command("add"); command.Description = "Provides operations to call the add method."; - var builder = new AddRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Add.AddRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -48,7 +52,7 @@ public Command BuildAddNavCommand() public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ConversationMemberItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Item.ConversationMemberItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -62,7 +66,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.Groups.Item.Team.PrimaryChannel.Members.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -101,8 +105,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(ConversationMember.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -225,14 +229,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the remove method. + /// + /// A + public Command BuildRemoveNavCommand() + { + var command = new Command("remove"); + command.Description = "Provides operations to call the remove method."; + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Remove.RemoveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/members{?%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 MembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -245,11 +266,11 @@ public MembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -265,11 +286,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(ConversationMember body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ConversationMember body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationMember body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +302,8 @@ public RequestInformation ToPostRequestInformation(ConversationMember body, Acti /// /// A collection of membership records associated with the channel. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -345,3 +367,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Remove/RemovePostRequestBody.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Remove/RemovePostRequestBody.cs new file mode 100644 index 0000000000..ee580eab64 --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Remove/RemovePostRequestBody.cs @@ -0,0 +1,66 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The values property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Values { get; set; } +#nullable restore +#else + public List Values { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RemovePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Remove.RemovePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Remove.RemovePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "values", n => { Values = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ConversationMember.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("values", Values); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Remove/RemovePostResponse.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Remove/RemovePostResponse.cs new file mode 100644 index 0000000000..8284536082 --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Remove/RemovePostResponse.cs @@ -0,0 +1,57 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Remove +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemovePostResponse : global::ApiSdk.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Remove.RemovePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Remove.RemovePostResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ActionResultPart.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Remove/RemoveRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Remove/RemoveRequestBuilder.cs new file mode 100644 index 0000000000..95849f3e8d --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Remove/RemoveRequestBuilder.cs @@ -0,0 +1,128 @@ +// +#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; +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.Groups.Item.Team.PrimaryChannel.Members.Remove +{ + /// + /// Provides operations to call the remove method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + 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); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + 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.Groups.Item.Team.PrimaryChannel.Members.Remove.RemovePostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public RemoveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/remove", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public RemoveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/remove", rawUrl) + { + } + /// + /// Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Remove.RemovePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Remove.RemovePostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Count/CountRequestBuilder.cs index c6578d42f1..611b1174ce 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/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.Groups.Item.Team.PrimaryChannel.Messages.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}/groups/{group%2Did}/team/primaryChannel/messages/$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}/groups/{group%2Did}/team/primaryChannel/messages/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs index 8072263f6a..82d6d6f150 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Team.PrimaryChannel.Messages.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs index d4d7c16360..dfd51b8d89 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; + command.Description = "Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -124,31 +127,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -157,9 +160,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -223,3 +227,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs index 6a777744bc..a111c3774f 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/ChatMessageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents; using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies; using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.SetReaction; @@ -7,6 +8,7 @@ using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.UnsetReaction; 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; @@ -25,7 +27,8 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item /// /// Provides operations to manage the messages property of the microsoft.graph.channel entity. /// - public class ChatMessageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property messages for groups @@ -134,7 +137,7 @@ public Command BuildHostedContentsNavCommand() { var command = new Command("hosted-contents"); command.Description = "Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity."; - var builder = new HostedContentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents.HostedContentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -188,8 +191,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(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -218,7 +221,7 @@ public Command BuildRepliesNavCommand() { var command = new Command("replies"); command.Description = "Provides operations to manage the replies property of the microsoft.graph.chatMessage entity."; - var builder = new RepliesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.RepliesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -246,7 +249,7 @@ public Command BuildSetReactionNavCommand() { var command = new Command("set-reaction"); command.Description = "Provides operations to call the setReaction method."; - var builder = new SetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.SetReaction.SetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -263,7 +266,7 @@ public Command BuildSoftDeleteNavCommand() { var command = new Command("soft-delete"); command.Description = "Provides operations to call the softDelete method."; - var builder = new SoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.SoftDelete.SoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -280,7 +283,7 @@ public Command BuildUndoSoftDeleteNavCommand() { var command = new Command("undo-soft-delete"); command.Description = "Provides operations to call the undoSoftDelete method."; - var builder = new UndoSoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.UndoSoftDelete.UndoSoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -297,7 +300,7 @@ public Command BuildUnsetReactionNavCommand() { var command = new Command("unset-reaction"); command.Description = "Provides operations to call the unsetReaction method."; - var builder = new UnsetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.UnsetReaction.UnsetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -307,14 +310,14 @@ public Command BuildUnsetReactionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ChatMessageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%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 ChatMessageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}{?%24expand,%24select}", rawUrl) @@ -346,11 +349,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); @@ -366,11 +369,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(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -382,7 +385,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action /// A collection of all the messages in the channel. A navigation property. Nullable. /// - public class ChatMessageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -407,3 +411,4 @@ public class ChatMessageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs index 2fbbcbf42a..deb97b5903 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/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.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents.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 @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/$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}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs index 3975576d1f..4028cadbb6 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents.Count; using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents.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.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class HostedContentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ChatMessageHostedContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents.Item.ChatMessageHostedContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -90,8 +93,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -221,14 +224,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 HostedContentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents{?%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 HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -241,11 +244,11 @@ public HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -261,11 +264,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -277,7 +280,8 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body /// /// Content in a message hosted by Microsoft Teams - for example, images or code snippets. /// - public class HostedContentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -341,3 +345,4 @@ public class HostedContentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 6a9cfc0e98..014d1ecc91 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents.Item.Value; 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.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents.It /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents.Item.Value.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -192,8 +195,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -216,14 +219,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 ChatMessageHostedContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%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 ChatMessageHostedContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}", rawUrl) @@ -255,11 +258,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); @@ -275,11 +278,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -291,7 +294,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod /// /// Content in a message hosted by Microsoft Teams - for example, images or code snippets. /// - public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -316,3 +320,4 @@ public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index b18abf52e2..b47e14eaa5 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/HostedContents/Item/Value/ContentRequestBuilder.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.Groups.Item.Team.PrimaryChannel.Messages.Item.HostedContents.It /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The unique identifier for an entity. Read-only. @@ -182,14 +185,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/hostedContents/{chatMessageHostedContent%2Did}/$value", rawUrl) @@ -257,3 +260,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/$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}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs index f2adceecc2..54d0793127 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaGetResponse.cs @@ -1,33 +1,35 @@ // +#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.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Delta { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class DeltaGetResponse : BaseDeltaFunctionResponse, IParsable + public partial class DeltaGetResponse : global::ApiSdk.Models.BaseDeltaFunctionResponse, IParsable #pragma warning restore CS1591 { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// /// 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 new DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeltaGetResponse(); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Delta.DeltaGetResponse(); } /// /// The deserialization information for the current model @@ -37,7 +39,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "value", n => { Value = n.GetCollectionOfObjectValues(ChatMessage.CreateFromDiscriminatorValue)?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -48,7 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs index a391ae4b53..81d5c7a188 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Delta/DeltaRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Delta /// /// Provides operations to call the delta method. /// - public class DeltaRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseCliRequestBuilder { /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; + command.Description = "Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -130,31 +133,31 @@ 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 DeltaRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/delta(){?%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 DeltaRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -163,9 +166,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. + /// Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can get new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation. /// - public class DeltaRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -229,3 +233,4 @@ public class DeltaRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs index 94269aaa83..3acce3cbad 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/ChatMessageItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.HostedContents; using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.SetReaction; using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.SoftDelete; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.UnsetReaction; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item /// /// Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. /// - public class ChatMessageItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property replies for groups @@ -145,7 +148,7 @@ public Command BuildHostedContentsNavCommand() { var command = new Command("hosted-contents"); command.Description = "Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity."; - var builder = new HostedContentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.HostedContents.HostedContentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -204,8 +207,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(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -235,7 +238,7 @@ public Command BuildSetReactionNavCommand() { var command = new Command("set-reaction"); command.Description = "Provides operations to call the setReaction method."; - var builder = new SetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.SetReaction.SetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -252,7 +255,7 @@ public Command BuildSoftDeleteNavCommand() { var command = new Command("soft-delete"); command.Description = "Provides operations to call the softDelete method."; - var builder = new SoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.SoftDelete.SoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -269,7 +272,7 @@ public Command BuildUndoSoftDeleteNavCommand() { var command = new Command("undo-soft-delete"); command.Description = "Provides operations to call the undoSoftDelete method."; - var builder = new UndoSoftDeleteRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.UndoSoftDelete.UndoSoftDeleteRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -286,7 +289,7 @@ public Command BuildUnsetReactionNavCommand() { var command = new Command("unset-reaction"); command.Description = "Provides operations to call the unsetReaction method."; - var builder = new UnsetReactionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -296,14 +299,14 @@ public Command BuildUnsetReactionNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ChatMessageItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24expand,%24select}", pathParameters) { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. public ChatMessageItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}{?%24expand,%24select}", rawUrl) @@ -335,11 +338,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); @@ -355,11 +358,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(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -371,7 +374,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessage body, Action /// Replies for a specified message. Supports $expand for channel messages. /// - public class ChatMessageItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -396,3 +400,4 @@ public class ChatMessageItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs index aa37960460..072aff9fa0 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/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.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.Host /// /// 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 @@ -75,14 +78,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}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$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}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/$count{?%24filter,%24search}", rawUrl) @@ -95,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -110,7 +113,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 @@ -135,3 +139,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs index 530045e74e..7274f81d93 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/HostedContentsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.HostedContents.Count; using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.HostedContents.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.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.Host /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class HostedContentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ChatMessageHostedContentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.HostedContents.Item.ChatMessageHostedContentItemRequestBuilder(PathParameters); commands.Add(builder.BuildContentNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -46,7 +49,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.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.HostedContents.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -233,14 +236,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 HostedContentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%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 HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -253,11 +256,11 @@ public HostedContentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -273,11 +276,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPostRequestInformation(ChatMessageHostedContent body /// /// Content in a message hosted by Microsoft Teams - for example, images or code snippets. /// - public class HostedContentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class HostedContentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -353,3 +357,4 @@ public class HostedContentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs index 2288efe868..91c7a6ac33 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/ChatMessageHostedContentItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.HostedContents.Item.Value; 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.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.Host /// /// Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. /// - public class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the media for the group entity. @@ -30,7 +33,7 @@ public Command BuildContentNavCommand() { var command = new Command("content"); command.Description = "Provides operations to manage the media for the group entity."; - var builder = new ContentRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.HostedContents.Item.Value.ContentRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); @@ -209,8 +212,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(ChatMessageHostedContent.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessageHostedContent.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -234,14 +237,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 ChatMessageHostedContentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%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 ChatMessageHostedContentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}{?%24expand,%24select}", rawUrl) @@ -273,11 +276,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); @@ -293,11 +296,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(ChatMessageHostedContent body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ChatMessageHostedContent body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -309,7 +312,8 @@ public RequestInformation ToPatchRequestInformation(ChatMessageHostedContent bod /// /// Content in a message hosted by Microsoft Teams - for example, images or code snippets. /// - public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChatMessageHostedContentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -334,3 +338,4 @@ public class ChatMessageHostedContentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs index 67f45a9da7..bd10186541 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/HostedContents/Item/Value/ContentRequestBuilder.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.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.Host /// /// Provides operations to manage the media for the group entity. /// - public class ContentRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseCliRequestBuilder { /// /// The unique identifier for an entity. Read-only. @@ -200,14 +203,14 @@ public Command BuildPutCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ContentRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", 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 ContentRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/hostedContents/{chatMessageHostedContent%2Did}/$value", rawUrl) @@ -275,3 +278,4 @@ public RequestInformation ToPutRequestInformation(Stream body, Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.SetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public SetReactionPostRequestBody() /// /// 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 SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetReactionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs index 58786ca50a..2de53d7b7c 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SetReaction/SetReactionRequestBuilder.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.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.SetR /// /// Provides operations to call the setReaction method. /// - public class SetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action setReaction @@ -52,8 +55,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(SetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 SetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/setReaction", 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 SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/setReaction", rawUrl) @@ -95,11 +98,11 @@ public SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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(SetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.SetReaction.SetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs index ff27a3de1a..129fa16d55 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/SoftDelete/SoftDeleteRequestBuilder.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.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.Soft /// /// Provides operations to call the softDelete method. /// - public class SoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Delete a single chatMessage or a chat message reply in a channel or a chat. @@ -62,14 +65,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 SoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", 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 SoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/softDelete", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.Undo /// /// Provides operations to call the undoSoftDelete method. /// - public class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. @@ -62,14 +65,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 UndoSoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", 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 UndoSoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/undoSoftDelete", rawUrl) @@ -96,3 +99,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.UnsetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnsetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnsetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public UnsetReactionPostRequestBody() /// /// 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 UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnsetReactionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index 4e9cb5d04a..0fa08b4ceb 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/Item/UnsetReaction/UnsetReactionRequestBuilder.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.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.Unse /// /// Provides operations to call the unsetReaction method. /// - public class UnsetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnsetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action unsetReaction @@ -52,8 +55,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(UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 UnsetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/unsetReaction", 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 UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/{chatMessage%2Did1}/unsetReaction", rawUrl) @@ -95,11 +98,11 @@ public UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index 86b31e9dbb..7c37dbb0d3 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Count; using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Delta; using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies /// /// Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. /// - public class RepliesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RepliesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.ChatMessageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Item.ChatMessageItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildHostedContentsNavCommand()); @@ -51,7 +54,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.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -95,8 +98,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(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -125,7 +128,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.Replies.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -243,14 +246,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 RepliesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies{?%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 RepliesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -263,11 +266,11 @@ public RepliesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -283,11 +286,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(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -299,7 +302,8 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action /// Replies for a specified message. Supports $expand for channel messages. /// - public class RepliesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RepliesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -363,3 +367,4 @@ public class RepliesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs index 4a1de8bf7c..34d0637cac 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.SetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class SetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public SetReactionPostRequestBody() /// /// 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 SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.SetReaction.SetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SetReactionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.SetReaction.SetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs index 07ec797b79..a9bf895e52 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SetReaction/SetReactionRequestBuilder.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.Groups.Item.Team.PrimaryChannel.Messages.Item.SetReaction /// /// Provides operations to call the setReaction method. /// - public class SetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action setReaction @@ -47,8 +50,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(SetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.SetReaction.SetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -68,14 +71,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 SetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/setReaction", 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 SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/setReaction", rawUrl) @@ -89,11 +92,11 @@ public SetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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(SetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.SetReaction.SetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.SetReaction.SetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -104,3 +107,4 @@ public RequestInformation ToPostRequestInformation(SetReactionPostRequestBody bo } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs index 71ed8d19e2..73eb162770 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/SoftDelete/SoftDeleteRequestBuilder.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.Groups.Item.Team.PrimaryChannel.Messages.Item.SoftDelete /// /// Provides operations to call the softDelete method. /// - public class SoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Delete a single chatMessage or a chat message reply in a channel or a chat. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/softDelete", 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 SoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/softDelete", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.UndoSoftDelete /// /// Provides operations to call the undoSoftDelete method. /// - public class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UndoSoftDeleteRequestBuilder : BaseCliRequestBuilder { /// /// Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. @@ -56,14 +59,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UndoSoftDeleteRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/undoSoftDelete", 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 UndoSoftDeleteRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/undoSoftDelete", rawUrl) @@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.UnsetReaction { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class UnsetReactionPostRequestBody : 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. @@ -21,7 +23,7 @@ public class UnsetReactionPostRequestBody : IAdditionalDataHolder, IParsable public string ReactionType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public UnsetReactionPostRequestBody() { @@ -30,12 +32,12 @@ public UnsetReactionPostRequestBody() /// /// 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 UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnsetReactionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs index d934e126d6..6f788105c1 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/Item/UnsetReaction/UnsetReactionRequestBuilder.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.Groups.Item.Team.PrimaryChannel.Messages.Item.UnsetReaction /// /// Provides operations to call the unsetReaction method. /// - public class UnsetReactionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnsetReactionRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action unsetReaction @@ -47,8 +50,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(UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -68,14 +71,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 UnsetReactionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/unsetReaction", 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 UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/unsetReaction", rawUrl) @@ -89,11 +92,11 @@ public UnsetReactionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gro /// 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(UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.UnsetReaction.UnsetReactionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -104,3 +107,4 @@ public RequestInformation ToPostRequestInformation(UnsetReactionPostRequestBody } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs index eb63644493..ed40f519b6 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Count; using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Delta; using ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Messages /// /// Provides operations to manage the messages property of the microsoft.graph.channel entity. /// - public class MessagesRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MessagesRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the messages property of the microsoft.graph.channel entity. @@ -32,7 +35,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ChatMessageItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Item.ChatMessageItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildHostedContentsNavCommand()); @@ -52,7 +55,7 @@ public Command BuildCountNavCommand() { var command = new Command("count"); command.Description = "Provides operations to count the resources in the collection."; - var builder = new CountRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -91,8 +94,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(ChatMessage.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ChatMessage.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -120,7 +123,7 @@ public Command BuildDeltaNavCommand() { var command = new Command("delta"); command.Description = "Provides operations to call the delta method."; - var builder = new DeltaRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.Delta.DeltaRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -232,14 +235,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 MessagesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages{?%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 MessagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -252,11 +255,11 @@ public MessagesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -272,11 +275,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(ChatMessage body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ChatMessage body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ChatMessage body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -288,7 +291,8 @@ public RequestInformation ToPostRequestInformation(ChatMessage body, Action /// A collection of all the messages in the channel. A navigation property. Nullable. /// - public class MessagesRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MessagesRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -352,3 +356,4 @@ public class MessagesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs index b271581deb..8a4e1e77f4 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.cs @@ -1,4 +1,7 @@ // +#pragma warning disable CS0618 +using ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers; +using ApiSdk.Groups.Item.Team.PrimaryChannel.Archive; using ApiSdk.Groups.Item.Team.PrimaryChannel.CompleteMigration; using ApiSdk.Groups.Item.Team.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName; using ApiSdk.Groups.Item.Team.PrimaryChannel.FilesFolder; @@ -8,8 +11,10 @@ using ApiSdk.Groups.Item.Team.PrimaryChannel.RemoveEmail; using ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams; using ApiSdk.Groups.Item.Team.PrimaryChannel.Tabs; +using ApiSdk.Groups.Item.Team.PrimaryChannel.Unarchive; 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; @@ -28,8 +33,55 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel /// /// Provides operations to manage the primaryChannel property of the microsoft.graph.team entity. /// - public class PrimaryChannelRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PrimaryChannelRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to manage the allMembers property of the microsoft.graph.channel entity. + /// + /// A + public Command BuildAllMembersNavCommand() + { + var command = new Command("all-members"); + command.Description = "Provides operations to manage the allMembers property of the microsoft.graph.channel entity."; + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.AllMembers.AllMembersRequestBuilder(PathParameters); + var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildAddNavCommand()); + nonExecCommands.Add(builder.BuildCountNavCommand()); + execCommands.Add(builder.BuildCreateCommand()); + execCommands.Add(builder.BuildListCommand()); + nonExecCommands.Add(builder.BuildRemoveNavCommand()); + var cmds = builder.BuildCommand(); + execCommands.AddRange(cmds.Item1); + nonExecCommands.AddRange(cmds.Item2); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal)) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the archive method. + /// + /// A + public Command BuildArchiveNavCommand() + { + var command = new Command("archive"); + command.Description = "Provides operations to call the archive method."; + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Archive.ArchiveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } /// /// Provides operations to call the completeMigration method. /// @@ -38,7 +90,7 @@ public Command BuildCompleteMigrationNavCommand() { var command = new Command("complete-migration"); command.Description = "Provides operations to call the completeMigration method."; - var builder = new CompleteMigrationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.CompleteMigration.CompleteMigrationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -90,7 +142,7 @@ public Command BuildDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalN { var command = new Command("does-user-have-accessuser-id-user-id-tenant-id-tenant-id-user-principal-name-user-principal-name"); command.Description = "Provides operations to call the doesUserHaveAccess method."; - var builder = new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName.DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -107,7 +159,7 @@ public Command BuildFilesFolderNavCommand() { var command = new Command("files-folder"); command.Description = "Provides operations to manage the filesFolder property of the microsoft.graph.channel entity."; - var builder = new FilesFolderRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.FilesFolder.FilesFolderRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildContentNavCommand()); @@ -182,13 +234,14 @@ public Command BuildMembersNavCommand() { var command = new Command("members"); command.Description = "Provides operations to manage the members property of the microsoft.graph.channel entity."; - var builder = new MembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Members.MembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); nonExecCommands.Add(builder.BuildCountNavCommand()); execCommands.Add(builder.BuildCreateCommand()); execCommands.Add(builder.BuildListCommand()); + nonExecCommands.Add(builder.BuildRemoveNavCommand()); var cmds = builder.BuildCommand(); execCommands.AddRange(cmds.Item1); nonExecCommands.AddRange(cmds.Item2); @@ -210,7 +263,7 @@ public Command BuildMessagesNavCommand() { var command = new Command("messages"); command.Description = "Provides operations to manage the messages property of the microsoft.graph.channel entity."; - var builder = new MessagesRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Messages.MessagesRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -260,8 +313,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(Channel.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Channel.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -289,7 +342,7 @@ public Command BuildProvisionEmailNavCommand() { var command = new Command("provision-email"); command.Description = "Provides operations to call the provisionEmail method."; - var builder = new ProvisionEmailRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.ProvisionEmail.ProvisionEmailRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -306,7 +359,7 @@ public Command BuildRemoveEmailNavCommand() { var command = new Command("remove-email"); command.Description = "Provides operations to call the removeEmail method."; - var builder = new RemoveEmailRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.RemoveEmail.RemoveEmailRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -323,7 +376,7 @@ public Command BuildSharedWithTeamsNavCommand() { var command = new Command("shared-with-teams"); command.Description = "Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity."; - var builder = new SharedWithTeamsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.SharedWithTeamsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -350,7 +403,7 @@ public Command BuildTabsNavCommand() { var command = new Command("tabs"); command.Description = "Provides operations to manage the tabs property of the microsoft.graph.channel entity."; - var builder = new TabsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Tabs.TabsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -370,14 +423,31 @@ public Command BuildTabsNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Provides operations to call the unarchive method. + /// + /// A + public Command BuildUnarchiveNavCommand() + { + var command = new Command("unarchive"); + command.Description = "Provides operations to call the unarchive method."; + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Unarchive.UnarchiveRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PrimaryChannelRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel{?%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 PrimaryChannelRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel{?%24expand,%24select}", rawUrl) @@ -409,11 +479,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); @@ -429,11 +499,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(Channel body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Channel body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Channel body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Channel body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -445,7 +515,8 @@ public RequestInformation ToPatchRequestInformation(Channel body, Action /// The general channel for the team. /// - public class PrimaryChannelRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PrimaryChannelRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -470,3 +541,4 @@ public class PrimaryChannelRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs index a56539b8c8..3d52e0d1c7 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/ProvisionEmail/ProvisionEmailRequestBuilder.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.Groups.Item.Team.PrimaryChannel.ProvisionEmail /// /// Provides operations to call the provisionEmail method. /// - public class ProvisionEmailRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ProvisionEmailRequestBuilder : BaseCliRequestBuilder { /// /// Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it has not already provisioned one. To remove the email address of a channel, use the removeEmail method. @@ -61,14 +64,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 ProvisionEmailRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/provisionEmail", 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 ProvisionEmailRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/provisionEmail", rawUrl) @@ -95,3 +98,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.RemoveEmail /// /// Provides operations to call the removeEmail method. /// - public class RemoveEmailRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoveEmailRequestBuilder : BaseCliRequestBuilder { /// /// Remove the email address of a channel. You can remove an email address only if it was provisioned using the provisionEmail method or through the Microsoft Teams client. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public RemoveEmailRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/removeEmail", 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 RemoveEmailRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/removeEmail", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.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}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/$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}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs index 8ca123e15a..4ebacce4ef 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/AllowedMembersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.AllowedMembers.Count; using ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.AllowedMembers.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.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.AllowedMem /// /// Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. /// - public class AllowedMembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedMembersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. @@ -30,7 +33,7 @@ public class AllowedMembersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ConversationMemberItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.AllowedMembers.Item.ConversationMemberItemRequestBuilder(PathParameters); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); } @@ -42,7 +45,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.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.AllowedMembers.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -160,14 +163,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 AllowedMembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%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 AllowedMembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -180,11 +183,11 @@ public AllowedMembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -195,7 +198,8 @@ public RequestInformation ToGetRequestInformation(Action /// A collection of team members who have access to the shared channel. /// - public class AllowedMembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedMembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -259,3 +263,4 @@ public class AllowedMembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs index e1be9442ca..74d0605959 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/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.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.AllowedMem /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/$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}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs index e1be862c4e..56ee64af3f 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/AllowedMembers/Item/ConversationMemberItemRequestBuilder.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.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.AllowedMem /// /// Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. /// - public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// /// A collection of team members who have access to the shared channel. @@ -86,14 +89,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 ConversationMemberItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/{conversationMember%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 ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/allowedMembers/{conversationMember%2Did}{?%24expand,%24select}", rawUrl) @@ -106,11 +109,11 @@ public ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/gr /// 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); @@ -121,7 +124,8 @@ public RequestInformation ToGetRequestInformation(Action /// A collection of team members who have access to the shared channel. /// - public class ConversationMemberItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -146,3 +150,4 @@ public class ConversationMemberItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs index 5caccced96..9ecedfbd34 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/SharedWithChannelTeamInfoItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.AllowedMembers; using ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.Team; 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.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item /// /// Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity. /// - public class SharedWithChannelTeamInfoItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharedWithChannelTeamInfoItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity. @@ -31,7 +34,7 @@ public Command BuildAllowedMembersNavCommand() { var command = new Command("allowed-members"); command.Description = "Provides operations to manage the allowedMembers property of the microsoft.graph.sharedWithChannelTeamInfo entity."; - var builder = new AllowedMembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.AllowedMembers.AllowedMembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -183,8 +186,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(SharedWithChannelTeamInfo.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SharedWithChannelTeamInfo.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -213,7 +216,7 @@ public Command BuildTeamNavCommand() { var command = new Command("team"); command.Description = "Provides operations to manage the team property of the microsoft.graph.teamInfo entity."; - var builder = new ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.Team.TeamRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.Team.TeamRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -223,14 +226,14 @@ public Command BuildTeamNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SharedWithChannelTeamInfoItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%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 SharedWithChannelTeamInfoItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}{?%24expand,%24select}", rawUrl) @@ -262,11 +265,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); @@ -282,11 +285,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(SharedWithChannelTeamInfo body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SharedWithChannelTeamInfo body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SharedWithChannelTeamInfo body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -298,7 +301,8 @@ public RequestInformation ToPatchRequestInformation(SharedWithChannelTeamInfo bo /// /// A collection of teams with which a channel is shared. /// - public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -323,3 +327,4 @@ public class SharedWithChannelTeamInfoItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs index 73ee188c08..8a83ce15cc 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/Item/Team/TeamRequestBuilder.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.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.Team /// /// Provides operations to manage the team property of the microsoft.graph.teamInfo entity. /// - public class TeamRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamRequestBuilder : BaseCliRequestBuilder { /// /// Get team from groups @@ -80,14 +83,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 TeamRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/team{?%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 TeamRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams/{sharedWithChannelTeamInfo%2Did}/team{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public TeamRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/ /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get team from groups /// - public class TeamRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class TeamRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs index 7a4e970829..8655af449f 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/SharedWithTeams/SharedWithTeamsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Count; using ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.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.Groups.Item.Team.PrimaryChannel.SharedWithTeams /// /// Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity. /// - public class SharedWithTeamsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharedWithTeamsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the sharedWithTeams property of the microsoft.graph.channel entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new SharedWithChannelTeamInfoItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Item.SharedWithChannelTeamInfoItemRequestBuilder(PathParameters); commands.Add(builder.BuildAllowedMembersNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); @@ -47,7 +50,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.Groups.Item.Team.PrimaryChannel.SharedWithTeams.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -86,8 +89,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(SharedWithChannelTeamInfo.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SharedWithChannelTeamInfo.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -210,14 +213,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 SharedWithTeamsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams{?%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 SharedWithTeamsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/sharedWithTeams{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -230,11 +233,11 @@ public SharedWithTeamsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -250,11 +253,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(SharedWithChannelTeamInfo body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SharedWithChannelTeamInfo body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SharedWithChannelTeamInfo body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -266,7 +269,8 @@ public RequestInformation ToPostRequestInformation(SharedWithChannelTeamInfo bod /// /// A collection of teams with which a channel is shared. /// - public class SharedWithTeamsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SharedWithTeamsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -330,3 +334,4 @@ public class SharedWithTeamsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs index 6833bd4a4a..b68a9f4ddd 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/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.Groups.Item.Team.PrimaryChannel.Tabs.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}/groups/{group%2Did}/team/primaryChannel/tabs/$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}/groups/{group%2Did}/team/primaryChannel/tabs/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs index f4ee3cad52..1f039f8558 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsApp/TeamsAppRequestBuilder.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.Groups.Item.Team.PrimaryChannel.Tabs.Item.TeamsApp /// /// Provides operations to manage the teamsApp property of the microsoft.graph.teamsTab entity. /// - public class TeamsAppRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppRequestBuilder : BaseCliRequestBuilder { /// /// The application that is linked to the tab. This can't be changed after tab creation. @@ -80,14 +83,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 TeamsAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/{teamsTab%2Did}/teamsApp{?%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 TeamsAppRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/{teamsTab%2Did}/teamsApp{?%24expand,%24select}", rawUrl) @@ -100,11 +103,11 @@ public TeamsAppRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -115,7 +118,8 @@ public RequestInformation ToGetRequestInformation(Action /// The application that is linked to the tab. This can't be changed after tab creation. /// - public class TeamsAppRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,3 +144,4 @@ public class TeamsAppRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs index 77d27599ca..b19fc91dea 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.Tabs.Item.TeamsApp; 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.Groups.Item.Team.PrimaryChannel.Tabs.Item /// /// Provides operations to manage the tabs property of the microsoft.graph.channel entity. /// - public class TeamsTabItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsTabItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property tabs for groups @@ -156,8 +159,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TeamsTab.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsTab.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -186,7 +189,7 @@ public Command BuildTeamsAppNavCommand() { var command = new Command("teams-app"); command.Description = "Provides operations to manage the teamsApp property of the microsoft.graph.teamsTab entity."; - var builder = new TeamsAppRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Tabs.Item.TeamsApp.TeamsAppRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -196,14 +199,14 @@ public Command BuildTeamsAppNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TeamsTabItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/{teamsTab%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 TeamsTabItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs/{teamsTab%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TeamsTab body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsTab body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TeamsTab body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamsTab body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(TeamsTab body, Action /// A collection of all the tabs in the channel. A navigation property. /// - public class TeamsTabItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamsTabItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class TeamsTabItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs index 526c6b11e3..3f94d28141 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Tabs/TabsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.PrimaryChannel.Tabs.Count; using ApiSdk.Groups.Item.Team.PrimaryChannel.Tabs.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.Groups.Item.Team.PrimaryChannel.Tabs /// /// Provides operations to manage the tabs property of the microsoft.graph.channel entity. /// - public class TabsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TabsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the tabs property of the microsoft.graph.channel entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TeamsTabItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.Tabs.Item.TeamsTabItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -46,7 +49,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.Groups.Item.Team.PrimaryChannel.Tabs.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(TeamsTab.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamsTab.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 TabsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs{?%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 TabsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/tabs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public TabsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/ /// 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(TeamsTab body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsTab body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TeamsTab body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamsTab body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(TeamsTab body, Action /// A collection of all the tabs in the channel. A navigation property. /// - public class TabsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TabsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class TabsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.cs new file mode 100644 index 0000000000..370f9cc332 --- /dev/null +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Unarchive/UnarchiveRequestBuilder.cs @@ -0,0 +1,90 @@ +// +#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; +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.Groups.Item.Team.PrimaryChannel.Unarchive +{ + /// + /// Provides operations to call the unarchive method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnarchiveRequestBuilder : BaseCliRequestBuilder + { + /// + /// Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-unarchive?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public UnarchiveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/unarchive", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public UnarchiveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/unarchive", rawUrl) + { + } + /// + /// Restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/DayNotes/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/DayNotes/Count/CountRequestBuilder.cs new file mode 100644 index 0000000000..fa82321198 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/DayNotes/Count/CountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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; +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.Groups.Item.Team.Schedule.DayNotes.Count +{ + /// + /// Provides operations to count the resources in the collection. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get the number of the resource + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get the number of the resource"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + var formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// 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", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Get the number of the resource + /// + [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 +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/DayNotes/DayNotesRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/DayNotes/DayNotesRequestBuilder.cs new file mode 100644 index 0000000000..7fad7c87ca --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/DayNotes/DayNotesRequestBuilder.cs @@ -0,0 +1,334 @@ +// +#pragma warning disable CS0618 +using ApiSdk.Groups.Item.Team.Schedule.DayNotes.Count; +using ApiSdk.Groups.Item.Team.Schedule.DayNotes.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; +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.Groups.Item.Team.Schedule.DayNotes +{ + /// + /// Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DayNotesRequestBuilder : BaseCliRequestBuilder + { + /// + /// Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. + /// + /// A Tuple<List<Command>, List<Command>> + public Tuple, List> BuildCommand() + { + var executables = new List(); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.DayNotes.Item.DayNoteItemRequestBuilder(PathParameters); + executables.Add(builder.BuildDeleteCommand()); + executables.Add(builder.BuildGetCommand()); + executables.Add(builder.BuildPatchCommand()); + return new(executables, new(0)); + } + /// + /// Provides operations to count the resources in the collection. + /// + /// A + public Command BuildCountNavCommand() + { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.DayNotes.Count.CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Create new navigation property to dayNotes for groups + /// + /// A + public Command BuildCreateCommand() + { + var command = new Command("create"); + command.Description = "Create new navigation property to dayNotes for groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + 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.DayNote.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + 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; + } + /// + /// The day notes in the schedule. + /// + /// A + public Command BuildListCommand() + { + var command = new Command("list"); + command.Description = "The day notes in the schedule."; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public DayNotesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DayNotesRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The day notes in the schedule. + /// + /// 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; + } + /// + /// Create new navigation property to dayNotes for groups + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Models.DayNote body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.DayNote body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The day notes in the schedule. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DayNotesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/DayNotes/Item/DayNoteItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/DayNotes/Item/DayNoteItemRequestBuilder.cs new file mode 100644 index 0000000000..26e9acc0a4 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/DayNotes/Item/DayNoteItemRequestBuilder.cs @@ -0,0 +1,285 @@ +// +#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.Groups.Item.Team.Schedule.DayNotes.Item +{ + /// + /// Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DayNoteItemRequestBuilder : BaseCliRequestBuilder + { + /// + /// Delete navigation property dayNotes for groups + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property dayNotes for groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var dayNoteIdOption = new Option("--day-note-id", description: "The unique identifier of dayNote") { + }; + dayNoteIdOption.IsRequired = true; + command.AddOption(dayNoteIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var dayNoteId = invocationContext.ParseResult.GetValueForOption(dayNoteIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (dayNoteId is not null) requestInfo.PathParameters.Add("dayNote%2Did", dayNoteId); + 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; + } + /// + /// The day notes in the schedule. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The day notes in the schedule."; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var dayNoteIdOption = new Option("--day-note-id", description: "The unique identifier of dayNote") { + }; + dayNoteIdOption.IsRequired = true; + command.AddOption(dayNoteIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var dayNoteId = invocationContext.ParseResult.GetValueForOption(dayNoteIdOption); + 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; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (dayNoteId is not null) requestInfo.PathParameters.Add("dayNote%2Did", dayNoteId); + 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 the navigation property dayNotes in groups + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property dayNotes in groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var dayNoteIdOption = new Option("--day-note-id", description: "The unique identifier of dayNote") { + }; + dayNoteIdOption.IsRequired = true; + command.AddOption(dayNoteIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var dayNoteId = invocationContext.ParseResult.GetValueForOption(dayNoteIdOption); + 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.DayNote.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (dayNoteId is not null) requestInfo.PathParameters.Add("dayNote%2Did", dayNoteId); + 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 DayNoteItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes/{dayNote%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public DayNoteItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes/{dayNote%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property dayNotes for groups + /// + /// 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; + } + /// + /// The day notes in the schedule. + /// + /// 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 the navigation property dayNotes in groups + /// + /// 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.DayNote body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.DayNote 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; + } + /// + /// The day notes in the schedule. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DayNoteItemRequestBuilderGetQueryParameters + { + /// 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/Groups/Item/Team/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs index 30cfa75050..a8ebc2d292 100644 --- a/src/generated/Groups/Item/Team/Schedule/OfferShiftRequests/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/OfferShiftRequests/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.Groups.Item.Team.Schedule.OfferShiftRequests.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}/groups/{group%2Did}/team/schedule/offerShiftRequests/$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}/groups/{group%2Did}/team/schedule/offerShiftRequests/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs index 922b7f28dd..ad047d273a 100644 --- a/src/generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/OfferShiftRequests/Item/OfferShiftRequestItemRequestBuilder.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.Groups.Item.Team.Schedule.OfferShiftRequests.Item /// /// Provides operations to manage the offerShiftRequests property of the microsoft.graph.schedule entity. /// - public class OfferShiftRequestItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OfferShiftRequestItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property offerShiftRequests for groups @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(OfferShiftRequest.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OfferShiftRequest.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OfferShiftRequestItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/offerShiftRequests/{offerShiftRequest%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 OfferShiftRequestItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/offerShiftRequests/{offerShiftRequest%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(OfferShiftRequest body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OfferShiftRequest body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OfferShiftRequest body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OfferShiftRequest body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(OfferShiftRequest body, Acti /// /// The offer requests for shifts in the schedule. /// - public class OfferShiftRequestItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OfferShiftRequestItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class OfferShiftRequestItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs index 9aae28859a..d95f9d0fb1 100644 --- a/src/generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/OfferShiftRequests/OfferShiftRequestsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Schedule.OfferShiftRequests.Count; using ApiSdk.Groups.Item.Team.Schedule.OfferShiftRequests.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.Groups.Item.Team.Schedule.OfferShiftRequests /// /// Provides operations to manage the offerShiftRequests property of the microsoft.graph.schedule entity. /// - public class OfferShiftRequestsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OfferShiftRequestsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the offerShiftRequests property of the microsoft.graph.schedule entity. @@ -30,7 +33,7 @@ public class OfferShiftRequestsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new OfferShiftRequestItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.OfferShiftRequests.Item.OfferShiftRequestItemRequestBuilder(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.Groups.Item.Team.Schedule.OfferShiftRequests.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(OfferShiftRequest.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OfferShiftRequest.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 OfferShiftRequestsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/offerShiftRequests{?%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 OfferShiftRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/offerShiftRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public OfferShiftRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/groups /// 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); @@ -247,11 +250,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(OfferShiftRequest body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OfferShiftRequest body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OfferShiftRequest body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OfferShiftRequest body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(OfferShiftRequest body, Actio /// /// The offer requests for shifts in the schedule. /// - public class OfferShiftRequestsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OfferShiftRequestsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class OfferShiftRequestsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs index 9b26922e8d..31f67b4803 100644 --- a/src/generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/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.Groups.Item.Team.Schedule.OpenShiftChangeRequests.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}/groups/{group%2Did}/team/schedule/openShiftChangeRequests/$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}/groups/{group%2Did}/team/schedule/openShiftChangeRequests/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index e0e25a6f5e..904dad0933 100644 --- a/src/generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.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.Groups.Item.Team.Schedule.OpenShiftChangeRequests.Item /// /// Provides operations to manage the openShiftChangeRequests property of the microsoft.graph.schedule entity. /// - public class OpenShiftChangeRequestItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OpenShiftChangeRequestItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property openShiftChangeRequests for groups @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(OpenShiftChangeRequest.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OpenShiftChangeRequest.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OpenShiftChangeRequestItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/openShiftChangeRequests/{openShiftChangeRequest%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 OpenShiftChangeRequestItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/openShiftChangeRequests/{openShiftChangeRequest%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(OpenShiftChangeRequest body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OpenShiftChangeRequest body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OpenShiftChangeRequest body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OpenShiftChangeRequest body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(OpenShiftChangeRequest body, /// /// The open shift requests in the schedule. /// - public class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs index b892e873bc..f0b72a8d8d 100644 --- a/src/generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/OpenShiftChangeRequestsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Schedule.OpenShiftChangeRequests.Count; using ApiSdk.Groups.Item.Team.Schedule.OpenShiftChangeRequests.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.Groups.Item.Team.Schedule.OpenShiftChangeRequests /// /// Provides operations to manage the openShiftChangeRequests property of the microsoft.graph.schedule entity. /// - public class OpenShiftChangeRequestsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OpenShiftChangeRequestsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the openShiftChangeRequests property of the microsoft.graph.schedule entity. @@ -30,7 +33,7 @@ public class OpenShiftChangeRequestsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new OpenShiftChangeRequestItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.OpenShiftChangeRequests.Item.OpenShiftChangeRequestItemRequestBuilder(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.Groups.Item.Team.Schedule.OpenShiftChangeRequests.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(OpenShiftChangeRequest.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OpenShiftChangeRequest.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 OpenShiftChangeRequestsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/openShiftChangeRequests{?%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 OpenShiftChangeRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/openShiftChangeRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public OpenShiftChangeRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/g /// 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); @@ -247,11 +250,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(OpenShiftChangeRequest body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OpenShiftChangeRequest body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OpenShiftChangeRequest body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OpenShiftChangeRequest body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(OpenShiftChangeRequest body, /// /// The open shift requests in the schedule. /// - public class OpenShiftChangeRequestsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OpenShiftChangeRequestsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class OpenShiftChangeRequestsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/OpenShifts/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/OpenShifts/Count/CountRequestBuilder.cs index 52a317608b..6ea8b305fb 100644 --- a/src/generated/Groups/Item/Team/Schedule/OpenShifts/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/OpenShifts/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.Groups.Item.Team.Schedule.OpenShifts.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}/groups/{group%2Did}/team/schedule/openShifts/$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}/groups/{group%2Did}/team/schedule/openShifts/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index 957ae02823..aa60b8d80f 100644 --- a/src/generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.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.Groups.Item.Team.Schedule.OpenShifts.Item /// /// Provides operations to manage the openShifts property of the microsoft.graph.schedule entity. /// - public class OpenShiftItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OpenShiftItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property openShifts for groups @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(OpenShift.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OpenShift.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public OpenShiftItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/openShifts/{openShift%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 OpenShiftItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/openShifts/{openShift%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(OpenShift body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OpenShift body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(OpenShift body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.OpenShift body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(OpenShift body, Action /// The set of open shifts in a scheduling group in the schedule. /// - public class OpenShiftItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OpenShiftItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class OpenShiftItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index 1beed6e2f3..89df513dcb 100644 --- a/src/generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Schedule.OpenShifts.Count; using ApiSdk.Groups.Item.Team.Schedule.OpenShifts.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.Groups.Item.Team.Schedule.OpenShifts /// /// Provides operations to manage the openShifts property of the microsoft.graph.schedule entity. /// - public class OpenShiftsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OpenShiftsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the openShifts property of the microsoft.graph.schedule entity. @@ -30,7 +33,7 @@ public class OpenShiftsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new OpenShiftItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.OpenShifts.Item.OpenShiftItemRequestBuilder(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.Groups.Item.Team.Schedule.OpenShifts.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(OpenShift.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.OpenShift.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 OpenShiftsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/openShifts{?%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 OpenShiftsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/openShifts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public OpenShiftsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -247,11 +250,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(OpenShift body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OpenShift body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OpenShift body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.OpenShift body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(OpenShift body, Action /// The set of open shifts in a scheduling group in the schedule. /// - public class OpenShiftsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OpenShiftsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class OpenShiftsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs index 1a3b30ddcf..7b9044c4e4 100644 --- a/src/generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/ScheduleRequestBuilder.cs @@ -1,4 +1,6 @@ // +#pragma warning disable CS0618 +using ApiSdk.Groups.Item.Team.Schedule.DayNotes; using ApiSdk.Groups.Item.Team.Schedule.OfferShiftRequests; using ApiSdk.Groups.Item.Team.Schedule.OpenShiftChangeRequests; using ApiSdk.Groups.Item.Team.Schedule.OpenShifts; @@ -6,11 +8,13 @@ using ApiSdk.Groups.Item.Team.Schedule.Share; using ApiSdk.Groups.Item.Team.Schedule.Shifts; using ApiSdk.Groups.Item.Team.Schedule.SwapShiftsChangeRequests; +using ApiSdk.Groups.Item.Team.Schedule.TimeCards; using ApiSdk.Groups.Item.Team.Schedule.TimeOffReasons; using ApiSdk.Groups.Item.Team.Schedule.TimeOffRequests; using ApiSdk.Groups.Item.Team.Schedule.TimesOff; 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; @@ -29,8 +33,36 @@ namespace ApiSdk.Groups.Item.Team.Schedule /// /// Provides operations to manage the schedule property of the microsoft.graph.team entity. /// - public class ScheduleRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScheduleRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. + /// + /// A + public Command BuildDayNotesNavCommand() + { + var command = new Command("day-notes"); + command.Description = "Provides operations to manage the dayNotes property of the microsoft.graph.schedule entity."; + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.DayNotes.DayNotesRequestBuilder(PathParameters); + var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildCountNavCommand()); + execCommands.Add(builder.BuildCreateCommand()); + execCommands.Add(builder.BuildListCommand()); + var cmds = builder.BuildCommand(); + execCommands.AddRange(cmds.Item1); + nonExecCommands.AddRange(cmds.Item2); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal)) + { + command.AddCommand(cmd); + } + return command; + } /// /// Delete navigation property schedule for groups /// @@ -126,7 +158,7 @@ public Command BuildOfferShiftRequestsNavCommand() { var command = new Command("offer-shift-requests"); command.Description = "Provides operations to manage the offerShiftRequests property of the microsoft.graph.schedule entity."; - var builder = new OfferShiftRequestsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.OfferShiftRequests.OfferShiftRequestsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -153,7 +185,7 @@ public Command BuildOpenShiftChangeRequestsNavCommand() { var command = new Command("open-shift-change-requests"); command.Description = "Provides operations to manage the openShiftChangeRequests property of the microsoft.graph.schedule entity."; - var builder = new OpenShiftChangeRequestsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.OpenShiftChangeRequests.OpenShiftChangeRequestsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -180,7 +212,7 @@ public Command BuildOpenShiftsNavCommand() { var command = new Command("open-shifts"); command.Description = "Provides operations to manage the openShifts property of the microsoft.graph.schedule entity."; - var builder = new OpenShiftsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.OpenShifts.OpenShiftsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -229,8 +261,8 @@ public Command BuildPutCommand() 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.Schedule.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Schedule.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -258,7 +290,7 @@ public Command BuildSchedulingGroupsNavCommand() { var command = new Command("scheduling-groups"); command.Description = "Provides operations to manage the schedulingGroups property of the microsoft.graph.schedule entity."; - var builder = new SchedulingGroupsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.SchedulingGroups.SchedulingGroupsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -285,7 +317,7 @@ public Command BuildShareNavCommand() { var command = new Command("share"); command.Description = "Provides operations to call the share method."; - var builder = new ShareRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.Share.ShareRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -302,7 +334,7 @@ public Command BuildShiftsNavCommand() { var command = new Command("shifts"); command.Description = "Provides operations to manage the shifts property of the microsoft.graph.schedule entity."; - var builder = new ShiftsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.Shifts.ShiftsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -329,9 +361,37 @@ public Command BuildSwapShiftsChangeRequestsNavCommand() { var command = new Command("swap-shifts-change-requests"); command.Description = "Provides operations to manage the swapShiftsChangeRequests property of the microsoft.graph.schedule entity."; - var builder = new SwapShiftsChangeRequestsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.SwapShiftsChangeRequests.SwapShiftsChangeRequestsRequestBuilder(PathParameters); + var execCommands = new List(); + var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildCountNavCommand()); + execCommands.Add(builder.BuildCreateCommand()); + execCommands.Add(builder.BuildListCommand()); + var cmds = builder.BuildCommand(); + execCommands.AddRange(cmds.Item1); + nonExecCommands.AddRange(cmds.Item2); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal)) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the timeCards property of the microsoft.graph.schedule entity. + /// + /// A + public Command BuildTimeCardsNavCommand() + { + var command = new Command("time-cards"); + command.Description = "Provides operations to manage the timeCards property of the microsoft.graph.schedule entity."; + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.TimeCardsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildClockInNavCommand()); nonExecCommands.Add(builder.BuildCountNavCommand()); execCommands.Add(builder.BuildCreateCommand()); execCommands.Add(builder.BuildListCommand()); @@ -356,7 +416,7 @@ public Command BuildTimeOffReasonsNavCommand() { var command = new Command("time-off-reasons"); command.Description = "Provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity."; - var builder = new TimeOffReasonsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeOffReasons.TimeOffReasonsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -383,7 +443,7 @@ public Command BuildTimeOffRequestsNavCommand() { var command = new Command("time-off-requests"); command.Description = "Provides operations to manage the timeOffRequests property of the microsoft.graph.schedule entity."; - var builder = new TimeOffRequestsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeOffRequests.TimeOffRequestsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -410,7 +470,7 @@ public Command BuildTimesOffNavCommand() { var command = new Command("times-off"); command.Description = "Provides operations to manage the timesOff property of the microsoft.graph.schedule entity."; - var builder = new TimesOffRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimesOff.TimesOffRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -430,14 +490,14 @@ public Command BuildTimesOffNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public ScheduleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule{?%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 ScheduleRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule{?%24expand,%24select}", rawUrl) @@ -469,11 +529,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); @@ -489,11 +549,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 ToPutRequestInformation(ApiSdk.Models.Schedule body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.Schedule body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ApiSdk.Models.Schedule body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.Schedule body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -505,7 +565,8 @@ public RequestInformation ToPutRequestInformation(ApiSdk.Models.Schedule body, A /// /// The schedule of shifts for this team. /// - public class ScheduleRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScheduleRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -530,3 +591,4 @@ public class ScheduleRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs index 1aa8d60841..deb64ff999 100644 --- a/src/generated/Groups/Item/Team/Schedule/SchedulingGroups/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/SchedulingGroups/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.Groups.Item.Team.Schedule.SchedulingGroups.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}/groups/{group%2Did}/team/schedule/schedulingGroups/$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}/groups/{group%2Did}/team/schedule/schedulingGroups/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs index 4c837cb1da..16abd8760b 100644 --- a/src/generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/SchedulingGroups/Item/SchedulingGroupItemRequestBuilder.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.Groups.Item.Team.Schedule.SchedulingGroups.Item /// /// Provides operations to manage the schedulingGroups property of the microsoft.graph.schedule entity. /// - public class SchedulingGroupItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchedulingGroupItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property schedulingGroups for groups @@ -83,6 +86,11 @@ public Command BuildGetCommand() }; 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"); @@ -91,6 +99,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var schedulingGroupId = invocationContext.ParseResult.GetValueForOption(schedulingGroupIdOption); 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"); @@ -99,6 +108,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (schedulingGroupId is not null) requestInfo.PathParameters.Add("schedulingGroup%2Did", schedulingGroupId); @@ -148,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(SchedulingGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SchedulingGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,17 +181,17 @@ 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 SchedulingGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups/{schedulingGroup%2Did}{?%24select}", pathParameters) + public SchedulingGroupItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups/{schedulingGroup%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 SchedulingGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups/{schedulingGroup%2Did}{?%24select}", rawUrl) + public SchedulingGroupItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups/{schedulingGroup%2Did}{?%24expand,%24select}", rawUrl) { } /// @@ -210,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -230,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(SchedulingGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SchedulingGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SchedulingGroup body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SchedulingGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -246,8 +256,19 @@ public RequestInformation ToPatchRequestInformation(SchedulingGroup body, Action /// /// The logical grouping of users in the schedule (usually by role). /// - public class SchedulingGroupItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchedulingGroupItemRequestBuilderGetQueryParameters { + /// 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 @@ -261,3 +282,4 @@ public class SchedulingGroupItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs index f07ce5d0ed..81bd067c9b 100644 --- a/src/generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/SchedulingGroups/SchedulingGroupsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Schedule.SchedulingGroups.Count; using ApiSdk.Groups.Item.Team.Schedule.SchedulingGroups.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.Groups.Item.Team.Schedule.SchedulingGroups /// /// Provides operations to manage the schedulingGroups property of the microsoft.graph.schedule entity. /// - public class SchedulingGroupsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchedulingGroupsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the schedulingGroups property of the microsoft.graph.schedule entity. @@ -30,7 +33,7 @@ public class SchedulingGroupsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new SchedulingGroupItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.SchedulingGroups.Item.SchedulingGroupItemRequestBuilder(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.Groups.Item.Team.Schedule.SchedulingGroups.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(SchedulingGroup.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SchedulingGroup.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -146,6 +149,11 @@ public Command BuildListCommand() }; 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"); @@ -161,6 +169,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -177,6 +186,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -200,17 +210,17 @@ 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 SchedulingGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public SchedulingGroupsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups{?%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 SchedulingGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public SchedulingGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/schedulingGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -220,11 +230,11 @@ public SchedulingGroupsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{ /// 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); @@ -240,11 +250,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(SchedulingGroup body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SchedulingGroup body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SchedulingGroup body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SchedulingGroup body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,11 +266,22 @@ public RequestInformation ToPostRequestInformation(SchedulingGroup body, Action< /// /// The logical grouping of users in the schedule (usually by role). /// - public class SchedulingGroupsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SchedulingGroupsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -310,3 +331,4 @@ public class SchedulingGroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/Share/SharePostRequestBody.cs b/src/generated/Groups/Item/Team/Schedule/Share/SharePostRequestBody.cs index fa102d7090..81b360b8b1 100644 --- a/src/generated/Groups/Item/Team/Schedule/Share/SharePostRequestBody.cs +++ b/src/generated/Groups/Item/Team/Schedule/Share/SharePostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; namespace ApiSdk.Groups.Item.Team.Schedule.Share { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SharePostRequestBody : IAdditionalDataHolder, IParsable + public partial class SharePostRequestBody : 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. @@ -19,7 +21,7 @@ public class SharePostRequestBody : IAdditionalDataHolder, IParsable /// The startDateTime property public DateTimeOffset? StartDateTime { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SharePostRequestBody() { @@ -28,12 +30,12 @@ public SharePostRequestBody() /// /// 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 SharePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.Schedule.Share.SharePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SharePostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.Schedule.Share.SharePostRequestBody(); } /// /// The deserialization information for the current model @@ -62,3 +64,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.cs index 5e61652466..f0aa197c55 100644 --- a/src/generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/Share/ShareRequestBuilder.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.Groups.Item.Team.Schedule.Share /// /// Provides operations to call the share method. /// - public class ShareRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ShareRequestBuilder : BaseCliRequestBuilder { /// /// Share a schedule time range with schedule members. This action makes the collections of shift, openshift and timeOff items in the specified time range of the schedule viewable by the specified team members, including employees and managers. Each shift, openshift and timeOff instance in a schedule supports a draft version and a shared version of the item. The draft version is viewable by only managers, and the shared version is viewable by employees and managers. For each shift, openshift and timeOff instance in the specified time range, the share action updates the shared version from the draft version, so that in addition to managers, employees can also view the most current information about the item. The notifyTeam parameter further specifies which employees can view the item. @@ -43,8 +46,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(SharePostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.Schedule.Share.SharePostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 ShareRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/share", 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 ShareRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/share", rawUrl) @@ -84,11 +87,11 @@ public ShareRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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(SharePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Schedule.Share.SharePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SharePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Schedule.Share.SharePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(SharePostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/Shifts/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/Shifts/Count/CountRequestBuilder.cs index 14a1fbcb33..d235fb3a06 100644 --- a/src/generated/Groups/Item/Team/Schedule/Shifts/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/Shifts/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.Groups.Item.Team.Schedule.Shifts.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}/groups/{group%2Did}/team/schedule/shifts/$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}/groups/{group%2Did}/team/schedule/shifts/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs index 2c4217d908..b4e9640793 100644 --- a/src/generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.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.Groups.Item.Team.Schedule.Shifts.Item /// /// Provides operations to manage the shifts property of the microsoft.graph.schedule entity. /// - public class ShiftItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ShiftItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property shifts for groups @@ -83,6 +86,11 @@ public Command BuildGetCommand() }; 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"); @@ -91,6 +99,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var shiftId = invocationContext.ParseResult.GetValueForOption(shiftIdOption); 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"); @@ -99,6 +108,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (shiftId is not null) requestInfo.PathParameters.Add("shift%2Did", shiftId); @@ -148,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(Shift.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Shift.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,17 +181,17 @@ 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 ShiftItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/shifts/{shift%2Did}{?%24select}", pathParameters) + public ShiftItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/shifts/{shift%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 ShiftItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/shifts/{shift%2Did}{?%24select}", rawUrl) + public ShiftItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/shifts/{shift%2Did}{?%24expand,%24select}", rawUrl) { } /// @@ -210,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -230,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Shift body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Shift body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Shift body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Shift body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -246,8 +256,19 @@ public RequestInformation ToPatchRequestInformation(Shift body, Action /// The shifts in the schedule. /// - public class ShiftItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ShiftItemRequestBuilderGetQueryParameters { + /// 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 @@ -261,3 +282,4 @@ public class ShiftItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs index 14f8a848bc..8d966f1e0b 100644 --- a/src/generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/Shifts/ShiftsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Schedule.Shifts.Count; using ApiSdk.Groups.Item.Team.Schedule.Shifts.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.Groups.Item.Team.Schedule.Shifts /// /// Provides operations to manage the shifts property of the microsoft.graph.schedule entity. /// - public class ShiftsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ShiftsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the shifts property of the microsoft.graph.schedule entity. @@ -30,7 +33,7 @@ public class ShiftsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ShiftItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.Shifts.Item.ShiftItemRequestBuilder(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.Groups.Item.Team.Schedule.Shifts.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(Shift.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Shift.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -146,6 +149,11 @@ public Command BuildListCommand() }; 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"); @@ -161,6 +169,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -177,6 +186,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -200,17 +210,17 @@ 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 ShiftsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/shifts{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public ShiftsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/shifts{?%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 ShiftsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/shifts{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public ShiftsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/shifts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -220,11 +230,11 @@ public ShiftsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did /// 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); @@ -240,11 +250,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(Shift body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Shift body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Shift body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Shift body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,11 +266,22 @@ public RequestInformation ToPostRequestInformation(Shift body, Action /// The shifts in the schedule. /// - public class ShiftsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ShiftsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -310,3 +331,4 @@ public class ShiftsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs index 12ffb029b3..e877836eff 100644 --- a/src/generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/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.Groups.Item.Team.Schedule.SwapShiftsChangeRequests.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}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests/$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}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs index 60322fd9f6..92d0dde27b 100644 --- a/src/generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/Item/SwapShiftsChangeRequestItemRequestBuilder.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.Groups.Item.Team.Schedule.SwapShiftsChangeRequests.Item /// /// Provides operations to manage the swapShiftsChangeRequests property of the microsoft.graph.schedule entity. /// - public class SwapShiftsChangeRequestItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SwapShiftsChangeRequestItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property swapShiftsChangeRequests for groups @@ -155,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(SwapShiftsChangeRequest.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SwapShiftsChangeRequest.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -178,14 +181,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public SwapShiftsChangeRequestItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests/{swapShiftsChangeRequest%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 SwapShiftsChangeRequestItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests/{swapShiftsChangeRequest%2Did}{?%24expand,%24select}", rawUrl) @@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(SwapShiftsChangeRequest body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SwapShiftsChangeRequest body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(SwapShiftsChangeRequest body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.SwapShiftsChangeRequest body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(SwapShiftsChangeRequest body /// /// The swap requests for shifts in the schedule. /// - public class SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,3 +282,4 @@ public class SwapShiftsChangeRequestItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs index 17570decae..9af8101fcb 100644 --- a/src/generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/SwapShiftsChangeRequests/SwapShiftsChangeRequestsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Schedule.SwapShiftsChangeRequests.Count; using ApiSdk.Groups.Item.Team.Schedule.SwapShiftsChangeRequests.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.Groups.Item.Team.Schedule.SwapShiftsChangeRequests /// /// Provides operations to manage the swapShiftsChangeRequests property of the microsoft.graph.schedule entity. /// - public class SwapShiftsChangeRequestsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SwapShiftsChangeRequestsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the swapShiftsChangeRequests property of the microsoft.graph.schedule entity. @@ -30,7 +33,7 @@ public class SwapShiftsChangeRequestsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new SwapShiftsChangeRequestItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.SwapShiftsChangeRequests.Item.SwapShiftsChangeRequestItemRequestBuilder(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.Groups.Item.Team.Schedule.SwapShiftsChangeRequests.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(SwapShiftsChangeRequest.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.SwapShiftsChangeRequest.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -207,14 +210,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 SwapShiftsChangeRequestsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests{?%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 SwapShiftsChangeRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/swapShiftsChangeRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -227,11 +230,11 @@ public SwapShiftsChangeRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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); @@ -247,11 +250,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(SwapShiftsChangeRequest body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SwapShiftsChangeRequest body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SwapShiftsChangeRequest body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.SwapShiftsChangeRequest body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -263,7 +266,8 @@ public RequestInformation ToPostRequestInformation(SwapShiftsChangeRequest body, /// /// The swap requests for shifts in the schedule. /// - public class SwapShiftsChangeRequestsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SwapShiftsChangeRequestsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -327,3 +331,4 @@ public class SwapShiftsChangeRequestsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeCards/ClockIn/ClockInPostRequestBody.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/ClockIn/ClockInPostRequestBody.cs new file mode 100644 index 0000000000..a37d9958c6 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/ClockIn/ClockInPostRequestBody.cs @@ -0,0 +1,70 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Schedule.TimeCards.ClockIn +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClockInPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The isAtApprovedLocation property + public bool? IsAtApprovedLocation { get; set; } + /// The notes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::ApiSdk.Models.ItemBody? Notes { get; set; } +#nullable restore +#else + public global::ApiSdk.Models.ItemBody Notes { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClockInPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.ClockIn.ClockInPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.ClockIn.ClockInPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "isAtApprovedLocation", n => { IsAtApprovedLocation = n.GetBoolValue(); } }, + { "notes", n => { Notes = n.GetObjectValue(global::ApiSdk.Models.ItemBody.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("isAtApprovedLocation", IsAtApprovedLocation); + writer.WriteObjectValue("notes", Notes); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeCards/ClockIn/ClockInRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/ClockIn/ClockInRequestBuilder.cs new file mode 100644 index 0000000000..3eed5f4a32 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/ClockIn/ClockInRequestBuilder.cs @@ -0,0 +1,116 @@ +// +#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.Groups.Item.Team.Schedule.TimeCards.ClockIn +{ + /// + /// Provides operations to call the clockIn method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClockInRequestBuilder : BaseCliRequestBuilder + { + /// + /// Clock in to start a timeCard. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Clock in to start a timeCard.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/timecard-clockin?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + 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.Groups.Item.Team.Schedule.TimeCards.ClockIn.ClockInPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + 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 ClockInRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/clockIn", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClockInRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/clockIn", rawUrl) + { + } + /// + /// Clock in to start a timeCard. + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.ClockIn.ClockInPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.ClockIn.ClockInPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeCards/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/Count/CountRequestBuilder.cs new file mode 100644 index 0000000000..c2675516f6 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/Count/CountRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#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; +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.Groups.Item.Team.Schedule.TimeCards.Count +{ + /// + /// Provides operations to count the resources in the collection. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder + { + /// + /// Get the number of the resource + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "Get the number of the resource"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + var formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// 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", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Get the number of the resource + /// + [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 +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/ClockOut/ClockOutPostRequestBody.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/ClockOut/ClockOutPostRequestBody.cs new file mode 100644 index 0000000000..6d7a0d65f1 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/ClockOut/ClockOutPostRequestBody.cs @@ -0,0 +1,70 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.ClockOut +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ClockOutPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The isAtApprovedLocation property + public bool? IsAtApprovedLocation { get; set; } + /// The notes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::ApiSdk.Models.ItemBody? Notes { get; set; } +#nullable restore +#else + public global::ApiSdk.Models.ItemBody Notes { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClockOutPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.ClockOut.ClockOutPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.ClockOut.ClockOutPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "isAtApprovedLocation", n => { IsAtApprovedLocation = n.GetBoolValue(); } }, + { "notes", n => { Notes = n.GetObjectValue(global::ApiSdk.Models.ItemBody.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("isAtApprovedLocation", IsAtApprovedLocation); + writer.WriteObjectValue("notes", Notes); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/ClockOut/ClockOutRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/ClockOut/ClockOutRequestBuilder.cs new file mode 100644 index 0000000000..4620daf863 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/ClockOut/ClockOutRequestBuilder.cs @@ -0,0 +1,121 @@ +// +#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.Groups.Item.Team.Schedule.TimeCards.Item.ClockOut +{ + /// + /// Provides operations to call the clockOut method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClockOutRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action clockOut + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action clockOut"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var timeCardIdOption = new Option("--time-card-id", description: "The unique identifier of timeCard") { + }; + timeCardIdOption.IsRequired = true; + command.AddOption(timeCardIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var timeCardId = invocationContext.ParseResult.GetValueForOption(timeCardIdOption); + 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.Groups.Item.Team.Schedule.TimeCards.Item.ClockOut.ClockOutPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (timeCardId is not null) requestInfo.PathParameters.Add("timeCard%2Did", timeCardId); + 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 ClockOutRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/clockOut", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ClockOutRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/clockOut", rawUrl) + { + } + /// + /// Invoke action clockOut + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.ClockOut.ClockOutPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.ClockOut.ClockOutPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/Confirm/ConfirmRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/Confirm/ConfirmRequestBuilder.cs new file mode 100644 index 0000000000..7ce858fa49 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/Confirm/ConfirmRequestBuilder.cs @@ -0,0 +1,107 @@ +// +#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.Groups.Item.Team.Schedule.TimeCards.Item.Confirm +{ + /// + /// Provides operations to call the confirm method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConfirmRequestBuilder : BaseCliRequestBuilder + { + /// + /// Confirm a timeCard. + /// Find more info here + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Confirm a timeCard.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/timecard-confirm?view=graph-rest-1.0"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var timeCardIdOption = new Option("--time-card-id", description: "The unique identifier of timeCard") { + }; + timeCardIdOption.IsRequired = true; + command.AddOption(timeCardIdOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var timeCardId = invocationContext.ParseResult.GetValueForOption(timeCardIdOption); + 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 = ToPostRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (timeCardId is not null) requestInfo.PathParameters.Add("timeCard%2Did", timeCardId); + 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 ConfirmRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/confirm", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public ConfirmRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/confirm", rawUrl) + { + } + /// + /// Confirm a timeCard. + /// + /// 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 ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/EndBreak/EndBreakPostRequestBody.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/EndBreak/EndBreakPostRequestBody.cs new file mode 100644 index 0000000000..54a4d37f98 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/EndBreak/EndBreakPostRequestBody.cs @@ -0,0 +1,70 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.EndBreak +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class EndBreakPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The isAtApprovedLocation property + public bool? IsAtApprovedLocation { get; set; } + /// The notes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::ApiSdk.Models.ItemBody? Notes { get; set; } +#nullable restore +#else + public global::ApiSdk.Models.ItemBody Notes { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public EndBreakPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.EndBreak.EndBreakPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.EndBreak.EndBreakPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "isAtApprovedLocation", n => { IsAtApprovedLocation = n.GetBoolValue(); } }, + { "notes", n => { Notes = n.GetObjectValue(global::ApiSdk.Models.ItemBody.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("isAtApprovedLocation", IsAtApprovedLocation); + writer.WriteObjectValue("notes", Notes); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/EndBreak/EndBreakRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/EndBreak/EndBreakRequestBuilder.cs new file mode 100644 index 0000000000..622453c249 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/EndBreak/EndBreakRequestBuilder.cs @@ -0,0 +1,121 @@ +// +#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.Groups.Item.Team.Schedule.TimeCards.Item.EndBreak +{ + /// + /// Provides operations to call the endBreak method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EndBreakRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action endBreak + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action endBreak"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var timeCardIdOption = new Option("--time-card-id", description: "The unique identifier of timeCard") { + }; + timeCardIdOption.IsRequired = true; + command.AddOption(timeCardIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var timeCardId = invocationContext.ParseResult.GetValueForOption(timeCardIdOption); + 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.Groups.Item.Team.Schedule.TimeCards.Item.EndBreak.EndBreakPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (timeCardId is not null) requestInfo.PathParameters.Add("timeCard%2Did", timeCardId); + 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 EndBreakRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/endBreak", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public EndBreakRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/endBreak", rawUrl) + { + } + /// + /// Invoke action endBreak + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.EndBreak.EndBreakPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.EndBreak.EndBreakPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/StartBreak/StartBreakPostRequestBody.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/StartBreak/StartBreakPostRequestBody.cs new file mode 100644 index 0000000000..d0c03c7a7f --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/StartBreak/StartBreakPostRequestBody.cs @@ -0,0 +1,70 @@ +// +#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; +namespace ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.StartBreak +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class StartBreakPostRequestBody : 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. + public IDictionary AdditionalData { get; set; } + /// The isAtApprovedLocation property + public bool? IsAtApprovedLocation { get; set; } + /// The notes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::ApiSdk.Models.ItemBody? Notes { get; set; } +#nullable restore +#else + public global::ApiSdk.Models.ItemBody Notes { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public StartBreakPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.StartBreak.StartBreakPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.StartBreak.StartBreakPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "isAtApprovedLocation", n => { IsAtApprovedLocation = n.GetBoolValue(); } }, + { "notes", n => { Notes = n.GetObjectValue(global::ApiSdk.Models.ItemBody.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("isAtApprovedLocation", IsAtApprovedLocation); + writer.WriteObjectValue("notes", Notes); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/StartBreak/StartBreakRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/StartBreak/StartBreakRequestBuilder.cs new file mode 100644 index 0000000000..a912fa4132 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/StartBreak/StartBreakRequestBuilder.cs @@ -0,0 +1,121 @@ +// +#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.Groups.Item.Team.Schedule.TimeCards.Item.StartBreak +{ + /// + /// Provides operations to call the startBreak method. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StartBreakRequestBuilder : BaseCliRequestBuilder + { + /// + /// Invoke action startBreak + /// + /// A + public Command BuildPostCommand() + { + var command = new Command("post"); + command.Description = "Invoke action startBreak"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var timeCardIdOption = new Option("--time-card-id", description: "The unique identifier of timeCard") { + }; + timeCardIdOption.IsRequired = true; + command.AddOption(timeCardIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var timeCardId = invocationContext.ParseResult.GetValueForOption(timeCardIdOption); + 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.Groups.Item.Team.Schedule.TimeCards.Item.StartBreak.StartBreakPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (timeCardId is not null) requestInfo.PathParameters.Add("timeCard%2Did", timeCardId); + 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 StartBreakRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/startBreak", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public StartBreakRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/startBreak", rawUrl) + { + } + /// + /// Invoke action startBreak + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.StartBreak.StartBreakPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.StartBreak.StartBreakPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/TimeCardItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/TimeCardItemRequestBuilder.cs new file mode 100644 index 0000000000..6845ad638f --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/Item/TimeCardItemRequestBuilder.cs @@ -0,0 +1,357 @@ +// +#pragma warning disable CS0618 +using ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.ClockOut; +using ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.Confirm; +using ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.EndBreak; +using ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.StartBreak; +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.Groups.Item.Team.Schedule.TimeCards.Item +{ + /// + /// Provides operations to manage the timeCards property of the microsoft.graph.schedule entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeCardItemRequestBuilder : BaseCliRequestBuilder + { + /// + /// Provides operations to call the clockOut method. + /// + /// A + public Command BuildClockOutNavCommand() + { + var command = new Command("clock-out"); + command.Description = "Provides operations to call the clockOut method."; + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.ClockOut.ClockOutRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to call the confirm method. + /// + /// A + public Command BuildConfirmNavCommand() + { + var command = new Command("confirm"); + command.Description = "Provides operations to call the confirm method."; + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.Confirm.ConfirmRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Delete navigation property timeCards for groups + /// + /// A + public Command BuildDeleteCommand() + { + var command = new Command("delete"); + command.Description = "Delete navigation property timeCards for groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var timeCardIdOption = new Option("--time-card-id", description: "The unique identifier of timeCard") { + }; + timeCardIdOption.IsRequired = true; + command.AddOption(timeCardIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var timeCardId = invocationContext.ParseResult.GetValueForOption(timeCardIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (timeCardId is not null) requestInfo.PathParameters.Add("timeCard%2Did", timeCardId); + 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; + } + /// + /// Provides operations to call the endBreak method. + /// + /// A + public Command BuildEndBreakNavCommand() + { + var command = new Command("end-break"); + command.Description = "Provides operations to call the endBreak method."; + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.EndBreak.EndBreakRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// The time cards in the schedule. + /// + /// A + public Command BuildGetCommand() + { + var command = new Command("get"); + command.Description = "The time cards in the schedule."; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var timeCardIdOption = new Option("--time-card-id", description: "The unique identifier of timeCard") { + }; + timeCardIdOption.IsRequired = true; + command.AddOption(timeCardIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var timeCardId = invocationContext.ParseResult.GetValueForOption(timeCardIdOption); + 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; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (timeCardId is not null) requestInfo.PathParameters.Add("timeCard%2Did", timeCardId); + 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 the navigation property timeCards in groups + /// + /// A + public Command BuildPatchCommand() + { + var command = new Command("patch"); + command.Description = "Update the navigation property timeCards in groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var timeCardIdOption = new Option("--time-card-id", description: "The unique identifier of timeCard") { + }; + timeCardIdOption.IsRequired = true; + command.AddOption(timeCardIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var timeCardId = invocationContext.ParseResult.GetValueForOption(timeCardIdOption); + 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.TimeCard.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (timeCardId is not null) requestInfo.PathParameters.Add("timeCard%2Did", timeCardId); + 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; + } + /// + /// Provides operations to call the startBreak method. + /// + /// A + public Command BuildStartBreakNavCommand() + { + var command = new Command("start-break"); + command.Description = "Provides operations to call the startBreak method."; + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.StartBreak.StartBreakRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public TimeCardItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public TimeCardItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property timeCards for groups + /// + /// 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; + } + /// + /// The time cards in the schedule. + /// + /// 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 the navigation property timeCards in groups + /// + /// 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.TimeCard body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TimeCard 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; + } + /// + /// The time cards in the schedule. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeCardItemRequestBuilderGetQueryParameters + { + /// 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/Groups/Item/Team/Schedule/TimeCards/TimeCardsRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeCards/TimeCardsRequestBuilder.cs new file mode 100644 index 0000000000..b48082e8b7 --- /dev/null +++ b/src/generated/Groups/Item/Team/Schedule/TimeCards/TimeCardsRequestBuilder.cs @@ -0,0 +1,357 @@ +// +#pragma warning disable CS0618 +using ApiSdk.Groups.Item.Team.Schedule.TimeCards.ClockIn; +using ApiSdk.Groups.Item.Team.Schedule.TimeCards.Count; +using ApiSdk.Groups.Item.Team.Schedule.TimeCards.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; +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.Groups.Item.Team.Schedule.TimeCards +{ + /// + /// Provides operations to manage the timeCards property of the microsoft.graph.schedule entity. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeCardsRequestBuilder : BaseCliRequestBuilder + { + /// + /// Provides operations to call the clockIn method. + /// + /// A + public Command BuildClockInNavCommand() + { + var command = new Command("clock-in"); + command.Description = "Provides operations to call the clockIn method."; + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.ClockIn.ClockInRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Provides operations to manage the timeCards property of the microsoft.graph.schedule entity. + /// + /// A Tuple<List<Command>, List<Command>> + public Tuple, List> BuildCommand() + { + var executables = new List(); + var commands = new List(); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Item.TimeCardItemRequestBuilder(PathParameters); + commands.Add(builder.BuildClockOutNavCommand()); + commands.Add(builder.BuildConfirmNavCommand()); + executables.Add(builder.BuildDeleteCommand()); + commands.Add(builder.BuildEndBreakNavCommand()); + executables.Add(builder.BuildGetCommand()); + executables.Add(builder.BuildPatchCommand()); + commands.Add(builder.BuildStartBreakNavCommand()); + return new(executables, commands); + } + /// + /// Provides operations to count the resources in the collection. + /// + /// A + public Command BuildCountNavCommand() + { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeCards.Count.CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Create new navigation property to timeCards for groups + /// + /// A + public Command BuildCreateCommand() + { + var command = new Command("create"); + command.Description = "Create new navigation property to timeCards for groups"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + 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 groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + 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.TimeCard.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + 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; + } + /// + /// The time cards in the schedule. + /// + /// A + public Command BuildListCommand() + { + var command = new Command("list"); + command.Description = "The time cards in the schedule."; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var topOption = new Option("--top", description: "Show only the first n items") { + }; + topOption.IsRequired = false; + command.AddOption(topOption); + var skipOption = new Option("--skip", description: "Skip the first n items") { + }; + skipOption.IsRequired = false; + command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); + var filterOption = new Option("--filter", description: "Filter items by property values") { + }; + filterOption.IsRequired = false; + command.AddOption(filterOption); + var countOption = new Option("--count", description: "Include count of items") { + }; + countOption.IsRequired = false; + command.AddOption(countOption); + var orderbyOption = new Option("--orderby", description: "Order items by property values") { + Arity = ArgumentArity.ZeroOrMore + }; + orderbyOption.IsRequired = false; + command.AddOption(orderbyOption); + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var allOption = new Option("--all"); + command.AddOption(allOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var top = invocationContext.ParseResult.GetValueForOption(topOption); + var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); + var filter = invocationContext.ParseResult.GetValueForOption(filterOption); + var count = invocationContext.ParseResult.GetValueForOption(countOption); + var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var all = invocationContext.ParseResult.GetValueForOption(allOption); + 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"); + IPagingService pagingService = invocationContext.BindingContext.GetService(typeof(IPagingService)) as IPagingService ?? throw new ArgumentNullException("pagingService"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Top = top; + q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; + if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; + q.QueryParameters.Count = count; + q.QueryParameters.Orderby = orderby; + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink"); + var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken); + var response = pageResponse?.Response; +#nullable enable + IOutputFormatter? formatter = null; +#nullable restore + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + public TimeCardsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + public TimeCardsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeCards{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The time cards in the schedule. + /// + /// 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; + } + /// + /// Create new navigation property to timeCards for groups + /// + /// 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 ToPostRequestInformation(global::ApiSdk.Models.TimeCard body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TimeCard body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The time cards in the schedule. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeCardsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// 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 + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { 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 + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs index 6903f2036b..e2d2655cad 100644 --- a/src/generated/Groups/Item/Team/Schedule/TimeOffReasons/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/TimeOffReasons/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.Groups.Item.Team.Schedule.TimeOffReasons.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}/groups/{group%2Did}/team/schedule/timeOffReasons/$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}/groups/{group%2Did}/team/schedule/timeOffReasons/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs index d39d0098e7..f4fddaa101 100644 --- a/src/generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/TimeOffReasons/Item/TimeOffReasonItemRequestBuilder.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.Groups.Item.Team.Schedule.TimeOffReasons.Item /// /// Provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity. /// - public class TimeOffReasonItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeOffReasonItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property timeOffReasons for groups @@ -83,6 +86,11 @@ public Command BuildGetCommand() }; 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"); @@ -91,6 +99,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var timeOffReasonId = invocationContext.ParseResult.GetValueForOption(timeOffReasonIdOption); 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"); @@ -99,6 +108,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (timeOffReasonId is not null) requestInfo.PathParameters.Add("timeOffReason%2Did", timeOffReasonId); @@ -148,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TimeOffReason.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TimeOffReason.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,17 +181,17 @@ 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 TimeOffReasonItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons/{timeOffReason%2Did}{?%24select}", pathParameters) + public TimeOffReasonItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons/{timeOffReason%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 TimeOffReasonItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons/{timeOffReason%2Did}{?%24select}", rawUrl) + public TimeOffReasonItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons/{timeOffReason%2Did}{?%24expand,%24select}", rawUrl) { } /// @@ -210,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -230,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TimeOffReason body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TimeOffReason body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TimeOffReason body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TimeOffReason body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -246,8 +256,19 @@ public RequestInformation ToPatchRequestInformation(TimeOffReason body, Action /// The set of reasons for a time off in the schedule. /// - public class TimeOffReasonItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeOffReasonItemRequestBuilderGetQueryParameters { + /// 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 @@ -261,3 +282,4 @@ public class TimeOffReasonItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs index 36d98cd3d1..28f546780d 100644 --- a/src/generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/TimeOffReasons/TimeOffReasonsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Schedule.TimeOffReasons.Count; using ApiSdk.Groups.Item.Team.Schedule.TimeOffReasons.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.Groups.Item.Team.Schedule.TimeOffReasons /// /// Provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity. /// - public class TimeOffReasonsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeOffReasonsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity. @@ -30,7 +33,7 @@ public class TimeOffReasonsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TimeOffReasonItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeOffReasons.Item.TimeOffReasonItemRequestBuilder(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.Groups.Item.Team.Schedule.TimeOffReasons.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(TimeOffReason.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TimeOffReason.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -146,6 +149,11 @@ public Command BuildListCommand() }; 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"); @@ -161,6 +169,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -177,6 +186,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -200,17 +210,17 @@ 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 TimeOffReasonsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public TimeOffReasonsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons{?%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 TimeOffReasonsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public TimeOffReasonsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffReasons{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -220,11 +230,11 @@ public TimeOffReasonsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{gr /// 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); @@ -240,11 +250,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(TimeOffReason body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TimeOffReason body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TimeOffReason body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TimeOffReason body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,11 +266,22 @@ public RequestInformation ToPostRequestInformation(TimeOffReason body, Action /// The set of reasons for a time off in the schedule. /// - public class TimeOffReasonsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeOffReasonsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -310,3 +331,4 @@ public class TimeOffReasonsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs index bb7ab8403a..dddb7f0363 100644 --- a/src/generated/Groups/Item/Team/Schedule/TimeOffRequests/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/TimeOffRequests/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.Groups.Item.Team.Schedule.TimeOffRequests.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}/groups/{group%2Did}/team/schedule/timeOffRequests/$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}/groups/{group%2Did}/team/schedule/timeOffRequests/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs index ebc99b5fd0..47fa14f903 100644 --- a/src/generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/TimeOffRequests/Item/TimeOffRequestItemRequestBuilder.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.Groups.Item.Team.Schedule.TimeOffRequests.Item /// /// Provides operations to manage the timeOffRequests property of the microsoft.graph.schedule entity. /// - public class TimeOffRequestItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeOffRequestItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property timeOffRequests for groups @@ -83,6 +86,11 @@ public Command BuildGetCommand() }; 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"); @@ -91,6 +99,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var timeOffRequestId = invocationContext.ParseResult.GetValueForOption(timeOffRequestIdOption); 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"); @@ -99,6 +108,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (timeOffRequestId is not null) requestInfo.PathParameters.Add("timeOffRequest%2Did", timeOffRequestId); @@ -148,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TimeOffRequest.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TimeOffRequest.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,17 +181,17 @@ 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 TimeOffRequestItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests/{timeOffRequest%2Did}{?%24select}", pathParameters) + public TimeOffRequestItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests/{timeOffRequest%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 TimeOffRequestItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests/{timeOffRequest%2Did}{?%24select}", rawUrl) + public TimeOffRequestItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests/{timeOffRequest%2Did}{?%24expand,%24select}", rawUrl) { } /// @@ -210,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -230,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TimeOffRequest body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TimeOffRequest body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TimeOffRequest body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TimeOffRequest body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -246,8 +256,19 @@ public RequestInformation ToPatchRequestInformation(TimeOffRequest body, Action< /// /// The time off requests in the schedule. /// - public class TimeOffRequestItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeOffRequestItemRequestBuilderGetQueryParameters { + /// 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 @@ -261,3 +282,4 @@ public class TimeOffRequestItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs index c1a2c217a3..beda347771 100644 --- a/src/generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/TimeOffRequests/TimeOffRequestsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Schedule.TimeOffRequests.Count; using ApiSdk.Groups.Item.Team.Schedule.TimeOffRequests.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.Groups.Item.Team.Schedule.TimeOffRequests /// /// Provides operations to manage the timeOffRequests property of the microsoft.graph.schedule entity. /// - public class TimeOffRequestsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeOffRequestsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the timeOffRequests property of the microsoft.graph.schedule entity. @@ -30,7 +33,7 @@ public class TimeOffRequestsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TimeOffRequestItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimeOffRequests.Item.TimeOffRequestItemRequestBuilder(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.Groups.Item.Team.Schedule.TimeOffRequests.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(TimeOffRequest.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TimeOffRequest.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -146,6 +149,11 @@ public Command BuildListCommand() }; 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"); @@ -161,6 +169,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -177,6 +186,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -200,17 +210,17 @@ 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 TimeOffRequestsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public TimeOffRequestsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests{?%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 TimeOffRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public TimeOffRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timeOffRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -220,11 +230,11 @@ public TimeOffRequestsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{g /// 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); @@ -240,11 +250,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(TimeOffRequest body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TimeOffRequest body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TimeOffRequest body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TimeOffRequest body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,11 +266,22 @@ public RequestInformation ToPostRequestInformation(TimeOffRequest body, Action /// The time off requests in the schedule. /// - public class TimeOffRequestsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeOffRequestsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -310,3 +331,4 @@ public class TimeOffRequestsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimesOff/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimesOff/Count/CountRequestBuilder.cs index cd04a1d136..a578ed3261 100644 --- a/src/generated/Groups/Item/Team/Schedule/TimesOff/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/TimesOff/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.Groups.Item.Team.Schedule.TimesOff.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}/groups/{group%2Did}/team/schedule/timesOff/$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}/groups/{group%2Did}/team/schedule/timesOff/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs index 0a8e22bb77..3edc179cf7 100644 --- a/src/generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/TimesOff/Item/TimeOffItemRequestBuilder.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.Groups.Item.Team.Schedule.TimesOff.Item /// /// Provides operations to manage the timesOff property of the microsoft.graph.schedule entity. /// - public class TimeOffItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeOffItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property timesOff for groups @@ -83,6 +86,11 @@ public Command BuildGetCommand() }; 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"); @@ -91,6 +99,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var timeOffId = invocationContext.ParseResult.GetValueForOption(timeOffIdOption); 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"); @@ -99,6 +108,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (timeOffId is not null) requestInfo.PathParameters.Add("timeOff%2Did", timeOffId); @@ -148,8 +158,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TimeOff.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TimeOff.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -171,17 +181,17 @@ 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 TimeOffItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timesOff/{timeOff%2Did}{?%24select}", pathParameters) + public TimeOffItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timesOff/{timeOff%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 TimeOffItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timesOff/{timeOff%2Did}{?%24select}", rawUrl) + public TimeOffItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timesOff/{timeOff%2Did}{?%24expand,%24select}", rawUrl) { } /// @@ -210,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -230,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TimeOff body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TimeOff body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TimeOff body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TimeOff body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -246,8 +256,19 @@ public RequestInformation ToPatchRequestInformation(TimeOff body, Action /// The instances of times off in the schedule. /// - public class TimeOffItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimeOffItemRequestBuilderGetQueryParameters { + /// 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 @@ -261,3 +282,4 @@ public class TimeOffItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs b/src/generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs index a596af3c27..21aa0318a5 100644 --- a/src/generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/TimesOff/TimesOffRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Schedule.TimesOff.Count; using ApiSdk.Groups.Item.Team.Schedule.TimesOff.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.Groups.Item.Team.Schedule.TimesOff /// /// Provides operations to manage the timesOff property of the microsoft.graph.schedule entity. /// - public class TimesOffRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimesOffRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the timesOff property of the microsoft.graph.schedule entity. @@ -30,7 +33,7 @@ public class TimesOffRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TimeOffItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.TimesOff.Item.TimeOffItemRequestBuilder(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.Groups.Item.Team.Schedule.TimesOff.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(TimeOff.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TimeOff.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -146,6 +149,11 @@ public Command BuildListCommand() }; 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"); @@ -161,6 +169,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -177,6 +186,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -200,17 +210,17 @@ 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 TimesOffRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timesOff{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public TimesOffRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timesOff{?%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 TimesOffRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timesOff{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public TimesOffRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/schedule/timesOff{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -220,11 +230,11 @@ public TimesOffRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -240,11 +250,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(TimeOff body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TimeOff body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TimeOff body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TimeOff body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -256,11 +266,22 @@ public RequestInformation ToPostRequestInformation(TimeOff body, Action /// The instances of times off in the schedule. /// - public class TimesOffRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TimesOffRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -310,3 +331,4 @@ public class TimesOffRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index 019631f00b..a761ace204 100644 --- a/src/generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.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.Groups.Item.Team.SendActivityNotification { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SendActivityNotificationPostRequestBody : IAdditionalDataHolder, IParsable + public partial class SendActivityNotificationPostRequestBody : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The activityType property @@ -26,18 +28,18 @@ public class SendActivityNotificationPostRequestBody : IAdditionalDataHolder, IP /// The previewText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ItemBody? PreviewText { get; set; } + public global::ApiSdk.Models.ItemBody? PreviewText { get; set; } #nullable restore #else - public ItemBody PreviewText { get; set; } + public global::ApiSdk.Models.ItemBody PreviewText { get; set; } #endif /// The recipient property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamworkNotificationRecipient? Recipient { get; set; } + public global::ApiSdk.Models.TeamworkNotificationRecipient? Recipient { get; set; } #nullable restore #else - public TeamworkNotificationRecipient Recipient { get; set; } + public global::ApiSdk.Models.TeamworkNotificationRecipient Recipient { get; set; } #endif /// The teamsAppId property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -50,21 +52,21 @@ public class SendActivityNotificationPostRequestBody : IAdditionalDataHolder, IP /// The templateParameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? TemplateParameters { get; set; } + public List? TemplateParameters { get; set; } #nullable restore #else - public List TemplateParameters { get; set; } + public List TemplateParameters { get; set; } #endif /// The topic property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public TeamworkActivityTopic? Topic { get; set; } + public global::ApiSdk.Models.TeamworkActivityTopic? Topic { get; set; } #nullable restore #else - public TeamworkActivityTopic Topic { get; set; } + public global::ApiSdk.Models.TeamworkActivityTopic Topic { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SendActivityNotificationPostRequestBody() { @@ -73,12 +75,12 @@ public SendActivityNotificationPostRequestBody() /// /// 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 SendActivityNotificationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Team.SendActivityNotification.SendActivityNotificationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SendActivityNotificationPostRequestBody(); + return new global::ApiSdk.Groups.Item.Team.SendActivityNotification.SendActivityNotificationPostRequestBody(); } /// /// The deserialization information for the current model @@ -90,11 +92,11 @@ public virtual IDictionary> GetFieldDeserializers() { { "activityType", n => { ActivityType = n.GetStringValue(); } }, { "chainId", n => { ChainId = n.GetLongValue(); } }, - { "previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, - { "recipient", n => { Recipient = n.GetObjectValue(TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } }, + { "previewText", n => { PreviewText = n.GetObjectValue(global::ApiSdk.Models.ItemBody.CreateFromDiscriminatorValue); } }, + { "recipient", n => { Recipient = n.GetObjectValue(global::ApiSdk.Models.TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } }, { "teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, - { "templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(ApiSdk.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, - { "topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, + { "templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(global::ApiSdk.Models.KeyValuePair.CreateFromDiscriminatorValue)?.AsList(); } }, + { "topic", n => { Topic = n.GetObjectValue(global::ApiSdk.Models.TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, }; } /// @@ -106,12 +108,13 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); - writer.WriteObjectValue("previewText", PreviewText); - writer.WriteObjectValue("recipient", Recipient); + writer.WriteObjectValue("previewText", PreviewText); + writer.WriteObjectValue("recipient", Recipient); writer.WriteStringValue("teamsAppId", TeamsAppId); - writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); - writer.WriteObjectValue("topic", Topic); + writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); + writer.WriteObjectValue("topic", Topic); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 89ea11e474..3c9ed12160 100644 --- a/src/generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.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.Groups.Item.Team.SendActivityNotification /// /// Provides operations to call the sendActivityNotification method. /// - public class SendActivityNotificationRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SendActivityNotificationRequestBuilder : BaseCliRequestBuilder { /// /// Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, seesending Teams activity notifications. @@ -43,8 +46,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(SendActivityNotificationPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Team.SendActivityNotification.SendActivityNotificationPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -63,14 +66,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 SendActivityNotificationRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/sendActivityNotification", 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 SendActivityNotificationRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/sendActivityNotification", rawUrl) @@ -84,11 +87,11 @@ public SendActivityNotificationRequestBuilder(string rawUrl) : base("{+baseurl}/ /// 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(SendActivityNotificationPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.SendActivityNotification.SendActivityNotificationPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(SendActivityNotificationPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Team.SendActivityNotification.SendActivityNotificationPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -99,3 +102,4 @@ public RequestInformation ToPostRequestInformation(SendActivityNotificationPostR } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Tags/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Tags/Count/CountRequestBuilder.cs index 3f04c5d9ee..3e03f9e60c 100644 --- a/src/generated/Groups/Item/Team/Tags/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Tags/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.Groups.Item.Team.Tags.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}/groups/{group%2Did}/team/tags/$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}/groups/{group%2Did}/team/tags/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Team/Tags/Item/Members/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Team/Tags/Item/Members/Count/CountRequestBuilder.cs index f00d569f89..72af3d332f 100644 --- a/src/generated/Groups/Item/Team/Tags/Item/Members/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Tags/Item/Members/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.Groups.Item.Team.Tags.Item.Members.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members/$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}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs index 714ebda060..af7d84080c 100644 --- a/src/generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Tags/Item/Members/Item/TeamworkTagMemberItemRequestBuilder.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.Groups.Item.Team.Tags.Item.Members.Item /// /// Provides operations to manage the members property of the microsoft.graph.teamworkTag entity. /// - public class TeamworkTagMemberItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamworkTagMemberItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property members for groups @@ -172,8 +175,8 @@ public Command BuildPatchCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TeamworkTagMember.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamworkTagMember.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -196,14 +199,14 @@ public Command BuildPatchCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TeamworkTagMemberItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members/{teamworkTagMember%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 TeamworkTagMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members/{teamworkTagMember%2Did}{?%24expand,%24select}", rawUrl) @@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(TeamworkTagMember body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamworkTagMember body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TeamworkTagMember body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamworkTagMember body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(TeamworkTagMember body, Acti /// /// Users assigned to the tag. /// - public class TeamworkTagMemberItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamworkTagMemberItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,3 +300,4 @@ public class TeamworkTagMemberItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs b/src/generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs index 3390c4bf33..d80b30b40e 100644 --- a/src/generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Tags/Item/Members/MembersRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Tags.Item.Members.Count; using ApiSdk.Groups.Item.Team.Tags.Item.Members.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.Groups.Item.Team.Tags.Item.Members /// /// Provides operations to manage the members property of the microsoft.graph.teamworkTag entity. /// - public class MembersRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the members property of the microsoft.graph.teamworkTag entity. @@ -30,7 +33,7 @@ public class MembersRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new TeamworkTagMemberItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Tags.Item.Members.Item.TeamworkTagMemberItemRequestBuilder(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.Groups.Item.Team.Tags.Item.Members.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -88,8 +91,8 @@ public Command BuildCreateCommand() var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(TeamworkTagMember.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamworkTagMember.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -219,14 +222,14 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public MembersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members{?%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 MembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}/members{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -239,11 +242,11 @@ public MembersRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(TeamworkTagMember body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamworkTagMember body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TeamworkTagMember body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamworkTagMember body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(TeamworkTagMember body, Actio /// /// Users assigned to the tag. /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -339,3 +343,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs index a453880dde..683ad2c665 100644 --- a/src/generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Tags/Item/TeamworkTagItemRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Tags.Item.Members; 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.Groups.Item.Team.Tags.Item /// /// Provides operations to manage the tags property of the microsoft.graph.team entity. /// - public class TeamworkTagItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamworkTagItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property tags for groups @@ -129,7 +132,7 @@ public Command BuildMembersNavCommand() { var command = new Command("members"); command.Description = "Provides operations to manage the members property of the microsoft.graph.teamworkTag entity."; - var builder = new MembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Tags.Item.Members.MembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -183,8 +186,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(TeamworkTag.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamworkTag.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -206,14 +209,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 TeamworkTagItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%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 TeamworkTagItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/tags/{teamworkTag%2Did}{?%24expand,%24select}", rawUrl) @@ -245,11 +248,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); @@ -265,11 +268,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(TeamworkTag body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamworkTag body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(TeamworkTag body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.TeamworkTag body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +284,8 @@ public RequestInformation ToPatchRequestInformation(TeamworkTag body, Action /// The tags associated with the team. /// - public class TeamworkTagItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamworkTagItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -306,3 +310,4 @@ public class TeamworkTagItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs b/src/generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs index 4d3644c1e1..0f173cb4b0 100644 --- a/src/generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Tags/TagsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.Tags.Count; using ApiSdk.Groups.Item.Team.Tags.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.Groups.Item.Team.Tags /// /// Provides operations to manage the tags property of the microsoft.graph.team entity. /// - public class TagsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TagsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the tags property of the microsoft.graph.team entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new TeamworkTagItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Tags.Item.TeamworkTagItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildMembersNavCommand()); @@ -46,7 +49,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.Groups.Item.Team.Tags.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -85,8 +88,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(TeamworkTag.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.TeamworkTag.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 TagsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/tags{?%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 TagsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/tags{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -229,11 +232,11 @@ public TagsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/ /// 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(TeamworkTag body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamworkTag body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(TeamworkTag body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.TeamworkTag body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(TeamworkTag body, Action /// The tags associated with the team. /// - public class TagsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TagsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -329,3 +333,4 @@ public class TagsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/TeamRequestBuilder.cs b/src/generated/Groups/Item/Team/TeamRequestBuilder.cs index a196cec408..6fd1623977 100644 --- a/src/generated/Groups/Item/Team/TeamRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/TeamRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Team.AllChannels; using ApiSdk.Groups.Item.Team.Archive; using ApiSdk.Groups.Item.Team.Channels; @@ -19,6 +20,7 @@ using ApiSdk.Groups.Item.Team.Unarchive; 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; @@ -37,7 +39,8 @@ namespace ApiSdk.Groups.Item.Team /// /// Provides operations to manage the team property of the microsoft.graph.group entity. /// - public class TeamRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the allChannels property of the microsoft.graph.team entity. @@ -47,7 +50,7 @@ public Command BuildAllChannelsNavCommand() { var command = new Command("all-channels"); command.Description = "Provides operations to manage the allChannels property of the microsoft.graph.team entity."; - var builder = new AllChannelsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.AllChannels.AllChannelsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -73,7 +76,7 @@ public Command BuildArchiveNavCommand() { var command = new Command("archive"); command.Description = "Provides operations to call the archive method."; - var builder = new ArchiveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Archive.ArchiveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -90,12 +93,13 @@ public Command BuildChannelsNavCommand() { var command = new Command("channels"); command.Description = "Provides operations to manage the channels property of the microsoft.graph.team entity."; - var builder = new ChannelsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Channels.ChannelsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); execCommands.Add(builder.BuildCreateCommand()); nonExecCommands.Add(builder.BuildGetAllMessagesNavCommand()); + nonExecCommands.Add(builder.BuildGetAllRetainedMessagesNavCommand()); execCommands.Add(builder.BuildListCommand()); var cmds = builder.BuildCommand(); execCommands.AddRange(cmds.Item1); @@ -118,7 +122,7 @@ public Command BuildCloneNavCommand() { var command = new Command("clone"); command.Description = "Provides operations to call the clone method."; - var builder = new CloneRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Clone.CloneRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -135,7 +139,7 @@ public Command BuildCompleteMigrationNavCommand() { var command = new Command("complete-migration"); command.Description = "Provides operations to call the completeMigration method."; - var builder = new CompleteMigrationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.CompleteMigration.CompleteMigrationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -239,7 +243,7 @@ public Command BuildGroupNavCommand() { var command = new Command("group"); command.Description = "Provides operations to manage the group property of the microsoft.graph.team entity."; - var builder = new GroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Group.GroupRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); @@ -262,7 +266,7 @@ public Command BuildIncomingChannelsNavCommand() { var command = new Command("incoming-channels"); command.Description = "Provides operations to manage the incomingChannels property of the microsoft.graph.team entity."; - var builder = new IncomingChannelsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.IncomingChannels.IncomingChannelsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -288,7 +292,7 @@ public Command BuildInstalledAppsNavCommand() { var command = new Command("installed-apps"); command.Description = "Provides operations to manage the installedApps property of the microsoft.graph.team entity."; - var builder = new InstalledAppsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.InstalledApps.InstalledAppsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -315,13 +319,14 @@ public Command BuildMembersNavCommand() { var command = new Command("members"); command.Description = "Provides operations to manage the members property of the microsoft.graph.team entity."; - var builder = new MembersRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Members.MembersRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAddNavCommand()); nonExecCommands.Add(builder.BuildCountNavCommand()); execCommands.Add(builder.BuildCreateCommand()); execCommands.Add(builder.BuildListCommand()); + nonExecCommands.Add(builder.BuildRemoveNavCommand()); var cmds = builder.BuildCommand(); execCommands.AddRange(cmds.Item1); nonExecCommands.AddRange(cmds.Item2); @@ -343,7 +348,7 @@ public Command BuildOperationsNavCommand() { var command = new Command("operations"); command.Description = "Provides operations to manage the operations property of the microsoft.graph.team entity."; - var builder = new OperationsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Operations.OperationsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -370,7 +375,7 @@ public Command BuildPermissionGrantsNavCommand() { var command = new Command("permission-grants"); command.Description = "Provides operations to manage the permissionGrants property of the microsoft.graph.team entity."; - var builder = new PermissionGrantsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PermissionGrants.PermissionGrantsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -397,7 +402,7 @@ public Command BuildPhotoNavCommand() { var command = new Command("photo"); command.Description = "Provides operations to manage the photo property of the microsoft.graph.team entity."; - var builder = new PhotoRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Photo.PhotoRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildContentNavCommand()); @@ -421,9 +426,11 @@ public Command BuildPrimaryChannelNavCommand() { var command = new Command("primary-channel"); command.Description = "Provides operations to manage the primaryChannel property of the microsoft.graph.team entity."; - var builder = new PrimaryChannelRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.PrimaryChannel.PrimaryChannelRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildAllMembersNavCommand()); + nonExecCommands.Add(builder.BuildArchiveNavCommand()); nonExecCommands.Add(builder.BuildCompleteMigrationNavCommand()); execCommands.Add(builder.BuildDeleteCommand()); nonExecCommands.Add(builder.BuildDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameNavCommand()); @@ -436,6 +443,7 @@ public Command BuildPrimaryChannelNavCommand() nonExecCommands.Add(builder.BuildRemoveEmailNavCommand()); nonExecCommands.Add(builder.BuildSharedWithTeamsNavCommand()); nonExecCommands.Add(builder.BuildTabsNavCommand()); + nonExecCommands.Add(builder.BuildUnarchiveNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); @@ -477,8 +485,8 @@ public Command BuildPutCommand() 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.Team.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Team.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -506,9 +514,10 @@ public Command BuildScheduleNavCommand() { var command = new Command("schedule"); command.Description = "Provides operations to manage the schedule property of the microsoft.graph.team entity."; - var builder = new ScheduleRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Schedule.ScheduleRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); + nonExecCommands.Add(builder.BuildDayNotesNavCommand()); execCommands.Add(builder.BuildDeleteCommand()); execCommands.Add(builder.BuildGetCommand()); nonExecCommands.Add(builder.BuildOfferShiftRequestsNavCommand()); @@ -519,6 +528,7 @@ public Command BuildScheduleNavCommand() nonExecCommands.Add(builder.BuildShareNavCommand()); nonExecCommands.Add(builder.BuildShiftsNavCommand()); nonExecCommands.Add(builder.BuildSwapShiftsChangeRequestsNavCommand()); + nonExecCommands.Add(builder.BuildTimeCardsNavCommand()); nonExecCommands.Add(builder.BuildTimeOffReasonsNavCommand()); nonExecCommands.Add(builder.BuildTimeOffRequestsNavCommand()); nonExecCommands.Add(builder.BuildTimesOffNavCommand()); @@ -540,7 +550,7 @@ public Command BuildSendActivityNotificationNavCommand() { var command = new Command("send-activity-notification"); command.Description = "Provides operations to call the sendActivityNotification method."; - var builder = new SendActivityNotificationRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.SendActivityNotification.SendActivityNotificationRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -557,7 +567,7 @@ public Command BuildTagsNavCommand() { var command = new Command("tags"); command.Description = "Provides operations to manage the tags property of the microsoft.graph.team entity."; - var builder = new TagsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Tags.TagsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -584,7 +594,7 @@ public Command BuildTemplateNavCommand() { var command = new Command("template"); command.Description = "Provides operations to manage the template property of the microsoft.graph.team entity."; - var builder = new TemplateRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Template.TemplateRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -601,7 +611,7 @@ public Command BuildUnarchiveNavCommand() { var command = new Command("unarchive"); command.Description = "Provides operations to call the unarchive method."; - var builder = new UnarchiveRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Team.Unarchive.UnarchiveRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -611,14 +621,14 @@ public Command BuildUnarchiveNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public TeamRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team{?%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 TeamRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team{?%24expand,%24select}", rawUrl) @@ -650,11 +660,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); @@ -670,11 +680,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 ToPutRequestInformation(ApiSdk.Models.Team body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.Team body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(ApiSdk.Models.Team body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::ApiSdk.Models.Team body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -686,7 +696,8 @@ public RequestInformation ToPutRequestInformation(ApiSdk.Models.Team body, Actio /// /// The team associated with this group. /// - public class TeamRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TeamRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -711,3 +722,4 @@ public class TeamRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Template/TemplateRequestBuilder.cs b/src/generated/Groups/Item/Team/Template/TemplateRequestBuilder.cs index a51adc657a..8dac5c5fb0 100644 --- a/src/generated/Groups/Item/Team/Template/TemplateRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Template/TemplateRequestBuilder.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.Groups.Item.Team.Template /// /// Provides operations to manage the template property of the microsoft.graph.team entity. /// - public class TemplateRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TemplateRequestBuilder : BaseCliRequestBuilder { /// /// The template this team was created from. See available templates. @@ -74,14 +77,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 TemplateRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/template{?%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 TemplateRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/template{?%24expand,%24select}", rawUrl) @@ -94,11 +97,11 @@ public TemplateRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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); @@ -109,7 +112,8 @@ public RequestInformation ToGetRequestInformation(Action /// The template this team was created from. See available templates. /// - public class TemplateRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TemplateRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,3 +138,4 @@ public class TemplateRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs b/src/generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs index 3a246b7fec..a55596d45f 100644 --- a/src/generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.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.Groups.Item.Team.Unarchive /// /// Provides operations to call the unarchive method. /// - public class UnarchiveRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnarchiveRequestBuilder : BaseCliRequestBuilder { /// /// Restore an archived team. This API restores users' ability to send messages and edit the team, abiding by tenant and team settings. A Team is archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which might occur subsequent to a response from this API. @@ -50,14 +53,14 @@ public Command BuildPostCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public UnarchiveRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/team/unarchive", 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 UnarchiveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/unarchive", rawUrl) @@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action +#pragma warning disable CS0618 using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Cli.Commons.Extensions; @@ -18,7 +20,8 @@ namespace ApiSdk.Groups.Item.Threads.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}/groups/{group%2Did}/threads/$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}/groups/{group%2Did}/threads/$count{?%24filter,%24search}", rawUrl) @@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs index 4cd32b55c8..72c7ef05aa 100644 --- a/src/generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Threads.Item.Posts; using ApiSdk.Groups.Item.Threads.Item.Reply; 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,17 +23,18 @@ namespace ApiSdk.Groups.Item.Threads.Item /// /// Provides operations to manage the threads property of the microsoft.graph.group entity. /// - public class ConversationThreadItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationThreadItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete conversationThread. - /// Find more info here + /// Find more info here /// /// A public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete conversationThread.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationthread-delete?view=graph-rest-1.0"; + command.Description = "Delete conversationThread.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-delete-thread?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -66,14 +69,14 @@ public Command BuildDeleteCommand() return command; } /// - /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. - /// Find more info here + /// Get a thread object. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. \n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationthread-get?view=graph-rest-1.0"; + command.Description = "Get a thread object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-get-thread?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -87,6 +90,11 @@ public Command BuildGetCommand() }; 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"); @@ -95,6 +103,7 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var conversationThreadId = invocationContext.ParseResult.GetValueForOption(conversationThreadIdOption); 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"); @@ -103,6 +112,7 @@ public Command BuildGetCommand() var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); if (conversationThreadId is not null) requestInfo.PathParameters.Add("conversationThread%2Did", conversationThreadId); @@ -153,8 +163,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(ConversationThread.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationThread.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -183,7 +193,7 @@ public Command BuildPostsNavCommand() { var command = new Command("posts"); command.Description = "Provides operations to manage the posts property of the microsoft.graph.conversationThread entity."; - var builder = new PostsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.PostsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -209,7 +219,7 @@ public Command BuildReplyNavCommand() { var command = new Command("reply"); command.Description = "Provides operations to call the reply method."; - var builder = new ReplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Reply.ReplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -219,17 +229,17 @@ public Command BuildReplyNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public ConversationThreadItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}{?%24select}", pathParameters) + public ConversationThreadItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%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 ConversationThreadItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}{?%24select}", rawUrl) + public ConversationThreadItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}{?%24expand,%24select}", rawUrl) { } /// @@ -252,17 +262,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get a thread object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -278,11 +288,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(ConversationThread body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationThread body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(ConversationThread body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ConversationThread body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -292,10 +302,21 @@ public RequestInformation ToPatchRequestInformation(ConversationThread body, Act return requestInfo; } /// - /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get a thread object. /// - public class ConversationThreadItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConversationThreadItemRequestBuilderGetQueryParameters { + /// 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 @@ -309,3 +330,4 @@ public class ConversationThreadItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs index b36c7da618..a18f6f4a6c 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/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.Groups.Item.Threads.Item.Posts.Count /// /// Provides operations to count the resources in the collection. /// - public class CountRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseCliRequestBuilder { /// /// Get the number of the resource @@ -69,14 +72,14 @@ public Command BuildGetCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/$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}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/$count{?%24filter,%24search}", rawUrl) @@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the number of the resource /// - public class CountRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs index a69784e424..c9bfc5ad7b 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments.Count; using ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.Threads.Item.Posts.Item.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -124,7 +127,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -134,13 +137,14 @@ public Command BuildCreateUploadSessionNavCommand() return command; } /// - /// Read-only. Nullable. Supports $expand. + /// Retrieve a list of attachment objects attached to a post. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Read-only. Nullable. Supports $expand."; + command.Description = "Retrieve a list of attachment objects attached to a post.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/post-list-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -161,6 +165,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -196,6 +204,7 @@ public Command BuildListCommand() var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -212,6 +221,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -242,31 +252,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Read-only. Nullable. Supports $expand. + /// Retrieve a list of attachment objects attached to a post. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -282,11 +292,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -296,9 +306,10 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action - /// Read-only. Nullable. Supports $expand. + /// Retrieve a list of attachment objects attached to a post. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -332,6 +343,16 @@ public class AttachmentsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -352,3 +373,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs index eb2271b2a4..b0d4105e1d 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/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.Groups.Item.Threads.Item.Posts.Item.Attachments.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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; postIdOption.IsRequired = true; command.AddOption(postIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var conversationThreadId = invocationContext.ParseResult.GetValueForOption(conversationThreadIdOption); var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$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}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index 96c346f995..742976c7a4 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index ca0c47dd08..bc4950ba2f 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSes /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -62,8 +65,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession", rawUrl) @@ -107,11 +110,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 942b4918f3..95e123745c 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.Threads.Item.Posts.Item.Attachments.Item /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -145,14 +148,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -184,11 +187,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); @@ -199,7 +202,8 @@ public RequestInformation ToGetRequestInformation(Action /// Read-only. Nullable. Supports $expand. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -224,3 +228,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs index 22ee7d94cb..7235aafff4 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/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.Groups.Item.Threads.Item.Posts.Item.Extensions.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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; postIdOption.IsRequired = true; command.AddOption(postIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var conversationThreadId = invocationContext.ParseResult.GetValueForOption(conversationThreadIdOption); var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$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}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs index 07a8da3939..c406414835 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Threads.Item.Posts.Item.Extensions.Count; using ApiSdk.Groups.Item.Threads.Item.Posts.Item.Extensions.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.Groups.Item.Threads.Item.Posts.Item.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.Threads.Item.Posts.Item.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -117,13 +120,13 @@ public Command BuildCreateCommand() return command; } /// - /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand."; + command.Description = "Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance."; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -144,6 +147,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -179,6 +186,7 @@ public Command BuildListCommand() var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -195,6 +203,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -225,31 +234,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request - public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -265,11 +274,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -279,9 +288,10 @@ public RequestInformation ToPostRequestInformation(Extension body, Action - /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,6 +325,16 @@ public class ExtensionsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -335,3 +355,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 52bcfbd6f2..304681625d 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.Threads.Item.Posts.Item.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -75,13 +78,14 @@ public Command BuildDeleteCommand() return command; } /// - /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Find more info here /// /// A public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand."; + command.Description = "Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -145,13 +149,14 @@ public Command BuildGetCommand() return command; } /// - /// Update the navigation property extensions in groups + /// Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + /// Find more info here /// /// A public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the navigation property extensions in groups"; + command.Description = "Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/opentypeextension-update?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -189,8 +194,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +219,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 ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -247,17 +252,17 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -266,18 +271,18 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property extensions in groups + /// Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. /// /// 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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -287,9 +292,10 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action - /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +320,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs index 0a1f4ea675..d4cdd1b77f 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardPostRequestBody.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.Groups.Item.Threads.Item.Posts.Item.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs index ecb70c3521..ff5b6eb462 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Forward/ForwardRequestBuilder.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.Groups.Item.Threads.Item.Posts.Item.Forward /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. @@ -53,8 +56,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/forward", rawUrl) @@ -96,11 +99,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs index 0dfdb5a264..606e8fa1e6 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/AttachmentsRequestBuilder.cs @@ -1,9 +1,11 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.Count; using ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession; using ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.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; @@ -22,7 +24,8 @@ namespace ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. /// - public class AttachmentsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. @@ -31,7 +34,7 @@ public class AttachmentsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new AttachmentItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.Item.AttachmentItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); return new(executables, new(0)); @@ -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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Attachment.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Attachment.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -124,7 +127,7 @@ public Command BuildCreateUploadSessionNavCommand() { var command = new Command("create-upload-session"); command.Description = "Provides operations to call the createUploadSession method."; - var builder = new CreateUploadSessionRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -161,6 +164,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -196,6 +203,7 @@ public Command BuildListCommand() var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -212,6 +220,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -242,17 +251,17 @@ 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 AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public AttachmentsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%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 AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -262,11 +271,11 @@ public AttachmentsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group /// 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); @@ -282,11 +291,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(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -298,7 +307,8 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// Read-only. Nullable. Supports $expand. /// - public class AttachmentsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -332,6 +342,16 @@ public class AttachmentsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -352,3 +372,4 @@ public class AttachmentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs index 2a22e17d26..3f0b0fe15a 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; postIdOption.IsRequired = true; command.AddOption(postIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var conversationThreadId = invocationContext.ParseResult.GetValueForOption(conversationThreadIdOption); var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$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}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs index d96bebac30..1257cad78b 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsable + public partial class CreateUploadSessionPostRequestBody : 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. @@ -16,13 +18,13 @@ public class CreateUploadSessionPostRequestBody : IAdditionalDataHolder, IParsab /// The AttachmentItem property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem? AttachmentItem { get; set; } #nullable restore #else - public ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } + public global::ApiSdk.Models.AttachmentItem AttachmentItem { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public CreateUploadSessionPostRequestBody() { @@ -31,12 +33,12 @@ public CreateUploadSessionPostRequestBody() /// /// 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 CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CreateUploadSessionPostRequestBody(); + return new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::ApiSdk.Models.AttachmentItem.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("AttachmentItem", AttachmentItem); + writer.WriteObjectValue("AttachmentItem", AttachmentItem); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index d0693c5490..18b2f22d62 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.Creat /// /// Provides operations to call the createUploadSession method. /// - public class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseCliRequestBuilder { /// /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. @@ -62,8 +65,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(CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -86,14 +89,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 CreateUploadSessionRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession", 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 CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession", rawUrl) @@ -107,11 +110,11 @@ public CreateUploadSessionRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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(CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -122,3 +125,4 @@ public RequestInformation ToPostRequestInformation(CreateUploadSessionPostReques } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs index bad88b7686..d960de8abb 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/Item/AttachmentItemRequestBuilder.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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.Item /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. /// - public class AttachmentItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property attachments for groups @@ -145,14 +148,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 AttachmentItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) @@ -184,11 +187,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); @@ -199,7 +202,8 @@ public RequestInformation ToGetRequestInformation(Action /// Read-only. Nullable. Supports $expand. /// - public class AttachmentItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -224,3 +228,4 @@ public class AttachmentItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs index 4439a4886d..06bc96979c 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.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 @@ -40,6 +43,10 @@ public Command BuildGetCommand() }; postIdOption.IsRequired = true; command.AddOption(postIdOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -48,11 +55,13 @@ public Command BuildGetCommand() var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); var conversationThreadId = invocationContext.ParseResult.GetValueForOption(conversationThreadIdOption); var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); var cancellationToken = invocationContext.GetCancellationToken(); var reqAdapter = invocationContext.GetRequestAdapter(); var requestInfo = ToGetRequestInformation(q => { + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); @@ -69,17 +78,17 @@ 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}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$count{?%24filter}", pathParameters) + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$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}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$count{?%24filter}", rawUrl) + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/$count{?%24filter,%24search}", rawUrl) { } /// @@ -89,11 +98,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,7 +113,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 @@ -115,7 +125,18 @@ public class CountRequestBuilderGetQueryParameters #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs index aeafb58424..b1d5ce0107 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/ExtensionsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.Count; using ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Extensions /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. /// - public class ExtensionsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. @@ -30,7 +33,7 @@ public class ExtensionsRequestBuilder : BaseCliRequestBuilder public Tuple, List> BuildCommand() { var executables = new List(); - var builder = new ExtensionItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.Item.ExtensionItemRequestBuilder(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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -93,8 +96,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -144,6 +147,10 @@ public Command BuildListCommand() }; skipOption.IsRequired = false; command.AddOption(skipOption); + var searchOption = new Option("--search", description: "Search items by search phrases") { + }; + searchOption.IsRequired = false; + command.AddOption(searchOption); var filterOption = new Option("--filter", description: "Filter items by property values") { }; filterOption.IsRequired = false; @@ -179,6 +186,7 @@ public Command BuildListCommand() var postId = invocationContext.ParseResult.GetValueForOption(postIdOption); var top = invocationContext.ParseResult.GetValueForOption(topOption); var skip = invocationContext.ParseResult.GetValueForOption(skipOption); + var search = invocationContext.ParseResult.GetValueForOption(searchOption); var filter = invocationContext.ParseResult.GetValueForOption(filterOption); var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); @@ -195,6 +203,7 @@ public Command BuildListCommand() var requestInfo = ToGetRequestInformation(q => { q.QueryParameters.Top = top; q.QueryParameters.Skip = skip; + if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search; if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter; q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; @@ -225,17 +234,17 @@ 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 ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", pathParameters) + public ExtensionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%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 ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24count,%24expand,%24filter,%24orderby,%24select,%24skip,%24top}", rawUrl) + public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -245,11 +254,11 @@ public ExtensionsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -265,11 +274,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -281,7 +290,8 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. /// - public class ExtensionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -315,6 +325,16 @@ public class ExtensionsRequestBuilderGetQueryParameters #else [QueryParameter("%24orderby")] public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -335,3 +355,4 @@ public class ExtensionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs index 242d216073..5076d51ddb 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Extensions/Item/ExtensionItemRequestBuilder.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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.Item /// /// Provides operations to manage the extensions property of the microsoft.graph.post entity. /// - public class ExtensionItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete navigation property extensions for groups @@ -189,8 +192,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(Extension.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.Extension.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -214,14 +217,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 ExtensionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) @@ -253,11 +256,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); @@ -273,11 +276,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(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -289,7 +292,8 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. /// - public class ExtensionItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -314,3 +318,4 @@ public class ExtensionItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs index b5b3999d4e..c743090904 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardPostRequestBody.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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Forward { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ForwardPostRequestBody : 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,13 +26,13 @@ public class ForwardPostRequestBody : IAdditionalDataHolder, IParsable /// The ToRecipients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ForwardPostRequestBody() { @@ -39,12 +41,12 @@ public ForwardPostRequestBody() /// /// 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 ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ForwardPostRequestBody(); + return new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardPostRequestBody(); } /// /// The deserialization information for the current model @@ -55,7 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "Comment", n => { Comment = n.GetStringValue(); } }, - { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::ApiSdk.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -66,8 +68,9 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("Comment", Comment); - writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs index abd304c476..b80aa8f1b4 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Forward/ForwardRequestBuilder.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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Forward /// /// Provides operations to call the forward method. /// - public class ForwardRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseCliRequestBuilder { /// /// Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. @@ -53,8 +56,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(ForwardPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -75,14 +78,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 ForwardRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/forward", 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 ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/forward", rawUrl) @@ -96,11 +99,11 @@ public ForwardRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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(ForwardPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,3 +114,4 @@ public RequestInformation ToPostRequestInformation(ForwardPostRequestBody body, } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs index a8d51a228e..265660c4bc 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/InReplyToRequestBuilder.cs @@ -1,10 +1,12 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments; using ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Extensions; using ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Forward; using ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Reply; 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; @@ -23,7 +25,8 @@ namespace ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo /// /// Provides operations to manage the inReplyTo property of the microsoft.graph.post entity. /// - public class InReplyToRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InReplyToRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. @@ -33,7 +36,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.post entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -61,7 +64,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.post entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -88,7 +91,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -169,7 +172,7 @@ public Command BuildReplyNavCommand() { var command = new Command("reply"); command.Description = "Provides operations to call the reply method."; - var builder = new ReplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -179,14 +182,14 @@ public Command BuildReplyNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public InReplyToRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo{?%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 InReplyToRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo{?%24expand,%24select}", rawUrl) @@ -199,11 +202,11 @@ public InReplyToRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%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); @@ -214,7 +217,8 @@ public RequestInformation ToGetRequestInformation(Action /// Read-only. Supports $expand. /// - public class InReplyToRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InReplyToRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -239,3 +243,4 @@ public class InReplyToRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs index d45fe62f47..4d71410755 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyPostRequestBody.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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Reply { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReplyPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable /// The Post property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.Post? Post { get; set; } + public global::ApiSdk.Models.Post? Post { get; set; } #nullable restore #else - public ApiSdk.Models.Post Post { get; set; } + public global::ApiSdk.Models.Post Post { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReplyPostRequestBody() { @@ -31,12 +33,12 @@ public ReplyPostRequestBody() /// /// 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 ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReplyPostRequestBody(); + return new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "Post", n => { Post = n.GetObjectValue(ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, + { "Post", n => { Post = n.GetObjectValue(global::ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("Post", Post); + writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index 7bdc9e1793..8f4541da4b 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.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.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Reply /// /// Provides operations to call the reply method. /// - public class ReplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReplyRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action reply @@ -52,8 +55,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(ReplyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 ReplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", 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 ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", rawUrl) @@ -95,11 +98,11 @@ public ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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(ReplyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.Reply.ReplyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs index 776ca48697..4beb2a53e8 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/PostItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments; using ApiSdk.Groups.Item.Threads.Item.Posts.Item.Extensions; using ApiSdk.Groups.Item.Threads.Item.Posts.Item.Forward; @@ -6,6 +7,7 @@ using ApiSdk.Groups.Item.Threads.Item.Posts.Item.Reply; 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 +26,8 @@ namespace ApiSdk.Groups.Item.Threads.Item.Posts.Item /// /// Provides operations to manage the posts property of the microsoft.graph.conversationThread entity. /// - public class PostItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PostItemRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the attachments property of the microsoft.graph.post entity. @@ -34,7 +37,7 @@ public Command BuildAttachmentsNavCommand() { var command = new Command("attachments"); command.Description = "Provides operations to manage the attachments property of the microsoft.graph.post entity."; - var builder = new AttachmentsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Attachments.AttachmentsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -62,7 +65,7 @@ public Command BuildExtensionsNavCommand() { var command = new Command("extensions"); command.Description = "Provides operations to manage the extensions property of the microsoft.graph.post entity."; - var builder = new ExtensionsRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Extensions.ExtensionsRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -89,7 +92,7 @@ public Command BuildForwardNavCommand() { var command = new Command("forward"); command.Description = "Provides operations to call the forward method."; - var builder = new ForwardRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Forward.ForwardRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -170,7 +173,7 @@ public Command BuildInReplyToNavCommand() { var command = new Command("in-reply-to"); command.Description = "Provides operations to manage the inReplyTo property of the microsoft.graph.post entity."; - var builder = new InReplyToRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.InReplyTo.InReplyToRequestBuilder(PathParameters); var execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildAttachmentsNavCommand()); @@ -196,7 +199,7 @@ public Command BuildReplyNavCommand() { var command = new Command("reply"); command.Description = "Provides operations to call the reply method."; - var builder = new ReplyRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Reply.ReplyRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildPostCommand()); foreach (var cmd in execCommands) @@ -206,14 +209,14 @@ public Command BuildReplyNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PostItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%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 PostItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}{?%24expand,%24select}", rawUrl) @@ -226,11 +229,11 @@ public PostItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2D /// 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,7 +244,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get posts from groups /// - public class PostItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PostItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -266,3 +270,4 @@ public class PostItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs index 2933ddad5d..ef56197ce0 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyPostRequestBody.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.Groups.Item.Threads.Item.Posts.Item.Reply { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReplyPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable /// The Post property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.Post? Post { get; set; } + public global::ApiSdk.Models.Post? Post { get; set; } #nullable restore #else - public ApiSdk.Models.Post Post { get; set; } + public global::ApiSdk.Models.Post Post { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReplyPostRequestBody() { @@ -31,12 +33,12 @@ public ReplyPostRequestBody() /// /// 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 ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Reply.ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReplyPostRequestBody(); + return new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Reply.ReplyPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "Post", n => { Post = n.GetObjectValue(ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, + { "Post", n => { Post = n.GetObjectValue(global::ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("Post", Post); + writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index d99aaa8a7c..424af6bc89 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.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.Groups.Item.Threads.Item.Posts.Item.Reply /// /// Provides operations to call the reply method. /// - public class ReplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReplyRequestBuilder : BaseCliRequestBuilder { /// /// Invoke action reply @@ -52,8 +55,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(ReplyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Reply.ReplyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -74,14 +77,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 ReplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", 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 ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", rawUrl) @@ -95,11 +98,11 @@ public ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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(ReplyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Reply.ReplyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.Reply.ReplyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -110,3 +113,4 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs index c0e674cdde..696c38a79b 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Threads.Item.Posts.Count; using ApiSdk.Groups.Item.Threads.Item.Posts.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.Groups.Item.Threads.Item.Posts /// /// Provides operations to manage the posts property of the microsoft.graph.conversationThread entity. /// - public class PostsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PostsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the posts property of the microsoft.graph.conversationThread entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new PostItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.Posts.Item.PostItemRequestBuilder(PathParameters); commands.Add(builder.BuildAttachmentsNavCommand()); commands.Add(builder.BuildExtensionsNavCommand()); commands.Add(builder.BuildForwardNavCommand()); @@ -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.Groups.Item.Threads.Item.Posts.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -58,14 +61,14 @@ public Command BuildCountNavCommand() return command; } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. - /// Find more info here + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + /// Find more info here /// /// A public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationthread-list-posts?view=graph-rest-1.0"; + command.Description = "Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/post-get?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -167,31 +170,31 @@ public Command BuildListCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public PostsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%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 PostsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -200,9 +203,10 @@ public RequestInformation ToGetRequestInformation(Action - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// - public class PostsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PostsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -266,3 +270,4 @@ public class PostsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Reply/ReplyPostRequestBody.cs b/src/generated/Groups/Item/Threads/Item/Reply/ReplyPostRequestBody.cs index fd36e77155..212d587e24 100644 --- a/src/generated/Groups/Item/Threads/Item/Reply/ReplyPostRequestBody.cs +++ b/src/generated/Groups/Item/Threads/Item/Reply/ReplyPostRequestBody.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.Groups.Item.Threads.Item.Reply { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable + public partial class ReplyPostRequestBody : 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. @@ -16,13 +18,13 @@ public class ReplyPostRequestBody : IAdditionalDataHolder, IParsable /// The Post property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.Post? Post { get; set; } + public global::ApiSdk.Models.Post? Post { get; set; } #nullable restore #else - public ApiSdk.Models.Post Post { get; set; } + public global::ApiSdk.Models.Post Post { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ReplyPostRequestBody() { @@ -31,12 +33,12 @@ public ReplyPostRequestBody() /// /// 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 ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::ApiSdk.Groups.Item.Threads.Item.Reply.ReplyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ReplyPostRequestBody(); + return new global::ApiSdk.Groups.Item.Threads.Item.Reply.ReplyPostRequestBody(); } /// /// The deserialization information for the current model @@ -46,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "Post", n => { Post = n.GetObjectValue(ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, + { "Post", n => { Post = n.GetObjectValue(global::ApiSdk.Models.Post.CreateFromDiscriminatorValue); } }, }; } /// @@ -56,8 +58,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("Post", Post); + writer.WriteObjectValue("Post", Post); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index f7c28d5afc..78f879535f 100644 --- a/src/generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.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,17 +20,18 @@ namespace ApiSdk.Groups.Item.Threads.Item.Reply /// /// Provides operations to call the reply method. /// - public class ReplyRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReplyRequestBuilder : BaseCliRequestBuilder { /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// A public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0"; + command.Description = "Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -48,8 +51,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(ReplyPostRequestBody.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Groups.Item.Threads.Item.Reply.ReplyPostRequestBody.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -69,32 +72,32 @@ 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 ReplyRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply", 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 ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// 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 ToPostRequestInformation(ReplyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Reply.ReplyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Groups.Item.Threads.Item.Reply.ReplyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -105,3 +108,4 @@ public RequestInformation ToPostRequestInformation(ReplyPostRequestBody body, Ac } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/Threads/ThreadsRequestBuilder.cs b/src/generated/Groups/Item/Threads/ThreadsRequestBuilder.cs index 1ca9b7d4fa..f7e4076f89 100644 --- a/src/generated/Groups/Item/Threads/ThreadsRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/ThreadsRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.Threads.Count; using ApiSdk.Groups.Item.Threads.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.Groups.Item.Threads /// /// Provides operations to manage the threads property of the microsoft.graph.group entity. /// - public class ThreadsRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ThreadsRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to manage the threads property of the microsoft.graph.group entity. @@ -31,7 +34,7 @@ public Tuple, List> BuildCommand() { var executables = new List(); var commands = new List(); - var builder = new ConversationThreadItemRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.Threads.Item.ConversationThreadItemRequestBuilder(PathParameters); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); executables.Add(builder.BuildPatchCommand()); @@ -47,7 +50,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.Groups.Item.Threads.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -87,8 +90,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(ConversationThread.CreateFromDiscriminatorValue); + var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken); + var model = parseNode.GetObjectValue(global::ApiSdk.Models.ConversationThread.CreateFromDiscriminatorValue); if (model is null) { Console.Error.WriteLine("No model data to send."); return; @@ -151,6 +154,11 @@ public Command BuildListCommand() }; 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"); @@ -166,6 +174,7 @@ public Command BuildListCommand() var count = invocationContext.ParseResult.GetValueForOption(countOption); var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption); var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); var output = invocationContext.ParseResult.GetValueForOption(outputOption); var query = invocationContext.ParseResult.GetValueForOption(queryOption); var all = invocationContext.ParseResult.GetValueForOption(allOption); @@ -182,6 +191,7 @@ public Command BuildListCommand() q.QueryParameters.Count = count; q.QueryParameters.Orderby = orderby; q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; }); if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); var errorMapping = new Dictionary> { @@ -205,17 +215,17 @@ 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 ThreadsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + public ThreadsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/threads{?%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 ThreadsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads{?%24count,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + public ThreadsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// @@ -225,11 +235,11 @@ public ThreadsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Di /// 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); @@ -245,11 +255,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(ConversationThread body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationThread body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ConversationThread body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ConversationThread body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -261,11 +271,22 @@ public RequestInformation ToPostRequestInformation(ConversationThread body, Acti /// /// Get all the threads of a group. /// - public class ThreadsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ThreadsRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// 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 /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -315,3 +336,4 @@ public class ThreadsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs index 62ee94f35a..ab84451bae 100644 --- a/src/generated/Groups/Item/TransitiveMemberOf/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/TransitiveMemberOf/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.Groups.Item.TransitiveMemberOf.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 @@ -70,14 +73,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}/groups/{group%2Did}/transitiveMemberOf/$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}/groups/{group%2Did}/transitiveMemberOf/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs index d7f3ca8afe..727828aed6 100644 --- a/src/generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/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.Groups.Item.TransitiveMemberOf.GraphAdministrativeUnit.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 @@ -70,14 +73,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}/groups/{group%2Did}/transitiveMemberOf/graph.administrativeUnit/$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}/groups/{group%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index 3bcb24c21e..2d3c7c92c8 100644 --- a/src/generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Groups/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.TransitiveMemberOf.GraphAdministrativeUnit.Count; 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.Groups.Item.TransitiveMemberOf.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.TransitiveMemberOf.GraphAdministrativeUnit.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/g /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs b/src/generated/Groups/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs index bd6f9941e1..824a729a4c 100644 --- a/src/generated/Groups/Item/TransitiveMemberOf/GraphGroup/Count/CountRequestBuilder.cs +++ b/src/generated/Groups/Item/TransitiveMemberOf/GraphGroup/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.Groups.Item.TransitiveMemberOf.GraphGroup.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 @@ -70,14 +73,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}/groups/{group%2Did}/transitiveMemberOf/graph.group/$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}/groups/{group%2Did}/transitiveMemberOf/graph.group/$count{?%24filter,%24search}", rawUrl) @@ -90,11 +93,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did} /// 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); @@ -105,7 +108,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 @@ -130,3 +134,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs index a85c30efff..9c2150cf6d 100644 --- a/src/generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/TransitiveMemberOf/GraphGroup/GraphGroupRequestBuilder.cs @@ -1,7 +1,9 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.TransitiveMemberOf.GraphGroup.Count; 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.Groups.Item.TransitiveMemberOf.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. @@ -30,7 +33,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.Groups.Item.TransitiveMemberOf.GraphGroup.Count.CountRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -149,14 +152,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/transitiveMemberOf/graph.group{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) @@ -169,11 +172,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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); @@ -184,7 +187,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection /// - public class GraphGroupRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] @@ -248,3 +252,4 @@ public class GraphGroupRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs index 31fc5ea33a..d5831c0b25 100644 --- a/src/generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/generated/Groups/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -1,8 +1,10 @@ // +#pragma warning disable CS0618 using ApiSdk.Groups.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit; using ApiSdk.Groups.Item.TransitiveMemberOf.Item.GraphGroup; 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.Groups.Item.TransitiveMemberOf.Item /// /// Provides operations to manage the transitiveMemberOf property of the microsoft.graph.group entity. /// - public class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseCliRequestBuilder { /// /// The groups that a group is a member of, either directly or through nested membership. Nullable. @@ -96,7 +99,7 @@ public Command BuildGraphAdministrativeUnitByIdNavCommand() { var command = new Command("graph-administrative-unit-by-id"); command.Description = "Casts the previous resource to administrativeUnit."; - var builder = new GraphAdministrativeUnitRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit.GraphAdministrativeUnitRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -113,7 +116,7 @@ public Command BuildGraphGroupByIdNavCommand() { var command = new Command("graph-group-by-id"); command.Description = "Casts the previous resource to group."; - var builder = new GraphGroupRequestBuilder(PathParameters); + var builder = new global::ApiSdk.Groups.Item.TransitiveMemberOf.Item.GraphGroup.GraphGroupRequestBuilder(PathParameters); var execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -123,14 +126,14 @@ public Command BuildGraphGroupByIdNavCommand() return command; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request public DirectoryObjectItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%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 DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) @@ -143,11 +146,11 @@ public DirectoryObjectItemRequestBuilder(string rawUrl) : base("{+baseurl}/group /// 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); @@ -158,7 +161,8 @@ public RequestInformation ToGetRequestInformation(Action /// The groups that a group is a member of, either directly or through nested membership. Nullable. /// - public class DirectoryObjectItemRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,3 +187,4 @@ public class DirectoryObjectItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs index d81ccefc13..c54ef704b3 100644 --- a/src/generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs +++ b/src/generated/Groups/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.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.Groups.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit /// /// Casts the previous resource to administrativeUnit. /// - public class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit @@ -87,14 +90,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 GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%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 GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphAdministrativeUnitRequestBuilder(string rawUrl) : base("{+baseurl}/g /// 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); @@ -122,7 +125,8 @@ public RequestInformation ToGetRequestInformation(Action /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit /// - public class GraphAdministrativeUnitRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphAdministrativeUnitRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,3 +151,4 @@ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs b/src/generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs index fda64eb23b..076a12d7b2 100644 --- a/src/generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.cs +++ b/src/generated/Groups/Item/TransitiveMemberOf/Item/GraphGroup/GraphGroupRequestBuilder.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.Groups.Item.TransitiveMemberOf.Item.GraphGroup /// /// Casts the previous resource to group. /// - public class GraphGroupRequestBuilder : BaseCliRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphGroupRequestBuilder : BaseCliRequestBuilder { /// /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.group @@ -87,14 +90,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 GraphGroupRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%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 GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.group{?%24expand,%24select}", rawUrl) @@ -107,11 +110,11 @@ public GraphGroupRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group% /// 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> reque{"code":"deadline_exceeded","msg":"operation timed out"}